Exact Expressive Power of Transformers with Padding
On the map: LLM reasoning → Prompting and chain-of-thought reasoning
Abstract (arXiv)
Chain of thought is a natural inference-time method for increasing the computational power of transformer-based large language models (LLMs), but comes at the cost of sequential decoding. Are there more efficient alternatives to expand a transformer's expressive power without adding parameters? We consider transformers with padding tokens as a form of parallelizable test-time compute. We show that averaging-hard-attention, masked-pre-norm transformers with polynomial padding recognize precisely the class mathsfFO-uniform mathsfTC0 of extremely parallelizable problems. While the mathsfTC0 upper bound was known, proving a matching lower bound had been elusive. Further, our novel analysis reveals the precise expanded power of padded transformers when coupled with another form of inference-time compute, namely dynamically increasing depth via looping. Our core technical contribution is to show how padding helps bring the notions of complete problems and reductions, which have been a cornerstone of classical complexity theory, to the formal study of transformers. Armed with this new tool, we prove that padded transformers with O(logd n) looping on inputs of length n recognize exactly the class mathsfFO-uniform mathsfTCd of moderately parallelizable problems. Thus, padding and looping together systematically expand transformers' expressive power: with polylogarithmic looping, polynomially padded transformers recognize precisely the class mathsfFO-uniform mathsfNC, the best that could be expected without losing parallelism (unless mathsfNC = mathsfP). Our results thus motivate further exploration of padding and looping as parallelizable alternatives to chain of thought for test-time compute.
Key facts. Cited by 19 papers in the map (data through 14 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 20 of its 34 references that are in the map. First posted on arXiv 25 May 2025.
Builds on
20 of 34 references.
Closest ancestors · 4
Same direction, newest first
- 2024Let's Think Dot by Dot: Hidden Computation in Transformer Language Models24 Apr
- 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problems20 Feb
- 2022A Logic for Expressing Log-Precision Transformers6 Oct
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan
Other references · 16
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2020On Layer Normalization in the Transformer Architecturecited by 922
- 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 886
- 2018Universal Transformerscited by 647
- 2023Think before you speak: Training Language Models With Pause Tokenscited by 264
- 2023Looped Transformers as Programmable Computerscited by 237
- 2022The Parallelism Tradeoff: Limitations of Log-Precision Transformerscited by 193
- 2021Saturated Transformers are Constant-Depth Threshold Circuitscited by 139
- 2023What Formal Languages Can Transformers Express? A Surveycited by 124
- 2022Formal Language Recognition by Hard Attention Transformers: Perspectives from Circuit Complexitycited by 93
- 2025Don't be lazy: CompleteP enables compute-efficient deep transformerscited by 78
- 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 66
4 more
- 2025A Little Depth Goes a Long Way: The Expressive Power of Log-Depth Transformerscited by 53
- 2023Masked Hard-Attention Transformers Recognize Exactly the Star-Free Languagescited by 49
- 2024Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformerscited by 39
- 2024Transformers in Uniform TC0cited by 25
Built on by
Citing papers per year: 2025: 7; 2026: 12.
19 papers.
Sort:
By area:
- 2025Scaling Latent Reasoning via Looped Language Modelscited by 165
- 2025TabPFN-2.5: Advancing the State of the Art in Tabular Foundation Modelscited by 132
- 2025A Formal Comparison Between Chain of Thought and Latent Thoughtcited by 15
- 2025Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalizationcited by 14
- 2026Stability and Generalization in Looped Transformerscited by 10
- 2026Why Are Linear RNNs More Parallelizable?cited by 8
- 2025On the Reasoning Abilities of Masked Diffusion Language Modelscited by 7
- 2025Thoughtbubbles: an Unsupervised Method for Parallel Thinking in Latent Spacecited by 4
- 2026Context-Free Recognition with Transformerscited by 4
- 2026Length Generalization Bounds for Transformerscited by 4
- 2026Transformers Provably Learn to Internalize Chain-of-Thoughtcited by 2
- 2026Chain-of-Thought and Compressed Looped Transformers: A Memory-Budget Separationcited by 2
7 more
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformerscited by 1
- 2026Geometric Capacity of Transformers: A Tropical Geometry Perspectivecited by 1
- 2026Looped Diffusion Language Modelscited by 1
- 2026Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don'tcited by 1
- 2025Depth-Sequence Transformer (DST) for Segment-Specific ICA Calcification Mapping on Non-Contrast CTcited by 0
- 2026Exponential Sample Complexity Separation between Flat and Hierarchical Agentic Theorem Proverscited by 0
- 2026Hidden Reasoning Must Leak, but Need Not Be Readable: Fundamental Opportunities and Limits for Chain-of-Thought Monitoringcited by 0
- 2026Hidden Reasoning Must Leak, but Need Not Be Readable: Fundamental Opportunities and Limits for Chain-of-Thought Monitoring29 Sep 2026
- 2026Chain-of-Thought and Compressed Looped Transformers: A Memory-Budget Separation29 May 2026
- 2026Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don't28 May 2026
- 2026Transformers Provably Learn to Internalize Chain-of-Thought27 May 2026
- 2026Looped Diffusion Language Models25 May 2026
- 2026Stability and Generalization in Looped Transformers16 Apr 2026
- 2026Geometric Capacity of Transformers: A Tropical Geometry Perspective16 Apr 2026
- 2026Why Are Linear RNNs More Parallelizable?4 Mar 2026
- 2026Length Generalization Bounds for Transformers13 Feb 2026
- 2026Exponential Sample Complexity Separation between Flat and Hierarchical Agentic Theorem Provers11 Feb 2026
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformers2 Feb 2026
- 2026Context-Free Recognition with Transformers5 Jan 2026
7 more
- 2025TabPFN-2.5: Advancing the State of the Art in Tabular Foundation Models11 Nov 2025
- 2025Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization10 Nov 2025
- 2025Scaling Latent Reasoning via Looped Language Models29 Oct 2025
- 2025On the Reasoning Abilities of Masked Diffusion Language Models15 Oct 2025
- 2025Thoughtbubbles: an Unsupervised Method for Parallel Thinking in Latent Space30 Sep 2025
- 2025A Formal Comparison Between Chain of Thought and Latent Thought25 Sep 2025
- 2025Depth-Sequence Transformer (DST) for Segment-Specific ICA Calcification Mapping on Non-Contrast CT10 Jul 2025
- 2025Scaling Latent Reasoning via Looped Language Modelscited by 165
- 2025A Formal Comparison Between Chain of Thought and Latent Thoughtcited by 15
- 2025Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalizationcited by 14
- 2026Stability and Generalization in Looped Transformerscited by 10
- 2025On the Reasoning Abilities of Masked Diffusion Language Modelscited by 7
- 2025Thoughtbubbles: an Unsupervised Method for Parallel Thinking in Latent Spacecited by 4
- 2026Transformers Provably Learn to Internalize Chain-of-Thoughtcited by 2
- 2026Chain-of-Thought and Compressed Looped Transformers: A Memory-Budget Separationcited by 2
- 2026Hidden Reasoning Must Leak, but Need Not Be Readable: Fundamental Opportunities and Limits for Chain-of-Thought Monitoringcited by 0
- 2026Hidden Reasoning Must Leak, but Need Not Be Readable: Fundamental Opportunities and Limits for Chain-of-Thought Monitoring29 Sep 2026
- 2026Chain-of-Thought and Compressed Looped Transformers: A Memory-Budget Separation29 May 2026
- 2026Transformers Provably Learn to Internalize Chain-of-Thought27 May 2026
- 2026Stability and Generalization in Looped Transformers16 Apr 2026
- 2025Transformers Provably Learn Chain-of-Thought Reasoning with Length Generalization10 Nov 2025
- 2025Scaling Latent Reasoning via Looped Language Models29 Oct 2025
- 2025On the Reasoning Abilities of Masked Diffusion Language Models15 Oct 2025
- 2025Thoughtbubbles: an Unsupervised Method for Parallel Thinking in Latent Space30 Sep 2025
- 2025A Formal Comparison Between Chain of Thought and Latent Thought25 Sep 2025
- 2026Looped Diffusion Language Modelscited by 1
- 2026Looped Diffusion Language Models25 May 2026
- 2025TabPFN-2.5: Advancing the State of the Art in Tabular Foundation Modelscited by 132
- 2026Why Are Linear RNNs More Parallelizable?cited by 8
- 2026Context-Free Recognition with Transformerscited by 4
- 2026Length Generalization Bounds for Transformerscited by 4
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformerscited by 1
- 2026Geometric Capacity of Transformers: A Tropical Geometry Perspectivecited by 1
- 2026Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don'tcited by 1
- 2025Depth-Sequence Transformer (DST) for Segment-Specific ICA Calcification Mapping on Non-Contrast CTcited by 0
- 2026Revisiting Padded Transformer Expressivity: Which Architectural Choices Matter and Which Don't28 May 2026
- 2026Geometric Capacity of Transformers: A Tropical Geometry Perspective16 Apr 2026
- 2026Why Are Linear RNNs More Parallelizable?4 Mar 2026
- 2026Length Generalization Bounds for Transformers13 Feb 2026
- 2026Every Bit Counts: A Theoretical Study of Precision-Expressivity Tradeoffs in Quantized Transformers2 Feb 2026
- 2026Context-Free Recognition with Transformers5 Jan 2026
- 2025TabPFN-2.5: Advancing the State of the Art in Tabular Foundation Models11 Nov 2025
- 2025Depth-Sequence Transformer (DST) for Segment-Specific ICA Calcification Mapping on Non-Contrast CT10 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2023The Expressive Power of Transformers with Chain of Thought
- 2024Theoretical limitations of multi-layer Transformer
- 2026The Expressive Power of Low Precision Softmax Transformers with (Summarized) Chain-of-Thought
- 2025Transformers are Inherently Succinct
- 2026Fixed Universal Transformers
- 2025Lower Bounds for Chain-of-Thought Reasoning in Hard-Attention Transformers
- 2026Barriers to Universal Reasoning With Transformers (And How to Overcome Them)
- 2025Pause Tokens Strictly Increase the Expressivity of Constant-Depth Transformers