HalluciNOT: execution grounded detection and targeted repair of symbolic drift hallucinations in large language model reasoning
Kartish Bhadauria, Achin Jain, Prakhar Priyadarshi, Arun Kumar Dubey, Kumar Shashvat, Aniket Shah, Arvind Panwar
Key points
From the paper's conclusion- We present HalluciNOT (Hallucination Neutralisation via Obligatory Testing), a three-stage post-hoc framework comprising: a constrained Program-of-Thought equation generator that enforces structural integrity of symbolic outputs; a guarded drift detector that compares sandboxed execution results against the ground truth, closing the detection gap that defeats verifiers restricted to the model’s ow
Abstract
Large Language Models (LLMs) exhibit a specific and previously undercharacterised reasoning failure we term symbolic drift hallucination: an intermediate variable within a multi-step computation graph silently receives an incorrect value, which then propagates through all subsequent derivations to yield an output that is linguistically coherent, structurally sound, and numerically wrong. This failure mode is invisible to existing single-signal verifiers because the model’s verbally stated answer and its generated symbolic code both carry the same corrupted value, causing them to agree on an incorrect result. We present HalluciNOT (Hallucination Neutralisation via Obligatory Testing), a three-stage post-hoc framework comprising: a constrained Program-of-Thought equation generator that enforces structural integrity of symbolic outputs; a guarded drift detector that compares sandboxed execution results against the ground truth, closing the detection gap that defeats verifiers restricted to the model’s own outputs; and a targeted Reflexion repair loop that isolates the corrupted variable for re-grounding. Because the repair stage accepts a candidate only when it lies within $$10^{-6}$$ of the ground truth, a strictly tighter bound than the $$10^{-3}$$ tolerance of the evaluation metric, the framework cannot convert a correct result into an incorrect one; the guarantee is unconditional, independent of repair quality, and independent of detector calibration. This framework is scoped to contexts where ground truth is available at inference time, such as automated grading, evaluation pipelines, and educational platforms with known answer keys. Evaluated on 600 samples across three benchmarks (GSM-Hard, SVAMP, and MAWPS, each with $$n = 200),$$ HalluciNOT achieves accuracy of 92.0%, 99.5%, and 100.0% respectively, with gains of +23.0, +4.0, and +5.5 percentage points over the LLM baseline. A three-condition evaluation shows that execution grounding and targeted repair recover disjoint failure sets: execution grounding corrects 46 baseline errors while introducing 6 new ones, and repair corrects a further 25 cases that the PoT-Only variant does not recover, including all 6 execution-induced regressions. An ensemble investigation reveals that symbolic drift hallucinations are deterministic given the prompt, establishing that inconsistency-based sampling cannot address this failure class and motivating pre-execution magnitude analysis for recall improvement. Clinical trial number Not applicable.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Catch It Where It Happens: Real Time Error Correction During LLM ReasoningarXiv · 2026
- Repairing LLM-Generated Specifications with Deterministic DiagnosisarXiv · 2026
- BiVerify: Closing the Loop Between Backward and Forward Verification for Mathematical Self-CorrectionarXiv · 2026
- Measuring Hallucination in Large Language Models: A Probabilistic Study of Context Persistence EffectsSoftware · 2026
- Many Paths to the Same Mistake: Generating Diverse Reasoning Paths Behind the Same Student MistakearXiv · 2026
- Neuro-Symbolic Verification for Preventing LLM Hallucinations in Process ControlProcesses · 2026