Cited by 139Syntax, Semantics, Linguistic VariationPhilosophy and Theoretical ScienceCybernetics and Technology in Society

Faith and Fate: Limits of Transformers on Compositionality

Open access
Dziri, Nouha, Lu, Ximing, Sclar, Melanie, Li, Xiang (Lorraine), Jiang, Liwei, Lin, Bill Yuchen, Welleck, Sean, West, Peter +8 more·2023·Advances in Neural Information Processing Systems 36

Abstract

Transformer large language models (LLMs) have sparked admiration for their exceptional performance on tasks that demand intricate multi-step reasoning. Yet, these models simultaneously show failures on surprisingly trivial problems. This begs the question: Are these errors incidental, or do they signal more substantial limitations? In an attempt to demystify transformer LLMs, we investigate the limits of these models across three representative compositional tasks -- multi-digit multiplication, logic grid puzzles, and a classic dynamic programming problem. These tasks require breaking problems down into sub-steps and synthesizing these steps into a precise answer. We formulate compositional tasks as computation graphs to systematically quantify the level of complexity, and break down reasoning steps into intermediate sub-procedures. Our empirical findings suggest that transformer LLMs solve compositional tasks by reducing multi-step compositional reasoning into linearized subgraph matching, without necessarily developing systematic problem-solving skills. To round off our empirical study, we provide theoretical arguments on abstract multi-step reasoning problems that highlight how autoregressive generations' performance can rapidly decay with\,increased\,task\,complexity.

AI snapshot

Written from the paper’s full text.

TL;DR

Transformer LLMs can achieve near-perfect in-domain accuracy on compositional tasks but fail sharply out-of-domain, often relying on linearized subgraph matching rather than systematic multi-step reasoning. The paper argues empirically and theoretically that error propagation makes autoregressive transformers increasingly unlikely to solve compositionally complex tasks as problem size grows.

Key findings

  • Off-the-shelf ChatGPT and GPT4 achieve only 55% and 59% accuracy on 3-digit by 3-digit multiplication, and zero-/few-shot performance declines to near zero as problem size or graph parallelism increases.
  • Fine-tuning GPT3 on task-specific question-answer or question-scratchpad data gives near-perfect in-domain performance but fails to generalize to out-of-domain deeper or wider computation graphs; grokking was not observed for multiplication after 420K question-answer steps or 30K scratchpad steps.
  • Models appear to reduce multi-step reasoning to linearized subgraph matching: full computation subgraphs appear more frequently in training for correctly predicted test examples, and 82.3% of final correct answers for 4-digit by 2-digit multiplications had at least one error in the computation graph.
  • Error analysis shows fully correct nodes decrease sharply with graph layer, propagation errors usually exceed local errors, and DP/puzzle tasks show high restoration errors; theoretical propositions show incorrect-prediction probability can converge exponentially to ≈1 as problem size increases under stated assumptions.

Methods

  • The paper formulates compositional tasks as computation graphs and measures complexity via reasoning depth, reasoning width, average parallelism, and relative information gain.
  • It studies three tasks—long-form multi-digit multiplication up to 5×5 digits, Einstein logic grid puzzles, and a dynamic-programming relaxation of maximum weighted independent set—evaluating GPT3, ChatGPT, GPT4, FlanT5, and LLaMA with zero-shot, few-shot, question-answer fine-tuning, and question-scratchpad fine-tuning; each task uses 500 test examples.
  • It complements experiments with theoretical analysis of error accumulation for independent and iterated applications of estimated functions.

Limitations

  • The paper states that scratchpad analysis can only establish correlation between model generation and preceding context because the authors lack access to model activations, and that alternative linearizations of reasoning may yield different performance.
  • The paper also states that compute budget constraints and limited access to the largest language models prevented pushing empirical limits further.
  • Evident from the text: fine-tuning is mainly on GPT3, grokking is tested only on multiplication, puzzle training uses a subset due to combinatorial explosion, and the theoretical results rely on assumptions such as independent errors, low collision, and c ≪ ϵ that may not hold generally.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

Crossref · 10.52202/075280-3081

Cites

82 of 82 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Claims the paper makes

0 of 41 cited sources checked · 0 supported · 0 flagged

  • Findingreasoning

    The prediction of the last digit (or two digits) of the output solely relies on the last digit (or two digits) of each input number.

    “Similarly, the prediction of the last digit (or two digits) of the output is observed to solely rely on the last digit (or two digits) of each input number.”
    Quote in the paperSubstantial claim
  • Findingown data

    The observation that models fail to learn component operations in a generalizable manner holds for all tasks.

    “This observation holds for all tasks (See details in § B.4).”
    Quote in the paperSubstantial claim
  • Findingown data

    In all settings, the ratio of fully correct nodes is almost perfect but sharply decreases toward zero with increasing graph layers.

    “In all settings, the ratio of fully correct nodes is almost perfect but sharply decreases toward zero with increasing graph layers.”
    Quote in the paperSubstantial claim
  • Findingown data

    The ratio of propagation errors is usually higher than the ratio of local errors.

    “Moreover, the ratio of propagation errors is usually higher than the ratio of local errors.”
    Quote in the paperSubstantial claim
  • Findingown data

    Performance sharply declines when evaluating unseen splits during training (out-of-domain) in multiplication and DP.

    “However, the performance sharply declines when evaluating unseen splits during training, i.e., out-of-domain (OOD).”
    Quote in the paperSubstantial claim
  • May combine two claims. 29
  • The quote only partly states this claim. 4
  • Classified as probably not a substantial claim. 25
  • May combine two claims.

    Findingown data

    GPT3 achieves near-perfect performance on in-distribution but fails entirely in generalizing to OOD cases, in particular wider or deeper computation graphs, when finetuned with question-scratchpad pairs.

    “The results, presented in Figure 5b, show that once again GPT3 achieves near-perfect performance on in-distribution, but fails entirely in generalizing to OOD cases-in particular, wider or deeper computation graphs.”
    Quote in the paperSubstantial claim
  • May combine two claims. The quote only partly states this claim.

    Findingown data

    Figure 6 shows that full computation subgraphs appear significantly more frequently in the training data for correctly predicted test examples than for incorrectly predicted ones, for both the multiplication and DP tasks.

    “Figure 6 shows that full computation subgraphs appear significantly more frequently in the training data for correctly predicted test examples than for incorrectly predicted ones”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    Both the DP and the puzzle tasks have a high ratio of restoration errors.

    “Both the DP and the puzzle tasks have a high ratio of restoration errors, suggesting memorization since correct outputs are produced despite incorrect computations.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    Off-the-shelf ChatGPT and GPT4 achieve only 55% and 59% accuracies on 3-digit by 3-digit multiplication, respectively.

    “Yet, off-the-shelf ChatGPT and GPT4 achieve only 55% and 59% accuracies on this task, respectively ( §3).”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    Models indeed learn the predicted patterns (e.g., first-digit correlation, last-digit dependence) and other patterns (e.g., order of magnitude, number of trailing zeros) in all settings with and without scratchpad.

    “Empirically, we verify that models indeed learn the patterns we predicted and other patterns as well (e.g., order of magnitude of the answer, number of trailing zeros for multiplication) in all the settings with and without scratchpad.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data

    Training on task-specific data leads to near-perfect performance on in-domain instances and under low compositional complexity, but fails drastically on instances outside of this region.

    “Empirical results show that training on task-specific data leads to near-perfect performance on indomain instances and under low compositional complexity, but fails drastically on instances outside of this region.”
    Quote in the paperSubstantial claim
    • Rests on an assumption: The three compositional tasks require breaking problems down into sub-steps and synthesizing these steps into a precise answer.
  • The quote only partly states this claim.

    Findingown data

    Task performances deteriorate significantly from near perfection to zero with increasing complexity when measured by either problem size or average parallelism.

    “task performances deteriorate significantly from near perfection to zero with increasing complexity”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingnone given

    Among the explored scratchpad variations, the scratchpad version depicted in Figure 9 ultimately produced the most favorable outcomes.

    “Among these variations, the scratchpad version depicted in Figure 9 ultimately produced the most favorable outcomes.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Findingnone given

    GPT3 often predicts shorter output sequences than the required size.

    “since GPT3 often predicts shorter output sequences than the required size”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    The results indicate a lack of generalization for out-of-domain examples while showing near-perfect performance for in-domain examples.

    “The results indicate a lack of generalization for out-of-domain (OOD) examples while showcasing near-perfect performance for in-domain examples.”
    Quote in the paperSubstantial claim
  • May combine two claims. The quote only partly states this claim.

    Findingown data

    On all tasks, GPT3 finetuned with question-scratchpad pairs fails to generalize to out-of-distribution data while achieving perfect accuracy on in-domain data.

    “On all tasks, we can see that the model fails to generalize to OOD data while achieving perfect accuracy on in-domain data”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingown data

    Fine-tuning GPT3 on question-scratchpad pairs leads to faster convergence than training on question-answer pairs.

    “We perform fine-tuning on GPT3 (text-davinci-003) for the three tasks, observing faster convergence when training on question-scratchpad pairs rather than question-answer pairs.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    o_i is highly predicted by both (a_{i-2}, a_{i-1}, a_i) and (a_i, a_{i+1}, a_{i+2}).

    “Moreover, o i is highly predicted by both (a i-2 , a i-1 , a i ) and (a i , a i+1 , a i+2 )”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Findingnone given

    The same trend applies for the rest of the models.

    “The same applies for the rest of the models.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based).

    Findingnone given

    Larger batch sizes tend to yield better results for larger datasets.

    “Generally, we observe that larger batch sizes tend to yield better results for larger datasets.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Findingown data

    In the puzzle task, the value of m is not fixed and depends on the task instance, but using solvers we know that m increases with problem size.

    “In contrast to other tasks, the value of m is not fixed, and depends on the task instance, but using solvers we know that m increases with problem size.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data

    a_i is a good predictor of o_i, especially for a1 and a_{n-1}.

    “As shown in Table 3, a i is a good predictor of o i , and this is especially true for a 1 and a n-1 , the first and last elements of the sequence.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationreasoning

    Proposition 4.1's proof shows the rate of convergence is exponential, thus transformers will rapidly fail with increasing n.

    “Prop. 4.1's proof ( §D.1) shows the rate of convergence is exponential, thus concluding that transformers will rapidly fail with increasing n.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationreasoning

    Under the assumptions of Proposition 4.1, P(f_n != f_n) decreases exponentially as n increases, with lim inf_{n->+∞} P(f_n != f_n) >= 1 - c.

    “This implies that P(f n ̸ = f n ) decreases exponentially as n increases, with lim inf n→+∞ P(f n ̸ = f n ) ≥ 1 -c.”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: In Proposition 4.1, h_n is a perfect estimator of h_n.
    • The authors state this as an assumption: In Proposition 4.1, h_n has low collision, with c_n being an upper bound of h_n's collision rate (c_n < c for all n, with c << 1).
    • The authors state this as an assumption: In Proposition 4.1, g's errors are independent.
  • Classified as probably not a substantial claim. May combine two claims.

    Premisecitation

    Shortcut learning via pattern-matching may yield fast correct answers when similar compositional patterns are available during training but does not allow for robust generalization to uncommon or complex examples.

    “Shortcut learning [29] via pattern-matching may yield fast correct answers when similar compositional patterns are available during training but does not allow for robust generalization to uncommon or complex examples.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites [29]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Classified as probably not a substantial claim.

    Interpretationnone given

    All tasks analyzed empirically in this paper are instantiations of these abstractions.

    “All tasks analyzed empirically in this paper are instantiations of these abstractions ( §4).”
    Quote in the paperSubstantial claim
    • Rests on an assumption: Human problem-solving skills can be represented as a graph structure where vertices are partial solutions and edges are operators that modify those solutions.
    • Rests on an assumption: Reasoning depth in a computation graph is a proxy for the maximum level of multi-hop reasoning required to solve the task.
  • May combine two claims.

    Interpretationreasoning

    Pattern-matching learning could be largely effective when the compositional complexity of tasks is low but becomes less efficient when tasks are increasingly complex.

    “This type of learning could be largely effective when the compositional complexity of tasks is low but it becomes less efficient when tasks are increasingly complex.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationreasoning

    Under the assumptions of Proposition 4.2, P(f_n != f_n) decreases exponentially with n, with lim inf_{n->+∞} P(f_n != f_n) >= 1 - c/(c + epsilon).

    “If P(g ̸ = g) = ϵ > 0, then P(f n ̸ = f n ) decreases exponentially with n. Precisely, P(f n ̸ = f n ) ≥ 1 -(1 -ϵ -c) n-1 (1 -ϵ -c/(c + ϵ)), implying lim inf n→+∞ P(f n ̸ = f n ) ≥ 1 -c/(c + ϵ).”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: In Proposition 4.2, the probability of recovering from a mistake due to the randomness of applying the estimator on an incorrect input is at most c.
  • May combine two claims.

    Interpretationown data

    Models are able to correctly perform single-step reasoning, potentially due to memorizing such single-step operations during training, but fail to plan and compose several of these steps for an overall correct reasoning.

    “Both phenomena suggest that models are able to correctly perform single-step reasoning, potentially due to memorizing such single-step operations during training, but fail to plan and compose several of these steps for an overall correct reasoning.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S2 (checkable), S3 (load-bearing).

    Premisecitation

    Applying step-by-step reasoning is fundamental to human intelligence.

    “Applying step-by-step reasoning is fundamental to human intelligence [69,68].”
    Quote in the paperNot a substantial claim0 of 2 sources checked
    • cites [69]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [68]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Interpretationown data

    The high ratio of restoration errors in the DP and puzzle tasks suggests memorization, since correct outputs are produced despite incorrect computations.

    “Both the DP and the puzzle tasks have a high ratio of restoration errors, suggesting memorization since correct outputs are produced despite incorrect computations.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S4 (based). May combine two claims.

    Interpretationnone given

    Propositions 4.1 and 4.2 apply to any high-performant estimator of reasoning tasks.

    “Note that Prop 4.1 and 4.2 apply to any high-performant estimator of reasoning tasks.”
    Quote in the paperNot a substantial claim
    • Rests on an assumption: The tasks evaluated are low collision settings.
  • May combine two claims.

    Interpretationreasoning

    The current configuration of transformers, with their reliance on a greedy process for predicting the next word, constrains their error recovery capability and impedes the development of a comprehensive global understanding of the task.

    “Our insights indicate that the current configuration of transformers, with their reliance on a greedy process for predicting the next word, constrains their error recovery capability and impedes the development of a comprehensive global understanding of the task.”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: The theoretical proofs' assumptions hold for the abstract compositional tasks and autoregressive language models considered.
  • Classified as probably not a substantial claim.

    Interpretationreasoning

    All tasks evaluated in the present work can be seen as instances of the results just proven.

    “All tasks evaluated in the present work can be seen as instances of the results just proven.”
    Quote in the paperSubstantial claim
    • Rests on an assumption: The tasks evaluated are low collision settings.
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Study design and conductown data

    Because GPT3 often does not produce the correct output size, it hinders analysis of o_{n-1}.

    “However, because GPT3 often does not produce the correct output size, it hinders us from analyzing o n-1 .”
    Quote in the paperNot a substantial claim
  • Classified as probably not a substantial claim.

    Study design and conductreasoning

    The limitation arises from the authors' lack of access to the activations of the studied models.

    “This limitation arises from our lack of access to the activations of the studied models.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Premisecitation

    Shallow transformers learn shortcuts during training, leading to poor out-of-domain generalization.

    “Liu et al., [45] found that shallow transformers learn shortcuts during training, leading to poor OOD generalization.”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites [45]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • May combine two claims.

    Premisecitation

    Transformers have been shown to struggle across multiple domains, including algorithmic reasoning, commonsense reasoning, theory of mind, planning, logical reasoning, and ethical reasoning.

    “However, these models have also been shown to struggle across multiple domains [32], including algorithmic reasoning [78], commonsense reasoning [62,40], theory of mind [65], planning [76], logical reasoning [70], and ethical reasoning [36].”
    Quote in the paperSubstantial claim0 of 4 sources checked
    • cites [32]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [78]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [62]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [40]

      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). May combine two claims.

    Premisecitation

    Transformers have demonstrated impressive reasoning abilities across a wide range of tasks, even outperforming humans in certain cases.

    “Recently, transformers [11,58,57,17,16,63,73,74] have demonstrated impressive reasoning abilities across a wide range of tasks, even outperforming humans in certain cases [79,28,15,85].”
    Quote in the paperNot a substantial claim0 of 10 sources checked
    • cites [11]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [58]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [57]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [17]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [16]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [63]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [73]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [74]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [79]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [28]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • Classified as probably not a substantial claim.

    Premisecitation

    Transformers cannot robustly model noncounter-free regular languages even when allowing infinite precision.

    “Importantly, Hahn [30] shows that transformers cannot robustly model noncounter-free regular languages even when allowing infinite precision.”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites [30]

      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 given

    Due to compute budget constraints and limited access to the largest language models such as GPT4, the authors were unable to push the empirical limits of transformers further in terms of training data size and number of epochs.

    “However, we acknowledge that due to our compute budget constraints as well as limited access to the largest language models such as GPT4, we are unable to push the empirical limits of transformers even further in terms of training data size and number of epochs.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationreasoning

    Fine-tuning GPT3 for 4 epochs on question-answer pairs would cost $12 million, and question-scratchpad training would cost $700 million.

    “Should we choose to fine-tune GPT3 for 4 epochs on question-answer pairs, the cost would amount to $12 million and $700 million for question-scratchpad training.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Interpretationcitation

    Proposition 4.2 directly applies to the recursive function of the dynamic programming task, to m-by-1 digit multiplication, and to the puzzle through its elimination function.

    “Prop.4.2 directly applies to the recursive function of the dynamic programming task, as well as to m-by-1 digit multiplication, and to the puzzle through its elimination function (details in D.3).”
    Quote in the paperSubstantial claim0 of 1 sources checked
    • cites D.3

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • Rests on an assumption: The tasks evaluated are low collision settings.
  • May combine two claims.

    Premisecitation

    Transformers perform fairly well in single-step reasoning tasks but face challenges when combining multiple steps to solve compositionally complex problems.

    “Transformers perform fairly well in singlestep reasoning tasks [70], but face challenges when it comes to effectively combining multiple steps to solve compositionally complex problems [84,55,66,81].”
    Quote in the paperSubstantial claim0 of 5 sources checked
    • cites [70]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [84]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [55]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [66]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [81]

      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).

    Interpretationreasoning

    Solving the puzzle task may be seen as f_m for some m, where f is the elimination function.

    “Solving the puzzle task may be seen as f m for some m, where f is the elimination function”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    When f is an affine transformation, the process falls simultaneously between two perspectives: time series and dynamic programming and control.

    “When f is an affine transformation, the process falls simultaneously between two perspectives: time series [31] and dynamic programming and control [6].”
    Quote in the paperNot a substantial claim0 of 2 sources checked
    • cites [31]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [6]

      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).

    Premisecitation

    In the literature on iterated random functions, the focus is usually on the contractive regime in which accrued errors can be kept under control, with subsequent convergence guarantees.

    “In this latter literature, the focus is usually on the contractive regime in which accrued errors can be kept under control, and the subsequent convergence guarantees (e.g., [23]).”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites [23]

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

  • The quote only partly states this claim.

    Interpretationreasoning

    Let f_n(x)=h_n(g(x,1),...,g(x,n)). If P(h_n=h_n)=1 and P(h_n(X)=h_n(Y) | X≠Y)<c_n, and c_n ≤ β α^n for some α∈(0,1), β>0, then lim_{n→∞} P(f_n≠f_n)=1.

    “Assume P(h n = h n ) = 1 and P(h n (X) = h n (Y ) | X ̸ = Y ) < c n , lim n→+∞ P(f n ̸ = f n ) = 1.”
    Quote in the paperSubstantial claim
    • The authors state this as an assumption: In Proposition D.1, P(h_n = h_n)=1.
    • The authors state this as an assumption: In Proposition D.1, P(h_n(X)=h_n(Y) | X≠Y) < c_n.
    • The authors state this as an assumption: In Proposition D.1, c_n ≤ β α^n for some α∈(0,1) and β>0.
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Interpretationreasoning

    In the DP task, the reconstruction of the desired subsequence given already computed dp values may be viewed as f_m(x) for an input list of size m.

    “In the DP task, the reconstruction of the desired subsequence given already computed dp values may be viewed as f m (x) for an input list of size m.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Interpretationreasoning

    In the DP task, dp's computation may be viewed as f_{m-2}(x) for a list of size m.

    “In the DP task, dp's computation may be viewed as f m-2 (x) for a list of size m”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing), S4 (based). May combine two claims.

    Interpretationnone given

    Under the conditions that c_n < c for some constant c ≪ 1 (h_n perfectly estimates h_n and h_n is almost injective), if P(g ≠ g) = ε > 0 and errors in g are independent, then lim inf n→+∞ P(f_n ≠ f_n) ≥ 1c.

    “where c n < c for some constant c ≪ 1 (i.e.h n perfectly estimates h n , and h n is almost injective).If P(g ̸ = g) = ϵ > 0 and errors in g are independent, lim inf n→+∞ P(f n ̸ = f n ) ≥ 1c.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationreasoning

    The recursions for dynamic programming tasks, the m-by-1 digit multiplication, and the puzzle's elimination function are all tasks where there is a fixed reasoning step g being repeatedly applied.

    “Corollary D.3.The recursions for dynamic programming tasks, the m-by-1 digit multiplication, and the puzzle's elimination function are all tasks where there is a fixed reasoning step g being repeatedly applied.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation

    The process of repeatedly applying a noisy single operation or function f can be related to iterated random functions.

    “The process of repeatedly applying a noisy single operation or function f can be related to iterated random functions [24].”
    Quote in the paperNot a substantial claim0 of 1 sources checked
    • cites [24]

      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).

    Interpretationreasoning

    Large m (or alternatively, c ≪ ε) implies m/(m+1) will be close to 1.

    “Therefore, large m's (or alternatively, c ≪ ϵ) imply m m+1 will be close to 1.”
    Quote in the paperNot a substantial claim
49 of 49
  • The paper relies on this without support.

    The three compositional tasks require breaking problems down into sub-steps and synthesizing these steps into a precise answer.

    “These tasks require breaking problems down into sub-steps and synthesizing these steps into a precise answer.”
  • The paper relies on this without support.

    Human problem-solving skills can be represented as a graph structure where vertices are partial solutions and edges are operators that modify those solutions.

    “Human problem-solving skills can be conceptualized as a graph structure, where each vertex represents a partial solution and the edges represent operators that can be applied to modify these solutions.”
  • The paper relies on this without support.

    Reasoning depth in a computation graph is a proxy for the maximum level of multi-hop reasoning required to solve the task.

    “In computation graphs, reasoning depth is a proxy for the maximum level of multi-hop reasoning required to solve the task.”
  • The paper relies on this without support.

    The three studied tasks are representative compositional tasks.

    “we study three straightforward and flexible representative compositional tasks: long-form multiplication, logic grid puzzles (i.e., Einstein's puzzle [61]), and a classic dynamic programming problem.”
  • The paper relies on this without support.

    As K and M increase, synthesizing different partial solutions that satisfy individual constraints becomes highly compositionally complex.

    “As K and M increase, synthesizing different partial solutions that satisfy individual constraints becomes highly compositionally complex.”
  • The paper relies on this without support.

    Algorithms designed to solve compositional tasks typically involve multiple independent applications of a function and/or iterated applications of the same function.

    “Algorithms designed to solve compositional tasks typically involve multiple independent applications of a function and/or iterated applications of the same function.”
  • The paper relies on this without support.

    A transformer executing such an algorithm acts as an estimator of these functions.

    “A transformer executing such an algorithm acts as an estimator of these functions.”
  • The authors state this as an assumption.

    In Proposition 4.1, h_n is a perfect estimator of h_n.

    “Assume that h n is a perfect estimator of h n and that h n has low collision, with c n being an upper bound of h n 's collision rate (c n < c ∀n, with c ≪ 1).”
  • The authors state this as an assumption.

    In Proposition 4.1, h_n has low collision, with c_n being an upper bound of h_n's collision rate (c_n < c for all n, with c << 1).

    “Assume that h n is a perfect estimator of h n and that h n has low collision, with c n being an upper bound of h n 's collision rate (c n < c ∀n, with c ≪ 1).”
  • The authors state this as an assumption.

    In Proposition 4.1, g's errors are independent.

    “If P(g ̸ = g) = ϵ > 0 where g's errors are independent”
  • The authors state this as an assumption.

    In Proposition 4.2, the probability of recovering from a mistake due to the randomness of applying the estimator on an incorrect input is at most c.

    “Assume that the probability of recovering from a mistake due to the randomness of applying the estimator on an incorrect input has probability at most c.”
  • The authors state this as an assumption.

    In Proposition 4.2's current form, there is a single valid reasoning for each input since g is a function.

    “In Prop.4.2's current form, we implicitly assume that there is a single valid reasoning for each input since g is a function.”
  • The authors state this as an assumption.

    When g has low collision, c << epsilon.

    “It is reasonable to assume c ≪ ϵ when g has low collision, since c represents the probability of the estimator g(y) arriving at the correct output g(x) by chance when given the wrong input y ̸ = x.”
  • The paper relies on this without support.

    The tasks evaluated are low collision settings.

    “They are also all low collision settings.”
  • The authors state this as an assumption.

    The theoretical proofs' assumptions hold for the abstract compositional tasks and autoregressive language models considered.

    “The proofs presented in §4 show that, under reasonable assumptions, the probability of incorrect predictions converges exponentially to ≈ 1 for abstract compositional tasks.”
  • The authors state this as an assumption.

    In Proposition D.1, P(h_n = h_n)=1.

    “Assume P(h n = h n ) = 1”
  • The authors state this as an assumption.

    In Proposition D.1, P(h_n(X)=h_n(Y) | X≠Y) < c_n.

    “P(h n (X) = h n (Y ) | X ̸ = Y ) < c n”
  • The authors state this as an assumption.

    In Proposition D.1, c_n ≤ β α^n for some α∈(0,1) and β>0.

    “if c n ≤ βα n for some some α ∈ (0, 1) and β > 0”
  • The authors state this as an assumption.

    In Lemma D.2, P(z(g(X))=1 | z(X)=0) ≤ c.

    “Assume P(z( g(X)) = 1 | z(X) = 0) ≤ c”
  • The authors state this as an assumption.

    In Lemma D.2, P(z(g(X))=0 | z(X)=1) = ε > 0 with c+ε<1.

    “P(z( g(X)) = 0 | z(X) = 1) = ϵ > 0 with c + ϵ < 1”
  • The authors state this as an assumption.

    In Proposition D.2, P(g(X)=g(Y) | X≠Y) ≤ c.

    “Assume P(g(X) = g(Y ) | X ̸ = Y ) ≤ c”
  • The authors state this as an assumption.

    In Proposition D.2, P(g≠g)=ε>0 with c+ε<1.

    “If P(g ̸ = g) = ϵ > 0 with c + ϵ < 1”
  • The authors state this as an assumption.

    The mathematical framework used is a simplified representation of how multi-step reasoning works.

    “The mathematical framework used is a simplified representation of how multi-step reasoning works”
  • The authors state this as an assumption.

    c ≪ ϵ when g has low collision.

    “It is reasonable to assume c ≪ ϵ when g has low collision, since c represents the probability of the estimator g(y) arriving at the correct output g(x) by chance when given the wrong input y ̸ = x.”
  • The authors state this as an assumption.

    Assuming approximately uniform errors, c ≈ ϵ/|Im(g)|, which implies c ≪ ϵ when g has low collision.

    “Assuming approximately uniform errors, c ≈ ϵ/|Im(g)|, which in turn implies c ≪ ϵ since g being low collision implies |Im(g)| is large.”
25 of 25

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?

  • The trouble generating a proper rank list may be due to the increased complexity of the task where ranking N generations becomes more difficult as N gets larger.

    “This may be due to the increased complexity of the task (Dziri et al., 2023) where the ranking of N generations may become much more difficult as N gets larger (since the task complexity increases).”

    From Benchmarking Cognitive Biases in Large Language Models as Evaluators (2024) · cites this paper as Dziri et al., 2023

    The Figure 2 caption reports that transformer accuracy falls as problem size—and thus task complexity—increases. That supports the general explanation, but the paper studies multiplication, puzzles, and dynamic programming, not the difficulty of ranking N generations or producing a rank list. (LLM, conf=0.84)

    Experimental — accuracy not yet measured
  • Frontier reasoning-tuned language models still fail on deductive tasks at depth.

    “Frontier reasoning-tuned language models still fail on deductive tasks at depth, and the cost of improved performance through extended internal reasoning scales poorly.”

    From PrologMCP: A Standardized Prolog Tool Interface for LLM Agents (2026) · cites this paper as [6]

    Section 3.2.3 reports that few-shot GPT-4 and fine-tuned GPT-3 become less accurate across deeper reasoning-graph layers, including on logic puzzles. The paper supports failure on deeper deductive reasoning, but its tested models are prompted or fine-tuned with scratchpads; it does not establish the claim specifically for frontier reasoning-tuned models. (LLM, conf=0.86)

    Experimental — accuracy not yet measured
  • Accuracy degrades on long deductive chains, even for strong reasoning-tuned models.

    “First, accuracy degrades on long deductive chains, even for strong reasoning-tuned models.”

    From PrologMCP: A Standardized Prolog Tool Interface for LLM Agents (2026) · cites this paper as [6]

    Section 3.2.3 reports that the proportion of fully correct nodes falls sharply as reasoning depth increases for few-shot GPT-4 and GPT-3 fine-tuned with a scratchpad. This supports declining performance over longer multi-step reasoning paths, but the paper does not identify these models as specifically reasoning-tuned or establish the result for deductive chains generally. (LLM, conf=0.84)

    Experimental — accuracy not yet measured
  • There 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”

    From What Algorithms can Transformers Learn? A Study in Length Generalization (2023) · cites this paper as Dziri et al. (2023)

    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
  • Limitations in compositionality, entity binding, long-context evidence use, and numerical grounding are especially relevant, but are rarely examined within one unified setting.

    “Limitations in compositionality, entity binding, long-context evidence use, and numerical grounding are therefore especially relevant, but are rarely examined within one unified setting [11][12][13][14][15][16][17][18].”

    From Diagnosing the limits of large language models for structured scientific evidence extraction (2026) · cites this paper as [11]

    The Introduction and Discussion describe transformer limitations in compositional reasoning, including multiplication and logic-grid puzzles. The paper does not establish the broader claim about long-context evidence use or that these limitations are rarely examined together in one unified setting; its multiplication task also does not by itself establish a limitation in numerical grounding. (LLM, conf=0.84)

    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.

  • Proof gives opposite limits for correct-answer probability

    Minor

    The D.1 proof states that the probability of a correct answer tends to one, then immediately bounds its limit superior by zero. The latter also agrees with the proof's conclusion that the error probability tends to one.

  • Proposition 4.1 reverses the stated error trend

    Minor

    The proposition says the probability of an incorrect answer decreases with the number of steps, but its stated bound approaches a high error probability and the accompanying interpretation says failures increase.

  • DP and puzzle training-set sizes are reversed

    Minor

    The main text assigns approximately 142K pairs to DP and 41K to puzzles, while Appendix B.3 assigns 142K to puzzles and 41K to DP.

  • Proposition 4.2 also reverses the stated error trend

    Minor

    It says the probability of an incorrect answer decreases with n, whereas the surrounding argument describes accumulated errors and says that probability approaches approximately one when recovery is rare.

4 of 4

Cites

Flagged first, then by citations

Research works printed but not linked: 6

  1. Cem Anil, Yuhuai Wu, Anders Andreassen, Aitor Lewkowycz, Vedant Misra, Vinay Ramasesh, Ambrose Slone, Guy Gur-Ari, Ethan Dyer, and Behnam Neyshabur. Exploring length general- ization in large language models. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems, volume 35, pages 38546-38556.
  2. Arpit Bansal, Avi Schwarzschild, Eitan Borgnia, Zeyad Emam, Furong Huang, Micah Goldblum, and Tom Goldstein. End-to-end algorithm synthesis with recurrent networks: Extrapolation without overthinking. In S. Koyejo, S. Mohamed, A. Agarwal, D. Belgrave, K. Cho, and A. Oh, editors, Advances in Neural Information Processing Systems, volume 35, pages 20232-20242.
  3. Yoshua Bengio, Réjean Ducharme, and Pascal Vincent. A neural probabilistic language model. In Advances in Neural Information Processing Systems, volume 13. MIT Press, 2000.
  4. D. Bertsekas. Abstract Dynamic Programming: 3rd Edition. Athena scientific optimization and computation series. Athena Scientific., 2022.
  5. Bingbin Liu, Jordan T. Ash, Surbhi Goel, Akshay Krishnamurthy, and Cyril Zhang. Trans- formers learn shortcuts to automata. In International Conference on Learning Representations, 2023.
  6. Karthik Valmeekam, Alberto Olmo, Sarath Sreedharan, and Subbarao Kambhampati. Large language models still can't plan (a benchmark for LLMs on planning and reasoning about change). In NeurIPS 2022 Foundation Models for Decision Making Workshop, 2022.

Cited by

Sorted by citations

Authors
Dziri, N., Lu, X., Sclar, M., Li, X. (., Jiang, L., Lin, B. Y., Welleck, S., West, P., Bhagavatula, C., Bras, R. L., Hwang, J., Sanyal, S., Ren, X., Ettinger, A., Harchaoui, Z., & Choi, Y.
Venue
Advances in Neural Information Processing Systems 36
Published
2023
Pages
70293-70332
ISSN
1049-5258 (ISSN-L)
OpenAlex
W7133191918
Cited by
124
References
82
Citations by year
2026: 39 · 2025: 28 · 2024: 35 · 2023: 22
FWCI
371.24
Type
conference paper
Language
en
Open access
Locations
  • neural information processing systems (publishedVersion)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
Funders
  • National Science Foundation (2134012)
  • Allen Institute for Artificial Intelligence
  • Defense Advanced Research Projects Agency (N66001-19-2-4031, N66001-19)
  • Naval Information Warfare Center Pacific
Topics
  • Social Sciences › Arts and Humanities › Language and Linguistics › Syntax, Semantics, Linguistic Variation
  • Social Sciences › Psychology › Experimental and Cognitive Psychology › Philosophy and Theoretical Science
  • Social Sciences › Arts and Humanities › History and Philosophy of Science › Cybernetics and Technology in Society
Keywords
transformer models, compositional generalization, compositional reasoning, large language models

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.

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