IN THIS BREAKDOWN · 10 SECTIONS
You can read 19% of this breakdown.
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.
Research notes: the problem, approach and results
GPT-4 zero-shot accuracy on 3-digit by 3-digit multiplication; ChatGPT 55% (Section 1)
of correct final answers on unseen 4-by-2-digit products had at least one error in the worked steps (Section 3.2.3)
spent training GPT-3 for 420K steps past the in-domain plateau to look for grokking; none appeared (Section 3.1)
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.
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.
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.
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".
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
- ◇1 architecture diagram
- </>1 runnable code experiment
- ▦2 results tables
- ?5 interview questions with answers
- 03Key takeaways
Computation graphs and their metrics, the four training regimes, error types and two misreadings
Free account - 04How it works
Graph construction, the three tasks, training splits, the error taxonomy and the two propositions
Premium - 05The numbers that matter
Zero-shot scores, training budgets, dataset sizes, the 82.3% figure and the cost table
Premium - 06Try it yourself
Run the compounding recursion, recompute information gain exactly, and audit the cost table
Premium - 07Where it breaks
2023 models, sampled decoding, three synthetic tasks, no tools, and slips
Premium - 08Using it on a deployment
Estimate chain reliability, route exact work to tools, test sizes beyond your training data
Premium - 09Interview angles
Five questions this paper prepares you for, with answer hints
Premium - 10Read next
Where to go from here on this site
Premium
