TL;DR
Demanding that an LLM provide a verifiable program to explain its reasoning—rather than just a raw answer—imposes a significant "accuracy tax" but offers a massive "compute rebate." On the ARC-AGI-2 benchmark, requiring code reduced solved tasks from 77% to 57%, yet the ability to verify that code against training data allowed the system to save up to 49% of its inference budget through early stopping.
What Problem Does This Paper Address?
Large Language Models (LLMs) are increasingly used in scientific discovery to generate hypotheses or design experiments. However, they often produce "plausible-sounding but ultimately wrong" results. A common fix is to demand a verifiable artifact: instead of asking for an answer, you ask the model to write a program that generates the answer based on the evidence.
While this makes the output auditable, researchers have long suspected it comes at a high cost. Is it harder for a model to write a general program than to just guess the right grid? Does it require a much larger computational budget to find a working program? This paper quantifies these costs—the "price of an explanation"—using the Abstraction and Reasoning Corpus (ARC).
Methods
The authors compared three experimental "arms" using Gemini 1.5 Flash:
- Answer-only (A0): The LLM predicts the output grid directly.
- Explainable (X): The LLM writes code in a custom Domain-Specific Language (DSL) to solve the task.
- Evolved (E): The LLM generates initial "seed" programs, which are then refined using a "free" evolutionary search (no additional LLM calls) to find better solutions.
A key innovation is the adaptive stopping rule. Because a program can be executed against the provided training examples, the system can "verify" its own work. If a program perfectly reproduces the training demonstrations, the system can stop sampling and save its remaining budget.
Datasets
- ARC-AGI-2: A set of 120 evaluation tasks from the Abstraction and Reasoning Corpus, which requires fluid intelligence to infer rules from a few visual examples.
- Quantum Error Correction (QEC): To test transferability, the authors applied the same method to synthesize decoders for a [[72, 12, 6]] bivariate-bicycle qLDPC code, evaluating them against 200,000 held-out "exam shots."
Key Insights and Ideas
- The Generalization Gap: The primary bottleneck isn't finding an explanation; it's finding the right one. For nearly all tasks that the "answer-only" model solved but the "code" model missed, the system actually did find a program that perfectly explained the training data—it just failed to generalize to the test input.
- Search is a Force Multiplier: Evolutionary search on top of LLM-generated code is highly effective. A short search over just two sampled programs improved performance by over 9 tasks compared to simple sampling, essentially getting "more juice" out of the same model calls.
- Verifiability as a Scheduling Property: In standard LLM setups, you have to spend your entire "best-of-N" budget to be sure of a result. Here, verifiability allows for early termination. If the code works on the training data, you can stop and bank the saved compute.
Key Results
- The Accuracy Tax: Demanding a verifiable program reduced the success rate on ARC from 93/120 tasks (77%) to 68/120 (57%).
- The Compute Rebate: The stopping rule allowed the "Explainable" arm to decline 38% of its permitted budget, while the "Evolved" arm saved 49%.
- Efficiency: The evolved arm reached the same performance level as the answer-only baseline (at 1 sample) while using significantly fewer calls per task when accounting for early stopping.
Limitations and Future Work
The authors acknowledge that their results are tied to the specific DSL and models used. A major limitation is that the current system struggles to select the "correct" program when multiple programs fit the training data (overfitting).
Future work could involve:
- Strengthening Selection: Developing better "selectors" or rankers to identify which training-perfect program is most likely to generalize.
- Refining the DSL: Making the programming language more expressive to cover the 21 tasks that no program-producing configuration could solve.
- Post-hoc Explanations: Prompting a model to synthesize a program after it has committed to a direct prediction to see if that bridges the accuracy gap.
Summary updated