Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformers
Not on the map. Why?
Abstract (arXiv)
Deriving formal bounds on the expressivity of transformers, as well as studying transformers that are constructed to implement known algorithms, are both effective methods for better understanding the computational power of transformers. Towards both ends, we introduce the temporal counting logic textsfKt[#] alongside the RASP variant textsfC-RASP. We show they are equivalent to each other, and that together they are the best-known lower bound on the formal expressivity of future-masked soft attention transformers with unbounded input size. We prove this by showing all textsfKt[#] formulas can be compiled into these transformers.
Key facts. Cited by 39 papers in the map (data through 14 Oct 2026). Builds on 13 of its 30 references that are in the map. First posted on arXiv 5 Apr 2024.
Builds on
13 of 30 references.
References · 13
- 2017Attention Is All You Needcited by 60,361
- 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 503
- 2016Understanding Deep Neural Networks with Rectified Linear Unitscited by 257
- 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
- 2021Thinking Like Transformerscited by 184
- 2023What Formal Languages Can Transformers Express? A Surveycited by 124
- 2021Self-Attention Networks Can Process Bounded Hierarchical Languagescited by 105
- 2023Tracr: Compiled Transformers as a Laboratory for Interpretabilitycited by 104
- 2022A Logic for Expressing Log-Precision Transformerscited by 67
- 2023Tighter Bounds on the Expressivity of Transformer Encoderscited by 66
- 2020Effects of Parameter Norm Growth During Transformer Training: Inductive Bias from Gradient Descentcited by 40
- 2023Logical Languages Accepted by Transformer Encoders with Hard Attentioncited by 38
1 more
Built on by
Citing papers per year: 2024: 4; 2025: 19; 2026: 16.
39 papers.
Sort:
By area:
- 2024The Expressive Capacity of State Space Models: A Formal Language Perspectivecited by 46
- 2025Between Circuits and Chomsky: Pre-pretraining on Formal Languages Imparts Linguistic Biasescited by 37
- 2025PENCIL: Long Thoughts with Short Memorycited by 33
- 2024Language Models Need Inductive Biases to Count Inductivelycited by 25
- 2025The Geometry of Reasoning: Flowing Logics in Representation Spacecited by 21
- 2025Exact Expressive Power of Transformers with Paddingcited by 19
- 2024Simulating Hard Attention Using Soft Attentioncited by 15
- 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Modelscited by 14
- 2025Knee-Deep in C-RASP: A Transformer Depth Hierarchycited by 12
- 2025The Counting Power of Transformerscited by 9
- 2025Softmax Transformers are Turing-Completecited by 9
- 2025Meta-Learning Neural Mechanisms rather than Bayesian Priorscited by 8
27 more
- 2025Quantitative Bounds for Length Generalization in Transformerscited by 8
- 2024ALTA: Compiler-Based Analysis of Transformerscited by 7
- 2025Ehrenfeucht-Haussler Rank and Chain of Thoughtcited by 6
- 2025Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilitiescited by 6
- 2025The Transformer Cookbookcited by 6
- 2026Context-Free Recognition with Transformerscited by 4
- 2026Length Generalization Bounds for Transformerscited by 4
- 2025The Logical Expressiveness of Temporal GNNs via Two-Dimensional Product Logicscited by 2
- 2025Probability Distributions Computed by Autoregressive Transformerscited by 2
- 2026On the Expressiveness of State Space Models via Temporal Logicscited by 2
- 2026On the Ability of Transformers to Verify Planscited by 2
- 2025Tracr-Injection: Distilling Algorithms into Pre-trained Language Modelscited by 1
- 2025On the Existence of Universal Simulators of Attentioncited by 1
- 2025The Role of Logic and Automata in Understanding Transformerscited by 1
- 2026A model of errors in transformerscited by 1
- 2026Barriers to Universal Reasoning With Transformers (And How to Overcome Them)cited by 1
- 2026Language Acquisition Device in Large Language Modelscited by 1
- 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalizationcited by 1
- 2026Disentangling the Expressivity of RoPEcited by 1
- 2025Post-Norm can Resharpen Attentioncited by 0
- 2026Synthesis and Verification of Transformer Programs (Technical Report)cited by 0
- 2026Encoder-Decoder Transformers: Logical Characterizations and Periodicitycited by 0
- 2026Provably Shorter Scratchpads in Hybrid DeltaNet-Attention Decoderscited by 0
- 2026Rubato: Transcribing Piano Music with Timestampscited by 0
- 2026From Expressivity to Sample Complexity: Narrow Teachers for Transformers via C-RASPcited by 0
- 2026Hierarchical Domain Generalizationcited by 0
- 2026Length Generalization for Transformers via Compressioncited by 0
- 2026Length Generalization for Transformers via Compression8 Sep 2026
- 2026Disentangling the Expressivity of RoPE12 Aug 2026
- 2026Hierarchical Domain Generalization17 Jul 2026
- 2026From Expressivity to Sample Complexity: Narrow Teachers for Transformers via C-RASP13 Jul 2026
- 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization29 May 2026
- 2026Rubato: Transcribing Piano Music with Timestamps22 May 2026
- 2026Language Acquisition Device in Large Language Models16 May 2026
- 2026Provably Shorter Scratchpads in Hybrid DeltaNet-Attention Decoders15 May 2026
- 2026Encoder-Decoder Transformers: Logical Characterizations and Periodicity8 May 2026
- 2026Barriers to Universal Reasoning With Transformers (And How to Overcome Them)28 Apr 2026
- 2026On the Ability of Transformers to Verify Plans20 Mar 2026
- 2026Synthesis and Verification of Transformer Programs (Technical Report)18 Feb 2026
27 more
- 2026Length Generalization Bounds for Transformers13 Feb 2026
- 2026On the Expressiveness of State Space Models via Temporal Logics27 Jan 2026
- 2026A model of errors in transformers20 Jan 2026
- 2026Context-Free Recognition with Transformers5 Jan 2026
- 2025Softmax Transformers are Turing-Complete25 Nov 2025
- 2025Probability Distributions Computed by Autoregressive Transformers31 Oct 2025
- 2025Quantitative Bounds for Length Generalization in Transformers30 Oct 2025
- 2025The Geometry of Reasoning: Flowing Logics in Representation Space10 Oct 2025
- 2025Post-Norm can Resharpen Attention9 Oct 2025
- 2025The Transformer Cookbook1 Oct 2025
- 2025The Role of Logic and Automata in Understanding Transformers28 Sep 2025
- 2025On the Existence of Universal Simulators of Attention23 Jun 2025
- 2025Knee-Deep in C-RASP: A Transformer Depth Hierarchy19 Jun 2025
- 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Models29 May 2025
- 2025Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilities27 May 2025
- 2025Exact Expressive Power of Transformers with Padding25 May 2025
- 2025The Logical Expressiveness of Temporal GNNs via Two-Dimensional Product Logics17 May 2025
- 2025The Counting Power of Transformers16 May 2025
- 2025Tracr-Injection: Distilling Algorithms into Pre-trained Language Models15 May 2025
- 2025Meta-Learning Neural Mechanisms rather than Bayesian Priors20 Mar 2025
- 2025PENCIL: Long Thoughts with Short Memory18 Mar 2025
- 2025Between Circuits and Chomsky: Pre-pretraining on Formal Languages Imparts Linguistic Biases26 Feb 2025
- 2025Ehrenfeucht-Haussler Rank and Chain of Thought22 Jan 2025
- 2024Simulating Hard Attention Using Soft Attention13 Dec 2024
- 2024ALTA: Compiler-Based Analysis of Transformers23 Oct 2024
- 2024Language Models Need Inductive Biases to Count Inductively30 May 2024
- 2024The Expressive Capacity of State Space Models: A Formal Language Perspective27 May 2024
- 2025PENCIL: Long Thoughts with Short Memorycited by 33
- 2025The Geometry of Reasoning: Flowing Logics in Representation Spacecited by 21
- 2025Exact Expressive Power of Transformers with Paddingcited by 19
- 2025Softmax Transformers are Turing-Completecited by 9
- 2025Ehrenfeucht-Haussler Rank and Chain of Thoughtcited by 6
- 2026Barriers to Universal Reasoning With Transformers (And How to Overcome Them)cited by 1
- 2026Barriers to Universal Reasoning With Transformers (And How to Overcome Them)28 Apr 2026
- 2025Softmax Transformers are Turing-Complete25 Nov 2025
- 2025The Geometry of Reasoning: Flowing Logics in Representation Space10 Oct 2025
- 2025Exact Expressive Power of Transformers with Padding25 May 2025
- 2025PENCIL: Long Thoughts with Short Memory18 Mar 2025
- 2025Ehrenfeucht-Haussler Rank and Chain of Thought22 Jan 2025
- 2024The Expressive Capacity of State Space Models: A Formal Language Perspectivecited by 46
- 2025Between Circuits and Chomsky: Pre-pretraining on Formal Languages Imparts Linguistic Biasescited by 37
- 2024Language Models Need Inductive Biases to Count Inductivelycited by 25
- 2024Simulating Hard Attention Using Soft Attentioncited by 15
- 2025Characterizing the Expressivity of Fixed-Precision Transformer Language Modelscited by 14
- 2025Knee-Deep in C-RASP: A Transformer Depth Hierarchycited by 12
- 2025The Counting Power of Transformerscited by 9
- 2025Meta-Learning Neural Mechanisms rather than Bayesian Priorscited by 8
- 2025Quantitative Bounds for Length Generalization in Transformerscited by 8
- 2024ALTA: Compiler-Based Analysis of Transformerscited by 7
- 2025Born a Transformer -- Always a Transformer? On the Effect of Pretraining on Architectural Abilitiescited by 6
- 2025The Transformer Cookbookcited by 6
12 most cited of 33 All 33 (JSON)
- 2026Length Generalization for Transformers via Compression8 Sep 2026
- 2026Disentangling the Expressivity of RoPE12 Aug 2026
- 2026Hierarchical Domain Generalization17 Jul 2026
- 2026From Expressivity to Sample Complexity: Narrow Teachers for Transformers via C-RASP13 Jul 2026
- 2026Positional versus Symbolic Attention Heads: Learning Dynamics, RoPE Geometry, and Length Generalization29 May 2026
- 2026Rubato: Transcribing Piano Music with Timestamps22 May 2026
- 2026Language Acquisition Device in Large Language Models16 May 2026
- 2026Provably Shorter Scratchpads in Hybrid DeltaNet-Attention Decoders15 May 2026
- 2026Encoder-Decoder Transformers: Logical Characterizations and Periodicity8 May 2026
- 2026On the Ability of Transformers to Verify Plans20 Mar 2026
- 2026Synthesis and Verification of Transformer Programs (Technical Report)18 Feb 2026
- 2026Length Generalization Bounds for Transformers13 Feb 2026
12 newest of 33 All 33 (JSON)