Catch It Where It Happens: Real Time Error Correction During LLM Reasoning
Rotem Elimelech, Michael Shalyt, Ido Kaminer
Key points
From the paper's conclusion- We propose online, deterministic verification: many kinds of reasoning steps can be validated by code, so a step can be verified in real time, as it is written, without any model call or GPU use.
Abstract
Large language models (LLMs) are increasingly trusted with mathematical, scientific and engineering work, yet their mistakes are often confidently written and hard to spot. A single wrong step tends to propagate, making the model waste inference tokens following a false premise. Existing safeguards either check only the final answer and restart from scratch, or rely on a verifier LLM that competes for GPU capacity and slows down response time. We propose online, deterministic verification: many kinds of reasoning steps can be validated by code, so a step can be verified in real time, as it is written, without any model call or GPU use. Whenever a check fails, we point out the mistake and let the model continue from the same spot. We demonstrate this approach on symbolic mathematics, where derivations already contain explicit expressions that a computer algebra system can check in milliseconds. Tested on the ASyMoB benchmark with three open-weights models, our online validation improves accuracy by 1.4-5.6 percentage points, corresponding to a 1.8-14.9% net reduction in incorrect answers, while increasing token usage by only 6-7%. Because the verifier is independent of the model, the approach complements progress in LLMs rather than competing with it: every new model can benefit immediately, and the benefit grows as deterministic checkers extend to more kinds of reasoning steps.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- BiVerify: Closing the Loop Between Backward and Forward Verification for Mathematical Self-CorrectionarXiv · 2026
- HalluciNOT: execution grounded detection and targeted repair of symbolic drift hallucinations in large language model reasoningDiscover Computing · 2026
- Agent-Guided Process Verification for Mathematical Self-CorrectionarXiv · 2026
- SafeInferCom: Safe Inference-Time Compute via Verifier-Guided Mid-Generation Intervention for Robotic Task PlanningarXiv · 2026
- From Sorry to QED: Refining LLM Math Proofs via Angelic ExecutionarXiv · 2026
- COVE: A Task-Adaptive, Code-Based Ensemble for Proactive Verification of LLM OutputsarXiv · 2026