What Algorithms can Transformers Learn? A Study in Length Generalization
Open accessAbstract
Large language models exhibit surprising emergent generalization properties, yet also struggle on many simple reasoning tasks such as arithmetic and parity. This raises the question of if and when Transformer models can learn the true algorithm for solving a task. We study the scope of Transformers' abilities in the specific setting of length generalization on algorithmic tasks. Here, we propose a unifying framework to understand when and how Transformers can exhibit strong length generalization on a given task. Specifically, we leverage RASP (Weiss et al., 2021) -- a programming language designed for the computational model of a Transformer -- and introduce the RASP-Generalization Conjecture: Transformers tend to length generalize on a task if the task can be solved by a short RASP program which works for all input lengths. This simple conjecture remarkably captures most known instances of length generalization on algorithmic tasks. Moreover, we leverage our insights to drastically improve generalization performance on traditionally hard tasks (such as parity and addition). On the theoretical side, we give a simple example where the "min-degree-interpolator" model of learning from Abbe et al. (2023) does not correctly predict Transformers' out-of-distribution behavior, but our conjecture does. Overall, our work provides a novel perspective on the mechanisms of compositional generalization and the algorithmic capabilities of Transformers.
AI snapshot
Written from the paper’s full text.
TL;DR
The paper proposes the RASP-Generalization Conjecture: Transformers tend to length-generalize on algorithmic tasks when the task can be solved by a short, uniform RASP-L program. It validates this framework across synthetic tasks and uses it to construct interventions that yield strong length generalization on parity and addition for Transformers trained from scratch.
Key findings
- Tasks with short RASP-L solutions length-generalized well, while tasks without them did not: at +10 length, Count 100%, Mode 100%, Unique Copy 96%, Sort 96%, versus Mode (hard) 0%, Repeat Copy 0%, Addition 0%, and Parity 0%.
- Reformatting tasks to admit shorter RASP-L programs improved generalization: “Addition (new)” and “Parity (new)” reached 100% at +10 length; reverse-order addition with index hints generalized on hard-carry length-50 examples once training length exceeded 40, and parity with scratchpad generalized perfectly on length 50 when training length reached 40.
- Increasing training diversity also helped: balanced carry sampling unlocked forward addition on hard-carry evaluation, and sort models trained with length 35 or more generalized strongly to length 50.
- In a Boolean-AND setting from Abbe et al. (2023), the trained Transformer reached 100% test accuracy on the unseen test set, matching the RASP-based prediction but not the min-degree-interpolator prediction.
Methods
- The authors introduce RASP-L, a restricted, learnable subset of RASP with int8 variables, restricted index operations, and min/max aggregation, and state the RASP-Generalization Conjecture with conditions of realizability, simplicity, and diversity.
- They train decoder-only causal Transformers from scratch with learned positional embeddings, using context packing and shifting, online i.i.d. batches, exact-match evaluation, and median results over 20 seeds unless otherwise specified.
- Experiments cover easy tasks (count, mode, copy with unique tokens, sort) and hard tasks (copy with repeating tokens, addition, parity), plus interventions using index hints, reverse-order output, scratchpads, and balanced carry sampling; a theoretical comparison contrasts RASP-L complexity with minimum-degree interpolation.
Limitations
- The paper states RASP and RASP-L are not complete: not all efficiently Transformer-representable functions have efficient RASP implementations, numerical algorithms are ill-suited, and RASP supports only deterministic outputs and binary attention masks.
- The paper states the complexity measure is imperfect: RASP-L program length does not perfectly correspond to Transformer complexity, more refined notions may exist, and finding the minimum RASP-L program is likely intractable.
- The paper states the conjecture is not fully formal and cannot precisely predict the extent of length generalization or the required data diversity; it also leaves mechanistic verification of whether learned weights match compiled RASP-L programs to future work.
Model-written summary. Check it against the paper before relying on it.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
29 of 37 cited sources checked · 11 supported · 2 flagged · accuracy not yet measured
- Premisecitation
Learned positional embedding is better than a number of more sophisticated embedding approaches on length generalization.
“This is consistent with the findings reported in Kazemnejad et al. (2023), which showed that learned positional embedding is better than a number of more sophisticated embedding approaches on length generalization.”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Kazemnejad et al. (2023) source
The Model Evaluation section says the study used sinusoidal absolute position embeddings, not learned ones, because learned embeddings cannot produce embeddings for unseen positions. The Discussion reports that NoPE outperformed explicit positional encodings and that Rotary marginally outperformed APE—the opposite of the claimed comparison. (LLM, conf=0.88)
Checked by a reasoning model — may be wrong.
Experimental — accuracy not yet measured
- Premisecitation
Even models finetuned from pretrained LLMs struggle on simple algorithmic tasks.
“even models finetuned from pretrained LLMs struggle on simple algorithmic tasks (Anil et al., 2022).”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Anil et al., 2022 source
Section 3 (p. 4) reports that models finetuned from pretrained language-model checkpoints perform poorly on out-of-distribution lengths in simple algorithmic tasks. The Contributions section (p. 2) also says they can attain perfect in-distribution accuracy, so the unqualified claim that they struggle on the tasks omits the crucial length-generalization condition. (LLM, conf=0.88)
Experimental — accuracy not yet measured
- Premisecitation
Transformers trained from scratch on addition and other arithmetic tasks exhibit little to no length generalization in prior work.
“Transformers trained from scratch on addition and other arithmetic tasks exhibit little to no length generalization in prior work (Nye et al., 2021;Nogueira et al., 2021;Lee et al., 2023)”
Quote in the paperSubstantial claim2 of 3 sources checked- cites Nye et al., 2021 source
Section 3 (Addition; page unavailable) reports that baseline Transformers trained on 1–8-digit addition completely failed on out-of-distribution 9–10-digit problems. But Section 2 (Method; page unavailable) says all experimental models were pre-trained before task-specific fine-tuning, not trained from scratch. The cited result therefore supports poor length generalization on addition, but not the claim about from-scratch training or other arithmetic tasks. (LLM, conf=0.88)
Experimental — accuracy not yet measured - cites Nogueira et al., 2021 source
Appendix C (pp. 10–12) reports poor extrapolation on many addition and subtraction tests, supporting a limitation in length generalization. But its largest model achieves high accuracy on several 50-to-60-digit tests. Appendix E (p. 13) compares models trained from scratch with pretrained models only when training and testing cover the same lengths; it does not establish the claimed length-generalization result specifically for models trained from scratch. (LLM, conf=0.85)
Experimental — accuracy not yet measured - cites Lee et al., 2023
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Interpretationcitation
The copy with unique tokens task is easy because an induction head can be leveraged.
“Intuitively, this task is easy because we can leverage what is called an “induction head” (Olsson et al., 2022).”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Olsson et al., 2022 source
- Premisecitation
Models trained from scratch show little to no length generalization on addition.
“Models trained from scratch show little to no length generalization on addition (Nye et al., 2021;Lee et al., 2023)”
Quote in the paperSubstantial claim1 of 2 sources checked- cites Nye et al., 2021 source
Section 3 (page not specified) reports that models trained without scratchpads completely failed to generalize from 1–8-digit addition to 9–10-digit addition. But Section 2 (page not specified) says all experiments used pre-trained language models, and Section 3 says they were fine-tuned for addition. This paper therefore supports the length-generalization result for fine-tuned models without scratchpads, not models trained from scratch. (LLM, conf=0.88)
Experimental — accuracy not yet measured - cites Lee et al., 2023
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Premisecitation
Models trained from scratch show little to no length generalization on parity.
“and parity (Bhattamishra et al., 2020;Chiang & Cholak, 2022;Ruoss et al., 2023;Delétang et al., 2023)”
Quote in the paperSubstantial claim3 of 3 sources checked- cites Bhattamishra et al., 2020 source
- cites Chiang & Cholak, 2022 source
Section 5.1 reports that standard transformers trained from scratch were unable to learn PARITY. It does not report a parity-specific test of generalization from shorter to longer strings; the length-generalization results in that section concern FIRST. Thus the paper supports poor learning on parity, but not the claim’s specific length-generalization finding. (LLM, conf=0.85)
Experimental — accuracy not yet measured - cites Ruoss et al., 2023 source
- Premisecitation
A Transformer cannot even fit the training set of parity sequences over some minimal length.
“Many works have shown that a Transformer cannot even fit the training set of parity sequences over some minimal length (Hahn, 2020;Delétang et al., 2023).”
Quote in the paperSubstantial claim1 of 2 sources checked- cites Hahn, 2020 source
The Discussion says that any fixed transformer will make mistakes on PARITY when inputs are sufficiently long. It does not establish that a Transformer cannot fit a finite training set beyond a particular minimum length; the same section says a transformer can be constructed to achieve perfect accuracy on all examples up to any chosen finite length bound. (LLM, conf=0.88)
Experimental — accuracy not yet measured - cites Delétang et al., 2023
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Premisecitation
Pretrained LLMs cannot solve addition and parity robustly without careful prompting.
“even pretrained LLMs cannot solve these tasks robustly (Brown et al., 2020;Chowdhery et al., 2022;Anil et al., 2022) without careful prompting (Zhou et al., 2022b).”
Quote in the paperSubstantial claim3 of 3 sources checked- cites Brown et al., 2020 source
Section 3.9.1 (p. 22) supports a limitation for harder addition: GPT-3 achieved 25.5% few-shot accuracy on four-digit addition and 9.3% on five-digit addition. But it achieved 100% on two-digit addition, so the claim is too broad for addition generally. The paper does not report a parity task; the separate citation to Zhou et al. is attached to the careful-prompting qualification. (LLM, conf=0.88)
Experimental — accuracy not yet measured - cites Chowdhery et al., 2022 source
Table 10 (Results, p. 21) reports 17% accuracy for PaLM 540B on GSM8K math word problems without chain-of-thought prompting, versus 54% with it. That supports difficulty on an arithmetic task, but the paper does not establish the claim specifically for addition and parity. The separate citation to Zhou et al. is attached to the careful-prompting clause. (LLM, conf=0.83)
Experimental — accuracy not yet measured - cites Anil et al., 2022 source
The Introduction (p. 1) says LLMs struggle to generalize to problems of arbitrary length, and Section 5.1 (p. 7) reports that the right scratchpad prompt improves pretrained models’ performance on a parity-based coin-flipping task. But the paper’s own tasks are parity and variable assignment, not addition; its evidence therefore does not establish the claim for both named tasks. (LLM, conf=0.84)
Experimental — accuracy not yet measured
- Premisecitation
Induction heads work by identifying a previous instance of the current token, finding the token that came after it, and predicting the same completion to the current token.
“Induction heads work by identifying a previous instance of the current token, finding the token that came after it, and predicting the same completion to the current token.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Olsson et al., 2022 source
- Premisecitation
Numerical algorithms, such as in-context gradient-descent and linear regression, are ill-suited for RASP.
“A notable class of Transformer algorithms which are ill-suited for RASP are numerical algorithms, such as incontext gradient-descent and linear regression, which involve high-dimensional matrix and vector floating-point operations (Akyürek et al., 2022;Garg et al., 2022;Charton, 2021).”
Quote in the paperNot a substantial claim3 of 3 sources checked- cites Akyürek et al., 2022 source
Section 3.1 (p. 4) describes matrix multiplication as a computational primitive, and Sections 3.2–3.3 (p. 4) show how transformers can implement gradient-descent and regression computations. The cited paper does not address RASP or say these algorithms are ill-suited for it; that part of the citing sentence is unsupported by this source. (LLM, conf=0.85)
Experimental — accuracy not yet measured - cites Garg et al., 2022 source
Section 3.1 (p. 5) reports that a Transformer learns linear functions in context, and Section 5 (p. 9) compares its performance with gradient descent on in-context examples. Appendix A.3 (p. 20) describes linear regression using a matrix and vectors. The paper does not assess whether these algorithms are ill-suited for RASP or establish that the Transformer performs gradient descent in context. (LLM, conf=0.82)
Experimental — accuracy not yet measured - cites Charton, 2021 source
Section 2 (p. 2) studies Transformer performance on floating-point matrix and vector operations, supporting the numerical-operations part of the citation. The paper does not assess RASP or identify in-context gradient descent and linear regression as algorithms ill-suited for it. (LLM, conf=0.82)
Experimental — accuracy not yet measured
- Premisecitation
The Transformer implementation of selector width requires weights which grow linearly with sequence length.
“since the Transformer implementation of selector width requires weights which grow linearly with sequence length (Lindner et al., 2023).”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Lindner et al., 2023 source
Appendix D.2 describes Tracr’s selector-width implementation using an attention layer and an MLP layer. It does not state that the implementation requires weights that grow linearly with sequence length; searches for weight scaling did not establish that part of the claim. (LLM, conf=0.81)
Experimental — accuracy not yet measured
- Premisecitation
Linear-attention Transformers can evaluate their next-token function in O(n) time in their input length.
“Linear-attention Transformers can evaluate their next-token function in O(n) time in their input length, as observed by Katharopoulos et al. (2020).”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Katharopoulos et al. (2020) source
- Findingown data
Models trained on sequences of length 60 or more exhibit near perfect length generalization up to length 150 on the counting task.
“Models trained on sequences of length 60 or more exhibit near perfect length generalization up to length 150 (max evaluation length).”
Quote in the paperSubstantial claim - Findingown data
Poor scratchpad formats can make tasks harder.
“We also show how poor scratchpad formats can make tasks harder, by giving an example for the Mode task.”
Quote in the paperNot a substantial claim - Findingreasoning
For certain hard tasks, constructing new versions that admit RASP-L solutions by modifying input and scratchpad format makes those versions length generalize.
“For certain hard tasks we construct “new” versions which admit RASP-L solutions, by carefully modifying the input and scratchpad format, and these versions length generalize.”
Quote in the paperSubstantial claim - Findingown data
There exist algorithmic tasks where Transformers trained from scratch generalize naturally far outside the training distribution.
“we show that there exist algorithmic tasks where Transformers trained from scratch generalize naturally far outside of the training distribution.”
Quote in the paperSubstantial claim - Findingown data
Models trained on mode scratchpad converge much more slowly during training than no scratchpad.
“Moreover, we show in Figure 6c that models trained on scratchpad converges much more slowly during training than no scratchpad.”
Quote in the paperNot a substantial claim - Findingown data
Increasing data diversity in the form of maximum training length leads to better length generalization on mode.
“Similar to count, we also observe here that increasing data diversity in the form of maximum training length leads to better length generalization.”
Quote in the paperSubstantial claim - Findingown data
Another variant of the mode scratchpad with tokens presented in order of appearance, such that no sorting is required, shows a similar effect.
“In Appendix D.2, we evaluate another variant of the scratchpad with the tokens presented in order of appearance, such that no sorting is required, and observe a similar effect.”
Quote in the paperNot a substantial claim - Findingown data
The forward-order addition RASP-L program is much longer than the reverse-order one.
“Comparing Listing 9 and Listing 10 reveals how much more complicated the forward algorithm is-it results in a much longer RASP-L program.”
Quote in the paperSubstantial claim - Findingown data
Models trained on count can generalize near perfectly to double the training lengths.
“We find that models trained on count can generalize near perfectly to double the training lengths.”
Quote in the paperSubstantial claim - Findingown data
Models fail to generalize to longer lengths on the copy with repeating tokens task.
“We show in Figure 3b that models fail to generalize to longer lengths on this task.”
Quote in the paperSubstantial claim - Findingown data
Training speed is correlated with how difficult the task is under RASP-L.
“we show that training speed is also correlated with how difficult the task is under RASP-L.”
Quote in the paperNot a substantial claim - Findingown data
The trained Transformer reaches 100% test accuracy on the unseen test set in the boolean conjunction experiment.
“The trained Transformer reaches 100% test accuracy on the unseen test set.”
Quote in the paperSubstantial claim - Findingown data
Reverse addition optimizes more quickly than forward addition during training.
“Moreover, we observe in Figure 6a that reverse addition optimizes more quickly than forward addition during training.”
Quote in the paperNot a substantial claim - Findingown data
As training length scales up, the number of tokens beyond the training length that the model can successfully generalize to increases.
“Moreover, as we scale up training length, we observe a corresponding increase in the number of tokens beyond the training length that the model can successfully generalize to.”
Quote in the paperSubstantial claim - Findingown data
For parity with scratchpad, when training length reaches 40, all models achieve perfect length generalization on length 50.
“When training length reaches 40, all models achieve perfect length generalization on length 50.”
Quote in the paperSubstantial claim - Findingreasoning
Parity without any scratchpad requires operations that are forbidden under RASP-L.
“Similarly, parity without any scratchpad requires operations that are forbidden under RASP-L.”
Quote in the paperSubstantial claim - Findingown data
Even models trained on sequence length up to 10 can achieve a median test accuracy of 50% on sequences of length 60 for mode.
“even models trained on sequence length up to 10 can achieve a median test accuracy of 50% of sequences of length 60.”
Quote in the paperNot a substantial claim - Findingnone given
RASP and RASP-L are not complete: not all functions which can be efficiently represented by Transformers have efficient RASP implementations.
“For one, RASP and RASP-L are not complete: not all functions which can be efficiently represented by Transformers have efficient RASP implementations.”
Quote in the paperNot a substantial claim - Findingreasoning
Addition is difficult to write in RASP-L.
“Indeed, addition is also difficult to write in RASP-L.”
Quote in the paperSubstantial claim - Findingreasoning
The paper's approach results in the first instance of strong length generalization on parity and addition for Transformer models trained from scratch.
“which results in the first instance of strong length generalization on parity and addition for Transformer models trained from scratch.”
Quote in the paperSubstantial claim - Findingown data
Balanced carry training unlocks the model's ability to length generalize on forward addition, even under hard carry evaluation.
“We see that this more careful training unlocks the model's ability to length generalize on forward addition, even under the hard carry evaluation.”
Quote in the paperSubstantial claim - Findingown data
For parity with scratchpad, some runs trained with sequences up to 30 in length can generalize perfectly on sequences of length 50.
“We find that some of the runs trained with sequences up to 30 in length can generalize perfectly on sequences of length 50.”
Quote in the paperSubstantial claim - Findingreasoning
It is crucial that the training distribution contain samples ranging from length 1 to maximum training length, which adds diversity as training length scales up.
“It is crucial that our training distribution contain samples ranging from length 1 to maximum training length, which adds diversity as we scale up training length.”
Quote in the paperSubstantial claim - Findingreasoning
The minimum-degree-interpolator will not depend on the last k=5 bits of the input, since these bits are constant on the train set.
“To see this, observe that the minimum-degree-interpolator will not depend on the last k = 5 bits of the input, since these bits are constant on the train set.”
Quote in the paperSubstantial claim - Findingown data
The RASP conjecture is consistent with experiments on a variety of algorithmic tasks.
“we show that the RASP conjecture is consistent with experiments on a variety of algorithmic tasks.”
Quote in the paperSubstantial claim - Findingown data
Models trained on mode generalize strongly to sequences far longer than the training lengths.
“We find that models trained on mode generalize strongly to sequences far longer than the training lengths.”
Quote in the paperSubstantial claim - Findingnone given
There is a one-line RASP-L program which computes the boolean AND of all input bits.
“On the other hand, there is a one-line RASP-L program which computes the boolean AND of all input bits:”
Quote in the paperSubstantial claim - Findingown data
For the sort task, strong length generalization is observed on length 50 for models trained with sequences of length 35 or more.
“We observe strong length generalization on length 50 for models trained with sequences of length 35 or more.”
Quote in the paperSubstantial claim - Findingreasoning
The natural algorithm for parity cannot be directly implemented in RASP-L, because RASP-L does not allow loops.
“Unfortunately, this algorithm cannot be directly implemented in RASP-L, because RASP-L does not allow loops”
Quote in the paperSubstantial claim - Findingown data
Models trained on copy with unique tokens on sequence length up to 40 can generalize perfectly to length 50.
“For models trained on sequence length up to 40, we find that they can generalize perfectly to length of 50.”
Quote in the paperSubstantial claim - Findingreasoning
No generalization is observed if training is on sequences of all the same length.
“For example, no generalization is observed if we train on sequences of all the same length.”
Quote in the paperSubstantial claim - Findingown data
RASP-L programs can be learned by Transformers in a length-generalizing way.
“In the experimental section, we will argue that RASP-L programs can in fact be learned by Transformers, in a length-generalizing way.”
Quote in the paperNot a substantial claim - Findingown data
Models trained with 35 or higher maximum training length show strong generalization to length 50 on the sort task.
“We see that models trained with 35 or higher length show strong generalization to length 50.”
Quote in the paperNot a substantial claim - Findingown data
Utilizing the alternative mode scratchpad still results in much worse length generalization performance than using no scratchpad.
“We see that utilizing this scratchpad still results in much worse length generalization performance than using no scratchpad.”
Quote in the paperNot a substantial claim - Findingown data
With balanced carry training, strong length generalization is observed for both forward and reverse addition on the hard carry evaluation setting.
“With balanced carry training, strong length generalization is observed for both forward and reverse addition on the hard carry evaluation setting.”
- Also stated in: § shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default) · plain
“With balanced carry training, strong length generalization is observed for both forward and reverse addition on the hard carry evaluation setting.”
Quote in the paperSubstantial claim - Also stated in: § shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default) · plain
- Findingreasoning
The max and min aggregations of RASP-L can be represented by an Attention layer.
“Here we describe how the”
Quote in the paperSubstantial claim - Findingown data
Models trained with rotary positional embedding show worse length generalization across the tasks.
“We observe worse length generalization across the tasks with rotary positional embedding.”
Quote in the paperNot a substantial claim - Findingown data
Models that do not have strong generalization also fail to output EoS only at the appropriate time, on both in-distribution and out-of-distribution lengths.
“we see that models that do not have strong generalization also fails to output EoS only at the appropriate time.This failing is observed on both in-distribution and out-of-distribution lengths.”
Quote in the paperSubstantial claim - Findingown data§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)
Most runs start to length generalize perfectly on 50 digit addition once the training length is greater than 40 for reverse addition with index hints on hard carry examples.
“Most runs start to length generalize perfectly on 50 digit addition once the training length is greater than 40.”
Quote in the paperSubstantial claim - Findingreasoning
If two pre-softmax matrices are constructable, then any linear combination of them is also constructable.
“Now, if two matrices M 1 , M 2 are constructable, then so is any linear combination αM 1 + βM 2 for α, β ∈ R.”
Quote in the paperSubstantial claim - Findingown data§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)
All models generalize perfectly to 10 or more additional tokens at test time for the mode task.
“All models generalize perfectly to 10 or more additional tokens at test time.”
Quote in the paperSubstantial claim - Findingown data
On models trained on longer sequences and with better length generalization, the end-on-last behavior is more robust.
“However, on models trained on longer sequences (and has better length generalization), this behavior is more robust.”
Quote in the paperSubstantial claim - Findingown data
For the start-on-first and increment-by-1 counterfactual tests, all models exhibit near perfect performance both in-distribution and out-of-distribution.
“We see that for the start-on-first test and the increment-by-1 test, all models exhibit near perfect performance both in-and out-of-distribution.”
Quote in the paperSubstantial claim - Findingown data
Better generalization is observed when models see greater coverage of sequence lengths at train time.
“We observe better generalization when models see greater coverage of sequence lengths at train time.”
Quote in the paperSubstantial claim - Findingown data
The paper observes quite strong length-generalization even in its relatively small experiments.
“and indeed we observe quite strong length-generalization even in our relatively small experiments.”
Quote in the paperNot a substantial claim - Findingown data
There is strong correspondence between the model's behavior and what would be expected from the correct algorithm.
“Overall, we observe strong correspondence between the model's behavior and what we would expect from the correct algorithm.”
Quote in the paperSubstantial claim - Findingreasoning
RASP program length does not perfectly correspond to Transformer-complexity.
“However, depending on the operations, it can be possible to represent multiple lines of RASP-L in a single layer of a Transformer, and so RASP program length does not perfectly correspond to Transformer-complexity.”
Quote in the paperNot a substantial claim - Findingreasoning
For a boolean function that depends on its first coordinate, restricting that coordinate to 1 strictly reduces its degree profile.
“Then, restricting the first coordinate of f to be 1 strictly reduces its degree profile: DegP(f | x1=1 ) < DegP(f )”
Quote in the paperSubstantial claim - Findingown data
Easy Scratchpad exhibits significantly stronger length generalization than Hard Scratchpad.
“We observe that Easy Scratchpad exhibits significantly stronger length generalization than Hard Scratchpad, shown in Figure 10b.”
Quote in the paperNot a substantial claim - Findingown data
For the end-on-last counterfactual test, models trained with shorter lengths do not learn to robustly output EoS on long test sequences once the ending condition is met.
“For the end-on-last test, we see that models trained with shorter lengths do not learn to robustly output EoS on long test sequences once the ending condition is met.”
Quote in the paperSubstantial claim - Findingown data§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)
For the mode task, no scratchpad significantly outperforms scratchpad, whether measured on final answer accuracy or exact match of the entire scratchpad output.
“We see that no scratchpad significantly outperforms scratchpad, whether measured on the final answer accuracy or the exact match of the entire scratchpad output.”
Quote in the paperSubstantial claim - Findingreasoning
The construction for max-aggregation yields an attention matrix that selects the argmax over v_m P(q_i, k_m).
“= 1{j = arg max m v m P (q i , k m )}(6) as desired.”
Quote in the paperSubstantial claim - Interpretationown data
Length generalization is not inherently problematic for the Transformer architecture.
“suggests that length generalization is not inherently problematic for the Transformer architecture-though it clearly does not occur for all tasks.”
Quote in the paperSubstantial claim - Interpretationnone given
The RASP-Generalization Conjecture captures most known instances of length generalization on algorithmic tasks.
“This simple conjecture remarkably captures most known instances of length generalization on algorithmic tasks.”
Quote in the paperSubstantial claim - Interpretationreasoning
If the minimal RASP-L program correctly length-generalizes, then the Transformer will length-generalize.
“Thus, if this minimal program correctly lengthgeneralizes, then so will the Transformer.”
Quote in the paperSubstantial claim - Premisenone given
If positional encodings are omitted, a fixed setting of Transformer weights defines a sequence-to-sequence function on sequences of arbitrary length.
“If we omit positional encodings for simplicity, then a fixed setting of Transformer weights defines a sequence-to-sequence function on sequences of arbitrary length.”
Quote in the paperSubstantial claim - Interpretationreasoning
The Transformer architecture is already equipped with a natural notion of length-extension.
“The crucial observation is that the Transformer architecture is already equipped with a natural notion of length-extension.”
Quote in the paperSubstantial claim - Interpretationnone given
For symbolic tasks, Transformers tend to learn the shortest RASP-L program that fits the training set.
“Toy Model (RASP MDL Principle).For symbolic tasks, Transformers tend to learn the shortest RASP-L program which fits the training set.”
Quote in the paperNot a substantial claim - Premisereasoning
There is no unifying framework for reasoning about length generalization in Transformers that captures both their failures and capabilities and applies to a broad class of symbolic reasoning tasks.
“However, there is no unifying framework for reasoning about length generalization in Transformers which captures both their surprising failures and surprising capabilities, and applies to a broad class of symbolic reasoning tasks.”
Quote in the paperNot a substantial claim - Interpretationreasoning
If that function applies the correct transformation for inputs of any length in the context, then the Transformer can be expected to length generalize.
“If this function applies the correct transformation for inputs of any length in the context, then we can expect it to length generalize.”
Quote in the paperSubstantial claim - Interpretationreasoning
The RASP toy model of learning predicts the correct experimental result in the boolean conjunction setting.
“Thus, our RASP toy model of learning predicts the correct experimental result in this setting.”
Quote in the paperSubstantial claim - Premisenone given
The count task can be solved by the RASP-L program in Figure 2.
“This task can be solved by the RASP-L program in Figure 2.”
Quote in the paperSubstantial claim - Interpretationreasoning
If the internal state is written on the scratchpad each iteration, then the Transformer only needs to simulate one iteration in one forward-pass, which is now possible.
“However, if the internal state is written on the scratchpad each iteration, then the Transformer only needs to simulate one iteration in one forward-pass, which is now possible.”
Quote in the paperSubstantial claim - Interpretationreasoning
We cannot expect to learn a 'sum' operation which generalizes to numbers larger than the training sequences.
“Moreover, we cannot expect to learn a 'sum' operation which generalizes to numbers larger than the training sequences.”
Quote in the paperSubstantial claim - Interpretationreasoning
The carry propagation required by the standard addition algorithm is difficult to simulate due to causal masking.
“but this is difficult to simulate due to causal masking.”
Quote in the paperSubstantial claim- Rests on an assumption: The standard addition algorithm requires the carry value to be propagated in reverse order from least- to most-significant digit.
- Interpretationown data
The mode scratchpad reduces the likelihood that the final token corresponding to the answer learns the correct solution.
“This shows that not only is the scratchpad difficult to generalize on (low EM), but it also reduces the likelihood that the final token corresponding to the answer learns the correct solution.”
Quote in the paperSubstantial claim - Interpretationown data
These results demonstrate the first instance of strong length generalization on decimal addition for Transformer models trained from scratch.
“To our knowledge, these results demonstrate the first instance of strong length generalization on decimal addition for Transformer models trained from scratch.”
Quote in the paperSubstantial claim - Interpretationown data
These factors are necessary to prevent shortcut programs from being learned.
“These factors are necessary in preventing shortcut programs from being learned.”
Quote in the paperSubstantial claim - Interpretationreasoning
Formatting the output in reverse-order enables simple and causal propagation of the carry.
“This enables simple and causal propagation of the carry where each step can reference the previous output to determine the current carry, similar to the standard addition algorithm.”
Quote in the paperSubstantial claim - Interpretationown data
A Transformer-specific measure of complexity can be more predictive than architecture-agnostic measures of complexity, in certain settings.
“Rather, this section illustrates how a Transformer-specific measure of complexity can be more predictive than architecture-agnostic measures of complexity, in certain settings.”
Quote in the paperSubstantial claim - Premisecitation
Addition is a difficult task for Transformers.
“Addition and parity have both been studied extensively as difficult tasks for Transformers.”
Quote in the paperSubstantial claim - Interpretationnone given
Taking the sum of the entire sequence and determining its parity cannot naturally be computed in a numerically stable way for arbitrarily large sums.
“This cannot naturally be computed in a numerically stable way for arbitrarily large sums.”
Quote in the paperNot a substantial claim - Interpretationreasoning
In copy with repeating tokens, since the tokens are not unique, the induction-head is no longer helpful.
“Since the tokens are no longer unique, the induction-head is no longer helpful.”
Quote in the paperSubstantial claim - Interpretationreasoning
In addition, the iteration's state is external: it can be decoded from the input context itself.
“Both tasks require some form of sequential iteration, but in the case of addition, the iteration's state is external: it can be decoded from the input context itself.”
Quote in the paperSubstantial claim - Premisecitation
Parity is a difficult task for Transformers.
“Addition and parity have both been studied extensively as difficult tasks for Transformers.”
Quote in the paperSubstantial claim - Interpretationreasoning
The minimum-degree-interpolator of the train set does not behave like the Transformer in the boolean conjunction experiment.
“We now claim that the minimum-degree-interpolator of the train set does not behave like the Transformer in the above experiment.”
Quote in the paperSubstantial claim - Premisecitation
Reverse-order addition is easier for autoregressive Transformers.
“The observation that reverse-order addition is easier for autoregressive Transformers was made in Lee et al. (2023)”
Quote in the paperSubstantial claim0 of 1 sources checked- cites Lee et al. (2023)
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- Interpretationown data
These results demonstrate the first instance of strong length generalization on parity for Transformer models trained from scratch.
“To our knowledge, these results demonstrate the first instance of strong length generalization on parity for Transformer models trained from scratch.”
Quote in the paperSubstantial claim - Interpretationreasoning
The mode scratchpad is a more difficult task when considered in terms of RASP-L.
“However, although this scratchpad provides more supervision for what algorithm the model should learn, it is a more difficult task when considered in terms of RASP-L.”
Quote in the paperNot a substantial claim - Interpretationreasoning
Adding index hints allows avoiding index-arithmetic, which is the most prohibitive aspect of representing the addition algorithm in RASP-L.
“Adding index hints thus allows us to avoid index-arithmetic, which is the most prohibitive aspect of representing the addition algorithm in RASP-L.”
Quote in the paperSubstantial claim - Interpretationown data
The Transformer correctly computes the boolean AND, even on bits which were irrelevant at train time.
“That is, the Transformer correctly computes the boolean AND, even on bits which were irrelevant at train time.”
Quote in the paperSubstantial claim - Interpretationreasoning
Scratchpads can simplify the next-token prediction task, making it amenable to a short RASP-L program.
“scratchpads can simplify the next-token prediction task, making it amenable to a short RASP-L program.”
Quote in the paperSubstantial claim - Interpretationown data
The failures of length generalization can be attributed to prematurely outputting an EoS token before the full length of the sequence is outputted.
“This suggests that the failures of length generalization can be attributed to prematurely outputting an EoS token before the full length of the sequence is outputted.”
Quote in the paperSubstantial claim - Interpretationnone given
The RASP conjecture provides a unifying perspective on when length generalization and algorithm learning are possible.
“Remarkably, our RASP conjecture captures most if not all known instances of length generalization, and provides a unifying perspective on when length generalization and algorithm learning are possible.”
Quote in the paperSubstantial claim - Interpretationnone given
The RASP conjecture captures most if not all known instances of length generalization.
“Remarkably, our RASP conjecture captures most if not all known instances of length generalization, and provides a unifying perspective on when length generalization and algorithm learning are possible.”
Quote in the paperSubstantial claim - Interpretationown data§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)
Copying unique tokens makes length generalization much easier, since it can be solved by an induction head.
“Copying unique tokens makes length generalization much easier, since it can be solved by an induction head.”
Quote in the paperSubstantial claim - Interpretationreasoning
The linear-time restriction applies to any RASP-L program which does not use max/min aggregation types.
“However, this restriction applies to any RASP-L program which does not use these types of aggregation.”
Quote in the paperNot a substantial claim - Interpretationown data
Increased data diversity increases the likelihood that the model learns a length-generalizing solution.
“This demonstrates that with increased data diversity, we also increase the likelihood that the model learns a length-generalizing solution.”
- Also stated in: § shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default) · boosted
“This demonstrates that with increased data diversity, we also increase the likelihood that the model learns a length-generalizing solution.”
Quote in the paperSubstantial claim - Also stated in: § shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default) · boosted
- Interpretationreasoning
Whether Transformers compositionally generalize depends crucially on the structure of the task.
“The resolution here is that whether Transformers compositionally generalize or not depends crucially on the structure of the task, as we have discussed.”
Quote in the paperSubstantial claim
- Classified as probably not a substantial claim. 34
- May combine two claims. 35
- The quote only partly states this claim. 4
Classified as probably not a substantial claim. May combine two claims.
PremisecitationRASP-L is a human-readable programming language whose programs can be compiled into Transformer weights, with each line compiling into at most one Transformer layer.
“RASP-L is a human-readable programming language which defines programs that can be compiled into Transformer weightsfoot_0 , such that each line of RASP-L compiles into at most one Transformer layer.”
Quote in the paperSubstantial claim2 of 2 sources checked- cites Weiss et al., 2021 source
Section 3.1 (p. 6) says RASP programs compile to Transformer architectures, but explicitly states that full compilation to concrete Transformer weights is beyond the paper’s scope. The paper calls its language RASP, not RASP-L, and does not establish that each line compiles into at most one layer. (LLM, conf=0.90)
Checked by a reasoning model — may be wrong.
Experimental — accuracy not yet measured - cites Lindner et al., 2023 source
Section 2.2 describes RASP—not RASP-L—as human-readable, and the Machine code section says Tracr compiles RASP programs into Transformer weights. The paper does not establish a one-line-to-at-most-one-layer rule; Appendix D.2 describes a selector-width primitive that compiles into both an attention layer and an MLP layer. Page numbers were not available in our copy. (LLM, conf=0.88)
Experimental — accuracy not yet measured
May combine two claims.
Interpretationown dataThe min-degree-interpolator model of learning from Abbe et al. (2023) does not correctly predict Transformers' out-of-distribution behavior, but the RASP conjecture does.
“we give a simple example where the “min-degree-interpolator” model of learning from Abbe et al. (2023) does not correctly predict Transformers’ out-of-distribution behavior, but our conjecture does.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Abbe et al. (2023) source
Classified as probably not a substantial claim.
PremisecitationLength generalization can sometimes occur for particular architectural choices and scratchpad formats.
“length generalization can sometimes occur for particular architectural choices and scratchpad formats (Jelassi et al., 2023;Kazemnejad et al., 2023;Li & McClelland, 2023).”
Quote in the paperSubstantial claim1 of 3 sources checked- cites Jelassi et al., 2023
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
- cites Kazemnejad et al., 2023 source
- cites Li & McClelland, 2023
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
The quote only partly states this claim.
Interpretationnone givenA decoder-only autoregressive Transformer is likely to length-generalize when trained to completion on an algorithmic task if the task can be solved by a short RASP-L program that works for all input lengths.
“introduce the RASP-Generalization Conjecture: Transformers tend to length generalize on a task if the task can be solved by a short RASP program which works for all input lengths.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Weiss et al., 2021 source
The Abstract (p. 1) proposes RASP as a model for transformer encoders, and Experiments (pp. 8–9) show that transformers can learn several tasks with RASP solutions. But the paper does not state the claimed length-generalization conjecture: Appendix A.2 (p. 13) reports training and testing on sequences within the same 0–100 length range. The cited evidence also does not establish the claim for decoder-only autoregressive Transformers or RASP-L. (LLM, conf=0.86)
Experimental — accuracy not yet measured
- The authors state this as an assumption: In-distribution generalization is achieved nearly-optimally.
May combine two claims.
PremisecitationMerrill et al. (2022) studied a binary-only version of the mode task and demonstrated strong length generalization.
“Merrill et al. (2022) studied a binary-only version of this task and demonstrated strong length generalization.”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Merrill et al. (2022) source
Classified as probably not a substantial claim. May combine two claims.
PremisecitationOlsson et al. (2022) found that induction heads are reliably learned even by simple Transformers, and conjectured them to be a component of what enables in-context learning in LLMs.
“Olsson et al. (2022) found that induction heads are reliably learned even by simple Transformers, and conjectured them to be a component of what enables in-context learning in LLMs.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites Olsson et al., 2022 source
Probably not a substantial claim: may not pass S4 (based).
Interpretationnone given§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)The approach bypasses the limitations presented in Hahn (2020), which exploit non-saturating softmaxes.
“This bypasses the limitations presented in Hahn (2020), which exploit non-saturating softmaxes.”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Hahn (2020) source
Probably not a substantial claim: may not pass S3 (load-bearing).
PremisecitationThere is a fundamental noise floor to error-free length-generalization of autoregressive models.
“we agree with Dziri et al. (2023) that there is a fundamental”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Dziri et al. (2023) source
Section 4, “Error Propagations: The Theoretical Limits” (page not provided), shows that errors accumulate as compositional tasks grow when the estimator has a nonzero error probability and the propositions’ other assumptions hold. “Theoretical Findings and their Empirical Implications” says these proofs apply to autoregressive language models in general, but qualifies the result as being under reasonable assumptions. The claim omits those conditions and makes the limit sound unconditional. (LLM, conf=0.83)
Experimental — accuracy not yet measured
Probably not a substantial claim: may not pass S3 (load-bearing).
Premisecitation§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)Lindner et al. (2023) provide an explicit compiler from RASP programs to Transformer weights.
“In factLindner et al. (2023) provide an explicit compiler from RASP programs to Transformer weights.”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites Lindner et al. (2023) source
May combine two claims.
Findingown dataTasks that admit a short RASP-L solution exhibit strong length generalization, and tasks with strong length generalization admit a short RASP-L solution.
“We show that all tasks which admit a short solution in the RASP-L programming language also exhibit strong length generalization performance, and vice versa.”
- Also stated in: § 1. Realizability. The true next-token function for the task can be represented by a single causal · plain
“empirically, if a task can be solved by a RASP-L program, then it can be learned easily by a Transformer, and vice versa.”
Quote in the paperSubstantial claim- Rests on an assumption: Length generalization on algorithmic tasks is a measure of how well language models can learn to reason.
- Also stated in: § 1. Realizability. The true next-token function for the task can be represented by a single causal · plain
May combine two claims.
FindingreasoningParity does not have a RASP-L program, but addition with index hints does.
“This helps explain why parity does not have a RASP-L program, but addition with index hints does.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown dataTasks with simple RASP-L programs length-generalize well, while tasks without them length-generalize poorly.
“We show that the tasks with simple RASP-L programs length-generalize well, while the remaining tasks length-generalize poorly.”
Quote in the paperSubstantial claim- Rests on an assumption: Length generalization on algorithmic tasks is a measure of how well language models can learn to reason.
May combine two claims.
FindingreasoningIndex-arithmetic and precise indexing operations are forbidden in RASP-L.
“Such operations are forbidden in RASP-L, as they require index-arithmetic which are difficult to represent in a global, length-generalizing way.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown dataUnder the paper's experimental settings, no length generalization is observed for addition; test performance does not exceed random chance when evaluated on examples 5 or more tokens longer than the training set.
“Under our experimental settings, we find that no length generalization is observed for both addition and pairity tasks: test performance does not exceed random chance when evaluated on examples 5 or more tokens longer than the training set.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown dataThe mode scratchpad performs significantly worse than no scratchpad, both on exact match and on accuracy of the final answer.
“We show in Figure 3c that the scratchpad performs significantly worse than no scratchpad, both when measured on exact match and also on the accuracy of the final answer.”
Quote in the paperSubstantial claimMay combine two claims.
Findingnone givenAddition, parity, and copy with repeating tokens do not admit simple RASP-L solutions.
“Next, we study three tasks that do not admit simple RASP-L solutions: addition, parity, and copy with repeating tokens.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Findingnone givenThe sort task has a one-line RASP-L program.
“Indeed, there is a oneline RASP-L program for this task (Listing 7).”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown dataUnder the paper's experimental settings, no length generalization is observed for parity; test performance does not exceed random chance when evaluated on examples 5 or more tokens longer than the training set.
“Under our experimental settings, we find that no length generalization is observed for both addition and pairity tasks: test performance does not exceed random chance when evaluated on examples 5 or more tokens longer than the training set.”
Quote in the paperSubstantial claimMay combine two claims.
FindingreasoningRASP-L is a useful predictive tool: empirically, if a task can be solved by a RASP-L program, then it can be learned easily by a Transformer, and vice versa.
“We only claim that RASP-L is a useful predictive tool: empirically, if a task can be solved by a RASP-L program, then it can be learned easily by a Transformer, and vice versa.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown dataBoth scratchpads optimize much better than parity with no scratchpad, which is unable to even fit the training set and demonstrates no length generalization.
“Both scratchpads optimizes much better than parity with no scratchpad, which is unable to even fit the training set and demonstrates no length generalization.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Findingnone givenThe paper cannot precisely predict the extent of length generalization for different tasks.
“For example, we cannot precisely predict the extent of length generalization for different tasks.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown dataBoth forward and reverse addition with index hints demonstrate strong length generalization.
“We see that both settings demonstrate strong length generalization, thus demonstrating the usefulness of the index hints.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing), S4 (based).
Findingnone givenDisallowing floating-point operations and unbounded numbers are not necessary for most symbolic programs.
“Although disallowing floating-point operations and unbounded numbers may seem like a strong restriction, we find these are not necessary for most symbolic programs.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
Findingnone given§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)Models always output the start token as the first output, but do not always output the EoS token once the ending token has been outputted.
“We see that models always output the start token as the first output, but do not always output the EoS token once the ending token has been outputted.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown dataThe main Easy Scratchpad optimizes much more quickly than the sum-mod-10 Hard Scratchpad, even though the easy scratchpad has much longer output sequences.
“We see that the main scratchpad (”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
Findingnone givenThe paper's toy model is a mechanistic model and provides intuition for the RASP conjecture.
“Our toy model is a mechanistic model and provides intuition for the RASP conjecture”
Quote in the paperNot a substantial claimThe quote only partly states this claim.
Findingown data§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)No length generalization is observed for forward addition with index hints on hard carry examples of length 50.
“No length generalization is observed.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
FindingreasoningThe paper's Main Conjecture is not fully formal.
“We acknowledge that our Main Conjecture is not fully formal, because there are aspects we do not fully understand.”
Quote in the paperNot a substantial claimThe quote only partly states this claim.
Findingown data§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)For parity with scratchpad on length 50, no runs show significant length generalization in this setting.
“We see that no runs show significant length generalization in this setting.”
Quote in the paperSubstantial claimThe quote only partly states this claim.
Findingown data§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)Most runs start to generalize perfectly on 50 digit addition once the training length is greater than 35 for parity with scratchpad.
“Most runs start to generalize perfectly on 50 digit addition once the training length is greater than 35.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingnone given§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)A RASP-L program solves the counting task from the Introduction, along with an autoregressive Transformer that implements this program.
“A RASP-L program that solves the counting task from the Introduction, along with an autoregressive Transformer that implements this program.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing), S4 (based). May combine two claims.
Findingnone givenRASP supports only deterministic outputs and binary attention masks.
“Moreover, RASP supports only deterministic outputs and binary attention masks.”
Quote in the paperNot a substantial claimMay combine two claims.
InterpretationreasoningThe next token can be generated by using an induction head on the current token, since all tokens are unique.
“Thus, the next token can be generated by simply using an induction head on the current token, since all tokens are unique.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Premiseown dataInduction heads are simple to implement in RASP-L.
“Induction heads are simple to implement in RASP-L, as the induct function in Listing 3.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S4 (based).
Interpretationnone givenIf models trained in the simple setting can still exhibit non-trivial length generalization on a given task, then that task is amenable to generalization.
“If models trained in this simple setting can still exhibit non-trivial length generalization on a given task, we can conclude that this task is amenable to generalization.”
Quote in the paperNot a substantial claimClassified as probably not a substantial claim.
InterpretationreasoningWith the mode scratchpad, the model must explicitly sort frequencies and convert them into decimal representations to produce its scratchpad.
“Intuitively, instead of internally counting element-frequencies and outputting the maximum, the model must now explicitly sort the frequencies, and convert these into decimal representations to produce its scratchpad.”
Quote in the paperSubstantial claimMay combine two claims.
InterpretationreasoningTransformers can only update their internal state in very restricted ways, but they can update their external state (context) in much more powerful ways.
“The intuition here is that Transformers can only update their internal state in very restricted ways -given by the structure of attentionbut they can update their external state (i.e.context) in much more powerful ways.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S4 (based).
Interpretationnone givenOne forward-pass of a Transformer cannot directly simulate n sequential iterations of a loop.
“fundamentally because one forward-pass of a Transformer cannot directly simulate n sequential iterations of the loop.”
Quote in the paperNot a substantial claimMay combine two claims.
InterpretationreasoningIn copy with repeating tokens, the model must perform precise index-arithmetic, which is prohibited under RASP-L.
“Instead, the model must perform precise index-arithmetic, which are prohibited under RASP-L.”
Quote in the paperSubstantial claimMay combine two claims.
Interpretationnone givenThe intuition that it is easier to represent boolean conjunction, and the experimental result, does not hold for MLPs; it is specific to the Transformer architecture.
“Notably, this intuition (and indeed, the experimental result) does not hold for MLPs; it is specific to the Transformer architecture.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S4 (based). May combine two claims.
Study design and conductnone givenPacking and shifting the context allows all positional embeddings to be trained and encourages the Transformer to treat all positions symmetrically.
“It is an important detail: packing and shifting the context allows all positional embeddings to be trained, and encourages the transformer to treat all positions symmetrically.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.
InterpretationreasoningLearning to ignore the last 5 bits would have been possible, but is an additional complication, and does not help in fitting the train set.
“Learning to ignore the last 5 bits would have been possible, but is an additional complication, and does not help in fitting the train set in any case.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S4 (based). May combine two claims.
InterpretationreasoningSimplicity implies realizability, because being able to write a RASP-L program for a task guarantees realizability.
“Simplicity implies realizability, as being able to come up with a RASP-L program for a task guarantees realizability.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
PremisereasoningThe original RASP allows for certain operations which are possible to represent but not easy to represent or learn.
“The original RASP technically allows for certain operations which are possible to represent, but not”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing), S4 (based). May combine two claims.
Study design and conductreasoningTraining in the online setting avoids overfitting issues and is closer to the training of modern LLMs.
“We train in the online setting, where each batch is sampled iid from the train distribution instead of from a finite train set -this avoids overfitting issues, and is closer to the training of modern LLMs.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S2 (checkable), S3 (load-bearing).
InterpretationcitationIt may be difficult to find the minimum RASP-L program for a task for similar reasons that Kolmogorov complexity is uncomputable.
“intuitivly, it may be difficult to find the minimum RASP-L program for a task for similar reasons that Kolmogorov complexity is uncomputable (Kolmogorov, 1963).”
Quote in the paperNot a substantial claim0 of 1 sources checked- cites Kolmogorov, 1963
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
Probably not a substantial claim: may not pass S3 (load-bearing).
Study design and conductnone givenFor the mode task, if there is a tie for the most frequent element, randomly selecting a token from one set and changing it to a token from the other set ensures that there is one unique answer.
“If there is a tie for the most frequent element, we randomly select a token from one set and changes it to a token from the other set, thus ensuring that there is one unique answer.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Interpretationnone givenIt is theoretically possible to reduce error-propagation in length generalization by scaling up data, model, train time, and other axes.
“However, it is theoretically possible to reduce the error-propogation by”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
InterpretationreasoningThere are likely even stronger computational restrictions on RASP programs than on generic Transformers.
“we observe that there are likely even stronger computational restrictions on RASP programs than on generic Transformers”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
InterpretationreasoningThe linear-time limitation may not apply to RASP-L because RASP-L allows max/min aggregation types that require softmax to implement.
“This limitation technically may not apply to RASP-L, since we allow for”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
InterpretationreasoningRASP programs can only solve tasks where the next-token function can be computed in linear time, as opposed to the O(n^2) upper bound on generic Transformers.
“Thus, RASP programs can only solve tasks where the next-token function can be computed in linear-time (as opposed to the O(n 2 ) upper bound on generic Transformers).”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
PremisecitationRNNs tend to length generalize on tasks equivalent to regular languages, like Parity.
“For example, it is well-known that RNNs tend to length generalize on tasks equivalent to regular languages, like Parity (e.g.Delétang et al. (2023)).”
Quote in the paperNot a substantial claim0 of 1 sources checked- cites Delétang et al. (2023)
Couldn’t be matched to a paper in Crossref, so it can’t be checked.
May combine two claims.
Interpretationnone givenCertain programs have complex computational graphs when written in C to run on a CPU, such as sorting algorithms, but have much simpler computational graphs when written in RASP to run on a Transformer, and vice versa.
“certain programs have complex computational graphs when written in C, to run on a CPU (such as sorting algorithms), but have much simpler computational graphs when written in RASP, to run on a Transformer -and vice versa.”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
InterpretationreasoningThe sum-mod-10 scratchpad is still simpler than parity without any scratchpad because it helps simplify the final operation of getting the parity of the sum.
“However, it is still simpler than parity without any scratchpad because it helps to simplify the final operation of getting the parity of the sum.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing).
Premisenone given§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)The exact set of functions representable by Transformers depends on definitional details such as finite versus infinite precision and bounded versus unbounded weights.
“Note that the exact set of which functions are representable depends on certain definitional details of Transformers such as finite vs. infinite precision, bounded vs. unbounded weights, etc, which is why some of these references arrive at different conclusions.”
Quote in the paperNot a substantial claimMay combine two claims.
Interpretationreasoning§ shifts sequence x to the right by n positions return kqv(indices(x) + n, indices(x), x, equals, default=default)The scratchpad hurts in the mode setting, both final answer accuracy and exact match, since it is not computable by a short RASP-L program.
“The scratchpad hurts in this setting (both final answer accuracy and exact match), since it is not computable by a short RASP-L program.”
Quote in the paperSubstantial claimMay combine two claims.
InterpretationreasoningThe model learns the correct RASP-L program and generalizes because of it.
“This lends credence to the intuition that the model learns the correct RASP-L program and generalizes because of it.”
Quote in the paperSubstantial claimClassified as probably not a substantial claim. May combine two claims.
InterpretationreasoningThe int8 constraint handles issues with both infinite-precision and learnability of tokenwise operations.
“This constraint handles issues with both infinite-precision and with learnability of the tokenwise operations (since all tokenwise functions now have small finite domains and co-domains, int8 → int8, and so can be easily memorized).”
Quote in the paperSubstantial claimProbably not a substantial claim: may not pass S2 (checkable), S3 (load-bearing), S4 (based).
Interpretationnone givenThe paper's conjecture has more predictive power than many prior theories.
“Nonetheless, we view our conjecture as a step forward in understanding the implicit bias of Transformers, as it has more predictive power than many prior theories.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S4 (based). May combine two claims.
Interpretationnone givenThe Transformer must learn the same program to predict the first output digit as for the second and third output digits, and the simplest such program to represent for a Transformer treats all digits symmetrically.
“From our perspective, one potential way to understand this is that the Transformer must learn the same program to predict the first output digit as for the second and third output digits, and the”
Quote in the paperNot a substantial claimMay combine two claims.
Premisenone givenRASP programs can be compiled into standard Transformers and also into linear-attention Transformers by essentially the same construction.
“RASP programs can be compiled into standard Transformers, but they can also be compiled into”
Quote in the paperNot a substantial claimMay combine two claims.
InterpretationreasoningThe sum-mod-10 scratchpad does not simplify the parity problem as much as the previous scratchpad because it does not leverage autoregressive inference to process the task sequentially and relies on a more complicated sum operation.
“This scratchpad does not simplify the problem as much as the previous one, because it does not leverage the autoregressive inference of the Transformer to process the task sequentially, and instead relying on a more complicated sum operation.”
Quote in the paperNot a substantial claim
The authors state this as an assumption.
In-distribution generalization is achieved nearly-optimally.
“we assume that in-distribution generalization is achieved nearly-optimally, and focus our attention on the induced out-of-distribution generalization.”
The paper relies on this without support.
Length generalization on algorithmic tasks is a measure of how well language models can learn to reason.
“We adopt the approach of recent studies and focus on length generalization on algorithmic tasks as a measure of how well language models can learn to reason (Nogueira et al., 2021;Kim et al., 2021;Anil et al., 2022;Lee et al., 2023;Dziri et al., 2023;Welleck et al., 2022;Liu et al., 2023).”
The paper relies on this without support.
The standard addition algorithm requires the carry value to be propagated in reverse order from least- to most-significant digit.
“This algorithm requires the carry value to be propagated in reverse order from least-to most-significant digit”
The paper relies on this without support.
The standard addition algorithm requires index-arithmetic and precise indexing operations.
“The standard addition algorithm requires index-arithmetic (e.g.finding the middle of the prompt sequence) and precise indexing operations (e.g.look up the corresponding summand digits for the current output digit).”
The paper relies on this without support.
The natural algorithm for parity is to run a finite-state-machine for n steps, keeping the running parity of prior bits as state.
“The natural algorithm for parity on n is to run a finite-state-machine for n steps, keeping the runningparity of prior bits as state.”
The paper relies on this without support.
Uniformly random summands will only produce addition instances with short carry-chains in expectation.
“However, uniformly random summands will only produce addition instances with short carry-chains (in expectation)”
The paper relies on this without support.
The natural algorithm for parity is to iterate through all input tokens, updating some internal state along the way.
“The natural algorithm for parity is to iterate through all input tokens, updating some internal state along the way.”
The paper relies on this without support.
The natural algorithm for mode is to calculate the counts of each unique token in the sequence, then output the token with the maximum count.
“A natural algorithm one might come up with is to calculate the counts of each unique token in the sequence, then output the token with the maximum count.”
The authors state this as an assumption.
Simple-to-represent programs are more likely to be learned.
“The RASP Generalization Conjecture suggests that simple-to-represent programs are also more likely to be learned.”
The authors state this as an assumption.
The pairsums has first element 0.
“NOTE: assumes the pairsums has first element 0”
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
Each contradiction between two passages listed here was confirmed by an independent check.
Counting prompts disagree about the separator token
MinorThe task definition includes a `>` token after the two numbers, but the prompt used to illustrate its RASP-L program omits it. This changes which token the program must follow with the first output number.
“given a prompt SoS a b > for numbers a, b, the model must count from a to b inclusive”
“Here the input x is a context window that contains the prompt [SoS, 1, 4], for counting from 1 to 4.”
Listed argmax calls kqv without its required predicate
MinorThe RASP-L library's `argmax` implementation omits the `pred` argument required by the stated `kqv` signature. As printed, this call cannot run, although the mode program uses `argmax`.
“def argmax(x): mm = maximum(x) return kqv(mm, x, indices(x), reduction='max')”
“def kqv(k, q, v, pred, default=0, reduction='mean'): return aggr(select(k, q, pred), v, default=default, reduction=reduction)”
Cites
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404 · cited 1× · see citing works
“A Transformer (Vaswani et al., 2017) refers to an instance of a decoder-only causal Transformer architecture, with any fixed setting of weights, along with any computable positional embedding scheme 2 .”
MethodLanguage Models are Few-Shot Learners
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.14165 · Cited by 23,372 · cited 2× · see citing works
“…impressive abilities in natural language generation, reading comprehension, code-synthesis, instruction-following, commonsense reasoning, and many other tasks (Brown et al., 2020; Chen et al., 2021; Chowdhery et al., 2022; Lewkowycz et al., 2022b; Gunasekar et al., 2023; Touvron et al., 2023).”
BackgroundMethodInfluentialLLaMA: Open and Efficient Foundation Language Models
Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., et al. (2023) · arXiv · doi:10.48550/arxiv.2302.13971 · Cited by 4,602 · see citing works
Chain-Of-Thought Prompting Elicits Reasoning in Large Language Models
Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q. V., & Zhou, D. (2022) · Advances in Neural Information Processing Systems 35 · doi:10.52202/068431-1800 · Cited by 4,505 · cited 3× · see citing works
“A number of papers also study how chain-of-thought style prompting helps with reasoning performance (Wei et al., 2022; Zhou et al., 2022b,a; Creswell & Shanahan, 2022; Madaan & Yazdanbakhsh, 2022), but these focus on in-context learning and do not study the effect of training models on these…”
BackgroundChain-of-Thought Prompting Elicits Reasoning in Large Language Models
Wei, J., Wang, X., Schuurmans, D., Bosma, M., Ichter, B., Xia, F., Chi, E., Le, Q., & Zhou, D. (2022) · arXiv · doi:10.48550/arxiv.2201.11903 · Cited by 4,263 · see citing works
PaLM: Scaling Language Modeling with Pathways
Chowdhery, A., Narang, S., Devlin, J., Bosma, M., Mishra, G., Roberts, A., Barham, P., Chung, H. W., Sutton, C., Gehrmann, S., et al. (2022) · arXiv · doi:10.48550/arxiv.2204.02311 · Cited by 2,590 · cited 1× · see citing works
“…impressive abilities in natural language generation, reading comprehension, code-synthesis, instruction-following, commonsense reasoning, and many other tasks (Brown et al., 2020; Chen et al., 2021; Chowdhery et al., 2022; Lewkowycz et al., 2022b; Gunasekar et al., 2023; Touvron et al., 2023).”
BackgroundInfluentialEvaluating Large Language Models Trained on Code
Chen, M., Tworek, J., Jun, H., Yuan, Q., Pinto, H. P. D. O., Kaplan, J., Edwards, H., Burda, Y., Joseph, N., Brockman, G., et al. (2021) · arXiv · doi:10.48550/arxiv.2107.03374 · Cited by 1,436 · cited 1× · see citing works
“…impressive abilities in natural language generation, reading comprehension, code-synthesis, instruction-following, commonsense reasoning, and many other tasks (Brown et al., 2020; Chen et al., 2021; Chowdhery et al., 2022; Lewkowycz et al., 2022b; Gunasekar et al., 2023; Touvron et al., 2023).”
BackgroundInfluentialA formal theory of inductive inference. Part I
Solomonoff, R. J. (1964) · Information and Control · doi:10.1016/s0019-9958(64)90223-2 · Cited by 1,192 · cited 1× · see citing works
“This toy model is similar to Minimum-Description-Length principles (e.g. Shalev-Shwartz & Ben-David (2014)) and Solomonoff induction (Solomonoff, 1964).”
MethodTransformers are RNNs: Fast Autoregressive Transformers with Linear Attention
Katharopoulos, A., Vyas, A., Pappas, N., & Fleuret, F. (2020) · arXiv · doi:10.48550/arxiv.2006.16236 · Cited by 827 · cited 1× · see citing works
“Linear-attention Transformers can evaluate their next-token function in O ( n ) time in their input length, as observed by Katharopoulos et al. (2020).”
BackgroundCryptosporidium Parvum Genome Project
Abrahamsen, M. (2001) · Comparative and Functional Genomics · doi:10.1002/cfg.67 · Cited by 777
Training Verifiers to Solve Math Word Problems
Cobbe, K., Kosaraju, V., Bavarian, M., Chen, M., Jun, H., Kaiser, L., Plappert, M., Tworek, J., Hilton, J., Nakano, R., et al. (2021) · arXiv · doi:10.48550/arxiv.2110.14168 · Cited by 575 · cited 1× · see citing works
“There has been significant interest recently in understanding and improving the reasoning abilities of Transformer-based models (Cobbe et al., 2021; Magister et al., 2023; Wei et al., 2022; Dziri et al., 2023; Suzgun et al., 2022; Lewkowycz et al., 2022a; Press et al., 2023).”
BackgroundShiryayev, A. (1993) · doi:10.1007/978-94-017-2973-4_9 · Cited by 472 · cited 1×
“Many of these notions, including ours, have the drawback of being likely intractable to compute— intuitivly, it may be difficult to find the minimum RASP-L program for a task for similar reasons that Kolmogorov complexity is uncomputable (Kolmogorov, 1963).”
BackgroundDehghani, M., Gouws, S., Vinyals, O., Uszkoreit, J., & Kaiser, Ł. (2018) · arXiv · doi:10.48550/arxiv.1807.03819 · Cited by 467 · see citing works
Least-to-Most Prompting Enables Complex Reasoning in Large Language Models
Zhou, D., Schärli, N., Hou, L., Wei, J., Scales, N., Wang, X., Schuurmans, D., Cui, C., Bousquet, O., Le, Q., et al. (2022) · arXiv · doi:10.48550/arxiv.2205.10625 · Cited by 380 · see citing works
Solving Quantitative Reasoning Problems with Language Models
Lewkowycz, A., Andreassen, A., Dohan, D., Dyer, E., Michalewski, H., Ramasesh, V., Slone, A., Anil, C., Schlag, I., Gutman-Solo, T., et al. (2022) · arXiv · doi:10.48550/arxiv.2206.14858 · Cited by 358 · cited 1× · see citing works
“There has been significant interest recently in understanding and improving the reasoning abilities of Transformer-based models (Cobbe et al., 2021; Magister et al., 2023; Wei et al., 2022; Dziri et al., 2023; Suzgun et al., 2022; Lewkowycz et al., 2022a; Press et al., 2023).”
BackgroundMeasuring and Narrowing the Compositionality Gap in Language Models
Press, O., Zhang, M., Min, S., Schmidt, L., Smith, N., & Lewis, M. (2023) · Findings of the Association for Computational Linguistics: EMNLP 2023 · doi:10.18653/v1/2023.findings-emnlp.378 · Cited by 303 · see citing works
Measuring and Narrowing the Compositionality Gap in Language Models
Press, O., Zhang, M., Min, S., Schmidt, L., Smith, N. A., & Lewis, M. (2022) · arXiv · doi:10.48550/arxiv.2210.03350 · Cited by 294 · cited 1× · see citing works
“There has been significant interest recently in understanding and improving the reasoning abilities of Transformer-based models (Cobbe et al., 2021; Magister et al., 2023; Wei et al., 2022; Dziri et al., 2023; Suzgun et al., 2022; Lewkowycz et al., 2022a; Press et al., 2023).”
BackgroundHanna, M., Liu, O., & Variengien, A. (2023) · Neural Information Processing Systems · doi:10.48550/arxiv.2305.00586 · Cited by 255 · cited 3×
“A number of papers have studied this question for specific classes of problems, such as decimal addition (Lee et al., 2023), Dyck-1 languages (Bhattamishra et al., 2020), Boolean functions (Abbe et al., 2023), structural recursion (Zhang et al., 2023), and finite state automaton (Liu et al., 2023).”
BackgroundMethodChallenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Them
Suzgun, M., Scales, N., Schärli, N., Gehrmann, S., Tay, Y., Chung, H. W., Chowdhery, A., Le, Q., Chi, E., Zhou, D., et al. (2023) · Findings of the Association for Computational Linguistics: ACL 2023 · doi:10.18653/v1/2023.findings-acl.824 · Cited by 253 · see citing works
(1984) · doi:10.1177/105345128401900407 · Cited by 232 · cited 2×
“Jelassi et al. (2023) study models trained on addition and find strong generalization performance when using a few examples of longer sequences.”
Neural GPUs Learn AlgorithmsPreprint
Kaiser, Ł., & Sutskever, I. (2015) · arXiv (Cornell University) · doi:10.48550/arxiv.1511.08228 · Cited by 224 · cited 1× · see citing works
“Our paper is related to the line of work that seeks to understand the capabilities and limitations of Transformer models when it comes to algorithmic reasoning (Kaiser & Sutskever, 2015; Veličković & Blundell, 2021).”
BackgroundRepresentational Strengths and Limitations of Transformers
Sanford, C., Hsu, D. J., & Telgarsky, M. (2023) · Neural Information Processing Systems · doi:10.48550/arxiv.2306.02896 · Cited by 168 · cited 1×
“Overall, we hope our results help demystify certain observations of the surprising “reasoning-like” abilities of Transformers, by showing that some of these behaviors can actually emerge for simple, unsurprising reasons.”
ResultTheoretical Limitations of Self-Attention in Neural Sequence Models
Hahn, M. (2020) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00306 · Cited by 165 · cited 2× · see citing works
“Many works have shown that a Transformer cannot even fit the training set of parity sequences over some minimal length (Hahn, 2020; Delétang et al., 2023).”
BackgroundTrain Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation
Press, O., Smith, N. A., & Lewis, M. (2021) · arXiv · doi:10.48550/arxiv.2108.12409 · Cited by 161 · cited 2× · see citing works
“These include studying how various training hyperparameters and design choices influence compositional generalization (Furrer et al., 2021; Ontañón et al., 2022), and designing better positional embeddings (Press et al., 2022; Ontañón et al., 2022; Kazemnejad et al., 2023; Ruoss et al., 2023).”
BackgroundTesting the General Deductive Reasoning Capacity of Large Language Models Using OOD ExamplesPreprint
Saparov, A., Pang, R. Y., Padmakumar, V., et al. (2023) · Neural Information Processing Systems · doi:10.48550/arxiv.2305.15269 · Cited by 147 · cited 1× · see citing works
“However, when evaluated in controlled studies, Transformers often struggle with out-of-distribution generalization (Nogueira et al., 2021; Ontañón et al., 2022; Dziri et al., 2023; Wu et al., 2023; Saparov et al., 2023).”
BackgroundTeaching Arithmetic to Small Transformers
Lee, N., Sreenivasan, K., Lee, J. D., Lee, K., & Papailiopoulos, D. (2023) · arXiv.org · doi:10.48550/arxiv.2307.03381 · Cited by 145
Show Your Work: Scratchpads for Intermediate Computation with Language Models
Nye, M., Andreassen, A. J., Gur-Ari, G., Michalewski, H., Austin, J., Bieber, D., Dohan, D., Lewkowycz, A., Bosma, M., Luan, D., et al. (2021) · arXiv · doi:10.48550/arxiv.2112.00114 · Cited by 144 · cited 2× · see citing works
“Transformers trained from scratch on addition and other arithmetic tasks exhibit little to no length generalization in prior work (Nye et al., 2021; Nogueira et al., 2021; Lee et al., 2023), and even models finetuned from pretrained LLMs struggle on simple algorithmic tasks (Anil et al., 2022).”
BackgroundTeaching Small Language Models to Reason
Magister, L. C., Mallinson, J., Adamek, J., Malmi, E., & Severyn, A. (2023) · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers) · doi:10.18653/v1/2023.acl-short.151 · Cited by 127 · see citing works
Faith and Fate: Limits of Transformers on Compositionality
Dziri, N., Lu, X., Sclar, M., Li, X. (., Jiang, L., Lin, B. Y., Welleck, S., West, P., Bhagavatula, C., Bras, R. L., et al. (2023) · Advances in Neural Information Processing Systems 36 · doi:10.52202/075280-3081 · Cited by 124 · cited 7× · see citing works
“There has been significant interest recently in understanding and improving the reasoning abilities of Transformer-based models (Cobbe et al., 2021; Magister et al., 2023; Wei et al., 2022; Dziri et al., 2023; Suzgun et al., 2022; Lewkowycz et al., 2022a; Press et al., 2023).”
BackgroundMethodResultInfluentialFaith and Fate: Limits of Transformers on Compositionality
Dziri, N., Lu, X., Sclar, M., Li, X. L., Jiang, L., Lin, B. Y., West, P., Bhagavatula, C., Bras, R. L., Hwang, J. D., et al. (2023) · arXiv · Cited by 124 · see citing works
What Can Transformers Learn In-Context? A Case Study of Simple Function Classes
Garg, S., Tsipras, D., Liang, P., & Valiant, G. (2022) · arXiv · doi:10.48550/arxiv.2208.01066 · Cited by 110 · cited 1× · see citing works
“A notable class of Transformer algorithms which are ill-suited for RASP are numerical algorithms, such as in-context gradient-descent and linear regression, which involve high-dimensional matrix and vector floating-point operations (Akyürek et al., 2022; Garg et al., 2022; Charton, 2021).”
MethodWhat Can Transformers Learn In-Context? a Case Study of Simple Function Classes
Garg, S., Tsipras, D., Liang, P., & Valiant, G. J. (2022) · neural information processing systems · doi:10.52202/068431-2217 · Cited by 110 · see citing works
Towards Automated Circuit Discovery for Mechanistic Interpretability
Conmy, A., Mavor-Parker, A. N., Lynch, A., Heimersheim, S., & Garriga-Alonso, A. (2023) · neural information processing systems · doi:10.52202/075280-0719 · Cited by 105 · see citing works
In-context Learning and Induction Heads
Olsson, C., Elhage, N., Nanda, N., Joseph, N., DasSarma, N., Henighan, T., Mann, B., Askell, A., Bai, Y., Chen, A., et al. (2022) · arXiv · doi:10.48550/arxiv.2209.11895 · Cited by 104 · cited 5× · see citing works
“Intuitively, this task is easy because we can leverage what is called an “induction head” (Olsson et al., 2022).”
BackgroundInfluentialWhat learning algorithm is in-context learning? Investigations with linear models
Akyürek, E., Schuurmans, D., Andreas, J., Ma, T., & Zhou, D. (2022) · arXiv · doi:10.48550/arxiv.2211.15661 · Cited by 86 · cited 1× · see citing works
“We study this question in a controlled setting by focusing on length generalization as an instance of algorithm learning, with standard decoder-only Transformers trained from scratch on synthetic algorithmic tasks.”
BackgroundSimplicity Bias in Transformers and their Ability to Learn Sparse Boolean FunctionsPreprint
Bhattamishra, S., Patel, A., Kanade, V., et al. (2022) · Annual Meeting of the Association for Computational Linguistics · doi:10.48550/arxiv.2211.12316 · Cited by 84 · cited 1× · see citing works
“Although many prior works have conjectured similar “simplicity bias” in Transformers (Abbe et al., 2023; Bhattamishra et al., 2023), the notion of simplicity we use here is tailor-made for the Transformer architecture.”
MethodAuto-Regressive Next-Token Predictors are Universal LearnersPreprint
Malach, E. (2023) · International Conference on Machine Learning · doi:10.48550/arxiv.2309.06979 · Cited by 80 · see citing works
Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized ArchitecturesPreprint
Furrer, D., van Zee, M., Scales, N., & Schärli, N. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2007.08970 · Cited by 79 · cited 2× · see citing works
“These include studying how various training hyperparameters and design choices influence compositional generalization (Furrer et al., 2021; Ontañón et al., 2022), and designing better positional embeddings (Press et al., 2022; Ontañón et al., 2022; Kazemnejad et al., 2023; Ruoss et al., 2023).”
BackgroundThe Impact of Positional Encoding on Length Generalization in Transformers
Kazemnejad, A., Padhi, I., Ramamurthy, K. N., Das, P., & Reddy, S. (2023) · arXiv · doi:10.48550/arxiv.2305.19466 · Cited by 54 · cited 3×
“These include studying how various training hyperparameters and design choices influence compositional generalization (Furrer et al., 2021; Ontañón et al., 2022), and designing better positional embeddings (Press et al., 2022; Ontañón et al., 2022; Kazemnejad et al., 2023; Ruoss et al., 2023).”
BackgroundResultThe Impact of Positional Encoding on Length Generalization in Transformers
Kazemnejad, A., Padhi, I., Ramamurthy, K. N., et al. (2023) · neural information processing systems · doi:10.52202/075280-1082 · Cited by 53 · see citing works
Progress measures for grokking via mechanistic interpretability
Nanda, N., Chan, L., Lieberum, T., Smith, J., & Steinhardt, J. (2023) · arXiv · doi:10.48550/arxiv.2301.05217 · Cited by 51 · cited 1× · see citing works
“The line of work on mechanistic interpretability seeks to understand which algorithms (or “circuits”) Transformers internally learn to implement, by inspecting their internals (Olsson et al., 2022; Nanda et al., 2023; Zhong et al., 2023; Conmy et al., 2023; Zhang et al., 2023; Hanna et al., 2023).”
BackgroundOn the Ability and Limitations of Transformers to Recognize Formal Languages
Bhattamishra, S., Ahuja, K., & Goyal, N. (2020) · Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.576 · Cited by 48 · cited 2× · see citing works
“A number of papers have studied this question for specific classes of problems, such as decimal addition (Lee et al., 2023), Dyck-1 languages (Bhattamishra et al., 2020), Boolean functions (Abbe et al., 2023), structural recursion (Zhang et al., 2023), and finite state automaton (Liu et al., 2023).”
BackgroundExploring Length Generalization in Large Language Models
Anil, C., Wu, Y., Andreassen, A., Lewkowycz, A., Misra, V., Ramasesh, V., Slone, A., Gur-Ari, G., Dyer, E., & Neyshabur, B. (2022) · arXiv · doi:10.48550/arxiv.2207.04901 · Cited by 44 · cited 2× · see citing works
“Transformers trained from scratch on addition and other arithmetic tasks exhibit little to no length generalization in prior work (Nye et al., 2021; Nogueira et al., 2021; Lee et al., 2023), and even models finetuned from pretrained LLMs struggle on simple algorithmic tasks (Anil et al., 2022).”
BackgroundMethodTowards Better Out-of-Distribution Generalization of Neural Algorithmic Reasoning Tasks
Mahdavi, S., Swersky, K., Kipf, T., et al. (2022) · Trans. Mach. Learn. Res. · doi:10.48550/arxiv.2211.00692 · Cited by 40
Veličković, P., & Blundell, C. (2021) · Patterns · doi:10.1016/j.patter.2021.100273 · Cited by 39 · cited 1× · see citing works
“In the previous section, we noted two aspects of a naive addition algorithm that pose problems for RASP-L: index-arithmetic (to query the sum-mand digits for the current output digit), and non-causality (for the carry).”
BackgroundOvercoming a Theoretical Limitation of Self-Attention
Chiang, D., & Cholak, P. (2022) · Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2022.acl-long.527 · Cited by 39 · cited 1× · see citing works
“…which functions are possible to represent by a Transformer 10 , but this representation is not always “simple” enough to be learnable, and not always uniform (Hahn, 2020; Merrill et al., 2022; Chiang & Cholak, 2022; Pérez et al., 2021; Bhattamishra et al., 2020; Ebrahimi et al., 2020).”
BackgroundFaithful Reasoning Using Large Language Models
Creswell, A., & Shanahan, M. (2022) · arXiv · doi:10.48550/arxiv.2208.14271 · Cited by 37 · cited 1× · see citing works
“A number of papers also study how chain-of-thought style prompting helps with reasoning performance (Wei et al., 2022; Zhou et al., 2022b,a; Creswell & Shanahan, 2022; Madaan & Yazdanbakhsh, 2022), but these focus on in-context learning and do not study the effect of training models on these…”
BackgroundMaking Transformers Solve Compositional Tasks
Ontañón, S., Ainslie, J., Fisher, Z., & Cvicek, V. (2022) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2022.acl-long.251 · Cited by 34 · see citing works
Investigating the Limitations of Transformers with Simple Arithmetic Tasks
Nogueira, R., Jiang, Z., & Lin, J. (2021) · arXiv · doi:10.48550/arxiv.2102.13019 · Cited by 29 · cited 5× · see citing works
“Nogueira et al. (2021) find that partial length generalization on addition is observed only when models reach 3B parameters and when the addition questions are presented in reverse order.”
BackgroundMethodInfluentialSaturated Transformers are Constant-Depth Threshold Circuits
Merrill, W., Sabharwal, A., & Smith, N. A. (2022) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00493 · Cited by 25 · cited 2× · see citing works
“…which functions are possible to represent by a Transformer 10 , but this representation is not always “simple” enough to be learnable, and not always uniform (Hahn, 2020; Merrill et al., 2022; Chiang & Cholak, 2022; Pérez et al., 2021; Bhattamishra et al., 2020; Ebrahimi et al., 2020).”
BackgroundText and Patterns: For Effective Chain of Thought, It Takes Two to Tango
Madaan, A., & Yazdanbakhsh, A. (2022) · arXiv · doi:10.48550/arxiv.2209.07686 · Cited by 24 · cited 1× · see citing works
“…number of papers also study how chain-of-thought style prompting helps with reasoning performance (Wei et al., 2022; Zhou et al., 2022b,a; Creswell & Shanahan, 2022; Madaan & Yazdanbakhsh, 2022), but these focus on in-context learning and do not study the effect of training models on these formats.”
BackgroundRandomized Positional Encodings Boost Length Generalization of Transformers
Ruoss, A., Delétang, G., Genewein, T., Grau-Moya, J., Csordás, R., Bennani, M., Legg, S., & Veness, J. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-short.161 · Cited by 24 · see citing works
Teaching Algorithmic Reasoning via In-context LearningPreprint
Zhou, H., Nova, A., Larochelle, H., Courville, A. C., Neyshabur, B., & Sedghi, H. (2022) · arXiv (Cornell University) · doi:10.48550/arxiv.2211.09066 · Cited by 24 · see citing works
Self-citationThe Parallelism Tradeoff: Limitations of Log-Precision Transformers
Merrill, W., & Sabharwal, A. (2023) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00562 · Cited by 22 · cited 1× · see citing works
“Overall, we hope our results help demystify certain observations of the surprising “reasoning-like” abilities of Transformers, by showing that some of these behaviors can actually emerge for simple, unsurprising reasons.”
ResultTesting the General Deductive Reasoning Capacity of Large Language Models Using OOD Examples
Saparov, A., Pang, R. Y., Padmakumar, V., et al. (2023) · neural information processing systems · doi:10.52202/075280-0136 · Cited by 22 · see citing works
Can Transformers Learn to Solve Problems Recursively?Preprint
Zhang, S., Tigges, C., Biderman, S., et al. (2023) · arXiv.org · doi:10.48550/arxiv.2305.14699 · Cited by 22 · see citing works
Wu, Z., Qiu, L., Ross, A., Akyürek, E., Chen, B., Wang, B., Kim, N., Andreas, J., & Kim, Y. (2023) · arXiv · doi:10.48550/arxiv.2307.02477 · Cited by 19 · cited 1× · see citing works
“However, when evaluated in controlled studies, Transformers often struggle with out-of-distribution generalization (Nogueira et al., 2021; Ontañón et al., 2022; Dziri et al., 2023; Wu et al., 2023; Saparov et al., 2023).”
BackgroundWeiss, G., Goldberg, Y., & Yahav, E. (2021) · arXiv · doi:10.48550/arxiv.2106.06981 · Cited by 18 · cited 3× · see citing works
“The original RASP language can be thought of as a domain-specific-language for specifying Trans-former weights, in human-readable form (Weiss et al., 2021).”
BackgroundMethodInfluentialChi, T.-C., Fan, T.-H., Rudnicky, A., et al. (2023) · Conference on Empirical Methods in Natural Language Processing · doi:10.48550/arxiv.2305.03796 · Cited by 17
Hanna, M., Liu, O., & Variengien, A. (2023) · neural information processing systems · doi:10.52202/075280-3322 · Cited by 17 · see citing works
Improving Length-Generalization in Transformers via Task Hinting
Awasthi, P., & Gupta, A. (2023) · arXiv.org · doi:10.48550/arxiv.2310.00726 · Cited by 16 · cited 1×
“This task has been studied by Li & McClelland (2023); Awasthi & Gupta (2023), and showed signs of strong length generalization.”
BackgroundBenchmarking Compositionality with Formal Languages
Valvoda, J., Saphra, N., Rawski, J., et al. (2022) · International Conference on Computational Linguistics · doi:10.48550/arxiv.2208.08195 · Cited by 16 · cited 2×
“This intuition is reflected in the RASP-L program for forward addition, which is much longer than that of reverse addition (see Listings 9 and 10). possible to implement an algorithm for addition in standard order.”
MethodThe clock and the pizza: Two stories in mechanistic explanation of neural networks
Zhong, Z., Liu, Z., Tegmark, M., & Andreas, J. (2023) · arXiv · doi:10.48550/arxiv.2306.17844 · Cited by 14 · cited 1× · see citing works
“The line of work on mechanistic interpretability seeks to understand which algorithms (or “circuits”) Transformers internally learn to implement, by inspecting their internals (Olsson et al., 2022; Nanda et al., 2023; Zhong et al., 2023; Conmy et al., 2023; Zhang et al., 2023; Hanna et al., 2023).”
BackgroundLinear algebra with transformers
Charton, F. (2021) · arXiv · doi:10.48550/arxiv.2112.01898 · Cited by 13 · cited 2×
“A notable class of Transformer algorithms which are ill-suited for RASP are numerical algorithms, such as in-context gradient-descent and linear regression, which involve high-dimensional matrix and vector floating-point operations (Akyürek et al., 2022; Garg et al., 2022; Charton, 2021).”
BackgroundMethodHow Can Self-Attention Networks Recognize Dyck-n Languages?
Ebrahimi, J., Gelda, D., & Zhang, W. (2020) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2020.findings-emnlp.384 · Cited by 13 · cited 1× · see citing works
“…which functions are possible to represent by a Transformer 10 , but this representation is not always “simple” enough to be learnable, and not always uniform (Hahn, 2020; Merrill et al., 2022; Chiang & Cholak, 2022; Pérez et al., 2021; Bhattamishra et al., 2020; Ebrahimi et al., 2020).”
BackgroundSymbolic Brittleness in Sequence Models: On Systematic Generalization in Symbolic Mathematics
Welleck, S., West, P., Cao, J., & Choi, Y. (2022) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v36i8.20841 · Cited by 13 · cited 1× · see citing works
“We adopt the approach of recent studies and focus on length generalization on algorithmic tasks as a measure of how well language models can learn to reason (Nogueira et al., 2021; Kim et al., 2021; Anil et al., 2022; Lee et al., 2023; Dziri et al., 2023; Welleck et al., 2022; Liu et al., 2023).”
MethodOn the Ability of Self-Attention Networks to Recognize Counter Languages
Bhattamishra, S., Ahuja, K., & Goyal, N. (2020) · Conference on Empirical Methods in Natural Language Processing · doi:10.48550/arxiv.2009.11264 · Cited by 11
Have You Seen That Number? Investigating Extrapolation in Question Answering Models
Kim, J.-H., Hong, G., Kim, K.-M., Kang, J., & Myaeng, S.-H. (2021) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2021.emnlp-main.563 · Cited by 10 · cited 1× · see citing works
“We adopt the approach of recent studies and focus on length generalization on algorithmic tasks as a measure of how well language models can learn to reason (Nogueira et al., 2021; Kim et al., 2021; Anil et al., 2022; Lee et al., 2023; Dziri et al., 2023; Welleck et al., 2022; Liu et al., 2023).”
MethodSimplicity Bias in Transformers and their Ability to Learn Sparse Boolean Functions
Bhattamishra, S., Patel, A., Kanade, V., & Blunsom, P. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.317 · Cited by 10 · see citing works
Tracr: Compiled Transformers as a Laboratory for Interpretability
Lindner, D., Kramár, J., Farquhar, S., Rahtz, M., McGrath, T., & Mikulik, V. (2023) · arXiv · doi:10.48550/arxiv.2301.05062 · Cited by 8 · cited 2× · see citing works
“…work, and thus focus on the external performance of the trained models in the out-of-distribution setting; whether trained Transformers’ internals are at all similar to the internals of a compiled RASP program remains an open question (some such investigation was done in Lindner et al. (2023)).”
Backgroundvan Eijk, G. (2020) · The Algorithmic Society · doi:10.4324/9780429261404-10 · Cited by 5 · cited 1× · see citing works
“A number of papers also study how chain-of-thought style prompting helps with reasoning performance (Wei et al., 2022; Zhou et al., 2022b,a; Creswell & Shanahan, 2022; Madaan & Yazdanbakhsh, 2022), but these focus on in-context learning and do not study the effect of training models on these…”
BackgroundGeneralization on the Unseen, Logic Reasoning and Degree Curriculum
Abbe, E., Bengio, S., Lotfi, A., & Rizk, K. (2023) · arXiv · doi:10.48550/arxiv.2301.13105 · Cited by 4
Self-citationLength Generalization in Arithmetic TransformersPreprint
Jelassi, S., d’Ascoli, S., Domingo-Enrich, C., et al. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2306.15400 · Cited by 2 · see citing works
Randomized Positional Encodings Boost Length Generalization of Transformers
Ruoss, A., Delétang, G., Genewein, T., Grau-Moya, J., Csordás, R., Bennani, M., Legg, S., & Veness, J. (2023) · arXiv · doi:10.48550/arxiv.2305.16843 · Cited by 1 · see citing works
The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks
Zhong, Z., Liu, Z., Tegmark, M., et al. (2023) · Advances in Neural Information Processing Systems 36 · doi:10.52202/075280-1186
Exploring Length Generalization in Large Language Models
Anil, C., Wu, Y., Andreassen, A., et al. (2022) · Advances in Neural Information Processing Systems 35 · doi:10.52202/068431-2793
Flagged first, then by citations
Research works printed but not linked: 4
- Sanjeev Arora and Boaz Barak. Computational complexity: a modern approach. Cambridge Univer- sity Press, 2009.
- Aitor Lewkowycz, Anders Andreassen, David Martin Dohan, Ethan S Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, Yuhuai Wu, Behnam Neyshabur, Guy Gur-Ari, and Vedant Misra. Solving quantitative reasoning problems with language models. 2022b. URL https://arxiv.org/abs/2206.14858. · arXiv
- Jorge Pérez, Pablo Barceló, and Javier Marinkovic. Attention is turing complete. The Journal of Machine Learning Research, 22(1):3463-3497, 2021.
- Shai Shalev-Shwartz and Shai Ben-David. Understanding machine learning: From theory to algo- rithms. Cambridge university press, 2014.
Cited by
Sorted by citations
Accurate predictions on small data with a tabular foundation model
Hollmann, N., Müller, S., Purucker, L., Krishnakumar, A., Körfer, M., Hoo, S. B., Schirrmeister, R. T., & Hutter, F. (2025) · Nature · doi:10.1038/s41586-024-08328-6 · Cited by 1,119 · see citing works
“Although ICL was first observed in large language models, recent work has shown that transformers can learn simple algorithms such as logistic regression through ICL 18–21 .”
The alignment problem from a deep learning perspective
Ngo, R., Chan, L., & Mindermann, S. (2022) · arXiv · doi:10.48550/arxiv.2209.00626 · Cited by 68 · see citing works
GSM-Symbolic: Understanding the Limitations of Mathematical Reasoning in Large Language Models
Mirzadeh, I., Alizadeh, K., Shahrokhi, H., Tuzel, O., Bengio, S., & Farajtabar, M. (2024) · arXiv · doi:10.48550/arxiv.2410.05229 · Cited by 57 · see citing works
Self-citationWhat Formal Languages Can Transformers Express? A Survey
Strobl, L., Merrill, W., Weiss, G., Chiang, D., & Angluin, D. (2024) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00663 · Cited by 31 · see citing works
Caution Ahead: Numerical Reasoning and Look‐Ahead Bias in AI Models
LEVY, B. (2026) · Journal of Accounting Research · doi:10.1111/1475-679x.70058 · Cited by 20 · see citing works
Neural Redshift: Random Networks are not Random Functions
Teney, D., Nicolicioiu, A. M., Hartmann, V., & Abbasnejad, E. (2024) · IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings - IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings · doi:10.1109/cvpr52733.2024.00458 · Cited by 13 · see citing works
“Much effort has gone into explaining the success of deep learning through the inductive biases of SGD [48] and structured architectures [11, 90].”
BackgroundGeneral-Purpose Models for the Chemical Sciences: LLMs and Beyond
Alampara, N., Aneesh, A., Ríos-García, M., Mirza, A., Schilling-Wilhelmi, M., Aghajani, A. A., Sun, M., Prastalo, G., & Jablonka, K. M. (2026) · Chemical Reviews · doi:10.1021/acs.chemrev.5c00583 · Cited by 12 · see citing works
Shang, B., Li, G., Sun, W., et al. (2025) · Energy · doi:10.1016/j.energy.2025.138693 · Cited by 6 · see citing works
Quantifying artificial intelligence through algorithmic generalization
Ito, T., Campbell, M. S., Lior Horesh, C., Klinger, T., & Ram, P. (2025) · Nature Machine Intelligence · doi:10.1038/s42256-025-01092-w · Cited by 6 · see citing works
Rapid few-shot tabular machine learning for Φ-OTDR event classification
Lin, Z., Lin, X., Li, W., et al. (2025) · Optics Express · doi:10.1364/oe.571235 · Cited by 4 · see citing works
Language models need inductive biases to count inductively
Chang, Y., & Bisk, Y. (2024) · arXiv · doi:10.48550/arxiv.2405.20131
“Of particular note is that Zhou et al. (2023) also studied counting, which differs from ours by definition: the input includes a start and an end token, the output is an incremental expansion, e.g. 12 16 > 12 13 14 15 16.”
BackgroundInfluentialSynthetic Tabular Data Detection in the Wild
Kindji, G. C. N., Fromont, É., Rojas-Barahona, L. M., & Urvoy, T. (2025) · Lecture notes in computer science · doi:10.1007/978-3-031-91398-3_7
Three Tiers of Computation in Transformers and in Brain Architectures
Graham, E., & Granger, R. (2026) · ACM Transactions on Intelligent Systems and Technology · doi:10.1145/3844612
Length Generalization Bounds for Transformers
Yang, A., Bergsträßer, P., Zetzsche, G., Chiang, D., & Lin, A. W. (2026) · Zenodo · doi:10.5281/zenodo.18800699
Implicit Language Models are RNNs: Balancing Parallelization and Expressivity
Schöne, M., Rahmani, B., Kremer, H., Falck, F., Ballani, H., & Gladrow, J. (2025) · arXiv · doi:10.48550/arxiv.2502.07827
“Zhou et al. (2023) then showed that transformers tend to length-generalise if the underlying data-generating process can be expressed in RASP.”
Looped Transformers for Length Generalization
Fan, Y., Du, Y., Ramchandran, K., & Lee, K. (2024) · arXiv · doi:10.48550/arxiv.2409.15647
- Authors
- Zhou, H., Bradley, A., Littwin, E., Razin, N., Saremi, O., Susskind, J., Bengio, S., & Nakkiran, P.
- Affiliations
- Université de Montréal (CA)
- Tel Aviv University (IL)
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2023
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 2310.16028
- OpenAlex
- W4387947637
- Semantic Scholar
- 1ec3a3ff77cb4b424499b3805ecc90182ecd8f8b
- Cited by
- 10
- References
- 62
- Citations by year
- 2026: 3 · 2025: 5 · 2024: 2
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Computational Theory and Mathematics › Computability, Logic, AI Algorithms
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Keywords
- length generalization, transformer models, RASP, compositional generalization, parity, addition, out-of-distribution generalization, large language models, emergent capabilities
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Claims read by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-23.
Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-23.
Cited sources are checked by gpt-6-sol.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review