Structure Enables Effective Self-Localization of Errors in LLMs

Ankur Samanta, Akshayaa Magesh, Ayush Jain, Kavosh Asadi, Youliang Yu, Daniel Jiang, Boris Vidolov, Kaveh Hassani, Paul Sajda, Jalaj Bhandari, Yonathan Efroni

Large Language Models (LLMs) are impressive reasoners, but they notoriously struggle to fix their own mistakes. Previous research has suggested that LLMs simply lack the inherent ability to self-correct without external feedback. However, this paper argues that the issue isn't necessarily a lack of intelligence, but a lack of structure. Without clear boundaries between logical steps, a model cannot pinpoint exactly where its reasoning went off the rails.

To address this, the authors introduce Iterative Correction Sampling of Thoughts (Thought-ICS), a framework that structures reasoning into discrete, semantically coherent "thoughts," allowing models to accurately localize errors, backtrack to the last correct step, and successfully resample a new path to the right answer.

The Problem with Continuous Reasoning

Standard "Chain-of-Thought" (CoT) prompting generates reasoning as a continuous stream of tokens. If a model makes a mistake early in its response, it lacks the structural landmarks needed to retroactively identify the specific point of failure. If the model doesn't know exactly where it tripped, it cannot get back on the right path—it simply wanders further into the woods.

The Solution: Thought-ICS

Thought-ICS draws inspiration from how the human brain (specifically the anterior cingulate cortex) monitors errors at discrete decision points. Instead of generating a monolithic block of text, the model operates in a "Thought Markov Decision Process" (Thought-MDP). It generates one discrete, complete thought at a time, delimited by special markers.

The framework relies on a three-step correction loop:

  1. Verification: The system checks if the final answer is correct, using either an "oracle" ground truth or the model’s own self-verification.
  2. Localization: If the answer is wrong, the model is prompted to review its numbered steps and identify the first erroneous thought.
  3. Backtracking & Resampling: The system discards everything from the error onward, "rewinds" to the last verified correct step, and prompts the model to try a different reasoning path from that point.

This surgical, step-level intervention contrasts sharply with standard methods like Self-Refine (which regenerates the whole answer based on a general critique) or CoVe (which asks verification questions).

Key Findings and Performance

The researchers evaluated Thought-ICS across eight models (ranging from 3B to 120B parameters) on diverse reasoning benchmarks, including math (AMC23, AIME, MATH500-L5, MathQA) and science/logic (GPQA, CSQA).

  • Structure as a "Save Point": By forcing the model to define its own thought boundaries, Thought-ICS creates natural save points. The paper demonstrates that resampling from a "clean prefix" (a reasoning chain with no hidden errors) is 2 to 4 times more likely to result in a correct answer than resampling from a prefix that still contains an unidentified mistake.
  • Initial Accuracy Boost: Surprisingly, simply imposing the thought-by-thought structure improved initial accuracy by 6.5% on average—before any correction even took place. For large models on difficult tasks like AIME, this structural boost reached up to 40%.
  • Correction Results: When provided with an oracle signal indicating an incorrect answer, Thought-ICS achieved a 20–40% accuracy lift over standard CoT baselines. In fully autonomous settings (without external verification), Thought-ICS outperformed contemporary baselines. Furthermore, larger models (70B+ parameters) proved significantly better at self-localization within this structured format.

Limitations and the Verification Bottleneck

Despite these advances, autonomous self-correction remains constrained by the "verification gap." The biggest hurdle is often not fixing the error, but recognizing that one exists. The authors observed "specificity collapse," where models autonomously misidentify valid logic as errors and "break" their own correct answers.

Additionally, the study focused on verifiable domains like math and science; applying this framework to open-ended or subjective tasks remains a challenge. Future work may involve explicitly training models to localize errors—rather than relying solely on next-token prediction—to unlock even deeper self-correction capabilities.

Summary updated

BibTeX
@inproceedings{samanta2026structure,
  author = {Ankur Samanta and Akshayaa Magesh and Ayush Jain and Kavosh Asadi and Youliang Yu and Daniel Jiang and Boris Vidolov and Kaveh Hassani and Paul Sajda and Jalaj Bhandari and Yonathan Efroni},
  title = {{Structure Enables Effective Self-Localization of Errors in LLMs}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=ht7KSypUpV},
}
Figure