Catch It Where It Happens: Real-Time Error Correction During LLM Reasoning
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.
Create a lesson
Related papers
MedCoast: Semantic Abstraction of Reasoning Trajectories for Test-Time Biomedical Question Answering
Shared title terminologycs.CLYishan Zhong, Jieru Li, Xuanzhe Ding et al.
Evaluating Physically Grounded Procedural Reasoning in VLMs through Real-World Execution: Crochet as a Testbed
Shared title terminologycs.CLMaximiliano Wardle
Where Do Fact-Checking Errors Arise? Separating Retrieval, Search Control and Judgement in Evidence-Grounded Verification
Shared title terminologycs.CLMartin Pavlíček, Martin Kotyrba, Eva Volná et al.
Explainable Emotion and Mental Health Reasoning in Large Language Models Using Theories of Emotion
Shared title terminologycs.CLTadesse Destaw Bela, Iqra Ameer, Helena Gómez Adorno et al.
Thakaa at StanceEval-2026: Inference-Time Target Grounding for Arabic Stance Detection
Shared title terminologycs.CLMeshal Alamr, Hassan Alqaeri, Abdullah Aldahlawi
Thakaa at AlexandriaX-2026: Who Gets the Final Say? Assigning Output Authority in Dialectal Arabic Machine Translation and Error Detection
Shared title terminologycs.CLMeshal Alamr, Maryam Altuwaijri, Hassan Alqaeri et al.