Reproduce “Reasoning Errors Have a Region and a Direction in the Residual-Stream Trajectory of LLMs” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Hamed Damirchi, Ignacio Meza De la Jara, Damith Ranasinghe, Yuhang Liu, Javen Shi

This research introduces a three-stream detector that analyzes state-conditioned motion within large language models' residual streams to reliably identify reasoning and factual errors. The detector combines insights from representational changes with selectively restored state information, improving error detection accuracy by 7 to 21 percentage points over prior methods and demonstrating robust generalization across diverse, unseen reasoning and factual tasks.

Key insights

  • Reasoning validity is encoded not just in static representations or decontextualized changes, but in the interaction between a computation's state (its "region" and "direction") and its evolution (its "motion").
  • Selectively restoring context about the model's internal state—through a coarse "region" and a finer "direction"—significantly enhances the ability to detect reasoning errors without reintroducing surface-form shortcuts.
  • The three streams (motion, direction, region) provide genuinely complementary signals, with each contributing uniquely to correctly classifying reasoning items, and the detector can generalize to identifying factual errors, suggesting a more fundamental signal of correctness.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.