Beneath the Surface of Chains-of-Thought: A Mechanistic Interpretation of Reasoning Operations in LLMs
Organizations: KAIST · NAVER AI Lab
Abstract
Reasoning in large language models unfolds through diverse functional operations, such as problem formulation, goal decomposition, and deduction. Although these operations are explicitly distinguished in text, little is known about how they are geometrically organized in representation spaces. To this end, we investigate whether distinct reasoning operations exhibit corresponding geometric structure in hidden representations. We find that operations are separable in held-out representations, with separability peaking in middle layers, and verify that this structure is not explained by lexical or positional confounds. Across layers, token-wise operation-alignment becomes more distributed over spans, while identical surface tokens are represented differently depending on the operation of its surrounding chunk. Attention-masking interventions further show that operation-aligned representations at chunk onset depend on preceding reasoning context. Consequently, our work demonstrates that language models maintain representational correspondence between linguistic reasoning expressions and their internal geometric structures. Code and project materials are available at https://github.com/naver-ai/beneath-cot.
Figures & tables
| Problem-solving stage | Reasoning Operation | Example |
| Understanding the problem | Extraction Direct mapping | The problem says that two numbers add up to 10. x is greater than 3 |
| Planning the solution | Decomposition | Get the area of Heptagon Divide it into triangles Solve each triangle Combine results |
| Carrying out the plan | Recall Deduction Algebraic manipulation Arithmetic computation | Area of a circle is needed Recall apply to problem is greater than 3 and is an integer |
| Looking back and final answer | Final answer | Therefore, the values are and . |
| Model | Position-only | Text-only | Hidden(Ours) |
| Qwen3-8B | |||
| Qwen2.5-7B | |||
| Gemma4-31B |
Appendix figures & tables26 assets
Supplementary material from the paper’s appendix.
Appendix
| Reasoning operation | Mean | Median | One-sided -value | |
| Extraction | 0.596 | |||
| Direct Mapping | 0.391 | |||
| Decomposition | 0.531 | |||
| Recall | 0.406 | |||
| Deduction | 0.441 | |||
| Algebraic Manipulation | 0.601 |
| Operation | AUROC-M | AUROC-Mid | AUPRC-M | AUPRC-Mid |
| Extraction | 0.959 | 0.903 | 0.880 | 0.711 |
| Direct Mapping | 0.936 | 0.890 | 0.821 | 0.721 |
| Decomposition | 0.987 | 0.943 | 0.852 | 0.659 |
| Recall | 0.974 | 0.918 | 0.857 | 0.785 |
| Deduction | 0.869 | 0.766 | 0.652 | 0.470 |
| Algebraic Manipulation | 0.985 | 0.926 | 0.907 | 0.739 |
| GPQA-Diamond | MATH-500 | |||||||
| Operation | AUROC-M | AUROC-Mid | AUPRC-M | AUPRC-Mid | AUROC-M | AUROC-Mid | AUPRC-M | AUPRC-Mid |
| Extraction | 0.983 | 0.967 | 0.925 | 0.861 | 0.986 | 0.983 | 0.983 | 0.960 |
| Direct Mapping | 0.907 | 0.835 | 0.699 | 0.506 | 0.902 | 0.837 | 0.732 | 0.455 |
| Decomposition | 0.951 | 0.871 | 0.859 | 0.650 | 0.970 | 0.881 | 0.862 | 0.615 |
| Recall | 0.903 | 0.844 | 0.675 | 0.538 | 0.954 | 0.902 | 0.845 | 0.707 |
| Deduction | 0.902 | 0.846 | 0.585 | 0.427 | 0.921 | 0.850 | 0.646 | 0.518 |
| Operation | Error AUROC | Non-error AUROC | Error AUPRC | Non-error AUPRC | ||
| (a) Middle-token representation | ||||||
| Recall | 0.946 | 0.949 | 0.446 | 0.862 | 0.857 | 0.695 |
| Deduction | 0.867 | 0.906 | 0.592 | 0.755 | ||
| Algebraic Manipulation | 0.897 | 0.915 | 0.632 | 0.630 | 0.607 | |
| Arithmetic Computation | 0.926 | 0.957 | 0.784 | 0.866 | ||
| Final Answer | 0.964 | 0.960 | 0.773 | 0.924 | 0.932 | 0.406 |
| Mean pooling | Middle token | |||||
| Model | 8 PCs | 32 PCs | 128 PCs | 8 PCs | 32 PCs | 128 PCs |
| Qwen3-8B | ||||||
| Qwen2.5-7B | ||||||
| Gemma4-31B | ||||||
| Stage | Reasoning operation | Qwen2.5-7B | Qwen3-8B | Gemma4-31B |
| Stage 1: Understanding the Problem | Extraction | 590 | 1,035 | 682 |
| Direct-mapping | 624 | 913 | 1,289 | |
| Reframing | 146 | 390 | 393 | |
| Abstraction | 8 | 35 | 36 | |
| State-space-definition | 190 | 315 | 259 | |
| Stage 2: Planning the Solution | Pattern-matching | 225 | 322 | 389 |
| Model | Position | Hidden | |
| Qwen3-8B | |||
| Qwen2.5-7B | |||
| Gemma4-31B |
| Position | Labels | AUROC/AUPRC | Chance AUPRC |
| 7 | |||
| 5 | |||
| 5 | |||
| 5 | |||
| 5 |
| Model | Text | Hidden | |
| Qwen3-8B | |||
| Qwen2.5-7B | |||
| Gemma4-31B |
| Operation | Median | 95% CI | |
| Extraction | 4.68 | 87.5% | |
| Direct Mapping | 0.57 | 75.0% | |
| Decomposition | 3.91 | 100.0% | |
| Recall | 1.05 | 70.0% | |
| Deduction | 0.61 | 76.9% | |
| Algebraic Manipulation | 0.68 | 60.7% |
| Qwen3-8B | Qwen2.5-7B | |||
| Operation | AUROC | AUPRC | AUROC | AUPRC |
| Extraction | 0.997 | 0.992 | 0.957 | 0.904 |
| Direct Mapping | 0.888 | 0.811 | 0.753 | 0.499 |
| Decomposition | 0.899 | 0.806 | 0.873 | 0.838 |
| Recall | 0.923 | 0.893 | 0.878 | 0.664 |
| Deduction | 0.835 | 0.653 | 0.862 | 0.744 |
| Operation | Chance AUPRC | Mean pooling | Middle token | |
| AUROC | AUPRC | AUROC/AUPRC | ||
| Direct Mapping | 0.204 | 0.994 | 0.979 | |
| Deduction | 0.184 | 0.866 | 0.701 | |
| Algebraic Manipulation | 0.204 | 0.912 | 0.755 | |
| Arithmetic Computation | 0.204 | 0.816 | 0.510 | |
| Final Answer | 0.204 | 0.999 | 0.998 | |
| Reasoning operation | Mean AUROC [95% CI] | Mean AUPRC [95% CI] | Middle AUROC [95% CI] | Middle AUPRC [95% CI] |
| Qwen3-8B (layers 10–30) | ||||
| Extraction | 0.998 [0.995, 1.000] | 0.988 [0.975, 0.998] | 0.995 [0.991, 0.998] | 0.970 [0.943, 0.989] |
| Direct mapping | 0.947 [0.921, 0.969] | 0.802 [0.724, 0.873] | 0.875 [0.835, 0.911] | 0.587 [0.490, 0.683] |
| Decomposition | 0.980 [0.961, 0.994] | 0.895 [0.824, 0.954] | 0.926 [0.890, 0.956] | 0.636 [0.514, 0.750] |
| Recall | 0.965 [0.939, 0.986] | 0.847 [0.761, 0.925] | 0.917 [0.875, 0.952] | 0.725 [0.640, 0.809] |
| Deduction | 0.927 [0.898, 0.953] | 0.648 [0.545, 0.753] | 0.883 [0.848, 0.916] | 0.531 [0.437, 0.640] |
| Category | Metric | Result |
| Samples | Validation spans | 84 |
| Human agreement | Unanimous | 50/84 (59.5%) |
| Majority label | 81/84 (96.4%) | |
| Fleiss’ | 0.666 | |
| Reference labels | Determined | 81/84 (96.4%) |
| Not determined | 3/84 (3.6%) |
| Problem-solving stage | Level 1 | Level 2 | Level 3 | Reasoning operation | Description / Example |
| Stage 1 Understanding the Problem | Extraction | – | – | Extraction | Directly retrieving given information from the problem statement without modification. Example: “Two numbers add up to 10, and both are non-negative.” |
| Symbolization | Direct-mapping | – | Direct-mapping | Directly converting a statement into a formal representation without changing its structure. Example: The sum of two numbers is 10 . | |
| Reframing | – | Reframing | Reconstructing the problem in a different representational system. Example: Geometry problem coordinate geometry. | ||
| Abstraction | – | Abstraction | Removing unnecessary details and retaining only the essential structure. Example: 3 red balls and 2 blue balls . | ||
| State-space-definition | – | – | State-space-definition | Defining possible states, constraints, and the solution space. Example: , , . | |
| Stage 2 Planning the Solution | Pattern-matching | – | – | Pattern-matching | Mapping the current problem to a known problem type, template, or strategy. Example: Flip a coin three times probability/combinatorics problem. |
| Problem-solving stage | Level 1 | Level 2 | Level 3 | Reasoning operation | Description / Example |
| Stage 3 Carrying Out the Plan | Retrieval | Recall | – | Recall | Retrieving relevant definitions, rules, concepts, or formulas. Example: Need area of a circle . |
| Matching | – | Matching | Determining whether retrieved knowledge applies to the current situation. Example: Apply when the radius is given. | ||
| Inference-flow | Chaining | Deduction | Deduction | Deriving a specific conclusion from a general rule. Example: General theorem apply to the given case. | |
| Induction | Induction | Inferring a general rule from observed patterns. Example: Several terms follow the same difference infer arithmetic pattern. | |||
| Analogy | Analogy | Reasoning from a structurally similar case. Example: Solve a new problem using a similar solved template. | |||
| Branching | – | Branching | Splitting into cases and analyzing each separately. Example: or . |
| Problem-solving stage | Level 1 | Level 2 | Level 3 | Reasoning operation | Description / Example |
| Stage 4 Looking Back and Final Answer | Strategy-validation | – | – | Strategy-validation | Verifying whether the chosen strategy or assumptions were valid. Example: Check whether differences are constant before assuming an arithmetic sequence. |
| Error-detection | – | – | Error-detection | Identifying mistakes in reasoning, calculation, or logical steps. Example: incorrect arithmetic; should be 7. | |
| Dimensional-analysis | – | – | Dimensional-analysis | Checking whether units or dimensions are consistent with the required quantity. Example: Speed = distance/time meters/second. | |
| Extreme-case-testing | – | – | Extreme-case-testing | Testing whether the solution holds under extreme or boundary conditions. Example: For , test and . | |
| Final-answer | – | – | Final-answer | Clearly presenting the final result in the required format. Example: Therefore, and . |
| Item | Instructions given to annotators |
| Task objective | Determine the role played by the highlighted text in the reasoning process. Annotators should identify the function of the highlighted span within the overall solution, rather than solve the problem themselves or verify whether the final answer is correct. |
| Question | The original problem to which the model-generated reasoning responds. |
| Response with highlighted span | The model-generated reasoning trace. Only the highlighted portion ( full span ) is the annotation target. The surrounding response is provided solely to understand why the highlighted span appears at that point in the reasoning process. |
| shortened_span_text | A shorter phrase extracted from the full span when the full span is long. When the full span is already short, the shortened span is identical to the full span. |
| Answer columns | For each example, annotators provide three judgments: (1) the reasoning-operation label that best characterizes the full span; (2) their confidence in that label; and (3) whether the shortened_span_text preserves the main reasoning operation expressed by the full span. |
| Disabled cells | Black cells are intentionally disabled and should be left untouched; annotators should not type or make any selection in these cells. |
LLM Interpretability
Large language model (LLM) interpretability studies how internal representations and computations produce outputs, and how they can be explained or controlled.
See all 754 papers