GO TO A SECTION

↑ ↓ to navigate · Enter to openExplore all sections →
FDEInterviews logo
NeurIPS 2023

Faith and Fate: Limits of Transformers on Compositionality

GPT-4 got 59% of 3-digit multiplications right zero-shot. Fine-tuned GPT-3 was near perfect on sizes it saw and failed beyond them, and the paper shows why errors compound.

Breakdown by FDE Interviews · 11 min read · Updated

About the original · 2023
AUTHORS
Dziri, Lu, Sclar, Li et al.
FROM
Allen Institute for AI, University of Washington
PUBLISHED
May 2023 · NeurIPS 2023
CITED BY
764Semantic Scholar · Nov 2026
IN THIS BREAKDOWN · 10 SECTIONS

You can read 19% of this breakdown.

01

The paper in one minute

Multiplying two 3-digit numbers by the long method takes a few dozen small steps: one-digit products, carries, sums. GPT-4 got 59% of such problems right zero-shot and ChatGPT 55%. The authors wanted to know whether failures like this are accidents or a pattern.

They write an algorithm's execution as a computation graph. Each node is an intermediate value, each edge says which values a step used, and the graph's depth (longest chain of steps) and width (how many values are live at once) measure how compositional an instance is. They build three tasks this way: multi-digit multiplication, Einstein's logic grid puzzle, and a dynamic-programming problem (the best sum of a sequence's non-adjacent elements).

Then they push the models as hard as their budget allowed. Zero-shot and few-shot accuracy fell toward zero as the graphs grew. GPT-3 fine-tuned on about 1.8 million multiplication pairs, with or without step-by-step scratchpads, was near perfect on sizes it had seen and failed on larger ones; training far past the point where in-domain accuracy plateaued did not change that. Correctly answered test problems had sub-computations that appeared far more often in training. Most wrong nodes were wrong because an earlier node was wrong. Two propositions formalize the last point: if each step fails with some probability and recovery is unlikely, the chance of a correct final answer shrinks geometrically with the number of steps.

THE IDEA, VISUALLY
A COMPUTATION GRAPH: 7 x 49 (FIGURE 1) 7 4 9 7x9=63 7x4=28 mod 10: 3 carry: 6 28+6=34 concat: 343 depth = longest input-to-node chain; width = values live at once WHAT A WRONG NODE CAN BE (SECTION 3.2.3) fully correct value and every ancestor right local error inputs right, this step wrong propagation this step right, an input wrong restoration value right, step wrong CHANCE A CHAIN FINISHES CORRECTLY (PROP. 4.2) 0.0 0.5 1.0 0 50 100 150 200 dependent steps n eps 1%, no recovery: 0.13 at 200 eps 1%, recovery 0.1%: 0.19 at 200 eps 5%, no recovery: 0.08 at 50 0.61 at 50 GPT-4 zero-shot: 59% on 3x3-digit products. Fine-tuned GPT-3: near perfect on seen sizes, near zero beyond them (Figures 3 and 5). arXiv 2305.18654, AI2 and University of Washington
The paper writes an algorithm such as long multiplication as a computation graph whose nodes are intermediate values, and measures a task's size by the graph's depth and width. If each step goes wrong with probability eps and a wrong value is rarely recovered by chance, the chance of finishing correctly falls geometrically with the number of steps: at 1% error per step, about 61% of 50-step chains finish correctly and 13% of 200-step chains.
Research notes: the problem, approach and results
59%

GPT-4 zero-shot accuracy on 3-digit by 3-digit multiplication; ChatGPT 55% (Section 1)

82.3%

of correct final answers on unseen 4-by-2-digit products had at least one error in the worked steps (Section 3.2.3)

$50,000

spent training GPT-3 for 420K steps past the in-domain plateau to look for grokking; none appeared (Section 3.1)

THE PROBLEM

Large language models solve some hard-looking problems and fail simple ones, such as multi-digit multiplication. It was unclear whether those failures were incidental or a limit of how autoregressive transformers solve multi-step problems.

THE IDEA

Write three tasks (multiplication, Einstein's logic puzzle, a dynamic-programming problem) as computation graphs, vary their size, and test models zero-shot, few-shot and after exhaustive fine-tuning with and without step-by-step scratchpads. Then classify errors node by node and prove how per-step error compounds.

THE RESULT

Accuracy fell toward zero as graphs grew, in every setting. Fine-tuned GPT-3 was near perfect on sizes in its training data and failed on larger ones, even after training far past the plateau. Correct answers tracked how often their sub-computations appeared in training, and propagated errors outnumbered single-step ones.

02

Why it matters to an FDE

This paper explains a pattern you will see in customer deployments: a model handles the small version of a task and falls apart on the large one.

Count the steps. If a workflow chains 50 dependent steps and each is right 99% of the time, about 60% of runs finish correctly. Whether the steps happen inside one long answer or across an agent's tool calls, the arithmetic is the same. Cutting the chain length or adding checks between steps does more than prompting.

Give exact work to tools. Multiplication, totals, joins and date arithmetic are exactly the tasks whose graphs grow with the input. The paper's own recommendations are to use transformers for tasks with few compositional steps, where approximate answers are acceptable, or alongside planners and refinement. In practice that means calling a calculator, a SQL engine or a solver for the exact parts.

Test beyond what you tuned on. Fine-tuning on a customer's examples up to a size makes the model look excellent on that size. The paper's out-of-distribution results are the warning: build a test split with larger or deeper instances than training contained before claiming the model "learned the procedure".

THE FULL BREAKDOWN

Understand the mechanism. Try it on a real problem.

Unlock this breakdown and 290 more papers.

Premium opens every paper in full, plus every answer, concept, course and guide on the site. One payment for six months of access.

6 months · One payment · No auto-renewal

Get Premium · ₹2,000 / $25
  • ◇1 architecture diagram
  • </>1 runnable code experiment
  • ▦2 results tables
  • ?5 interview questions with answers
  1. 03Key takeaways

    Computation graphs and their metrics, the four training regimes, error types and two misreadings

    Free account
  2. 04How it works

    Graph construction, the three tasks, training splits, the error taxonomy and the two propositions

    Premium
  3. 05The numbers that matter

    Zero-shot scores, training budgets, dataset sizes, the 82.3% figure and the cost table

    Premium
  4. 06Try it yourself

    Run the compounding recursion, recompute information gain exactly, and audit the cost table

    Premium
  5. 07Where it breaks

    2023 models, sampled decoding, three synthetic tasks, no tools, and slips

    Premium
  6. 08Using it on a deployment

    Estimate chain reliability, route exact work to tools, test sizes beyond your training data

    Premium
  7. 09Interview angles

    Five questions this paper prepares you for, with answer hints

    Premium
Back to the paper library →