NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Beneath the Surface of Chains-of-Thought: A Mechanistic Interpretation of Reasoning Operations in LLMs

Seogyeong Jeong, Jaehui Hwang, Dongyoon Han, Geonmo Gu, Alice Oh, Taekyung KimarXiv 2026

TL;DR

When Large Language Models (LLMs) reason step-by-step, they don't just output a superficial sequence of tokens; they organize distinct reasoning operations—like problem decomposition, formula recall, and deduction—into clear, geometric structures within their internal representation spaces. This internal organization peaks in the middle layers of the network, is causally driven by preceding context, and surprisingly persists even when the model makes factual errors.

What Problem Does This Paper Address?

Chain-of-Thought (CoT) prompting has drastically improved LLM performance on complex tasks by forcing them to generate intermediate reasoning steps. However, a fundamental question remains: does this textually explicit reasoning reflect a structured internal cognitive process, or is the model simply generating surface-level text based on local lexical patterns?

The authors tackle this gap by investigating the representational geometry of reasoning operations within LLMs. They explore whether instances of the same reasoning operation (e.g., breaking a problem down) share a common geometric structure in the model's hidden states across entirely different problems, or if these states are merely artifacts of specific words and token positions.

Methods

To systematically analyze internal reasoning, the authors developed a multi-step pipeline:

  1. Reasoning Operation Taxonomy: They adapted George Pólya’s classic problem-solving framework (How to Solve It) into a hierarchical taxonomy of 8 core reasoning operations: Extraction, Direct mapping, Decomposition, Recall, Deduction, Algebraic manipulation, Arithmetic computation, and Final answer.
  2. Annotation: They used GPT-5 to segment and label model-generated reasoning traces into distinct spans, validating the accuracy against a subset of human-annotated data.
  3. Hidden-State Probing: They extracted hidden representations from various layers of several LLMs (including Qwen3-8B, Qwen2.5-7B, and Gemma4-31B). They applied Principal Component Analysis (PCA) followed by Linear Discriminant Analysis (LDA) to identify "reasoning vectors" for each operation.
  4. Rigorous Controls: To prove that the probes were capturing abstract reasoning rather than surface features, they implemented controls for text-only classification (bag-of-words/TF-IDF), relative token position, and digit/formula density.
  5. Causal Interventions: They performed attention-masking experiments, blocking the model's ability to look back at prior context to see if it disrupted the formation of the reasoning representations.
Overview of the reasoning-vector analysis pipeline mapping text spans to geometric clusters

Datasets

The study evaluated model traces on two primary mathematical and theorem-driven datasets:

  • DAPO-MATH-17K: A dataset focused heavily on multi-step mathematical reasoning.
  • TheoremQA: A theorem-driven question-answering benchmark requiring domain-specific academic knowledge.

To test the generalizability of their findings, they also evaluated out-of-domain transfer on GPQA-Diamond (graduate-level science problems) and MATH-500.

Key Insights and Ideas

  • Separability Peaks in Middle Layers: Hidden states representing different reasoning operations form distinct, separable clusters. This structural clarity is weak in the early embedding layers, peaks sharply in the middle layers, and becomes more diffuse in the final layers.
  • Contextualization of Identical Tokens: The geometric structure is not just a reflection of specific words. When the model processes identical function words or punctuation (e.g., "is", "of", commas) in different contexts, their hidden representations separate cleanly based on the active reasoning operation.
  • Causal Dependence on Prior Context: The representation at the start of a new reasoning chunk is not locally self-contained. Attention-masking interventions proved that blocking access to the preceding 30 tokens significantly degrades the operation-specific signal.
  • Decoupling of Operation and Correctness: Remarkably, the geometric structure of a reasoning operation persists even when the model executes a step incorrectly (e.g., making an arithmetic error). The model still internally "knows" it is performing arithmetic, separating the functional intent from the factual correctness of the execution.
Visualization of distinct reasoning-operation clusters in the learned LDA space

Key Results

  • High Classification Accuracy: Probes trained on hidden states achieved high one-vs-rest Area Under the ROC Curve (AUROC) scores across all models, consistently outperforming text-only baselines. For example, Qwen3-8B achieved a macro AUROC of 0.937 compared to 0.849 for the strongest text baseline.
  • Robustness to Lexical Confounds: In adversarial setups where spans contained vocabulary strongly associated with a competing operation, the hidden-state probes remained highly predictive (macro AUROC of 0.919 for Qwen3-8B).
Layer-wise separability showing that reasoning operation classification peaks in the middle layers across different model families

Limitations and Future Work

While the paper provides compelling evidence of internal reasoning structures, the authors note several limitations:

  • Domain Specificity: The evaluation was restricted to mathematical and theorem-driven tasks. It remains to be seen if this geometric clarity holds for commonsense reasoning, creative writing, or code generation.
  • Approximated Boundaries: The span boundaries and labels were generated by an LLM (GPT-5). Though human-validated, they represent an approximation of textual expressions rather than a direct window into latent cognitive states.
  • Diagnostic, Not Interventional: The study is primarily analytical. The authors suggest that future work should explore whether these reasoning vectors can be used actively—such as for detecting reasoning failures in real-time, verifying steps, or steering model activations to improve accuracy.

Summary updated

BibTeX
@misc{jeong2026beneath,
  author = {Seogyeong Jeong and Jaehui Hwang and Dongyoon Han and Geonmo Gu and Alice Oh and Taekyung Kim},
  title = {{Beneath the Surface of Chains-of-Thought: A Mechanistic Interpretation of Reasoning Operations in LLMs}},
  year = {2026},
  eprint = {2609.04753},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.04753},
}
Figure