In one line: On Branching with Qwen3-1.7B, same-size students trained on a multi-call harness's traces trailed the harness at the same tree by 5 to 16 points on trees of 13 to 40 calls (single runs; within noise on trees of up to 7 calls), and a 4B student matched its teacher; a theorem shows that a breadth-first-search harness over trivial edge lookups decides a problem no fixed-depth transformer with a short chain of thought can if NL is not in TC⁰, a class that excludes the long-trace students the experiments train.
How far to trust it: Believe the measured direction: same-size students trained on these traces fell short, and larger students or simpler harnesses closed the gap (single runs; the gaps at the larger trees are 5 to 16 points, at the smallest within noise). Read the theorem as a clean result about students with a logarithmic chain of thought, not as the cause of the measured gaps, because every distilled student in the experiments writes a long trace. The evidence, judged.
A harness keeps its state outside the network and loops as many times as the input needs; a student trained to imitate it in one rollout has a fixed number of layers, so on problems whose answer needs depth that grows with the input, the student may be unable even to represent what the harness computes.
The figure runs the theorem's own example with the lab's engine: the harness is breadth-first search over edge lookups, the student a fixed-depth reader. Height is distance from s in hops.
You need: the idea that a chain of thought adds serial computation to a fixed-depth transformer, taught on Test-time compute and reasoning, section 1, and distillation by supervised fine-tuning on a teacher's outputs, on Distillation and Small Language Models.
New terms.
Harnesses range from sampling many answers and picking one, through searching over partial solutions and backtracking with a verifier, to agents with tools (§1). Some of the strongest recent math systems wrap a strong model in a plain loop: keep candidate solutions, expand them, prune them by verification. The authors ask two questions. Why should a capable model gain so much from such a simple strategy imposed from outside? And could the model learn the strategy itself, so the harness is no longer needed?
They give one answer to both, in three steps (§1.1): (1) in small, fully controlled experiments, a student of the same size as the base model, trained on the teacher's traces, stays below the teacher; (2) the gap closes when the student gets more expressive power relative to the task (more parameters, a simpler harness, a longer chain of thought); (3) a theorem says why: a harness can compose cheap calls into a computation that no fixed-depth student with a short chain of thought can represent, under a standard complexity conjecture. A fourth step repeats (1) and (2) with a real agentic harness on competition math.
Two tasks with a controllable shift (§2.1). Dyck: strings of 64 properly nested brackets of 4 types; in distribution the types appear with probabilities 0.1, 0.2, 0.3, 0.4, out of distribution reversed. Sokoban: a 5 by 5 grid, one player, one box, one target, up to three walls, solutions of 3 to 15 moves; ID instances have short solutions, OOD long ones (Appendix B.2).
Two harnesses. VGB (Rohatgi et al., 2026) lets the base model propose an action, then retracts it with probability max(ε, 1 − Ṽ(s,a)/Ṽ(s)), where Ṽ(s) is the chance the base model finishes validly from prefix s: an action that lowers the chance of success is likely undone. Ṽ is estimated by sampling completions of the base model (one per step when making traces, 1,000 at evaluation) or by a learned classifier (a linear probe on the base model's hidden state, right on 87.3% of Dyck tokens); on Dyck a retraction deletes the last 4 tokens, at most 50 times (Appendix B.1.1). A* keeps a queue of board states ordered by moves made plus the box's Manhattan distance to the target, and expands only the two successors the base model rates most likely (Appendix B.1.2).
Traces and students. A VGB trace writes the verifier's score (quantised to 10 levels) before each commit or retract, so the student sees what drove every backtrack (27-token vocabulary). An A* trace logs every state created and closed with its g, h, f, then the plan (45 tokens). All models are 2-layer transformers of width 128 with 4 heads, about 0.68M parameters. The base model learns from clean demonstrations (300K valid ID Dyck strings, AdamW at 3 × 10⁻⁴ for 3,000 steps). A student is trained on traces either from scratch, or by fine-tuning the base model on a mix that is 70% clean data, for 5K steps; at test time it runs alone (Appendix B.2).
The student trained from scratch falls below even the base model, which the authors put down to traces being a much harder target than clean data; the fine-tuned student tracks the base model (§2.2). The ablations change one knob at a time: clean-data share from 0 to 100%, 3K to 8K steps, 1K to 20K traces, training puzzles drawn from mixes Pα = (1 − α)PID + αPOOD with α up to 0.75, four seeds and OOD-only traces for the from-scratch student (Appendix B.3). Clean data repairs the damage traces alone do, up to about 30%, then stops helping; twenty times more traces barely moves the student. These sweeps are figures without printed values (Figures 6 to 8), so this page reports them only in words.
What the teacher brings besides the loop
Read the gap with the teacher's extra resources in mind. At evaluation the VGB teacher scores each step with 1,000 sampled completions of the base model; on Sokoban the oracle verifier runs its own breadth-first search to check that the puzzle is still solvable (Appendix B.2); the A* teacher is a classical optimal planner in which the model only prunes to two moves, and its traces are 36% shorter than plain A*'s. A student must absorb all of that, not only the control flow.
Section 2 kept the student in the base model's class. Section 3 relaxes that in three ways, each of which raises the student's power relative to the task (§3).
Twelve student sizes from 0.10M to 11.5M parameters (Table 1, in the figures tab), each trained from scratch on the same traces, best accuracy per size over clean-data ratios and checkpoints (§3.1, Appendix C.1).
The 0.68M student in this sweep is the same size as the teacher's model, yet scores 0.984 ID and 0.770 OOD, against 0.90 and 0.70 for Figure 1's fine-tuned student. The sweep reports the best of many runs per size, picked on the evaluation split, so it is optimistic; it also shows that at teacher size the ID gap is 0.016, not the 0.10 of Figure 1.
On Sokoban (Figure 9) the A* gap shrinks from 0.65 to 0.13 in distribution between 0.10M and 1.77M and never closes; with VGB the largest students pass the teacher on both splits (0.945 against 0.765 ID, 0.835 against 0.605 OOD at 5.65M) (Appendix C.1).
VGB and A* keep search state that grows with the problem. Single-step backtracking (simple BT) is bounded and local: when a verifier flags the last token, delete a fixed 4 tokens and regenerate. A same-size student fine-tuned on traces with exactly one backtrack learns to emit its own <BT> tokens (§3.2). In distribution it matches the teacher closely (0.970 against 0.996). Out of distribution it gets 0.677 when 25% of its traces come from OOD inputs, against 0.873 for the teacher with an oracle verifier and 0.650 for the base model in one pass (Table 2).
Arithmetic modulo 11 with 20 operators, reduced one step at a time, leftmost first, so every problem has exactly one chain of 20 steps (§3.3). A 3-layer transformer (about 2.5M parameters) is trained to write the first L steps and then the answer, so it must do the remaining 20 − L steps inside one forward pass. The scaffold samples 16 candidate next steps, keeps one that an oracle verifier confirms matches the true chain, and backtracks (and bans the failed step) if all 16 fail (Appendix C.3).
trained to write 18 of the 20 steps, so only the last two happen inside one forward pass, how often does the model decoded greedily get the answer right?
The authors read this as a longer chain closing the gap. Two things to keep in view. Greedy decoding matches the scaffold at L = 19 and 20 (97 and 98 against 99) but never exceeds it, in either figure, although the introduction says it "match[es] and eventually exceed[s]" (§1). And this experiment is not distillation: the student is trained on the true chain, not on the scaffold's traces, and the scaffold's verifier holds the answer key.
The task. Directed s-t reachability (STCON): given an N-vertex graph as its adjacency matrix A, a source s and a target t, is there a path from s to t? Read vertices as reasoning states and edges as valid steps, and this is the abstract shape of search (§4.1).
The base model's job is trivial. It only answers "is there an edge from u to v?", EA(u,v) = Auv. Written as a circuit it is one big OR over all N² cells of (Aij AND u = i AND v = j), each equality an AND of O(log N) bits: constant depth, polynomial size, so in AC⁰ (Appendix D.1).
The student is in TC⁰. A transformer with a fixed number of layers, polynomial size and logarithmic precision can be simulated by a uniform TC⁰ circuit (Merrill and Sabharwal, 2023). The paper lets the student also write a short chain of thought: Tc(n) = ⌈c log₂(n + 1)⌉ tokens for input length n, each token checked by a TC⁰ circuit (Definition 1, §4.1).
Lemma 1: a short chain of thought stays in TC⁰. There are only |Σ|Tc(n) possible transcripts, which is polynomial in n; a circuit checks all of them in parallel and accepts if one passes, adding two layers of depth (§4.2, proof in Appendix D.2).
Theorem 1. Assume NL ⊄ TC⁰. (i) A breadth-first-search harness with oracle access to EA decides reachability in polynomial time with at most N² oracle calls and O(N) bits of state. (ii) No student in the class of Definition 1 decides STCON on all inputs (§4.2).
Lemma 1 on numbers. On numbers: 100 vertices give n = 10,000 input bits; with a binary alphabet and c = 1 the chain is 14 tokens long and there are 16,384 transcripts to try, about n.
Part (ii) is two lines: Lemma 1 would put a successful student in TC⁰, and since every NL problem reduces to STCON by a uniform AC⁰ reduction, which composes with a TC⁰ circuit without losing constant depth, all of NL would be in TC⁰ (Appendix D.3). The reduction must be that weak; an ordinary logspace reduction could do work outside TC⁰ itself (Appendix D.1).
The harness's rounds are its depth: round r reaches the vertices r hops from s, and it runs as many rounds as the graph needs. The obvious fixed-depth strategy squares the Boolean adjacency matrix once per layer (each entry an OR of N ANDs, constant depth), so k layers see paths of up to 2k hops; on graphs whose paths grow with N, any fixed k eventually answers "no" to a reachable target. The lab runs both on graphs you choose: with N from 8 to 256 on long-path graphs, the reader needs k = 3, 4, 5, 6, 7, 8 layers to answer every graph right, one more each time N doubles.
What the lab does and does not show. It shows one constant-depth strategy failing as paths lengthen, and the harness never failing. It does not show that every constant-depth circuit fails: that is exactly the open NL ⊄ TC⁰ question the theorem assumes. Its random-graph family also shows the other side: when paths are short, as on typical random graphs, a shallow reader is right almost every time, because the theorem is about the worst input, not the typical one.
Setup (§5). Base model Qwen3-1.7B with thinking off; problems from DAPO-Math-17k, graded by math-verify on the last boxed answer. Traces come from a pool of 1,500 problems (pass@1 about 0.30), evaluation from 500 other problems (about 0.31; the base bar in Figure 5a reads 28.0).
The Branching harness (Bateni et al., 2025) is a tree with d children per node and depth L: each leaf answers the question at temperature 1.0, each internal node reads its children's solutions and writes a new one. It costs 1 + d + d² + ... + dL calls: 3 for (2,1), 13 for the canonical (3,2) tree (9 leaves, 3 aggregators, 1 root), 85 for (4,3) (Appendix E.1). The student is the same backbone, LoRA fine-tuned to write the whole flattened tree (each attempt, then the final solution) in one rollout, trained only on runs whose root answer was right.
the 85-call tree (4,3) scores 43.6%. What does the same-size student trained on its traces score?
With 500 test problems and one run, each bar has a binomial standard error of about 2.1 points, so a teacher-student difference needs about 6 points to be clearly real. The gaps at (2,1), (3,1) and (2,2) (1.0 to 2.2 points) are within noise: the student recovers small trees, as simple BT was recovered. The gaps at (4,1) and (3,2) (4.0 and 5.2 points) are under 2 standard errors. The gaps at (2,3), (4,2) and (3,3) (8.0, 9.6 and 16.0 points, 2.7 to 5.4 standard errors) are not (recomputed). The (3,3) student, at 26.8%, ends below the untouched base model's 28.0%.
Better recipes do not close it on the (3,1) tree (teacher line 36.0, base 28.0): clean-data shares of 0 to 100% give 34.2, 35.0, 34.6, 31.4, 29.2; 134, 267 or 535 traces give 33.2, 35.2, 34.2; 1, 2 or 4 epochs give 30.6, 34.2, 34.4 (Figure 12). The training sets are a few hundred traces.
More capacity does, but only from a bigger model (Figure 13). On the (4,2) tree (teacher 41.4%) the student scores 31.8% with LoRA rank 16, 33.6% with rank 64 and 34.0% with full fine-tuning: +1.8 points from rank, +2.2 from training every weight. The abstract's "LoRA rank improves the student by only 2.2 percentage points" is the full fine-tune. On the (3,2) tree a 4B backbone scores 41.6% against the teacher's 40.0% and the 1.7B student's 35.2%. "Surpasses the teacher" is 1.6 points, half a standard error; and the 4B model's own score without any distillation is not given, so the figure cannot separate absorbing the harness from simply being a stronger model.
QED-Nano is a 4B model for olympiad proofs: Qwen3-4B-Thinking, fine-tuned on proofs from DeepSeek-Math-V2, then trained by reinforcement learning on the 5,227 FineProofs-RL problems (Appendix E.2). Its own harness (Recursive Self-Aggregation, 39 calls) raises IMO-ProofBench from 40.0% to 56.9% at about 22 times the tokens, with traces of about 1.5M tokens, far too long to distil. So the authors try small Branching trees on 300 medium-difficulty problems from the RL set (base reward between 0.10 and 0.60 over 128 attempts), graded out of 7 by a local gpt-oss-20b judge with 6 or more counted correct, one run, a paired bootstrap for the interval (Appendix E.3 to E.5).
The four shapes of 5 to 7 calls show gains of −1.8 to +2.3 points, with intervals 11 to 12 points wide: the experiment cannot tell "nothing" from "a few points".
What holds up. The direction is the same in four settings and three kinds of harness: same-size students trained on traces stayed below teachers that search, and bigger students narrowed or closed the gap (Figures 1, 2b, 9, 13a). On the controlled tasks the ablations are broad (data share, steps, trace count, source mix, seeds), and on Qwen3 the gaps at the larger trees are 2.7 to 5.4 standard errors. The authors state their own caveats on QED-Nano (one run, no length filtering, no student trained) (Appendix E.6), and the theorem is correct as stated and properly conditional.
What to discount.
Section 3.1 says 12 scales up to 11.5M, Appendix C.1 says up to 5.65M, Table 1's caption says VGB ran 8 scales "from tiny to m_plus" (11 rows), and the figures plot 8 VGB and 5 A* sizes; the (3,2) teacher is 40.4 in Figure 5a and 40.0 in Figure 13a; Figure 5b adds a (1,3) shape (gain +0.1, trace about 164k tokens) that is in neither Table 3 nor Figure 13c. None changes a conclusion.
Verdict. Believe that a same-size student trained by supervised fine-tuning on the traces of a deep, stateful harness fell short in these setups, and that more student capacity closed the gap; the effect is clear at large trees and absent at small ones. Treat the theorem as a clean statement about short-chain students that suggests why, not as a proof that these students could not have learned the harness, and treat the 4B and LoRA-rank claims as within noise.
It gives a reason, beyond engineering convenience, why a harness's gains belong to the model-plus-harness pair: some of them come from depth the loop supplies, which a same-size model has no room for. The practical consequence on Harnesses for training and evaluation, section 1 (the score belongs to the pair) and section 6 (trajectories as training data) is to compare distilled students against the harness at matched size. It also sits next to the more optimistic line in which models trained on serialised search traces learn to search within one rollout (Stream of Search, 2024; Beyond A*, 2024): those students write long traces, which is exactly the escape route the theorem leaves open. And it is one more instance of the chain-of-thought-as-depth view taught on Test-time compute and reasoning, section 1.
Theorem 1 on a graph you can see. The harness is the paper's breadth-first search: each round it asks the base model "is there an edge u → v?" for every frontier vertex u and unvisited v, one constant-depth lookup per question, and keeps the visited set and frontier outside the model. The reader stands in for a fixed-depth student: it reads the whole adjacency matrix once and squares it, as Booleans, once per layer, so k layers see every path of up to 2k hops. Everything runs in your browser with the page's own engine (§4.2).
A tool for any graph: choose the family, the size and the reader's depth, then step the harness round by round. It does not play by itself; the figure at the top of The paper tab plays one graph with its steps explained.
Honest limits of this toy. The reader is one constant-depth strategy (repeated squaring), not every one; that every constant-depth circuit fails on some graph is the open NL ⊄ TC⁰ conjecture, assumed by the theorem, not shown here. The families are illustrative: "long paths" plants paths of about N/1.3 hops on purpose (the worst case the theorem is about), and on "random" graphs, where paths are short, shallow readers do well. Nothing here is a trained model; the paper's students and teachers are not run (no code or checkpoints are released).
on long-path graphs with 64 vertices, a reader with 4 layers (16 hops). How often is it right?
Half the long-path graphs have t cut off, and there "no" is right; in the other half t is about 40 hops away on average, beyond 16, so the reader says "no" there too. It is right exactly when the answer happens to be "no".
200 graphs per size, seeds 1 to 200, computed live by the engine; src/sweep.cjs computes the same numbers in node (inputs/sweep.json) and the page check compares them. The sweep uses an exact shortcut that the single-graph view checks: the reader with k layers says "yes" exactly when t is reachable within 2k hops (the squaring and the rule agreed on 3,000 of 3,000 test cases).
The paper prints almost all its results as charts. Its arXiv source ships each chart as a vector PDF, so every bar here is read from the PDF's geometry, calibrated on the tick marks, and checked against the label the authors printed above it where there is one: 91 printed labels, all agree to their printed precision (src/decode_figs.py, inputs/figs.json). Bars without a printed label (Figures 2b and 9, the intervals of Figure 13c) are marked "decoded". Tables 1 to 3 are transcribed from the HTML.
Choose a figure or table on the right: the chart is redrawn from tables.json, with the table of values under it.
From src/recompute.py (inputs/recompute.json): "reproduces" means the page's number comes from inputs that do not contain the paper's; "derived" is a number the paper does not state.
Every link opens in a new tab. Reading time of the resources below: 7h 30m.
arXiv preprint, the paper itself; the HTML version has the anchors this page links to. abstract page, PDF.
(50 min)
The paper links no code, traces or checkpoints (checked 26 October 2026). Its figures ship as vector PDFs in the arXiv source, which is where every number on this page that is not printed in the text comes from (decode_figs.py).
Merrill and Sabharwal, ICLR 2024: the result this paper leans on: logarithmically many decoding steps add little to a transformer, linearly many reach all regular languages, polynomially many reach exactly P. It is why a student that writes a long trace escapes Theorem 1.
(45 min)
Li, Liu, Zhou and Ma, ICLR 2024: the circuit view of chain of thought: constant-depth transformers sit in AC0 or TC0 depending on precision, and T steps of chain of thought buy T serial steps.
(45 min)
Merrill and Sabharwal, TACL 2023: the upper bound used for the student: a fixed-depth, log-precision transformer is a uniform TC0 circuit, so it cannot solve NL-complete problems unless NL is in TC0.
(40 min)
Merrill and Sabharwal, 2025: the other side of the same coin: a transformer whose depth grows like log n can decide directed reachability, the problem Theorem 1 uses; Lemma 1 borrows its transcript-enumeration argument.
(40 min)
Bateni et al., 2025: the tree-shaped harness of Section 5: leaves sample answers, internal nodes synthesise one from their children.
(40 min)
Rohatgi et al., ICLR 2026: the backtracking harness of Section 2, with the Metropolis-style retract rule and the learned verifier.
(45 min)
Lehnert et al., 2024: where the A* trace format (CREATE, CLOSE, PLAN) comes from; its transformers learn search from such traces at larger sizes.
(35 min)
Gandhi et al., 2024: the optimistic counterpart: a model trained on serialised search traces learns to search inside one rollout.
(35 min)
Qu et al., 2026: the 4B prover of Section 5's second experiment, and its own harness (RSA: 40.0% to 56.9% on IMO-ProofBench at about 22 times the tokens, as this paper quotes it).
(40 min)
Tsilivis et al., 2026: the closest related work by the paper's own account: a transformer absorbing its own chain of thought into its weights, provably for sparse parities.
(35 min)
the same theme from the other side: a light harness around a base model reaches tasks the post-trained model has stopped reaching.
this paper distils with the simplest recipe (supervised fine-tuning on the teacher's traces); that page measures what on-policy distillation changes.
a leaderboard result bought with a large harness; this paper says why such gains need not fold back into the weights.
harnesses written by models; the gains measured there belong to the model-plus-harness pair, as here.
a search over harnesses rather than over answers.
another loop that keeps state across many model calls.
the harness most agents descend from (the paper cites it as Yao et al., 2022).
owns scaffold sensitivity (section 1: the score belongs to the model-plus-harness pair) and trajectories as training data (section 6), the practice this paper puts a limit on.
owns distillation: soft and sequence-level targets, off- and on-policy, what makes a good small model.
owns why a chain of thought adds computation (section 1, with the Merrill and Sabharwal results) and parallel sampling, verifiers and search (sections 2 to 5).
the harness map and the Loop lab.
This page is one row of the Papers database; its properties (Paper, Takeaway, Topics, Year) live there.