Verifying Chain-of-Thought Reasoning via Its Computational Graph
Zheng Zhao, Yeskendir Koishekenov, Xianjun Yang, Naila Murray, Nicola Cancedda
TL;DR
The paper presents Circuit-based Reasoning Verification (CRV), a white-box framework that analyzes attribution graphs of latent reasoning circuits to verify CoT steps. By replacing MLPs with interpretable transcoders and extracting rich structural features from step-level graphs, CRV trains a diagnostic classifier that accurately detects incorrect reasoning and reveals domain-specific error signatures. The work also demonstrates causal interventions guided by these signatures can correct faulty reasoning, offering a move from error detection to understanding and debugging LLM reasoning. While computationally intensive, CRV provides new scientific insights into the mechanistic structure of reasoning and establishes datasets and resources to support future mechanistic verification research.
Abstract
Current Chain-of-Thought (CoT) verification methods predict reasoning correctness based on outputs (black-box) or activations (gray-box), but offer limited insight into why a computation fails. We introduce a white-box method: Circuit-based Reasoning Verification (CRV). We hypothesize that attribution graphs of correct CoT steps, viewed as execution traces of the model's latent reasoning circuits, possess distinct structural fingerprints from those of incorrect steps. By training a classifier on structural features of these graphs, we show that these traces contain a powerful signal of reasoning errors. Our white-box approach yields novel scientific insights unattainable by other methods. (1) We demonstrate that structural signatures of error are highly predictive, establishing the viability of verifying reasoning directly via its computational graph. (2) We find these signatures to be highly domain-specific, revealing that failures in different reasoning tasks manifest as distinct computational patterns. (3) We provide evidence that these signatures are not merely correlational; by using our analysis to guide targeted interventions on individual transcoder features, we successfully correct the model's faulty reasoning. Our work shows that, by scrutinizing a model's computational process, we can move from simple error detection to a deeper, causal understanding of LLM reasoning.
