Exploring Length Generalization in Large Language Models
Open accessAbstract
The ability to extrapolate from short problem instances to longer ones is an important form of out-of-distribution generalization in reasoning tasks, and is crucial when learning from datasets where longer problem instances are rare. These include theorem proving, solving quantitative mathematics problems, and reading/summarizing novels. In this paper, we run careful empirical studies exploring the length generalization capabilities of transformer-based language models. We first establish that naively finetuning transformers on length generalization tasks shows significant generalization deficiencies independent of model scale. We then show that combining pretrained large language models' in-context learning abilities with scratchpad prompting (asking the model to output solution steps before producing an answer) results in a dramatic improvement in length generalization. We run careful failure analyses on each of the learning modalities and identify common sources of mistakes that highlight opportunities in equipping language models with the ability to generalize to longer problems.
AI snapshot
Written from the paper’s full text.
TL;DR
The paper empirically studies length generalization in transformer LLMs on parity and variable assignment, finding that finetuning—with or without scratchpad—fails to extrapolate to longer instances regardless of model scale. Few-shot scratchpad prompting can dramatically improve length generalization, especially when the base model already has nontrivial task performance.
Key findings
- Finetuned LaMDA models of 244m, 422m, 1b, and 64b parameters showed near-perfect in-distribution performance but rapid out-of-distribution degradation on parity (train lengths 10–21, eval 3–40) and variable assignment (train lengths 3–8, eval 3–19); scale had little effect on length generalization.
- On a parity variant with fixed 30 bits and varied number of ones (train 10–20 ones, test 1–30), in-distribution accuracy was 100% while OOD performance was roughly random, suggesting transformers learn non-sequential counting/thresholding shortcuts rather than sequential algorithms.
- Scratchpad finetuning still failed at length generalization; error analysis identified distractor tokens as the main culprit, with distracting input tokens hurting more than distracting scratchpad tokens, and removing all distractor tokens led to perfect length generalization.
- Few-shot scratchpad prompting with pretrained LaMDA 128b on a coin-flip parity task improved length generalization up to 20 flips; few-shot finetuning helped parity but not variable assignment, where the base model lacked strong pretrained performance.
Methods
- Empirical study using LaMDA decoder-only models on two synthetic tasks: parity (bitstrings, plus a natural-language coin-flip framing) and Boolean variable assignment (Python-like programs, with diverse and chain-like splits). Parity datasets contained 1,000,000 samples; variable assignment splits contained 1,500,000 samples each.
- Compared finetuning, few-shot prompting/in-context learning, scratchpad/chain-of-thought, and their combinations; used AdaFactor, greedy decoding, learning-rate and batch-size sweeps, and trained until in-distribution validation accuracy settled.
- Ran targeted analyses of per-step scratchpad error, positional encoding and EOS effects, computational graph depth, and distractor masking.
Limitations
- Stated: the hypothesis that few-shot finetuning helps only when the base model already has nontrivial task performance is left for future rigorous evaluation; a systematic study of how prompt style affects length generalization is also left as future work.
- Evident from the text: the experiments focus on two synthetic algorithmic tasks and LaMDA decoder-only models, so the findings may not directly transfer to broader natural reasoning tasks or other architectures.
Model-written summary. Check it against the paper before relying on it.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
11 of 12 cited sources checked · 7 supported · 0 flagged · accuracy not yet measured
- Findingcitation§ 2 Length Generalization · p. 3
Real-world datasets often contain few long problem instances.
“real-world datasets often contain few long instances (see Figure 2).”
- Also stated in: § Contributions Our main contributions are as follows: · p. 3 · plain
“Real world datasets have heavy tails in length: (left) Histogram of lengths for proofs presented in the Archive of Formal Proofs (right) Histogram of the number of tokens for solutions in the MATH dataset. [6]”
Quote in the paperNot a substantial claim1 of 1 sources checked- cites [6] [6] Dan Hendrycks, Collin Burns, Saurav Kadavath, Akul Arora, Steven Basart, Eric Tang, Dawn Song, and Jacob Steinhardt. Measuring mathematical problem solving with the math dataset. arXiv preprint arXiv:2103.03874 , 2021. - source
The Introduction (p. 1) describes the MATH dataset, and A.4 Difficulty Analysis (p. 14) compares the difficulty of long and short problems. Neither reports how frequently long instances occur in real-world datasets. Searches for “few long instances” and problem-length distributions found no passage addressing that claim. (LLM, conf=0.74)
Experimental — accuracy not yet measured
- Also stated in: § Contributions Our main contributions are as follows: · p. 3 · plain
- Findingown data§ Contributions Our main contributions are as follows: · p. 2
Finetuning with scratchpad also fails to generalize to longer problems.
“We establish finetuning with scratchpad also fails to generalize to longer problems, in contrast to what is suggested by previous works [3].”
- Also stated in: § 4 Scratchpad Finetuning Still Fails at Length Generalization · p. 6 · plain
“we find that scratchpad finetuning suffers from similar length generalization pathologies than vanilla finetuning does.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [3] [3] Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, David Bieber, David Dohan, Aitor Lewkowycz, Maarten Bosma, David Luan, et al. Show your work: Scratchpads for intermediate computation with language models. arXiv preprint arXiv:2112.00114 , 2021. - source
- Also stated in: § 4 Scratchpad Finetuning Still Fails at Length Generalization · p. 6 · plain
- Premisecitation§ 4 Scratchpad Finetuning Still Fails at Length Generalization · p. 6
LaMDA models use T5 position biases to handle position information.
“LaMDA models use T5 position biases [16] to handle position information.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [16] [16] Colin Raffel, Noam Shazeer, Adam Roberts, Katherine Lee, Sharan Narang, Michael Matena, Yanqi Zhou, Wei Li, and Peter J Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. arXiv preprint arXiv:1910.10683 , 2019. - source
- Premisecitation§ 4 Scratchpad Finetuning Still Fails at Length Generalization · p. 6
Nye et al. [15] use scratchpad finetuning to achieve strong in-distribution performance on execution-based tasks such as code execution and computing polynomials.
“Nye et al. [15] use scratchpad finetuning to achieve strong in-distribution performance on execution based tasks such as code execution and computing polynomials.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [15] [15] Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, David Bieber, David Dohan, Aitor Lewkowycz, Maarten Bosma, David Luan, et al. Show your work: Scratchpads for intermediate computation with language models. arXiv preprint arXiv:2112.00114 , 2021. - source
- Findingcitation§ 7 Conclusion · p. 9
Unlike raw finetuning, few-shot scratchpad prompting scales with model size.
“Unlike raw finetuning, this approach does scale with model size [4].”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [4] [4] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models, 2022. URL https://arxiv.org/abs/2201.11903 . - source
The Results (p. 4) report that few-shot chain-of-thought prompting gains performance as model size increases, with gains emerging around 100B parameters. The Discussion (p. 8) contrasts its scaling with standard prompting, not raw finetuning; our copy does not establish that raw finetuning fails to scale. (LLM, conf=0.86)
Experimental — accuracy not yet measured
- Premisecitation§ 5 Scratchpad Prompting Significantly Improves Length Generalization · p. 7
Wei et al. [4], Nye et al. [15] and Lewkowycz et al. [5] showed that combining prompting (in-context learning) with scratchpad strategies presents a powerful combination.
“Wei et al. [4], Nye et al. [15] and Lewkowycz et al. [5] showed that combining prompting (i.e. in-context learning) with scratchpad strategies present a powerful combination.”
Quote in the paperSubstantial claim3 of 3 sources checked- cites [4] [4] Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. Chain of thought prompting elicits reasoning in large language models, 2022. URL https://arxiv.org/abs/2201.11903 . - source
- cites [15] [15] Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, David Bieber, David Dohan, Aitor Lewkowycz, Maarten Bosma, David Luan, et al. Show your work: Scratchpads for intermediate computation with language models. arXiv preprint arXiv:2112.00114 , 2021. - source
- cites [5] [5] Aitor Lewkowycz, Anders Andreassen, David Dohan, Ethan Dyer, Henryk Michalewski, Vinay Ramasesh, Ambrose Slone, Cem Anil, Imanol Schlag, Theo Gutman-Solo, et al. Solving quantitative reasoning problems with language models. arXiv preprint arXiv:2206.14858 , 2022. - source
- Findingown data§ Abstract · p. 1
Naively finetuning transformer-based language models on length generalization tasks shows significant generalization deficiencies independent of model scale.
“We first establish that naively finetuning transformers on length generalization tasks shows significant generalization deficiencies independent of model scale.”
- Also stated in: § 3.1 Scale Doesn't Improve Length Generalization · p. 4 · plain
“We find that model scale has a little effect on length generalization.”
Quote in the paperSubstantial claim - Also stated in: § 3.1 Scale Doesn't Improve Length Generalization · p. 4 · plain
- Findingown data§ 3.2 Transformers Prefer Parallel Strategies over Sequential Ones · p. 5
Computational graph depth captures the difficulty of variable assignment problem instances better than the number of program operations.
“We again observed that a different notion of length (which we call computational graph depth ) captures the difficulty of problem instances better than number of program operations.”
- Also stated in: § 3.2 Transformers Prefer Parallel Strategies over Sequential Ones · p. 5 · hedged
“We present two results that suggest that computational graph depth is a more relevant notion of length for transformers.”
Quote in the paperSubstantial claim - Also stated in: § 3.2 Transformers Prefer Parallel Strategies over Sequential Ones · p. 5 · hedged
- Findingown data§ Contributions Our main contributions are as follows: · p. 2
In the finetuning regime, scaling data, model sizes, and compute does not improve length generalization.
“We find that in the finetuning regime, scaling data, model sizes, and compute does not improve length generalization (Section 3.1).”
- Also stated in: § 3.1 Scale Doesn't Improve Length Generalization · p. 4 · plain
“We find that model scale has a little effect on length generalization.”
Quote in the paperSubstantial claim - Also stated in: § 3.1 Scale Doesn't Improve Length Generalization · p. 4 · plain
- Findingown data§ 2.1 Tasks · p. 3
The number of 1s in the parity task appears to capture a more relevant notion of length for transformer models than the number of bits.
“The number of 1 s stands for the number of state changes contained in the input bit-string, and actually appears to capture a more relevant notion of length for transformer models (see Section 3.1).”
Quote in the paperSubstantial claim - Findingown data§ Contributions Our main contributions are as follows: · p. 2
Even when a finetuned model attains perfect in-distribution accuracy, it performs poorly in out-of-distribution domains on length generalization tasks.
“We also observe that even when the model attains perfect in-distribution accuracy, it performs poorly in out-of-distribution domains.”
Quote in the paperSubstantial claim - Findingnone given§ 7 Conclusion · p. 9
Trying to further enhance the performance of few-shot scratchpad prompted LLMs via finetuning yields mixed results, depending on the non-finetuned performance of the base model at the target task.
“Trying to further enhance the performance of few-shot scratchpad prompted LLMs via finetuning yields mixed results, depending on the non-finetuned performance of the base model at the target task.”
Quote in the paperSubstantial claim - Findingown data§ F Distractor Analysis for Scratchpad Strategies · p. 17
Distracting input tokens hurt length generalization performance more than distracting scratchpad tokens.
“The distracting input tokens are hurt length generalization performance more.”
Quote in the paperSubstantial claim - Findingreasoning§ 7 Conclusion · p. 9
Few-shot scratchpad prompting leads to dramatic improvements on longer problem instances.
“leading to dramatic improvements on longer problem instances.”
Quote in the paperSubstantial claim - Findingown data§ 5.1 Few-shot scratchpad · p. 7
With the right scratchpad prompt, LLMs are able to generate correct scratchpad solutions.
“We find that with the right scratchpad prompt, LLMs are able to generate correct scratchpad solutions.”
Quote in the paperSubstantial claim - Findingown data§ B Baseline for Vanilla Finetuning on Variable Assignment · p. 14
On out-of-distribution data, the performance of the shuffled-ops baseline is on par with the models trained with the clean version of the variable assignment dataset.
“On OOD data, the performance of the shuffled-ops baseline is on par with the models trained with the clean version of the dataset.”
Quote in the paperSubstantial claim - Findingreasoning§ F Distractor Analysis for Scratchpad Strategies · p. 16
Length generalization pathologies persist even when using the padded scratchpad strategy.
“length generalization pathologies persist even when we use the padded scratchpad strategy”
Quote in the paperSubstantial claim - Findingown data§ 3.2 Transformers Prefer Parallel Strategies over Sequential Ones · p. 5
Performance of the trained transformer on variable assignment is strongest on examples with small computational graph depth, even if these examples are long in terms of number of operations.
“Inspecting the order of problem instances in which the trained transformer correctly solves this task, we find that performance is strongest on examples with small computational graph depth, even if these examples are long in terms of number of operations.”
Quote in the paperSubstantial claim - Findingnone given§ D Computational Graph Depth is the Relevant Notion of Difficulty on Variable Assignment · p. 16
Transformers initially pick up how to handle programs with a small computational graph depth throughout training and then move to more difficult programs.
“Transformers initially pick up how to handle programs with a small computational graph depth throughout training and then move to more difficult programs.”
Quote in the paperNot a substantial claim - Findingown data§ 5 Scratchpad Prompting Significantly Improves Length Generalization · p. 7
Scratchpad prompting endows pretrained LLMs with the capability of variable length template matching.
“We corroborate these findings, and report that scratchpad prompting endows pretrained LLMs with the capability of variable length template matching (see Figure 8).”
Quote in the paperSubstantial claim - Findingown data§ 3.2 Transformers Prefer Parallel Strategies over Sequential Ones · p. 5
The transformer does a good job of handling programs with an out-of-distribution number of operations, but for which computational graph depth is in-distribution.
“The transformer does a good job of handling programs with an out-of-distribution number of operations, but for which computational graph depth is in-distribution.”
Quote in the paperSubstantial claim - Findingreasoning§ Exemplars (x3) · p. 8
The few-shot finetuned model on the alternative synthetic prompt style for the coin-flip task shows significant length generalization pathologies.
“we observed that the few-shot finetuned model on this task also shows significant length generalization pathologies.”
- Also stated in: § E Effect of Prompt Style on Few-Shot Finetuning Performance · p. 16 · plain
“the few-shot finetuned performance shows significant length generalization pathologies.”
Quote in the paperSubstantial claim - Also stated in: § E Effect of Prompt Style on Few-Shot Finetuning Performance · p. 16 · plain
- Findingown data§ 3.3 In-Distribution Generalization Doesn't Predict OOD Generalization on Length Generalization Tasks · p. 6
The distribution shift induced by changing problem lengths falls outside the category where in-distribution loss predicts out-of-distribution generalization.
“Our experiments on the parity task indicate that the distribution shift induced by changing problem lengths falls outside of the this category.”
Quote in the paperSubstantial claim - Findingown data§ 7 Conclusion · p. 9
Generalizing in length is a challenge for language models at least up to the 100B parameter scale.
“Generalizing in length is a challenge for language models at least up to the 100B parameter scale.”
Quote in the paperSubstantial claim - Findingown data§ F Distractor Analysis for Scratchpad Strategies · p. 17
Removing all distractor tokens results in perfect length generalization.
“Removing all distractor tokens does result in perfect length generalization.”
Quote in the paperSubstantial claim - Findingown data§ Exemplars (x3) · p. 8
Few-shot finetuning with scratchpad performs significantly better than the baseline model on both in- and out-of-distribution lengths for parity.
“We find that the answer is yes in the case of parity. As seen in Figure 7, few-shot finetuning performs significantly better than the baseline model, both on in- and out-of-distribution lengths.”
Quote in the paperSubstantial claim - Findingreasoning§ Exemplars (x3) · p. 8
On the variable assignment task, length generalization is not strong with no finetuning.
“that's not the case for variable assignment”
Quote in the paperSubstantial claim - Findingown data§ Exemplars (x3) · p. 8
On the parity task, length generalization is already strong with no finetuning.
“while length generalization is already strong with no finetuning on parity”
Quote in the paperSubstantial claim - Findingown data§ 1 Introduction · p. 2
There are non-trivial interactions among finetuning, few-shot prompting, and scratchpad techniques.
“Interestingly, we observe non-trivial interactions among the three techniques; see Table 1.”
Quote in the paperSubstantial claim - Findingown data§ Exemplars (x3) · p. 8
On the variable assignment task, few-shot finetuning and vanilla finetuning result in similar length generalization behavior.
“Both few-shot finetuning and vanilla finetuning result in similar length generalization behavior (Figure 7).”
Quote in the paperSubstantial claim - Findingown data§ 7 Conclusion · p. 9
Few-shot scratchpad prompting enables pretrained large language models to pick up scratchpad-templates that extrapolate to arbitrary lengths.
“Few-shot scratchpad prompting enables pretrained large language models to pick up scratchpad-templates that extrapolate to arbitrary lengths”
Quote in the paperSubstantial claim - Interpretationown data§ Contributions Our main contributions are as follows: · p. 2
Distractors are the main culprit of failures for length generalization in scratchpad finetuning.
“We look into three potential failure cases: positional encoding, the presence of distractors, and end of token prediction, and conclude that distractors are the main culprit of failures for length generalization (Section 4).”
Quote in the paperSubstantial claim - Interpretationown data§ 3.2 Transformers Prefer Parallel Strategies over Sequential Ones · p. 5
When presented with sequential length generalization problems, transformers are biased toward learning non-sequential 'shortcut' solutions that fail at longer problem instances.
“The results presented in Section 3.1 establish that, when presented with sequential length generalization problems, transformers are biased toward learning non-sequential 'shortcut' solutions that fail at longer problem instances.”
Quote in the paperSubstantial claim - Interpretationreasoning§ Contributions Our main contributions are as follows: · p. 2
For LLMs, certain skills, like length generalization, can be learned through in-context learning rather than through finetuning even in the presence of infinite data.
“This capability is significant, as it implies that for LLMs, there are certain skills, like length generalization, that can be learned through in-context learning rather than through finetuning even in the presence of infinite data.”
Quote in the paperSubstantial claim - Interpretationreasoning§ 3.2 Transformers Prefer Parallel Strategies over Sequential Ones · p. 5
The non-sequential counting strategy does not allow for knowledge transfer between problems of different lengths.
“This strategy doesn't allow for knowledge transfer between problems of different lengths.”
Quote in the paperSubstantial claim - Interpretationown data§ 3.2 Transformers Prefer Parallel Strategies over Sequential Ones · p. 5
Transformers are learning a non-sequential solution on parity that involves counting the number of ones in the input and then thresholding the output.
“This suggests that the transformers are learning a non-sequential solution that involves counting the number of ones in the input, and then thresholding the output.”
Quote in the paperSubstantial claim - Interpretationown data§ D Computational Graph Depth is the Relevant Notion of Difficulty on Variable Assignment · p. 15
Computational graph depth captures a more relevant notion of difficulty on the variable assignment task for transformers.
“Computational graph depth captures a more relevant notion of difficulty on the variable assignment task for transformers.”
Quote in the paperSubstantial claim - Interpretationnone given§ 7 Conclusion · p. 9
The lack of length generalization in vanilla finetuning and finetuning with scratchpads is caused by models' tendency to pick up non-sequential patterns that don't apply to longer problem instances.
“caused by models' tendency to pick up non-sequential pattern that don't apply to longer problem instances.”
Quote in the paperSubstantial claim - Interpretationown data§ D Computational Graph Depth is the Relevant Notion of Difficulty on Variable Assignment · p. 16
It is not the number of operations, but computational graph depth that captures a more relevant notion of difficulty on the variable assignment task.
“it's not the number of operations, but computational graph depth that captures a more relevant notion of difficulty.”
Quote in the paperSubstantial claim - Interpretationnone given§ B Baseline for Vanilla Finetuning on Variable Assignment · p. 15
The primary source of lack of length generalization is transformers' tendency to prefer parallel strategies that don't generalize to larger lengths over picking up sequential algorithms.
“the primary source of lack of length generalization is the transformers' tendency to prefer parallel strategies that don't generalize to larger lengths over picking up sequential algorithm”
Quote in the paperNot a substantial claim - Interpretationreasoning§ 7 Conclusion · p. 9
For LLMs, certain skills, like length generalization, can be learned better through in-context learning rather than through finetuning, even in the presence of infinite data.
“This capability is also significant in that it implies that for LLMs, there are certain skills, like length generalization, that can be learned better through in-context learning rather than through finetuning, even in the presence of infinite data.”
Quote in the paperSubstantial claim - Interpretationown data§ F Distractor Analysis for Scratchpad Strategies · p. 17
Innovations in transformer architectures and/or training methodology/objective that alleviate the issues caused by distractor tokens have a chance at significantly improving length generalization.
“innovations in transformer architectures and/or training methodology/objective that alleviate the issues caused by distractor tokens have a chance at significantly improving length generalization.”
Quote in the paperSubstantial claim
- Classified as probably not a substantial claim. 2
- May combine two claims. 12
Classified as probably not a substantial claim.
Premisecitation§ 3.3 In-Distribution Generalization Doesn't Predict OOD Generalization on Length Generalization Tasks · p. 6Prior work establishes that in many tasks, in-distribution loss is a strong predictor of out-of-distribution generalization.
“Prior work on out-of-distribution generalization establishes that in many tasks, in-distribution loss is a strong predictor of out-of-distribution generalization [14].”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [14] [14] Vaishnavh Nagarajan, Anders Andreassen, and Behnam Neyshabur. Understanding the failure modes of out-of-distribution generalization. arXiv preprint arXiv:2010.15775 , 2020. - source
The Introduction (p. 1) describes minimizing in-distribution training loss, while Section 3 (p. 4) shows an example in which an ERM classifier’s out-of-distribution accuracy deteriorates. Neither passage assesses whether in-distribution loss is a strong predictor of out-of-distribution generalization across many tasks. Searches for that relationship and for loss–accuracy correlations found no passage establishing the attributed claim. (LLM, conf=0.72)
Experimental — accuracy not yet measured
Classified as probably not a substantial claim. May combine two claims.
Premisecitation§ 4 Scratchpad Finetuning Still Fails at Length Generalization · p. 6Newman et al. [17] report that networks trained with EOS token prediction often suffer from generalizing to longer problem instances, because of the models' tendency to emit EOS tokens prematurely, as well as the EOS tokens' effect on the representations that get learned.
“Similarly, Newman et al. [17] report that networks trained with EOS token prediction often suffer from generalizing to longer problem instances, because of the models' tendency to emit EOS tokens prematurely, as well as the EOS tokens' effect on the representations that get learned.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [17] [17] Benjamin Newman, John Hewitt, Percy Liang, and Christopher D Manning. The eos decision and length extrapolation. arXiv preprint arXiv:2010.07174 , 2020. - source
May combine two claims.
Premisecitation§ 5 Scratchpad Prompting Significantly Improves Length Generalization · p. 7Pretrained LLMs, without finetuning, can solve grade school math word problems and execute pieces of code with nontrivial correctness when prompted with the right scratchpad strategy.
“They demonstrate that pretrained LLMs, without the help of any finetuning, can solve grade school math word problems and execute pieces of code with nontrivial correctness [15], when prompted with the right scratchpad strategy.”
Quote in the paperSubstantial claim1 of 1 sources checked- cites [15] [15] Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, David Bieber, David Dohan, Aitor Lewkowycz, Maarten Bosma, David Luan, et al. Show your work: Scratchpads for intermediate computation with language models. arXiv preprint arXiv:2112.00114 , 2021. - source
Section 5.1 reports that few-shot scratchpad prompting improved execution accuracy on synthetic Python programs from 11% to 26.5%, supporting the code-execution part without fine-tuning. The paper does not report solving grade-school math word problems: its math experiments concern integer addition (§3) and polynomial evaluation (§4). Its results therefore do not support that part of the claim. (LLM, conf=0.89)
Experimental — accuracy not yet measured
May combine two claims.
Findingown data§ Contributions Our main contributions are as follows: · p. 2Different hyperparameter choices for finetuning have a large effect on length generalization performance, while having minimal effect on final in-distribution performance.
“Surprisingly, different hyperparameter choices for finetuning have a large effect on length generalization performance, while having minimal effect on the final in-distribution performance (Section 3.3).”
- Also stated in: § 3.3 In-Distribution Generalization Doesn't Predict OOD Generalization on Length Generalization Tasks · p. 6 · plain
“Figure 5 shows how the same model trained on the same data achieving roughly the same in-distribution cross entropy loss behaves on OOD data, where the difference is solely induced by the choice of different hyperparameters.”
Quote in the paperSubstantial claim- Also stated in: § 3.3 In-Distribution Generalization Doesn't Predict OOD Generalization on Length Generalization Tasks · p. 6 · plain
May combine two claims.
Findingown data§ Contributions Our main contributions are as follows: · p. 2In the in-context learning regime, use of a scratchpad shows qualitatively different behavior and significantly alleviates the decay of performance on longer problems.
“We show that in the in-context learning regime, use of a scratchpad shows a qualitatively different behavior and significantly alleviates the decay of performance on longer problems.”
- Also stated in: § 5 Scratchpad Prompting Significantly Improves Length Generalization · p. 7 · boosted
“Scratchpad Prompting Significantly Improves Length Generalization”
Quote in the paperSubstantial claim- Also stated in: § 5 Scratchpad Prompting Significantly Improves Length Generalization · p. 7 · boosted
May combine two claims.
Findingown data§ Exemplars (x3) · p. 8The vanilla (no-shot) finetuning baseline outperforms the no-finetuning baseline but does worse on larger lengths, a pathology that doesn't appear with few-shot finetuning.
“Note that the vanilla (i.e. no shot) finetuning baseline also outperforms the no-finetuning baseline, it actually does worse on the larger lengths - a pathology that doesn't appear with few-shot finetuning.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 1 Introduction · p. 2Each technique (finetuning, prompting, scratchpad) and combinations thereof have different modes of failure and present different trade-offs regarding in- and out-of-distribution coverage.
“We find that each technique (and the combinations thereof) have different modes of failure and present different trade-offs regarding in and out-of-distribution coverage.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 4 Scratchpad Finetuning Still Fails at Length Generalization · p. 7The per-step error rates of the LaMDA 128b model, few-shot finetuned on the coin-flip version of the parity task, remain roughly constant across scratchpad steps, in contrast to zero-shot scratchpad finetuned models where per-step error rates increase abruptly on OOD lengths.
“The per-step error rates of the LaMDA 128b model, few-shot finetuned on the coin-flip version of the parity task remain roughly constant across the scratchpad steps. This is in stark contrast with zero-shot scratchpad finetuned models, where the per-step error rates increase abruptly when the model is evaluated on OOD lengths.”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 4 Scratchpad Finetuning Still Fails at Length Generalization · p. 6Padding input bit-strings and scratchpad content with dummy padding tokens to equalize token count and aligning T5 position bias bins helps but does not eliminate significant length generalization issues in scratchpad finetuning.
“While this intervention helps, the trained models still display significant length generalization issues.”
Quote in the paperSubstantial claimMay combine two claims.
Findingreasoning§ 7 Conclusion · p. 9Both vanilla finetuning and finetuning with scratchpads suffer from a lack of length generalization.
“Both vanilla finetuning and finetuning with scratchpads suffer from a lack of length generalization”
Quote in the paperSubstantial claimMay combine two claims.
Premisecitation§ 3.2 Transformers Prefer Parallel Strategies over Sequential Ones · p. 5Self-attention is an equivariant transformation capable of performing pooling operations like max-pooling.
“This is not surprising, given that self-attention is an equivariant transformation capable of performing pooling operations like max-pooling [12].”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [12] [12] Juho Lee, Yoonho Lee, Jungtaek Kim, Adam Kosiorek, Seungjin Choi, and Yee Whye Teh. Set transformer: A framework for attention-based permutation-invariant neural networks. In International Conference on Machine Learning , pages 3744-3753. PMLR, 2019. - source
Checked before — its earlier verdict is held back until a new check runs.
May combine two claims.
Interpretationown data§ 4 Scratchpad Finetuning Still Fails at Length Generalization · p. 6If the input length is out-of-distribution, even in-distribution scratchpad steps are inaccurate, implying the model hasn't learned an attention pattern that generalizes to longer bit-strings.
“The fact that the model makes mistakes in in-distribution scratchpad steps when the input has an OOD length implies that the attention mechanism isn't capturing the relevant part of the input to form the scratchpad output.”
- Also stated in: § 4 Scratchpad Finetuning Still Fails at Length Generalization · p. 7 · plain
“If the input length is out-of-distribution, even in-distribution scratchpad steps are inaccurate, implying the model hasn't learned an attention pattern that generalizes to longer bit-strings.”
Quote in the paperSubstantial claim- Also stated in: § 4 Scratchpad Finetuning Still Fails at Length Generalization · p. 7 · plain
May combine two claims.
Interpretationown data§ F Distractor Analysis for Scratchpad Strategies · p. 16Untrained position encodings and/or EOS token prediction are not the cause of the length generalization pathologies.
“it's not untrained position encodings and/or the EOS token prediction that causes the aforementioned pathologies.”
Quote in the paperSubstantial claim
The paper relies on this without support.
Learning an algorithm can in principle enable a model to extrapolate from short examples to problems of arbitrary length.
“We consider problems in which learning an algorithm can in principle enable a model to extrapolate from short examples to problems of arbitrary length.”
The paper relies on this without support.
The parity and variable assignment tasks capture the relevant structure of length generalization in real-world tasks.
“These problems are illuminating because their simplicity allows us to probe the failure modes as well as contrast the learned solutions with the ground truth algorithm.”
“These tasks avoid problem-specific subtleties that could mislead our analyses, while strongly capturing the deterministic Markov process structure.”
The paper relies on this without support.
Length can be characterized as the number of state transitions in a deterministic Markov process across a wide range of sequence problems.
“we take the approach of characterizing length in the context of a deterministic Markov process . From this perspective, length is simply the number of state transitions experienced by an initial world state.”
The paper relies on this without support.
The parity task admits a sequential solution that enables length generalization in a straightforward way.
“The parity task admits a sequential solution that enables length generalization in a straightforward way: simply process the bits left-to-right and record the parity of the bits processed so far as the state.”
The paper relies on this without support.
The Boolean Variable Assignment task captures arbitrarily long, potentially branching unidirectional execution flows.
“The Boolean Variable Assignment task is designed to capture arbitrarily long, potentially branching unidirectional execution flows.”
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
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).”
From What Algorithms can Transformers Learn? A Study in Length Generalization (2023) · cites this paper as Anil et al., 2022
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 measuredPretrained 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).”
From What Algorithms can Transformers Learn? A Study in Length Generalization (2023) · cites this paper as Anil et al., 2022
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 measuredTo learn a model that can effectively generalize to longer problems, it is important to consider architectures that can adaptively adjust the computational budget to the difficulty of the tasks.
“To learn a model that can effectively generalize to longer problems, it is important to consider architectures that can adaptively adjust the computational budget to the difficulty of the tasks (Anil et al., 2022;Du et al., 2022;2024).”
From Looped Transformers for Length Generalization (2024) · cites this paper as Anil et al., 2022
Section 2 (p. 3) says longer problem instances require more compute, and Section 5.1 (p. 7) describes scratchpad solutions with a step for each operation. But the paper does not recommend architectures that adaptively adjust computational budgets; its Conclusion (p. 9) emphasizes a length-generalization approach that does not require changing model architecture. (LLM, conf=0.82)
Experimental — accuracy not yet measuredEven the largest and latest LLMs trained on much of the existing text on the Internet still struggle with length generalization.
“However, even the largest and latest LLMs like Achiam et al. (2023) trained on much of the existing text on the Internet, still struggle with length generalization (Wu et al., 2023;Anil et al., 2022;Lee et al., 2024).”
From Looped Transformers for Length Generalization (2024) · cites this paper as Anil et al., 2022
The Conclusion (p. 9) says length generalization remains challenging for language models up to the 100B-parameter scale, and Section 3.1 (p. 4) reports weak extrapolation in the models tested. The paper does not establish the claim for the latest models cited in the sentence or for models trained on much of the Internet’s text; it also reports substantial improvements with few-shot scratchpad prompting. (LLM, conf=0.86)
Experimental — accuracy not yet measured
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.
Conflicting parity training-length ranges
MajorThe main text says the parity models were trained on bitstrings of length 10 to 21, while the dataset details give a training range of 3 to 20.
“the training distribution included randomly sampled bitstrings of length 10 to 21.”
“For training, we used lengths between 3 and 20 , and for validation/testing, we used lengths between 3 and 40 .”
Conflicting descriptions of baseline variable-assignment performance
MinorThe Figure 7 caption says the unfinetuned base model does not perform poorly on variable assignment. The accompanying discussion says its length generalization is not strong and that it must acquire a new skill through finetuning.
“On variable assignment, where the base model doesn't perform poorly, there's not a significant gap between few-shot finetuning and zero-shot finetuning with scrathpad.”
“while length generalization is already strong with no finetuning on parity, that's not the case for variable assignment. In the latter case, the model is forced to acquire a new skill via finetuning”
Cites
Language 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 1× · see citing works
“For example, [1] shows that even though scale helps with solving arithmetic problems, scale alone is likely insufficient for learning to solve instances of arbitrary lengths.”
BackgroundExploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., & Liu, P. J. (2019) · arXiv · doi:10.48550/arxiv.1910.10683 · Cited by 10,929 · cited 1× · see citing works
“LaMDA models use T5 position biases [16] to handle position information.”
MethodChain-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 16× · see citing works
“We study combinations of three kinds of techniques for LLMs: finetuning, few shot prompting (also referred to as in-context learning), and use of a scratchpad (also referred to as chain-of-thought), to understand the role of each method and the interplay among the three in length generalization.”
BackgroundMethodInfluentialChain-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
Evaluating 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
“The performance of OpenAI’s Codex model [18] on the variable assignment task is also provided.”
MethodSelf-citationAdafactor: Adaptive Learning Rates with Sublinear Memory CostPreprint
Shazeer, N., & Stern, M. (2018) · International Conference on Machine Learning · doi:10.48550/arxiv.1804.04235 · Cited by 1,410 · cited 1× · see citing works
“We use the AdaFactor optimizer [11] during finetuning, and tune the learning rate, batch size and dropout.”
MethodRight for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inference
McCoy, R. T., Pavlick, E., & Linzen, T. (2019) · Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/p19-1334 · Cited by 944 · cited 1× · see citing works
“McCoy et al. [32] show that transformer models that display strong performance in natural language inference can have superficial biases that fool them in systematic ways and proposes a framework to think about these biases.”
BackgroundLaMDA: Language Models for Dialog Applications
Thoppilan, R., De Freitas, D., Hall, J., Shazeer, N., Kulshreshtha, A., Cheng, H.-T., Jin, A., Bos, T., Baker, L., Du, Y., et al. (2022) · arXiv · doi:10.48550/arxiv.2201.08239 · Cited by 778 · cited 1× · see citing works
“In experiments, we use pretrained networks from the LaMDA family [11], which are dense left-to-right decoder-only tranformer models.”
MethodSet Transformer: A Framework for Attention-based Permutation-Invariant Neural Networks
Lee, J., Lee, Y., Kim, J., Kosiorek, A. R., Choi, S., & Teh, Y. W. (2018) · arXiv · doi:10.48550/arxiv.1810.00825 · Cited by 691 · see citing works
Dehghani, M., Gouws, S., Vinyals, O., Uszkoreit, J., & Kaiser, Ł. (2018) · arXiv · doi:10.48550/arxiv.1807.03819 · Cited by 467 · cited 1× · see citing works
“Dehghani et al. [27] and Kaiser and Sutskever [28] assess the capabilities of their proposed architectures on easy-to-hard generalization problems.”
BackgroundProgram Synthesis with Large Language Models
Austin, J., Odena, A., Nye, M., Bosma, M., Michalewski, H., Dohan, D., Jiang, E., Cai, C., Terry, M., Le, Q., et al. (2021) · arXiv · doi:10.48550/arxiv.2108.07732 · Cited by 388 · cited 1× · see citing works
“Tasks that have a reasoning component are especially well represented in this category — multi-hop reasoning [7], program execution [8], deductive reasoning [9] and theorem proving [10], to name a few.”
BackgroundSolving 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 · see citing works
Self-citationMeasuring Mathematical Problem Solving With the MATH Dataset
Hendrycks, D., Burns, C., Kadavath, S., Arora, A., Basart, S., Tang, E., Song, D., & Steinhardt, J. (2021) · arXiv · doi:10.48550/arxiv.2103.03874 · Cited by 306 · see citing works
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
“Dehghani et al. [27] and Kaiser and Sutskever [28] assess the capabilities of their proposed architectures on easy-to-hard generalization problems.”
BackgroundFrom Local Structures to Size Generalization in Graph Neural Networks
Yehudai, G., Fetaya, E., Meirom, E., et al. (2020) · International Conference on Machine Learning · doi:10.48550/arxiv.2010.08853 · Cited by 190 · cited 1×
“Yehudai et al. [21] show that length generalization issues are also present in training graph neural networks, where extrapolating across graph size presents a challenge.”
BackgroundTransformers as Soft Reasoners over Language
Clark, P., Tafjord, O., & Richardson, K. (2020) · Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2020/537 · Cited by 176 · cited 1× · see citing works
“Tasks that have a reasoning component are especially well represented in this category — multi-hop reasoning [7], program execution [8], deductive reasoning [9] and theorem proving [10], to name a few.”
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 1× · see citing works
“[23] propose modifying transformer attention biases to facilitate generalization beyond the training context length.”
BackgroundUnlearn Dataset Bias in Natural Language Inference by Fitting the Residual
He, H., Zha, S., & Wang, H. (2019) · Workshop on Deep Learning Approaches for Low-Resource NLP (DeepLo) · doi:10.18653/v1/d19-6115 · Cited by 153 · cited 1× · see citing works
“[31] propose a method to learn natural inference models that are not biased on spurious correlations.”
MethodShow 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
“A recent line of work proposes to use a scratchpad, or chain-of-thought reasoning, when prompting LLMs [3, 4, 5] on multi-step tasks.”
BackgroundResultSelf-citationCorrecting Length Bias in Neural Machine Translation
Murray, K., & Chiang, D. (2018) · Proceedings of the Third Conference on Machine Translation: Research Papers · doi:10.18653/v1/w18-6322 · Cited by 133 · cited 1× · see citing works
“Murray and Chiang [20] demonstrate that neural machine translation models tend to have a bias towards generating shorter-than-desired translations.”
BackgroundUnveiling Transformers with LEGO: a synthetic reasoning taskPreprint
Zhang, Y., Backurs, A., Bubeck, S., et al. (2022) · arXiv.org · doi:10.48550/arxiv.2206.04301 · Cited by 118 · cited 1× · see citing works
“Concurrent work [24] propose a synthetic dataset named LEGO (Learning Equality and Group Operations), an instantiation of which resembles our variable assignment task where the only boolean operations allowed are assign and negate and assign , and overriding the values of variables is not allowed.”
BackgroundRight for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language InferencePreprint
McCoy, R. T., Pavlick, E., & Linzen, T. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1902.01007 · Cited by 86 · see citing works
McCoy, R. T., Frank, R., & Linzen, T. (2020) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00304 · Cited by 72 · cited 1× · see citing works
“[29] study the inductive bias of seq-to-seq learners on English question formation and English tense reinflection tasks and find that LSTM and GRU networks often display differing strategies, caused by the use of differing activation functions.”
BackgroundUnderstanding the Failure Modes of Out-of-Distribution Generalization
Nagarajan, V., Andreassen, A., & Neyshabur, B. (2020) · arXiv · doi:10.48550/arxiv.2010.15775 · Cited by 55 · cited 1× · see citing works
“Prior work on out-of-distribution generalization establishes that in many tasks, in-distribution loss is a strong predictor of out-of-distribution generalization [14].”
BackgroundSelf-citationImpact of Pretraining Term Frequencies on Few-Shot Reasoning
Razeghi, Y., Logan, R. L., Gardner, M., & Singh, S. (2022) · arXiv · doi:10.48550/arxiv.2202.07206 · Cited by 53 · cited 1× · see citing works
“Indeed, Razeghi et al. [2] showed that the performance of LLMs on mathematical calculations correlates with term frequency in the training data.”
BackgroundLSTM Networks Can Perform Dynamic Counting
Süzgün, M., Belinkov, Y., Shieber, S. M., & Gehrmann, S. (2019) · Proceedings of the Workshop on Deep Learning and Formal Languages: Building Bridges · doi:10.18653/v1/w19-3905 · Cited by 50 · cited 2× · see citing works
“Note that this bottom-up counting behaviour is complementary to the left-to-right counting behaviour displayed by recurrent models Suzgun et al. [13].”
BackgroundEnd-to-end Algorithm Synthesis with Recurrent Networks: Logical Extrapolation Without Overthinking
Bansal, A., Schwarzschild, A., Borgnia, E., et al. (2022) · arXiv.org · doi:10.48550/arxiv.2202.05826 · Cited by 38 · cited 1×
“Easy-to-Hard generalization: Schwarzschild et al. [25] and Bansal et al. [26] use weight-tied neural networks to generalize from easy to hard examples.”
BackgroundThe EOS Decision and Length Extrapolation
Newman, B., Hewitt, J., Liang, P., & Manning, C. D. (2020) · BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP (BlackboxNLP) · doi:10.18653/v1/2020.blackboxnlp-1.26 · Cited by 24 · cited 2× · see citing works
“Similarly, Newman et al. [17] report that networks trained with EOS token prediction often suffer from generalizing to longer problem instances, because of the models’ tendency to emit EOS tokens prematurely, as well as the EOS tokens’ effect on the representations that get learned.”
BackgroundDo Multi-hop Readers Dream of Reasoning Chains?
Wang, H., Yu, M., Guo, X., Das, R., Xiong, W., & Gao, T. (2019) · Workshop on Machine Reading for Question Answering (MRQA) · doi:10.18653/v1/d19-5813 · Cited by 22 · cited 1× · see citing works
“Tasks that have a reasoning component are especially well represented in this category — multi-hop reasoning [7], program execution [8], deductive reasoning [9] and theorem proving [10], to name a few.”
BackgroundThe EOS Decision and Length Extrapolation
Newman, B., Hewitt, J., Liang, P., & Manning, C. D. (2020) · arXiv · doi:10.48550/arxiv.2010.07174 · Cited by 22
Location Attention for Extrapolation to Longer Sequences
Dubois, Y., Dagan, G., Hupkes, D., et al. (2020) · Annual Meeting of the Association for Computational Linguistics (ACL) · doi:10.18653/v1/2020.acl-main.39 · Cited by 21 · cited 1× · see citing works
“Dubois et al. [19] proposes modifications to the commonly used dot-product attention to improve the models’ ability to extrapolate to longer sequences.”
BackgroundUnlearn Dataset Bias in Natural Language Inference by Fitting the ResidualPreprint
He, H., Zha, S., & Wang, H. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1908.10763 · Cited by 19 · see citing works
What they do when in doubt: a study of inductive biases in seq2seq learnersPreprint
Kharitonov, E., & Chaabouni, R. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2006.14953 · Cited by 17 · cited 1× · see citing works
“Kharitonov and Chaabouni [30] also study the inductive bias of different architectures, and conclude that transformer and LSTM architectural have a tendency to learn hierarchical strategies, whereas CNN based strategies display more linear structure.”
BackgroundCan You Learn an Algorithm? Generalizing from Easy to Hard Problems with Recurrent NetworksPreprint
Schwarzschild, A., Borgnia, E., Gupta, A. K., Huang, F., Vishkin, U., Goldblum, M., & Goldstein, T. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2106.04537 · Cited by 11 · cited 2× · see citing works
“Easy-to-Hard generalization: Schwarzschild et al. [25] and Bansal et al. [26] use weight-tied neural networks to generalize from easy to hard examples.”
BackgroundINT: An Inequality Benchmark for Evaluating Generalization in Theorem ProvingPreprint
Wu, Y., Jiang, A. Q., Ba, J. L., & Grosse, R. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2007.02924 · Cited by 8 · cited 1× · see citing works
“Tasks that have a reasoning component are especially well represented in this category — multi-hop reasoning [7], program execution [8], deductive reasoning [9] and theorem proving [10], to name a few.”
BackgroundSelf-citationStaircase Attention for Recurrent Processing of Sequences
Ju, D., Roller, S., Sukhbaatar, S., & Weston, J. (2022) · neural information processing systems · doi:10.52202/068431-0959 · Cited by 5 · cited 1× · see citing works
“[22] propose a new attention mechanism to facilitate recurrent processing in transformer models.”
BackgroundSrivastava (2014) · doi:10.5555/2627435.2670313
Correcting Length Bias in Neural Machine Translation
Murray, K., & Chiang, D. (2018) · arXiv · doi:10.48550/arxiv.1808.10006
Transformers as Soft Reasoners over Language
Clark, P., Tafjord, O., & Richardson, K. (2020) · arXiv · doi:10.48550/arxiv.2002.05867
Location Attention for Extrapolation to Longer Sequences
Dubois, Y., Dagan, G., Hupkes, D., et al. (2019) · arXiv · doi:10.48550/arxiv.1911.03872
Do Multi-hop Readers Dream of Reasoning Chains?
Wang, H., Yu, M., Guo, X., et al. (2019) · arXiv · doi:10.48550/arxiv.1910.14520
LSTM Networks Can Perform Dynamic Counting
Suzgun, M., Gehrmann, S., Belinkov, Y., et al. (2019) · arXiv · doi:10.48550/arxiv.1906.03648
Staircase Attention for Recurrent Processing of Sequences
Ju, D., Roller, S., Sukhbaatar, S., et al. (2021) · arXiv · doi:10.48550/arxiv.2106.04279
Flagged first, then by citations
Research works printed but not linked: 1
- [15][15] Maxwell Nye, Anders Johan Andreassen, Guy Gur-Ari, Henryk Michalewski, Jacob Austin, David Bieber, David Dohan, Aitor Lewkowycz, Maarten Bosma, David Luan, et al. Show your work: Scratchpads for intermediate computation with language models. arXiv preprint arXiv:2112.00114 , 2021. - · arXiv
Cited by
Sorted by citations
Towards Reasoning in Large Language Models: A Survey
Huang, J., & Chang, K. C.-C. (2023) · Findings of the Association for Computational Linguistics: ACL 2023 · doi:10.18653/v1/2023.findings-acl.67 · Cited by 428 · see citing works
Reasoning with Language Model Prompting: A Survey
Qiao, S., Ou, Y., Zhang, N., Chen, X., Yao, Y., Deng, S., Tan, C., Huang, F., & Chen, H. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.294 · Cited by 218 · 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 · see citing works
“[2] Cem Anil, Yuhuai Wu, Anders Johan Andreassen, Aitor Lewkowycz, Vedant Misra, Vinay Venkatesh Ramasesh, Ambrose Slone, Guy Gur-Ari, Ethan Dyer, and Behnam Neyshabur.”
BackgroundInfluentialA Survey of Deep Learning for Mathematical Reasoning
Lu, P., Qiu, L., Yu, W., Welleck, S., & Chang, K.-W. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.817 · Cited by 84 · see citing works
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
Olausson, T., Gu, A., Lipkin, B., Zhang, C., Solar-Lezama, A., Tenenbaum, J., & Levy, R. (2023) · Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/2023.emnlp-main.313 · Cited by 57 · see citing works
Probing the limitations of multimodal language models for chemistry and materials research
Alampara, N., Schilling-Wilhelmi, M., Ríos-García, M., Mandal, I., Khetarpal, P., Grover, H. S., Krishnan, N. M. A., & Jablonka, K. M. (2025) · Nature Computational Science · doi:10.1038/s43588-025-00836-3 · Cited by 54 · see citing works
“The entire benchmark was run five times, and the s.d. of the overall and topic-wise scores is used as the error bar to account for variability.”
LAMBADA: Backward Chaining for Automated Reasoning in Natural Language
Kazemi, M., Kim, N., Bhatia, D. S., Xu, X., & Ramachandran, D. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.361 · Cited by 34 · see citing works
Can transformers transform financial forecasting?
Souto, H. G., & Moradi, A. (2024) · China Finance Review International · doi:10.1108/cfri-01-2024-0032 · Cited by 27 · see citing works
ShapeGPT: 3D Shape Generation With a Unified Multi-Modal Language Model
Yin, F., Chen, X., Zhang, C., Jiang, B., Zhao, Z., Liu, W., Yu, G., & Chen, T. (2025) · IEEE Transactions on Multimedia · doi:10.1109/tmm.2025.3535389 · Cited by 40 · see citing works
“Then ShapeGPT utilizes T5 [39] as the language model and tokenizes shape-aware natural language paragraphs into tokens using the WordPiece method with the unigram language model [22].”
∞Bench: Extending Long Context Evaluation Beyond 100K Tokens
Zhang, X., Chen, Y., Hu, S., Xu, Z., Chen, J., Hao, M., Han, X., Thai, Z., Wang, S., Liu, Z., et al. (2024) · Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2024.acl-long.814 · Cited by 27 · see citing works
Testolin, A. (2024) · Applied Sciences · doi:10.3390/app14020744 · Cited by 24 · see citing works
“The related question of whether and how recurrent networks generalize to sequences longer than those encountered during training has also been of enduring interest, and definitive solutions to such challenging issue have not yet been found (Anil et al., 2022).”
BackgroundWhen Meta-Learning Meets Online and Continual Learning: A Survey
Son, J., Lee, S., & Kim, G. (2024) · IEEE Transactions on Pattern Analysis and Machine Intelligence · doi:10.1109/tpami.2024.3463709 · Cited by 24 · see citing works
Titans: Learning to Memorize at Test Time
Behrouz, A., Zhong, P., & Mirrokni, V. (2025) · arXiv · doi:10.48550/arxiv.2501.00663 · Cited by 24 · see citing works
“Furthermore, beyond efficiency, most existing architectures–ranging from Hopfield Networks [11] to LSTMs [12] and Transformers [1]–face challenges when dealing with generalization, length extrapolation, and/or reasoning [13, 14], all of which are inseparable parts of many hard real-world tasks.”
Supersonic: Learning to Generate Source Code Optimizations in C/C++
Chen, Z., Fang, S., & Monperrus, M. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3423769 · Cited by 21 · see citing works
“Meanwhile, although they do not affect the logical flow of the code, including comments makes the input program longer, which impacts negatively on the inference performance of the language model [28].”
BackgroundLearning long sequences in spiking neural networks
Stan, M.-I., & Rhodes, O. (2023) · Scientific Reports · doi:10.1038/s41598-024-71678-8 · Cited by 45 · see citing works
Beyond automation: Unveiling the potential of agentic intelligence
Tirulo, A., Yadav, M., Lolamo, M., Chauhan, S., Siano, P., & Shafie‐khah, M. (2025) · Renewable and Sustainable Energy Reviews · doi:10.1016/j.rser.2025.116218 · Cited by 16 · see citing works
Confounder balancing in adversarial domain adaptation for pre-trained large models fine-tuning
Jiang, S., Chen, Q., Xiang, Y., Pan, Y., Wu, X., & Lin, Y. (2024) · Neural Networks · doi:10.1016/j.neunet.2024.106173 · Cited by 11 · see citing works
Large language models reshaping molecular biology and drug development
Tripathi, S., Gabriel, K., Tripathi, P. K., & Kim, E. (2024) · Chemical Biology & Drug Design · doi:10.1111/cbdd.14568 · Cited by 13 · see citing works
“LLMs learn from enormous volumes of training data, which may unintentionally include biases (Anil et al., 2022; Liang et al., 2021).”
BackgroundOut-of-distribution generalization via composition: A lens through induction heads in Transformers
Song, J., Xu, Z., & Zhong, Y. (2025) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.2417182122 · Cited by 11 · see citing works
“Our copying task is an example of length generalization [6, 92].”
Ablahd, A. Z., Aloraibi, A. Q., & Dawwod, S. A. (2024) · Scalable Computing Practice and Experience · doi:10.12694/scpe.v25i5.3046 · Cited by 10 · see citing works
What Algorithms can Transformers Learn? A Study in Length Generalization
Zhou, H., Bradley, A., Littwin, E., Razin, N., Saremi, O., Susskind, J., Bengio, S., & Nakkiran, P. (2023) · arXiv · doi:10.48550/arxiv.2310.16028 · Cited by 10 · 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).”
BackgroundMethodSimplicity 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
Grounded Image Text Matching with Mismatched Relation Reasoning
Wu, Y., Wei, Y., Wang, H., et al. (2023) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51070.2023.00278 · Cited by 8 · see citing works
Self-citationSINC: Self-Supervised In-Context Learning for Vision-Language Tasks
Chen, Y.-S., Song, Y.-Z., Yeo, C. Y., Liu, B., Fu, J., & Shuai, H.-H. (2023) · IEEE/CVF International Conference on Computer Vision (ICCV) · doi:10.1109/iccv51070.2023.01415 · Cited by 7 · see citing works
Polat, E. N., Demiroğlu, C., Yıldız, O. T., & Kafesçioğlu, N. (2024) · IEEE Access · doi:10.1109/access.2024.3496867 · Cited by 7 · see citing works
Do Transformers Parse while Predicting the Masked Word?
Zhao, H., Panigrahi, A., Ge, R., & Arora, S. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.1029 · Cited by 6 · see citing works
Physics of Language Models: Part 2.1, Grade-School Math and the Hidden Reasoning ProcessPreprint
Tian, Y., Xu, Z., Li, Y., & Allen-Zhu, Z. (2025) · SSRN Electronic Journal · doi:10.2139/ssrn.5250629 · Cited by 6 · see citing works
Large Language Model on Multi-Modal Data
Aneja, A., Dhull, A., Singh, A., & Singh, K. K. (2025) · Springer eBooks · doi:10.1007/978-981-96-2355-6_3 · Cited by 5 · see citing works
Dissecting Transformer Length Extrapolation via the Lens of Receptive Field Analysis
Chi, T.-C., Fan, T.-H., Rudnicky, A., & Ramadge, P. (2023) · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2023.acl-long.756 · Cited by 5 · see citing works
Exploring Length Generalization for Transformer-Based Speech Enhancement
Zhang, Q., Zhu, H., Qian, X., et al. (2025) · IEEE Transactions on Audio Speech and Language Processing · doi:10.1109/taslpro.2025.3578755 · Cited by 4 · see citing works
“There have been attempts to explore it with Transformers in language modeling [16], [21], [49], machine translation, and image recognition [50].”
Future Office: A Comparative Study on the Acceptance and Utilization of Generative AI Technologies
Bies, L. M., Schmidt, S., Morana, S., & Werth, D. (2024) · International Conference on Artificial Intelligence, Computer, Data Sciences and Applications (ACDSA) · doi:10.1109/acdsa59508.2024.10467651 · Cited by 4 · see citing works
“Although these models were powerful in their time, they were computationally limited, a constraint overcome by the Transformer architecture's parallel processing and attention mechanisms [18], [20], [21].”
Methodde Wynter, A. (2024) · IEEE Transactions on Games · doi:10.1109/tg.2024.3497601 · Cited by 8 · see citing works
“Although CoT fails at tasks with deeper reasoning trees [17], and is not good at planning proofs [18], it served as a stepping stone for carefully designed approaches, such as PEARL [19], RAP [20], and k-level reasoning [21].”
Physics of Language Models: Part 2.2, How to Learn From Mistakes on Grade-School Math ProblemsPreprint
Ye, T., Xu, Z., Li, Y., & Allen-Zhu, Z. (2025) · SSRN Electronic Journal · doi:10.2139/ssrn.5250631 · Cited by 9 · see citing works
DSS: Synthesizing Long Digital Ink Using Data Augmentation, Style Encoding and Split Generation
Timofeev, A., Fadeeva, A., Afonin, A., et al. (2023) · Lecture notes in computer science · doi:10.1007/978-3-031-41685-9_14 · Cited by 3 · see citing works
“Previous studies in other domains suggest that deep neural networks tend to degrade in quality on long-form inputs [3,41].”
BackgroundSLOG: A Structural Generalization Benchmark for Semantic Parsing
Li, B., Donatelli, L. E., Koller, A., Linzen, T., Yao, Y., & Kim, N. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.194 · Cited by 5 · see citing works
Driver Drowsy and Yawn System Alert Using Deep Cascade Convolution Neural Network DCCNN
Abbood, Z. A., & Yonan, J. F. (2023) · Iraqi Journal for Computer Science and Mathematics · doi:10.52866/ijcsm.2023.04.04.010 · Cited by 4 · see citing works
“The generalizability of models can be enhanced in two ways, as suggested by [30]: by increasing the size of the dataset and by addressing generalization challenges.”
BackgroundLanguage Model-Based Player Goal Recognition in Open World Digital Games
Kim, Y. J., Goslen, A., Rowe, J., Mott, B., & Lester, J. C. (2023) · Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertainment · doi:10.1609/aiide.v19i1.27503 · Cited by 2 · see citing works
“2023), and reasoning-enhanced training and prompting using a hybrid approach (Lewkowycz et al. 2022; Chung et al. 2022; Anil et al. 2022).”
BackgroundMethodJoMA: Demystifying Multilayer Transformers via JOint Dynamics of MLP and Attention
Tian, Y., Wang, Y., Zhang, Z., Chen, B., & Du, S. (2023) · arXiv · doi:10.48550/arxiv.2310.00535 · Cited by 2 · see citing works
Chi, T.-C., Fan, T.-H., Rudnicky, A. I., & Ramadge, P. J. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.397 · Cited by 1 · see citing works
Toward Enhancing Reasoning Capabilities of LLMs: An Approach via Synthetic Logic Corpus
Morishita, T., Morio, G., Yamaguchi, A., & Sogawa, Y. (2025) · Journal of Natural Language Processing · doi:10.5715/jnlp.32.520 · Cited by 1 · see citing works
InstructExcel: A Benchmark for Natural Language Instruction in Excel
Payan, J., Mishra, S. R., Singh, M. P., Negreanu, C., Poelitz, C., Baral, C. R., Roy, S., Chakravarthy, R., Durme, B. V., & Nouri, E. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.265 · Cited by 2 · see citing works
Optimal RoPE extension via Bayesian Optimization for training-free length generalization
Zhang, X., Hu, S., Zhao, W., Wang, H., Han, X., He, C., Zeng, G., Liu, Z., & Sun, M. (2025) · AI Open · doi:10.1016/j.aiopen.2025.01.002 · Cited by 1 · see citing works
Language models need inductive biases to count inductively
Chang, Y., & Bisk, Y. (2024) · arXiv · doi:10.48550/arxiv.2405.20131
“It (Anil et al., 2022) or prompting (Zhou et al., 2022).”
BackgroundConfounder Balancing in Adversarial Domain Adaptation for Pre-Trained Large Models Fine-TuningPreprint
Jiang, S., Chen, Q., Xiang, Y., Pan, Y., Wu, X., & Lin, Y. (2023) · SSRN Electronic Journal · doi:10.2139/ssrn.4634734
NarrativeXL: a Large-scale Dataset for Long-Term Memory Models
Moskvichev, A., & Mai, K.-V. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.1005
Tool-augmented LLMs as a Universal Interface for IDEs
Zharov, Y., Khudyakov, Y., Fedotova, E., Grigorenko, E., & Bogomolov, E. (2024) · doi:10.1145/3643796.3648451
Kozachek, D. (2024) · SSRN Electronic Journal · doi:10.2139/ssrn.4767192
Xu, X., Pan, Z., Zhang, H., & Yang, Y. (2024) · International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2024/727
Extracting Moore Machines from Transformers Using Queries and Counterexamples
Adriaensen, R., & Maene, J. (2025) · Lecture notes in computer science · doi:10.1007/978-3-031-91398-3_31
Length Generalization Bounds for Transformers
Yang, A., Bergsträßer, P., Zetzsche, G., Chiang, D., & Lin, A. W. (2026) · Zenodo · doi:10.5281/zenodo.18800699
Looped Transformers for Length Generalization
Fan, Y., Du, Y., Ramchandran, K., & Lee, K. (2024) · arXiv · doi:10.48550/arxiv.2409.15647
- Authors
- Anil, C., Wu, Y., Andreassen, A., Lewkowycz, A., Misra, V., Ramasesh, V., Slone, A., Gur-Ari, G., Dyer, E., & Neyshabur, B.
- Affiliations
- Google (United States) (US)
- Venue
- arXiv
- Publisher
- arXiv
- Published
- 2022
- ISSN
- 2331-8422 (ISSN-L)
- arXiv
- 2207.04901
- OpenAlex
- W4320087317
- Semantic Scholar
- f843233f76a5dff07bfa93a71a1cf13d8aa6a94a
- Cited by
- 44
- References
- 33
- Citations by year
- 2025: 11 · 2024: 14 · 2023: 19
- Type
- posted content
- Language
- en
- Open access
- green
- arxiv.org
- Locations
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University) (cc-by)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
- Keywords
- length generalization, out-of-distribution generalization, large language models, transformer models, in-context learning, fine-tuning, failure analysis, mathematical reasoning, theorem proving
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