Verifying Chain-of-Thought Reasoning via Its Computational Graph
Zheng Zhao (Meta), Yeskendir Koishekenov (Meta), Xianjun Yang (Meta), Naila Murray (Meta), Nicola Cancedda (Meta)
International Conference on Learning Representations 2026 · Oral
Overview
Large Language Models (LLMs) have demonstrated impressive capabilities in complex reasoning tasks, often employing Chain-of-Thought (CoT) prompting to break down problems into sequential steps. However, the internal mechanisms behind these reasoning processes remain largely opaque, leading to challenges in debugging failures and building trust. When an LLM makes a mistake in its CoT reasoning, standard evaluation metrics only indicate that an error occurred, not what went wrong or why. This talk introduces Circuit-based Reasoning Verification (CRV), a novel mechanistic approach developed by researchers at Meta, designed to understand and verify LLM reasoning by analyzing its internal computational graph.

Key moments
- 0:00 Introduction: Debugging LLM reasoning failures with attribution graphs
- 2:00 CRV pipeline: Making models interpretable and tracing computations
- 3:33 CRV outperforms baselines in predicting reasoning correctness
- 4:05 Visualizing distinct structural fingerprints for correct/incorrect steps
- 5:10 Robust cross-domain generalization using a combined classifier
- 5:37 Causal intervention: correcting an order of operation error
- 6:15 Conclusion: CRV for deeper causal understanding of model failures
- 6:58 Q&A: Explainability from graph classification for each step
Verifying Chain-of-Thought Reasoning via Its Computational Graph
Speakers: Zheng Zhao (Meta), Yeskendir Koishekenov (Meta), Xianjun Yang (Meta), Naila Murray (Meta), Nicola Cancedda (Meta)
Conference: ICLR 2026
YouTube: https://slideslive.com/39062120
Overview
Large Language Models (LLMs) have demonstrated impressive capabilities in complex reasoning tasks, often employing Chain-of-Thought (CoT) prompting to break down problems into sequential steps. However, the internal mechanisms behind these reasoning processes remain largely opaque, leading to challenges in debugging failures and building trust. When an LLM makes a mistake in its CoT reasoning, standard evaluation metrics only indicate that an error occurred, not what went wrong or why. This talk introduces Circuit-based Reasoning Verification (CRV), a novel mechanistic approach developed by researchers at Meta, designed to understand and verify LLM reasoning by analyzing its internal computational graph.
CRV posits that reasoning failures are not merely random noise but rather stem from flawed computations that leave distinct "structural fingerprints" within the model's attribution graph. By constructing and analyzing these graphs, CRV aims to predict the correctness of individual reasoning steps, moving beyond simple error detection to provide a deeper, causal understanding of model failures. This approach draws an analogy to classical software engineering, where execution traces are inspected to debug program crashes. For deep neural networks, CRV approximates these traces by building a sparse, directed attribution graph that represents the causal information flow during reasoning.
The significance of CRV lies in its potential to enhance the reliability and interpretability of LLMs. By providing a white-box method for diagnosing and even causally intervening in reasoning processes, CRV offers a pathway to more robust and trustworthy AI systems. This research is particularly relevant for practitioners and researchers grappling with the challenges of deploying LLMs in high-stakes applications where understanding and correcting reasoning errors is paramount.
Background
▶ Watch: Introduction: Debugging LLM reasoning failures with attribution graphs (0:00)
The increasing complexity and widespread adoption of deep neural networks, particularly large language models, have brought the issue of interpretability to the forefront. While LLMs excel at generating human-like text and performing intricate reasoning tasks through techniques like Chain-of-Thought (CoT), their decision-making processes remain largely black-box. This opacity creates significant challenges, especially when models produce incorrect or "hallucinated" outputs. A common scenario highlighted is when an LLM claims to use an external tool, like a calculator API, but in reality, it lacks access to or correctly utilizes that tool, leading to erroneous results. In such cases, traditional evaluation metrics can only flag the final output as incorrect, offering no insight into the specific step or internal computation that led to the failure.
The core problem addressed by CRV is the lack of a robust debugging mechanism for LLM reasoning. In classical software engineering, developers rely on execution traces—detailed logs of a program's state and function calls—to pinpoint the exact location and cause of a bug when a program crashes. This provides a granular, step-by-step understanding of the software's behavior. For deep neural networks, however, such explicit execution traces are not readily available. The continuous, high-dimensional computations within neural networks make it incredibly difficult to map internal activations back to human-interpretable concepts or to identify specific computational paths responsible for a particular output.
Prior work in ML interpretability has explored various avenues, including saliency maps (highlighting input features important for a prediction), LIME and SHAP (local explanations for individual predictions), and concept activation vectors (CAVs) (identifying directions in latent space corresponding to human concepts). More recently, mechanistic interpretability has emerged as a field aiming to reverse-engineer the "algorithms" implemented by neural networks, often focusing on understanding specific circuits or computational pathways. CRV builds upon this mechanistic interpretability paradigm by proposing that the internal computational graph, when properly constructed and analyzed, can serve as an approximation of an LLM's execution trace. This allows for a more granular diagnosis of reasoning failures, moving beyond input-output correlations to uncover the underlying computational flaws. The motivation is clear: if we can understand what went wrong at a computational level, we can begin to debug, improve, and ultimately trust these powerful models more effectively.
Key Findings
▶ Watch: CRV outperforms baselines in predicting reasoning correctness (3:33)
The research presented on Circuit-based Reasoning Verification (CRV) yielded several compelling key findings that underscore the efficacy and potential of this mechanistic interpretability approach for debugging LLM reasoning.
Firstly, CRV demonstrated superior performance in predicting the correctness of individual reasoning steps compared to both black-box and gray-box baselines. Across diverse datasets, including synthetic Boolean arithmetic and the real-world GSM8K dataset, CRV consistently outperformed methods that only analyzed output logits or internal hidden state dynamics. For instance, on the arithmetic dataset, CRV achieved an impressive AUROC (Area Under the Receiver Operating Characteristic curve) of over 92%. This high predictive power strongly indicates that the structural properties extracted from the computational graph contain highly predictive signals regarding reasoning correctness.
Secondly, the study revealed the existence of distinct structural fingerprints within the attribution graphs that reliably differentiate between correct and incorrect reasoning steps. Visualizations, such as PCA projections of the high-dimensional graph features, showed clear separation between the classes. Specifically, incorrect steps tended to form a denser subset within the broader distribution of correct steps. This suggests that correct reasoning relies on particular structural properties or "geometries" of the internal computational path, and deviations from these structures are reliable indicators of errors.
Thirdly, the research explored cross-domain generalization and found that while error signatures can be task-specific (e.g., a classifier trained on Boolean logic errors not generalizing well to arithmetic errors), this is not an insurmountable roadblock. The authors successfully demonstrated that by training a combined classifier on diverse datasets, the performance rebounds significantly. This implies that it is feasible to build a single, robust verifier capable of recognizing different failure geometries across multiple tasks simultaneously, enhancing the practical applicability of CRV.
Finally, and perhaps most profoundly, CRV was shown to enable causal intervention, moving beyond mere diagnosis. In an exploratory case study, the CRV tool not only flagged an incorrect step related to an order-of-operation error (incorrectly applying multiplication instead of addition) but also allowed for direct intervention. By tracing the graph, a single feature associated with the concept of multiplication was identified. By applying a forward hook to this feature and setting its value to zero, the model's computational path was causally altered, leading it to generate the correct addition step and ultimately solve the problem correctly. This groundbreaking finding serves as a proof of concept that CRV can facilitate a deeper, causal understanding of model failures, paving the way for targeted corrections and more reliable LLM behavior.
Technical Deep Dive
▶ Watch: Robust cross-domain generalization using a combined classifier (5:10)
The Circuit-based Reasoning Verification (CRV) method is meticulously designed as a four-stage pipeline to mechanistically interpret and verify the reasoning steps of large language models. This white-box approach leverages advancements in mechanistic interpretability to construct and analyze the internal computational traces of an LLM.
The first stage of the CRV pipeline focuses on making the model interpretable. Traditional neural networks, especially LLMs, often use dense Multi-Layer Perceptrons (MLPs), which compute in high-dimensional, opaque spaces. To overcome this, CRV replaces the model's standard MLP modules with trained transcoders. These transcoders are designed to force the computation into a sparse, human-interpretable feature space. The transcoders are trained on a massive dataset; in this work, they were trained over 10 billion tokens taken from the RedPajama dataset. This transformation is crucial as it creates a more structured and understandable representation of the model's internal computations, making the subsequent tracing and analysis feasible. The target model for this implementation was the Llama 31 8B Instruct model, a significant open-source LLM, highlighting the applicability of CRV to state-of-the-art architectures.
The second stage involves constructing a sparse directed attribution graph for any given generated reasoning step. Once the model is made interpretable via transcoders, CRV employs circuit tracing algorithms to trace the causal information flow. This process works backward from the output token of a specific reasoning step. The authors utilized the Anthropic open-source circuit tracer for this purpose. This backward tracing identifies which internal features and computations contributed to the generation of the output, effectively mapping out a sub-graph of the full network that is relevant to that specific reasoning step. The resulting graph is sparse because only the causally relevant paths are included, making it more manageable for analysis. Each node in this graph represents an activated feature or computation, and edges represent their causal dependencies.
In the third stage, structural graph information is extracted from the constructed attribution graph. This involves quantifying various properties that characterize the "fingerprint" of the computation. Key features extracted include:
- Node activation statistics: Metrics related to the intensity, frequency, or distribution of activations within the graph.
- Topological connectivity: Measures of how nodes are connected, such as path lengths, centrality measures, or clustering coefficients.
- Global graph density: Indicators of how densely interconnected the graph is, reflecting the complexity or sparsity of the underlying computation.
These features collectively form a high-dimensional vector that encapsulates the structural characteristics of the reasoning step's computational graph.
The fourth and final stage involves feeding these structural fingerprints into a simple diagnostic classifier. The extracted feature vectors, representing the structural properties of each reasoning step's attribution graph, are used as input to a machine learning model tasked with predicting whether the reasoning step was correct or incorrect. The authors experimented with simple binary classifiers such as a gradient boosting classifier, noting that other simple classifiers like logistic regression also performed well. The evaluation dataset for training and testing this classifier was generated by taking CoT reasoning steps across synthetic Boolean arithmetic and real-world GSM8K datasets. These steps were then meticulously labeled for correctness using a stronger Llama 33 70B model combined with strict programmatic heuristics, ensuring high-quality ground truth for training the diagnostic classifier. The simplicity of the diagnostic classifier highlights that the predictive power comes primarily from the rich, interpretable features derived from the attribution graph, rather than from a complex downstream model.
This comprehensive pipeline allows CRV to transform the opaque internal workings of an LLM into an analyzable computational graph, providing a mechanistic lens through which to understand and verify reasoning processes.
Experimental Setup & Results
▶ Watch: Causal intervention: correcting an order of operation error (5:37)
The experimental evaluation of Circuit-based Reasoning Verification (CRV) was designed to rigorously test its ability to diagnose reasoning failures in LLMs and to understand the nature of the error signals within computational graphs.
Datasets: The researchers constructed evaluation datasets by generating Chain-of-Thought (CoT) reasoning steps across two distinct problem domains:
- Synthetic Boolean Arithmetic: This dataset consists of logical expressions, allowing for precise control over the complexity and type of reasoning involved. Its synthetic nature makes it ideal for isolating specific computational patterns.
- GSM8K (Grade School Math 8K): This is a widely used benchmark dataset for mathematical word problems, representing a more real-world, complex reasoning task.
Individual reasoning steps within these CoT sequences were meticulously labeled as "correct" or "incorrect." This labeling process was crucial and involved a combination of a stronger LLM (a Llama 33 70B model) and strict programmatic heuristics to ensure high accuracy of the ground truth.
Baselines: To demonstrate CRV's effectiveness, its performance was compared against a suite of baselines, categorized by their level of access to the model's internal states:
- Black-box methods: These baselines only have access to the model's output logits. They attempt to predict correctness based solely on the probability distributions over the output tokens, without any insight into internal computations.
- Gray-box methods: These methods analyze the internal hidden state dynamics of the model. They delve deeper than black-box methods but do not construct an explicit computational graph or sparse feature space in the manner of CRV.
Hardware & Metrics: While specific hardware details for training the diagnostic classifier were not explicitly mentioned, the overall context implies standard GPU setups for LLM inference and feature extraction. The primary metric used to evaluate the performance of the diagnostic classifier was AUROC (Area Under the Receiver Operating Characteristic curve). AUROC is a robust metric for binary classification that measures the classifier's ability to distinguish between positive and negative classes across various threshold settings, making it suitable for assessing error detection capabilities.
Headline Numbers & Performance:
The results unequivocally demonstrated CRV's superior performance:
- CRV consistently outperformed all black-box and gray-box baselines across both synthetic Boolean arithmetic and GSM8K datasets. This highlights that the structural information gleaned from the attribution graph is significantly more predictive of reasoning correctness than either output logits or dense hidden state dynamics.
- For example, on the arithmetic dataset, CRV achieved an impressive AUROC of over 92%. This high score indicates that the computational graph contains exceptionally strong and reliable signals for detecting reasoning errors.
Ablation Studies & Visualizations:
- The paper also included ablation studies showing that other simple classifiers, such as logistic regression, performed well, reinforcing the idea that the power lies in the extracted features rather than a complex diagnostic model.
- Visualizations of the structural fingerprints provided intuitive insights. By projecting the high-dimensional graph features into a two-dimensional space using Principal Component Analysis (PCA), the researchers observed distinct patterns. Specifically, incorrect steps tended to form a "dense subset" within the broader distribution of correct steps. This visual separation strongly supports the hypothesis that flawed computations leave unique, detectable structural marks. The observation suggests that correct reasoning leverages specific, perhaps more constrained or efficient, computational paths, while errors represent deviations from these optimal structures.
Cross-Domain Generalization:
An important finding related to generalization was that the predictive error signatures are initially task-specific. A classifier trained exclusively on Boolean logic expressions, for instance, did not generalize well to arithmetic errors. This makes intuitive sense, as different tasks likely rely on different underlying computational circuits, leading to distinct attribution graphs and feature spaces. However, the researchers successfully mitigated this limitation. By training a combined classifier on diverse datasets (e.g., both Boolean and arithmetic tasks), the performance rebounded, demonstrating that a single, robust verifier capable of recognizing various failure geometries across multiple tasks is achievable. This finding is crucial for the practical deployment of CRV, as it suggests the system can be made versatile.
The experimental results definitively established CRV as a powerful tool for diagnosing LLM reasoning failures, providing strong evidence that the computational graph holds highly predictive and interpretable signals of correctness.
Practical Implications
▶ Watch: Q&A: Explainability from graph classification for each step (6:58)
The development of Circuit-based Reasoning Verification (CRV) carries significant practical implications for anyone working with or deploying large language models, from model builders and infrastructure teams to practitioners and researchers. Its white-box approach offers a paradigm shift in how we understand and debug LLM behavior.
For model builders and researchers, CRV provides an unprecedented lens into the internal workings of their models. Instead of merely knowing that an LLM produced an incorrect answer, they can now pinpoint which specific reasoning step failed and, more importantly, gain insights into the computational patterns associated with that failure. This moves beyond simple error detection to causal understanding, allowing for more targeted model improvements. For instance, if a particular type of error consistently shows a specific graph fingerprint, researchers can investigate the parts of the model or training data that might lead to those computational structures. This granular feedback loop is invaluable for developing more robust and reliable LLM architectures and training methodologies.
Infrastructure teams and deployers stand to benefit from CRV's diagnostic capabilities in production environments. As LLMs are integrated into critical applications, the ability to monitor and verify reasoning steps in real-time or post-hoc becomes crucial for trust and safety. CRV could be leveraged to:
- Automate error detection: Flagging potentially incorrect reasoning steps before they lead to flawed final outputs. This could trigger human review or alternative fallback mechanisms.
- Improve auditing and compliance: Providing explainable traces of how an LLM arrived at a decision, which is vital in regulated industries.
- Enhance system reliability: By identifying common failure modes, teams can develop strategies to prevent them or build more resilient systems.
The causal intervention demonstrated by CRV opens up even more transformative possibilities. Imagine a system that not only detects an error but can also correct it by subtly altering the model's internal computation. While still in its early stages, this capability could lead to self-correcting LLM systems, where errors are not just identified but actively mitigated or repaired without requiring a full model retraining. This could significantly reduce the cost and time associated with debugging and maintaining high-performing LLM applications.
However, it's also important to consider the tradeoffs and limitations of CRV.
- White-box access: CRV is inherently a white-box method, requiring full access to the model's internal activations and architecture. This might not be feasible for proprietary or API-based LLMs where only input/output access is provided.
- Transcoder training: The initial stage of training transcoders to create a sparse, interpretable feature space requires significant computational resources and data (e.g., 10 billion tokens from RedPajama). This overhead might be a barrier for smaller teams or those without extensive compute infrastructure.
- Domain specificity: While the research showed that a combined classifier can generalize across tasks, optimal performance might still require task-specific training or fine-tuning of the diagnostic classifier. This adds to the operational complexity.
- Scalability: Constructing and analyzing attribution graphs for every reasoning step, especially for very long CoT sequences or extremely large models, could be computationally intensive. Further research is needed to optimize the tracing and feature extraction processes for maximum efficiency.
Despite these considerations, CRV represents a significant step towards demystifying LLM reasoning. By providing tools for deep mechanistic understanding, it empowers practitioners to build, debug, and deploy more trustworthy, interpretable, and ultimately, more capable AI systems.
Key Takeaways
- Mechanistic Debugging for LLMs: CRV offers a novel white-box approach to debug Chain-of-Thought (CoT) reasoning in LLMs by analyzing their internal computational graphs, moving beyond simple error detection to causal understanding.
- Four-Stage Pipeline: The method involves making the model interpretable via transcoders, constructing sparse attribution graphs, extracting structural graph features, and training a diagnostic classifier to predict reasoning correctness.
- Highly Predictive Signals: Attribution graphs contain distinct "structural fingerprints" that reliably differentiate correct from incorrect reasoning steps, leading to high predictive accuracy (e.g., >92% AUROC on arithmetic tasks).
- Superior Performance: CRV significantly outperforms both black-box (output logits) and gray-box (hidden state dynamics) baselines in diagnosing reasoning errors.
- Causal Intervention Potential: Beyond diagnosis, CRV enables causal intervention, as demonstrated by correcting an order-of-operation error by zeroing a single feature associated with multiplication, altering the model's computational path.
- Generalizable Error Signatures: While error signatures are initially task-specific, training on diverse datasets allows for the creation of a single, robust verifier capable of generalizing across different types of reasoning tasks.
About the Speaker(s)
The research presented on Verifying Chain-of-Thought Reasoning via Its Computational Graph was conducted by a team of researchers at Meta. The talk was delivered by Zheng Zhao, who is listed as the primary presenter and author. His co-authors include Yeskendir Koishekenov, Xianjun Yang, Naila Murray, and Nicola Cancedda, all affiliated with Meta. The team's work focuses on advancing mechanistic interpretability for large language models, aiming to unravel the opaque internal algorithms that govern LLM reasoning. Their contributions, including the development of CRV and the open-sourcing of their code, datasets, and trained transcoders for the Llama 31 8B Instruct model, underscore their commitment to fostering greater transparency and debuggability in the field of AI.
Reviews
→ Top-rated talks at International Conference on Learning Representations 2026
All talks from International Conference on Learning Representations 2026