← Latest papers
💬 NLP

ReaComp: Compiling LLM Reasoning into Symbolic Solvers for Efficient Program Synthesis

The paper introduces ReaComp, a framework that compiles LLM reasoning traces into reusable, zero-token symbolic solvers which achieve state-of-the-art accuracy on program synthesis benchmarks, significantly reduce token usage when combined with LLMs, and successfully transfer to real-world linguistic tasks.

Original authors: Atharva Naik, Yash Mathur, Prakam, Carolyn Rose, David Mortensen

Published 2026-05-08
📖 4 min read☕ Coffee break read

Original authors: Atharva Naik, Yash Mathur, Prakam, Carolyn Rose, David Mortensen

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: The "Over-Thinker"

Imagine you have a very smart, creative assistant (an AI) who is great at solving puzzles. However, when the puzzle gets really hard or long, this assistant starts to panic. They try to solve it by guessing, checking, guessing again, and writing out huge, messy notes. They eventually get the right answer, but they use up a massive amount of paper (computing power) and time to do it. Sometimes, they get stuck in a loop, repeating the same mistakes over and over.

The researchers found that while these AI assistants are powerful, they are inefficient and expensive when faced with complex, multi-step logic problems (like rewriting strings of text or finding rules in data).

The Solution: The "Recipe Book" (REACOMP)

Instead of asking the smart assistant to solve every single new puzzle from scratch, the researchers came up with a new method called REACOMP.

Think of it like this:

  1. The Observation Phase: First, they watch the smart assistant solve a small set of practice puzzles. They watch how the assistant thinks, where it gets stuck, and what strategies it uses to succeed.
  2. The Compilation Phase: They hire a "coding agent" (a specialized AI programmer) to watch those practice sessions. This programmer doesn't just copy the answers; they write a permanent rulebook (a symbolic solver) based on the patterns they saw. This rulebook is a set of strict, logical instructions that can solve that type of puzzle instantly.
  3. The Execution Phase: Now, when a new puzzle comes in, they don't ask the smart assistant to think. They just hand the puzzle to the Rulebook. The Rulebook solves it instantly, using zero "thinking" power from the smart assistant.

If the Rulebook gets stuck on a really weird puzzle, then (and only then) do they call the smart assistant for help.

The Results: Speed, Savings, and Smarts

The paper tested this on two types of difficult logic puzzles (called PBEBench and SLR-Bench). Here is what happened:

  • The "Zero-Cost" Win: The Rulebooks (symbolic solvers) were so good that they solved the hardest puzzles 84.7% to 91.3% of the time without asking the smart assistant for help at all. This means the cost to solve these problems dropped to zero for the AI's "brain" usage.
  • Beating the Giants: On the hardest puzzles, the Rulebooks actually performed better than the smart assistant trying its hardest (even when the assistant was allowed to try many times). The Rulebooks were 16% more accurate than the best "guess-and-check" methods used by the AI alone.
  • The Hybrid Superpower: When they combined the Rulebook with the smart assistant (using the Rulebook first, and the assistant only as a backup), they got the best of both worlds. They achieved the highest accuracy ever recorded on these tests while using 78% less computing power (tokens) than the AI alone.
  • Real-World Test: They even tried this on a real-world language puzzle about how sounds change in ancient languages. The Rulebooks, which were never taught about this specific topic, solved it with 80% accuracy just by using the logic they learned from the practice puzzles.

The Key Takeaway

The paper argues that we shouldn't just keep asking AI to "think harder" on every new problem. Instead, we should let the AI learn how to learn once, turn that learning into a permanent, reusable tool (a solver), and then use that tool for everything.

It's the difference between hiring a genius to solve a math problem from scratch every time (expensive and slow) versus hiring a genius once to write a calculator app, and then using that app forever (cheap, fast, and reliable).

Summary of Claims

  • Efficiency: You can turn AI reasoning traces into reusable tools that solve problems without needing the AI again.
  • Performance: These tools are often better than the AI itself on hard, long tasks.
  • Cost: This method drastically reduces the money and energy needed to run AI systems.
  • Generalization: These tools can be applied to new, real-world tasks (like linguistics) without needing to be retrained.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →