{"paper":{"title":"Universal Transformers for Circuit Computations: Perfect Length Generalization in Tiny Transformers","arxiv_id":"2608.31067","primary_cat":"cs.LG","submitted_at":"2026-08-31T16:42:11+00:00","version_compiled":"v1"},"notice":"Every quoted sentence is the authors' text from the arXiv listing abstract. Labels and probabilities are the outputs of classifier-1.13.0 on the question bank abstract-p1-20260923, exactly as returned. No sentence in this record was written by a language model.","schema":"pith.compiled-record/v0","status":"compiled","abstract":{"source":"arXiv listing abstract v1","sentences":[{"i":0,"p":0.9,"id":"s0","own":false,"role":"background","text":"Learning generalizable algorithmic computations remains a challenge for neural networks, as reflected in persistent failures on compositional and length generalization benchmarks.","hedge":{"p":1.0,"label":"asserted"},"own_p":0.06,"main_claim_p":0.03,"quantitative":false,"quantitative_p":0.06,"role_probabilities":{"gap":0.1,"method":0.0,"result":0.0,"background":0.9,"limitation":0.0,"future_work":0.0,"contribution":0.0,"interpretation":0.0}},{"i":1,"p":1.0,"id":"s1","own":true,"role":"contribution","text":"We present a provably correct, transformer parameterization (with only 280 learnable parameters for Boolean algebra tasks) capable of learning and evaluating problems of any depth or length.","hedge":{"p":1.0,"label":"asserted"},"own_p":0.95,"main_claim_p":0.71,"quantitative":true,"quantitative_p":0.98,"role_probabilities":{"gap":0.0,"method":0.0,"result":0.0,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":1.0,"interpretation":0.0}},{"i":2,"p":0.59,"id":"s2","own":false,"role":"limitation","text":"We assume inputs are fully parenthesized, well-formed expressions.","hedge":{"p":0.96,"label":"asserted"},"own_p":0.27,"main_claim_p":0.02,"quantitative":false,"quantitative_p":0.04,"role_probabilities":{"gap":0.0,"method":0.4,"result":0.0,"background":0.01,"limitation":0.59,"future_work":0.0,"contribution":0.0,"interpretation":0.0}},{"i":3,"p":0.91,"id":"s3","own":true,"role":"method","text":"Our approach conceptualizes algorithmic tasks as circuit models embedded in transformers, enabling depth-1 circuit reduction in a single forward pass.","hedge":{"p":0.99,"label":"asserted"},"own_p":0.87,"main_claim_p":0.09,"quantitative":true,"quantitative_p":0.54,"role_probabilities":{"gap":0.0,"method":0.91,"result":0.0,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":0.09,"interpretation":0.0}},{"i":4,"p":0.99,"id":"s4","own":true,"role":"method","text":"To achieve depth generalization, we introduce a positional encoding that tracks each gate's depth within the circuit, enabling the model to identify evaluable subexpressions at each iteration via masked hard attention, with $O(n)$ per-iteration complexity via linear attention.","hedge":{"p":1.0,"label":"asserted"},"own_p":0.92,"main_claim_p":0.08,"quantitative":true,"quantitative_p":0.97,"role_probabilities":{"gap":0.0,"method":0.99,"result":0.0,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":0.01,"interpretation":0.0}},{"i":5,"p":0.71,"id":"s5","own":true,"role":"method","text":"Combined with an autonomous halting criterion, the model terminates after $d$ iterations for problems of depth $d$, yielding $O(n \\cdot d)$ total complexity.","hedge":{"p":1.0,"label":"asserted"},"own_p":0.9,"main_claim_p":0.1,"quantitative":true,"quantitative_p":0.97,"role_probabilities":{"gap":0.0,"method":0.71,"result":0.27,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":0.02,"interpretation":0.0}},{"i":6,"p":0.97,"id":"s6","own":true,"role":"result","text":"We show that training on shallow problem instances (depth 1 and depth 2) effectively recovers interpretable parameters that {\\em snap} into place, resulting in exact length generalization.","hedge":{"p":1.0,"label":"asserted"},"own_p":0.95,"main_claim_p":0.35,"quantitative":true,"quantitative_p":0.83,"role_probabilities":{"gap":0.0,"method":0.0,"result":0.97,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":0.0,"interpretation":0.03}},{"i":7,"p":0.99,"id":"s7","own":true,"role":"result","text":"Though we establish that our construction provably evaluates Boolean expressions -- a universal symbolic computation -- of arbitrary length perfectly, in other experiments we also demonstrate that our transformer variant can learn and generalize perfectly (100% accuracy) on other common length generalization benchmarks, including modular arithmetic and ListOps.","hedge":{"p":1.0,"label":"asserted"},"own_p":0.95,"main_claim_p":0.36,"quantitative":true,"quantitative_p":0.98,"role_probabilities":{"gap":0.0,"method":0.0,"result":0.99,"background":0.0,"limitation":0.0,"future_work":0.0,"contribution":0.01,"interpretation":0.0}}]},"compiled":{"main_claim":{"p":0.53,"text":"We present a provably correct, transformer parameterization (with only 280 learnable parameters for Boolean algebra tasks) capable of learning and evaluating problems of any depth or length.","location":"abstract s1","hedge_strength":{"p":1.0,"label":"asserted"}},"provenance":{"route":{"via":"TypeSafe API","model":"classifier-1.13.0","endpoint":"https://api.typesafe.ai/v1/systemone","provider":"TypeSafe"},"packing":"one request per paper","requests":1,"input_tokens":6447,"cost_usd_reported":0.0},"compiled_at":"2026-09-23","bank_version":"abstract-p1-20260923","model_version":"classifier-1.13.0","abstract_states":{"claims_first":0.08,"states_limitation":0.77,"human_participants":0.02,"controlled_comparison":0.07,"randomized_assignment":0.01,"states_quantitative_result":0.98,"compares_with_prior_results":0.44,"mentions_code_or_data_availability":0.03},"evidential_basis":{"p":0.7,"value":"proof or derivation","probabilities":{"argument":0.0,"literature":0.0,"proof_or_derivation":0.7,"analysis_of_existing_data":0.0,"observation_or_experiment":0.27,"simulation_or_computation":0.03}},"contribution_type":{"p":0.86,"value":"method or tool","probabilities":{"review":0.0,"method_or_tool":0.86,"empirical_study":0.0,"simulation_study":0.0,"theoretical_result":0.14,"dataset_or_benchmark":0.0,"position_or_commentary":0.0}},"contribution_statement":{"p":0.98,"text":"We present a provably correct, transformer parameterization (with only 280 learnable parameters for Boolean algebra tasks) capable of learning and evaluating problems of any depth or length.","location":"abstract s1"}},"coverage":{"tier":"abstract","levels_run":["P abstract"],"not_examined":["full text","figures and tables","references and citing sentences","relations to other papers"],"sources_read":["arXiv listing abstract v1"],"levels_not_run":["S sections","T body sentences","C citations","R cross-paper relations"],"sentences_examined":8,"sentences_in_abstract":8},"measured_accuracy":{"url":"https://pith.science/accuracy","measured_on":"2026-10-02","method":"two independent model families labelled a fresh random sample blind; the figure is how often the published label matches their consensus","sentence_role_agreement":0.92,"main_claim_agreement":0.908,"typed_citation_agreement":0.933,"typed_citation_agreement_95_interval":[0.917,0.945],"review_comments_accurate":0.758,"review_comments_accurate_95_interval":[0.684,0.82],"review_caught_admitted_error_found_or_related":0.448,"review_comments_judged":{"judged_by":["gpt-5.6-luna","grok-4.7"],"judged_against":"Pith's own text copy of each paper: text extracted from the PDF, the first 90,000 characters","measured_on":"2026-10-04","accurate":113,"decided":149,"sampled_reviews":200,"split_by_lane":false,"by_lane":"https://pith.science/accuracy#by-lane"}}}