What Is a Theory Worth to an LLM Solver? Measuring, Inducing, and Merging Theories in Context
Organizations: Meta Platforms, Inc.
Abstract
Mathematicians solve problems faster when they know the right theory. We ask how much a stated theory is worth to a large language model (LLM) solver, and whether a model can write that theory itself. In a length-matched protocol, adding the right theory to the context of Qwen3-14B raises pass@1 on pattern waiting-time problems from 0.37 to 0.83 and cuts the median tokens of correct solutions from 10.2k to 6.3k, while worked examples of the same length do not help. The gain shrinks as the solver and its token budget grow (+0.46, +0.26, +0.07), and at a long budget it comes almost entirely from finishing within budget: solutions that finish are correct 98--100% of the time in every condition. To separate induction from recall, we plant unpublished theorems in custom probability families and measure how much of the oracle theory's gain an induced theory recovers. A strong open model, required to explore the training problems with code before writing, recovers 60% of the gain on one planted family, 48% on a second, and almost none on a third, where it finds the right form but not the condition that makes the form computable. No single induced note is complete, but a strong model that merges several notes recovers 61% of the gain on the classic family, above the best single note (47%). Theories are worth the reasoning they save, and models can find their pieces before they can assemble them.
Figures & tables
| Family | Kind | Theory | Oracle gain |
|---|---|---|---|
| (a) waiting times | classic | Conway overlap numbers / martingale | +0.46 (12k) |
| (b) colouring counts | classic | Burnside / Pólya | solver already knows it |
| F1 necklace rearrangements | planted | orbit-flux condition product law | +0.76 (12k) |
| F2 neighbouring-pair swaps | planted | orbit condition transfer-matrix law | +0.82 (32k) |
| F3 collision process | planted | linear potential expected penalty | +0.63 (32k) |
| P5b = (a) under planted protocol | classic | Conway overlap numbers | +0.35 (32k) |
| Failure mode | Example | Effect on the solver |
|---|---|---|
| No exploration | First protocol: theories written without running code | Guesses; no planted condition found |
| Wrong class | F2: weak and original-235B theories assert independent beads | |
| Right form, missing condition | F2: transfer-matrix form without the orbit condition (Box 1) | : the solver cannot compute |
| Special case only | F3 weak run 1: step count, not pair-dependent penalty | Helps on step counts (0.99), hurts on penalties (0.32 vs. 0.49) |
| Confident wrong formula | F3 strong run 0: wrong product formula | Below no theory (0.01 vs. 0.37) |
| Partial sub-rules | Family (a): each inducer finds a different sub-rule | Mergeable (Section 5 ) |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Paper name | Task 60 (families (a), (b)) | Tasks 61/62 (F1, F2, F3, P5b) |
|---|---|---|
| NoTheory | C0 | C0 |
| Oracle | C1 | C1 |
| Irrelevant | C2 (Burnside/Pólya text in family (a)) | – |
| GenericHint | – | C2 |
| Examples | C3 (worked training solutions) | – |
| Induced-weak | C4 (v1), C4a–C4c (searched, v2) | C3 (three runs) |
| Study | Decision rule | Amendments and outcome |
|---|---|---|
| Family (a), H1 and H2 | H1: Oracle beats NoTheory and Irrelevant on two of three metrics and is not worse than Examples . H2: and the induced arm beats Irrelevant (CI excluding 0). | H1 met at 12k, 32k and 64k. A single 32B theory is harmful; searched induction (8 candidates, validation selection) gives . Stronger inducers: for any single note at 32k. |
| Family (a), merging | Merged arm: and beats Irrelevant ; per-type selection rule and its keyword patterns fixed in advance. | Met by the 235B merge ( ); 32B merge 0.31; per-type rule 0.28. |
| Family (b) | As family (a); about 20% traps. | First round VOID (colour-swapped train/test twins), regenerated. No gain: the solver already knows the theory. |
| F1 | H2: and (CI excluding 0); fails if the upper end of ’s CI is below 0.5. VOID if headroom , leak, length mismatch , mixed compute lineages, or fewer than two theories. | Amendment 1: induction protocol v2 (code gate) after the first weak run wrote all theories without running code. H2 met ( ). |
| F2, F3 | Calibration gate: Oracle NoTheory on a separate 20-problem bank, else simplify once. H2 and VOID rules as F1. | Both gates passed (+0.83, +0.58). F3 probe corrected to ask about F3’s own quantity. F2: H2 fails ( ). F3: not met ( , no gain over GenericHint ). |
| Classic control | Commute times in electrical networks, same gate. | Gate failed twice (second attempt: 0.12 with the oracle theory, 0.13 without); stopped as preregistered. Replaced by P5b: H2 met ( ), recall not excluded. |
| Family | Check and result |
|---|---|
| F1 | Global balance holds symbolically ( ; ). An exact solver equals the theorem on 60/60 random planted instances ( 2–4, 3–8; largest difference ); all 60 violate detailed balance. Traps: the theorem’s condition fails on 30/30, and every trap’s law is at least from any product law. Monte Carlo (2M events) agrees within its interval. |
| F2 | The exact stationary law equals the transfer-matrix law on 48/48 random instances (largest relative difference ); the chains are irreducible. Traps are rejected 24/24, and the misapplied law is off by a median of 97%. |
| F3 | Exact dynamic programming in rational arithmetic equals the planted penalty law on 48/48 checks (24 random instances, each for the number of steps and the penalty; , 4–8 particles). |
| (a) | Every answer is computed twice, from Conway’s overlap numbers and from the pattern automaton’s linear system, and the two must agree. |
| (b) | Every Burnside/Pólya count is checked by orbit enumeration whenever the colouring space has at most elements. |
| Family | Exact | Coarse | exact | coarse | primary | secondary |
|---|---|---|---|---|---|---|
| F2 | 4/9 | 4/9 | ||||
| F3 | 3/6 | 4/6 | ||||
| P5b | 3/6 | 3/6 | ||||
| All | 10/21 | 11/21 |
LLM Reasoning
Large language model reasoning studies how models solve multi-step problems, verify intermediate steps, and use computation or tools reliably.
See all 982 papers