Manuscript Offprint
arXiv:2611.24598Chain-of-Thought Hidden States Reveal Task-Solving Directions for Direct Answers
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Chain-of-Thought (CoT) prompting improves the performance of Large Language Models by eliciting intermediate reasoning steps. However, CoT is far from perfect: on some tasks, models perform worse than with direct-answer prompting, and on others they generate a few hundred tokens to reach the correct answer. We start by labelling each CoT hidden state as recovering if patching it into the direct prompt yields the correct answer, and failed otherwise. A linear probe shows that the model encodes these two classes differently. We then show that the representation space of the direct prompt holds a direction for each question that leads the model, in a short generation, to the correct answer more often than CoT does. Specifically, we rotate the direct prompt’s last hidden state once, before generation, towards a direction built for each question from its own recovering and failed states. Across 25 tasks, these directions raise the direct prompt’s mean accuracy from 46% to 85% on LLaMA 3.1 8B (CoT: 69%) and from 52% to 86% on Qwen 2.5 7B (CoT: 77%), with a tenth of CoT’s tokens. CoT is thus not the shortest route to this accuracy, and these directions can be used in future work to train models to align their states with them.
Figure 1: Overview of our analysis on one Multistep Arithmetic question. Each CoT state is patched in place of the last state of the direct prompt and labelled recovering if the model then answers correctly and failed otherwise. The failed states and recovering states occupy different parts of the representation space, so that a linear probe predicts this label from a single state. The means of the question’s recovering and failed states, and , give the task-solving direction . Before generation, we rotate onto the direction of , keeping its norm; the direct prompt then writes four short lines and answers instead of , even though the CoT itself answers .
1 Introduction
Chain-of-Thought (CoT) prompting lets Large Language Models (LLMs) answer questions that require several steps of inference by generating those steps before the answer (Wei et al., 2022; Kojima et al., 2022). The chain often runs to a few hundred tokens per question and can still end in a wrong answer. Its benefit falls mainly on mathematical and symbolic tasks (Sprague et al., 2025), and on some tasks it lowers accuracy below that of answering directly (Liu et al., 2025).
Mehrafarin et al. (2026) provide causal evidence that when the chain ends in a wrong answer, the information needed to solve the task is often still present in its hidden states. Using activation patching on GSM8K (Cobbe et al., 2021), they show that some hidden states of the chain, patched into a run of the same question prompted to answer directly, make that run produce the correct answer, which reveals a discrepancy between what the model generates and what it computes internally. We call the states whose patch makes the direct run answer correctly recovering, and the rest failed. Their analysis, however, covers only arithmetic reasoning and stops at detecting this information. It does not examine whether recovering states share characteristics that systematically distinguish them from failed ones, nor does it use the patch outcomes to reduce this discrepancy.
We instead use these outcomes as labels, first to test whether the two can be told apart and then to reduce this discrepancy. We do so for LLaMA 3.1 8B and Qwen 2.5 7B on GSM8K, StrategyQA (Geva et al., 2021) and 23 subtasks of BIG-Bench Hard (Suzgun et al., 2023). These 25 tasks span six reasoning types: arithmetic, logical, temporal, spatial, causal and linguistic. For each task, we train a linear probe to predict whether a CoT hidden state is recovering or failed. The probe separates the two classes on held-out questions, so the label is linearly decodable from the hidden state alone. A probe trained on one task also separates them on other tasks, most of all on tasks of the same reasoning type. The probes show that the model encodes recovering and failed states differently. The two classes thus have distinct means in the representation space, which gives us the grounding to build a direction from these means.
To reduce the discrepancy, we build a contrastive direction for each question from the mean of the recovering states and the mean of the failed states of its own CoT chain, and refer to it as the question’s task-solving direction. This direction is the recovering mean minus a fraction of the failed mean, which keeps it close to the recovering mean and far from the failed mean (Figure 1). It differs from the standard difference of means (Marks and Tegmark, 2024; Rimsky et al., 2024; Arditi et al., 2024), which weights the two means equally and gives one direction for all inputs. Before any token is generated, we rotate the last hidden state of the question’s direct prompt once, so that it points along the task-solving direction and keeps its norm.
On LLaMA 3.1 8B, these directions raise mean accuracy from under the direct prompt to (CoT: ), and on Qwen 2.5 7B from to (CoT: ). They thus lead to the correct answer more often than the chains they are built from, with 19 generated tokens per question on average, about a tenth of the 197 that LLaMA 3.1 8B and the 245 that Qwen 2.5 7B generate under CoT. The model generates the answer within a few tokens where it can be read from the question, and works through short intermediate steps where it has to be computed. The directions also raise accuracy on tasks where CoT lowers it, such as Movie Recommendation and Ruin Names. They also recover the correct answer on most questions that the CoT and direct prompts both answer incorrectly.
An average of these directions over a task does not give the same result. It leaves mean accuracy at the level of the direct prompt, even on the questions it is built from, so each direction is specific to its own question. Overall, our findings show that for most questions, the representation space of the direct prompt holds a direction that leads the model to the correct answer, and that generating the chain is not the shortest route to it. The question–direction pairs we collect form a dataset which can be used for training a model to predict the direction from the direct prompt, and thereby to match or exceed CoT’s accuracy with a fraction of its tokens; we leave this to future work.
What hidden states encode.
The hidden states of a model often hold more than its output shows. Models can predict whether they know an answer (Kadavath et al., 2022), and probes on their hidden states may reveal the correct answer while they generate a wrong one (Orgad et al., 2025), as well as whether a CoT will succeed (Afzal et al., 2025) and whether an intermediate answer is correct (Zhang et al., 2025). Activation patching offers another way to inspect hidden states, by transferring a state into another run and observing how the model’s output changes (Meng et al., 2022; Zhang and Nanda, 2024; Ghandeharioun et al., 2024). Applied to CoT, it shows that the hidden states of a chain can recover the correct answer even when the chain ends in a wrong answer (Mehrafarin et al., 2026). We extend this patching to 25 tasks, use its outcomes as labels to probe for shared structure, and intervene with directions built from them.
Directions in the representation space.
Many concepts and behaviours are represented linearly, and a direction for one can be found as the difference between the mean activations on two contrasting sets of inputs (Marks and Tegmark, 2024; Arditi et al., 2024; Rimsky et al., 2024). Adding a direction to the activations steers generation (Turner et al., 2024; Li et al., 2023). For reasoning, activation vectors elicit step-by-step reasoning without a CoT prompt (Zhang and Viteri, 2025), raise accuracy (Højer et al., 2025) or shorten the chain (Chen et al., 2025; Azizi et al., 2026). Each of these vectors contrasts two sets of prompts or generations, such as CoT and direct prompts (Zhang and Viteri, 2025) or reflection and execution thoughts (Chen et al., 2025), and a single vector serves every input. Ours instead contrast two sets of states from a question’s own chain, split by their patch outcome, so each question has its own direction. Applied to the direct prompt, these directions lead to the correct answer more often than the chains they are built from with far fewer tokens, and the model writes out steps only where the question requires them.
Reasoning with fewer tokens.
Training models to internalise the chain (Deng et al., 2024), to reason in a continuous latent space (Hao et al., 2025) or to compute over pause tokens (Goyal et al., 2024) lets them reason without generating a chain. We instead keep the model’s parameters fixed and show that rotating one hidden state per question makes the direct prompt reason with far fewer tokens.
3 Models, Datasets & Patching
3.1 Models and Datasets
We use two open-weight instruction-tuned models, LLaMA 3.1 8B (Grattafiori et al., 2024) and Qwen 2.5 7B (Qwen et al., 2025), and evaluate their CoT and direct performance on the 25 tasks.
We categorise the tasks into six reasoning types inspired by the categories of Kazemi et al. (2025). Table 1 shows the CoT and direct baselines. CoT raises mean accuracy by 23 points on LLaMA 3.1 8B and 25 on Qwen 2.5 7B with 197 and 245 tokens per question, but lowers it on Movie Recommendation and Ruin Names for both models and on Causal Judgement for Qwen 2.5 7B.
| LLaMA 3.1 8B | Qwen 2.5 7B | |||||||
|---|---|---|---|---|---|---|---|---|
| Task | CoT | Dir. | Tok. | CoT | Dir. | Tok. | ||
| Arithmetic | ||||||||
| GSM8K | 85 | 9 | 76 | 179 | 90 | 20 | 70 | 248 |
| Multistep Arith. | 66 | 0 | 65 | 140 | 89 | 2 | 87 | 260 |
| Object Counting | 80 | 41 | 38 | 95 | 79 | 49 | 30 | 117 |
| Logical | ||||||||
| Boolean Expr. | 84 | 58 | 26 | 138 | 95 | 72 | 23 | 169 |
| Logical Ded. (3) | 74 | 51 | 23 | 128 | 88 | 76 | 12 | 174 |
| Logical Ded. (5) | 51 | 37 | 14 | 265 | 65 | 54 | 12 | 333 |
| Logical Ded. (7) | 42 | 30 | 12 | 383 | 52 | 50 | 2 | 426 |
| Web of Lies | 92 | 51 | 40 | 120 | 95 | 58 | 37 | 187 |
| Penguins | 86 | 42 | 44 | 158 | 97 | 52 | 45 | 146 |
| Temporal and state tracking | ||||||||
| Temporal Seq. | 89 | 78 | 11 | 284 | 79 | 73 | 6 | 288 |
| Date Underst. | 72 | 47 | 24 | 221 | 75 | 57 | 18 | 223 |
| Shuffled Obj. (3) | 63 | 33 | 30 | 136 | 82 | 27 | 54 | 214 |
| Shuffled Obj. (5) | 58 | 16 | 42 | 210 | 84 | 19 | 64 | 321 |
| Shuffled Obj. (7) | 45 | 16 | 29 | 307 | 74 | 13 | 61 | 467 |
| Colored Objects | 78 | 56 | 22 | 111 | 87 | 62 | 26 | 133 |
| Spatial and geometric | ||||||||
| Navigate | 79 | 60 | 20 | 182 | 87 | 68 | 19 | 214 |
| Geometric Shapes | 41 | 18 | 22 | 413 | 61 | 44 | 18 | 308 |
| Causal, commonsense, and knowledge | ||||||||
| Causal Judgement | 59 | 53 | 6 | 160 | 55 | 56 | −1 | 217 |
| StrategyQA | 75 | 64 | 11 | 232 | 74 | 69 | 5 | 262 |
| Sports Underst. | 79 | 74 | 5 | 143 | 75 | 70 | 5 | 223 |
| Movie Rec. | 53 | 63 | −10 | 258 | 60 | 66 | −6 | 381 |
| Linguistic and pragmatic | ||||||||
| Hyperbaton | 78 | 74 | 4 | 203 | 83 | 60 | 22 | 197 |
| Disambig. QA | 57 | 35 | 22 | 134 | 66 | 58 | 9 | 210 |
| Snarks | 71 | 62 | 9 | 146 | 76 | 74 | 3 | 201 |
| Ruin Names | 62 | 71 | −9 | 175 | 51 | 54 | −3 | 215 |
| Mean (25 tasks) | 69 | 46 | 23 | 197 | 77 | 52 | 25 | 245 |
Table 1: CoT and direct (Dir.) accuracy (%) on the 25 tasks, with the CoT gain (computed before rounding) and the mean number of tokens generated per question under CoT (direct prompting generates about one).
Figure 2: Out-of-fold AUROC of each task’s probe, at layer 29 of LLaMA 3.1 8B and layer 25 of Qwen 2.5 7B.
3.2 Patching Setup
We follow the patching setup of Mehrafarin et al. (2026). For each question, we run the model on two prompts that differ only in their system instruction (Table 3 in Appendix A). The source prompt asks for step-by-step reasoning, and from it we cache the hidden state , the output of transformer block at position , for every generated CoT token . The target prompt asks for just the answer and nothing else, and we write for its hidden state at layer at the final prompt position, after which the first answer token is generated.
A patch replaces this target state with a cached source state from the same layer, , after which the forward pass continues through the layers above and the model generates as usual. The model and the target prompt are unchanged and the decoding is greedy, so any change in the answer comes from the patched state. We extract the final answer from the generation and label the state if it matches the gold answer and otherwise. States with are the recovering states and states with the failed states. We label the states of every question, including those whose chain ends in a wrong answer, since a state from such a chain can still recover the correct one.
4 Probing Recovering and Failed States
4.1 Methodology
We build linear probes, which are simple enough to read what a state encodes rather than learn the task themselves (Hewitt and Liang, 2019; Belinkov, 2022), and ask whether the patch label can be decoded from a single hidden state. Unlike Zhang et al. (2025), who probe reasoning traces for the correctness of the model’s own answer, our target is the outcome of patching the state into the direct run.
The probe takes CoT states as inputs, the hidden states of a question’s CoT tokens, and we fit one probe for every task and every layer of the late band. Each probe maps a CoT state to the probability that patching it recovers the answer,
where is the standardised hidden state. The probe minimises an -penalised binary cross-entropy on a class-balanced training set (Appendix C.1).
Since the states of one generated reasoning chain are strongly correlated, we divide each task’s questions into five folds and score each fold with a probe trained on the other four, so no state is evaluated by a probe that has seen its chain. Since most patches fail (on average of CoT states recover the answer for LLaMA 3.1 8B and for Qwen 2.5 7B), we report the area under the ROC curve (AUROC). Unless stated otherwise we report the middle layer of the late band, layer 29 for LLaMA 3.1 8B and layer 25 for Qwen 2.5 7B, which is also where we do the intervention (Section 5); Appendix C.4 reports all three layers.
Figure 3: Transfer of the probes across reasoning types, at layer 29 of LLaMA 3.1 8B and layer 25 of Qwen 2.5 7B. Each cell is the mean AUROC of probes trained on a task of the row’s type and evaluated on a different task of the column’s type; outlined cells pair tasks of the same type. Under each matrix is the mean AUROC over all pairs of tasks of the same type and over all pairs of tasks of different types.
4.2 Separating Recovering and Failed States
Figure 2 reports the out-of-fold AUROC of each task’s probe. The patch label is linearly decodable from single CoT states in every task for LLaMA 3.1 8B and in all but one task for Qwen 2.5 7B (see Appendix C.2 for control tasks). Averaged over the 25 tasks, the AUROC is for LLaMA 3.1 8B (range –) and for Qwen 2.5 7B (range –). The weakest probe is on Causal Judgement for Qwen 2.5 7B (). One possible explanation is that the two classes are less easily distinguishable by a linear probe on this task than on others, mostly because of how Qwen 2.5 7B handles and encodes them. In terms of the percentage of recovering states, this task is similar to other binary tasks such as Navigate and Boolean Expressions (Appendix B), whose probes are much stronger. Yet the directions of Section 5, built from these states, raise the accuracy here to , above CoT.
How well the patch label can be decoded does not depend on how accurate the model is on the task. Across tasks, probe AUROC is not significantly correlated with the model’s CoT accuracy, its direct accuracy or the gain of CoT over the direct prompt (Spearman’s , ; Appendix C.3), so the probe is not strong only on the tasks the model already answers well. The label is decodable even where the direct prompt almost never produces the answer: LLaMA 3.1 8B answers Multistep Arithmetic correctly in of cases without CoT, yet its probe reaches an AUROC of .
4.3 Generalising to Unseen Tasks
To test this on unseen tasks, we refit each task’s probe on all of its questions and evaluate it on every CoT state of every other task. Figure 3 averages the resulting matrices over reasoning types. For both models, a probe evaluated on another task scores above chance in 587 of the 600 pairs of tasks (Figure 6, Appendix C.5).
This shows that the separation is partly shared between reasoning tasks. For LLaMA 3.1 8B, transfer among logical, temporal, spatial, causal and linguistic tasks ( to ) is stronger than transfer from arithmetic to the other types ( to ) or from them to arithmetic ( to ). A potential reason is that arithmetic tasks are harder and require multi-step computation, so the structure their recovering states share may not extend to the other tasks. Qwen 2.5 7B shows a similar pattern for arithmetic. Transfer to causal tasks is also low ( to , even from other causal tasks), as three of them are Qwen 2.5 7B’s hardest targets, including Causal Judgement, on which its own probe is weakest (Section 4.2).
Transfer is strongest between tasks of the same reasoning type: pairs of tasks of the same type reach a mean AUROC of for LLaMA 3.1 8B and for Qwen 2.5 7B, against and for pairs of different types (Appendix C.5). Recovering and failed states thus differ systematically, within a task and partly across tasks. Section 5 builds a direction for each question from this difference and applies it to the direct prompt.
5 Finding Task-Solving Directions
5.1 Methodology
Recovering and failed means.
For each question , we average its recovering states and its failed states,
where and index the recovering and failed states of the CoT of at layer (Section 3.2). We call the recovering mean of and its failed mean. The states of each set come from different tokens of the chain, so the content of individual tokens partly cancels in the average, while what the states of the set have in common remains. The failed mean is built from the same chain and layer as the recovering mean and differs only in the label of the states it averages, which makes it a matched control for the recovering mean. We build directions from these means rather than from the weights of the probes of Section 4: the weights of a linear classifier also cancel noise and do not, in general, point along the difference between the classes (Haufe et al., 2014), as Appendix C.6 shows for our probes.
Contrastive direction.
Since the recovering and failed means sit close together, a direction close to one is also close to the other. We therefore seek a direction close to the recovering mean and far from the failed mean: the unit vector that maximises , with weighting the penalty, lies along . We rescale it to the norm of the recovering mean, so that changes only the direction,
and call the contrastive direction. At it is the recovering mean, and at it points along the difference-in-means direction used to find and steer concepts and behaviours (Marks and Tegmark, 2024; Rimsky et al., 2024; Arditi et al., 2024).
Task-level directions.
To test whether the questions of a task share one direction, the task-level direction of a task averages over the questions of that have a direction.
Spherical intervention.
We intervene where the patch labels are defined, on the hidden state of the direct prompt at its last position, and keep its norm: following You et al. (2026), we rotate towards a target , one of the directions above, with Spherical Linear Interpolation (Shoemake, 1985, SLERP;),
where and are the unit vectors along the original state and the target, is the angle between them, and is the fraction of this angle through which the original state is rotated. At , which we use unless stated otherwise, the state points along the target (Appendix D.1 varies , the norm and the layer). The rotation is applied once, after which the model generates as usual.
Additive steering (Turner et al., 2024; Rimsky et al., 2024) and patching change the norm of the state along with its direction. The rotation changes the direction alone, which keeps generation intact where additive steering can degrade it (You et al., 2026; Dang and Ngo, 2026). At it is a norm-matched patch: the state keeps the norm the direct prompt produced and takes only its direction from the chain, so any gain is carried by a direction in the representation space of the direct prompt.
Evaluation.
For every question, we rotate the state towards its recovering mean, its failed mean, with and the task-level direction of its task, and compare accuracy and generated tokens with the direct prompt and with the CoT from which the directions are built.
| LLaMA 3.1 8B | Qwen 2.5 7B | |||||||
|---|---|---|---|---|---|---|---|---|
| Acc. | Dir | CoT | Tok. | Acc. | Dir | CoT | Tok. | |
| Prompt | ||||||||
| CoT | 69 | 23 | – | 197 | 77 | 25 | – | 245 |
| Direct | 46 | – | −23 | 1 | 52 | – | −25 | 1 |
| Question-specific rotation | ||||||||
| Recovering | 80 | 34 | 11 | 17 | 82 | 30 | 5 | 18 |
| 83 | 38 | 15 | 18 | 85 | 33 | 8 | 19 | |
| 85 | 39 | 16 | 19 | 86 | 34 | 10 | 19 | |
| 83 | 37 | 14 | 18 | 84 | 32 | 7 | 19 | |
| Failed | 9 | −37 | −60 | 4 | 16 | −36 | −61 | 6 |
| Task-level rotation | ||||||||
| 46 | 0 | −23 | 8 | 50 | −2 | −27 | 15 |
Table 2: Rotating the last state of the direct prompt, at layer 29 of LLaMA 3.1 8B and layer 25 of Qwen 2.5 7B (). Acc. (%) is macro-averaged over the 25 tasks, counting a question without a direction as incorrect; s, computed before rounding, are from the direct and CoT prompts, and Tok. is the mean number of generated tokens. Appendix D.2 gives every task.
Figure 4: Accuracy and generated tokens per task when the state of the direct prompt is aligned with (green), against the direct (grey ring) and CoT (brown) prompts, at layer 29 of LLaMA 3.1 8B and layer 25 of Qwen 2.5 7B (). The number at the end of each row is the accuracy with . Each token bar runs to the tokens CoT generates per question, and its green part to those generated with ; the direct prompt generates about one.
5.2 Question-Specific Directions
Table 2 reports the intervention results. Aligning the hidden state of the direct prompt with the recovering mean of its question raises accuracy from 46 to 80 on LLaMA 3.1 8B and from 52 to 82 on Qwen 2.5 7B, above the 69 and 77 of CoT, with 17 and 18 generated tokens per question against 197 and 245. Aligning it with the failed mean, built from the same chain, lowers accuracy to 9 and 16, far below the direct prompt. This indicates that in the representation space of a model instructed to answer directly, there exists a direction for most questions that, if the state is aligned with it, leads the model to much shorter generations that reach the correct answer more often than CoT does.
The contrastive direction improves the performance even further. Accuracy rises with to 85 on LLaMA 3.1 8B and 86 on Qwen 2.5 7B at , and falls again at . Increasing moves the target away from the failed mean, which raises accuracy, but also away from the nearby recovering mean, which lowers it; up to the gain outweighs the loss. Using both means therefore helps find a better target than the recovering mean alone. At the direction improves on the direct prompt by 39 and 34 points and on CoT by 16 and 10, with 19 generated tokens per question for both models. Among the questions that both prompts answer incorrectly, recovers the correct answer on for LLaMA 3.1 8B and for Qwen 2.5 7B (Appendix D.3), even though it is built from a chain that ends in a wrong answer.
Figure 5: Change in each task’s accuracy over the direct prompt (zero line) under CoT and when the state is aligned with each question’s own direction or with the task-level direction , at layer 29 of LLaMA 3.1 8B and layer 25 of Qwen 2.5 7B (). Dark ticks give the row means.
Figure 4 breaks the result down by task. Aligning the state of the direct prompt with improves on the direct prompt on every task for both models, and on the CoT prompt on 24 of the 25 tasks for LLaMA 3.1 8B and 19 for Qwen 2.5 7B. Of the six tasks where it stays below CoT for Qwen 2.5 7B, three are Penguins in a Table, Web of Lies and GSM8K, on which CoT is already strong: Qwen 2.5 7B’s CoT reaches 90 to 97, and for LLaMA 3.1 8B the direction only matches CoT. On the other three, Multistep Arithmetic and Tracking Shuffled Objects with five and seven objects, a potential reason is that Qwen 2.5 7B’s chains have few recovering states on these tasks: of all 25 tasks, these three have the smallest share (Table 4 in Appendix B). The direction achieves comparable accuracy on these three tasks for both models and is above CoT for LLaMA 3.1 8B, whose CoT accuracy on them is much lower.
On the tasks where CoT fails to improve over the direct prompt, Movie Recommendation and Ruin Names for both models and Causal Judgement for Qwen 2.5 7B, the direction still raises accuracy, by 22 to 36 points over the direct prompt. A plausible explanation is that the first two need no intermediate steps that build on each other. They ask the model to identify an answer, namely a film similar to four given ones or a humorous edit of a name. The chain therefore adds no computation, and its steps may instead confuse the model and sway it away from its original answer, much as deliberation can hurt recognition in humans (Liu et al., 2025).
With the direction, the model works through intermediate steps only where a task needs them. Where the answer can be read from the question, the model answers within a few tokens. LLaMA 3.1 8B generates 3 tokens per question on Boolean Expressions and 5 on Snarks, and Qwen 2.5 7B generates 2 and 9. GSM8K and Multistep Arithmetic require the answer to be computed, and here the model writes out the steps without the extra prose. LLaMA 3.1 8B generates 39 and 55 tokens on these tasks, against 179 and 140 under CoT, and Qwen 2.5 7B generates 52 and 66, against 248 and 260. On a GSM8K question, LLaMA 3.1 8B answers 121 under the direct prompt and generates “… \21+$50=$71$” with the direction (Appendix D.3). The direction thus sets the model on the computation the question needs.
A prompt is chosen once for a whole task, yet the direct prompt fails when the answer has to be computed and CoT lowers accuracy on tasks that need no intermediate steps. The representation space of the direct prompt holds a direction for each question that avoids both failures. Pointed towards these directions, the model reaches a mean accuracy of 85 on LLaMA 3.1 8B and 86 on Qwen 2.5 7B, while generating about a tenth of the tokens.
5.3 Task-Level Directions
Each question-specific direction is built from the generated CoT and patch labels of its own question, and we use it to establish what the representation space of the direct prompt can reach. If the questions of a task shared a direction, it could be built once and applied to new questions of the task without generating their chains or patching their states.
We test whether such a direction exists with the task-level direction applied to the questions of its task. Since it is built from these same questions, this is the most favourable case for a shared direction. Even so, it leaves accuracy at the level of the direct prompt (Figure 5): 46 against 46 on LLaMA 3.1 8B and 50 against 52 on Qwen 2.5 7B, while the questions’ own directions reach 85 and 86 on the same questions.
These results indicate that the task-solving direction is specific to each question. A direction averaged over the questions of a task rarely improves on the direct prompt by more than a few points, let alone reaches the accuracy of CoT. At the level of individual questions, however, the representation space of the direct prompt contains such a direction for most questions. Aligning the state with it yields the correct answer with about a tenth of CoT’s generated tokens, and intermediate steps appear only where the answer must be computed. The resulting question–direction pairs constitute a dataset for training a model to predict the direction from the direct prompt, and to match or exceed the accuracy of CoT while generating far fewer tokens; we leave this to future work.
6 Conclusion
In this paper, we show that a linear probe can distinguish the CoT hidden states that are useful for recovering the correct answer to a question from those that are not, across 25 tasks spanning six reasoning types. We further show that this distinction can be used to build, for each question, a direction that reduces the discrepancy between what the model generates in CoT and what it computes internally. Finally, we find that this direction is specific to each question and is not shared between different questions of the same task or between different tasks. Together, these results show that, for the large majority of questions, there exists a direction in the representation space of the direct prompt that makes the model answer correctly while generating about a tenth as many tokens as CoT, so CoT is not the most efficient route to the answer. The question–direction pairs we obtain can be used as a dataset to train models to align their representations with these directions, which we leave to future work.
Limitations
Each direction is built from the patch labels of its question’s own chain, and these labels compare the answer after patching with the gold answer. Producing the direction of a new question without its chain and labels, for example with a model trained on the directions we collect, is left to future work. A first attempt, a regressor that predicts the direction from the direct prompt alone, leaves accuracy at the level of the direct prompt. We study two instruction-tuned models of 7 and 8 billion parameters, and larger models or models trained to reason at length may encode recovering and failed states differently. Our tasks have short answers that can be checked automatically, and we excluded three BIG-Bench Hard tasks on which answer extraction after patching was unreliable and one on which the models often produced no chain. We cache and intervene at three late layers and at the last position of the direct prompt only, the position found most effective for patching (Mehrafarin et al., 2026).
Ethical Considerations
We use all external artifacts for research only and in line with their licences: GSM8K, StrategyQA and BIG-Bench Hard under the MIT licence, LLaMA 3.1 8B under the Llama 3.1 Community License and its Acceptable Use Policy, and Qwen 2.5 7B under the Apache 2.0 licence. The datasets are public benchmarks of reasoning questions. We analyse and intervene on the hidden states of these models to understand how they solve tasks; we release no new model, and our interventions are not intended for deployment. The artifacts we derive consist of experimental results, analyses and figures.
References
A. Afzal, F. Matthes, G. Chechik, and Y. Ziser Knowing before saying: LLM representations encode information about chain-of-thought success before completion. In Findings of the Association for Computational Linguistics: ACL 2025, W. Che, J. Nabende, E. Shutova, and M. T. Pilehvar (Eds.), Vienna, Austria, pp. 12791–12806. External Links: Link, Document, ISBN 979-8-89176-256-5 Cited by: §2.
A. Arditi, O. Obeso, A. Syed, D. Paleka, N. Panickssery, W. Gurnee, and N. Nanda Refusal in language models is mediated by a single direction. In Advances in Neural Information Processing Systems, Vol. 37, pp. 136037–136083. External Links: Link Cited by: §1, §2, §5.1.
S. Azizi, E. Baghaei Potraghloo, S. Kundu, and M. Pedram Activation steering for chain-of-thought compression. In Findings of the Association for Computational Linguistics: ACL 2026, M. Liakata, V. P. Moreira, J. Zhang, and D. Jurgens (Eds.), San Diego, California, United States, pp. 36676–36687. External Links: Document, Link Cited by: §2.
Y. Belinkov Probing classifiers: promises, shortcomings, and advances. Computational Linguistics 48 (1), pp. 207–219. External Links: Link, Document Cited by: §4.1.
R. Chen, Z. Zhang, J. Hong, S. Kundu, and Z. Wang SEAL: steerable reasoning calibration of large language models for free. In Second Conference on Language Modeling, External Links: Link Cited by: §2.
K. Cobbe, V. Kosaraju, M. Bavarian, M. Chen, H. Jun, L. Kaiser, M. Plappert, J. Tworek, J. Hilton, R. Nakano, C. Hesse, and J. Schulman Training verifiers to solve math word problems. External Links: 2110.14168, Link Cited by: §1.
Q. Dang and C. Ngo Selective steering: norm-preserving control through discriminative layer selection. In Findings of the Association for Computational Linguistics: ACL 2026, M. Liakata, V. P. Moreira, J. Zhang, and D. Jurgens (Eds.), San Diego, California, United States, pp. 10887–10910. External Links: Link, Document, ISBN 979-8-89176-395-1 Cited by: §5.1.
Y. Deng, Y. Choi, and S. Shieber From explicit CoT to implicit CoT: learning to internalize CoT step by step. External Links: 2405.14838, Link Cited by: §2.
M. Geva, D. Khashabi, E. Segal, T. Khot, D. Roth, and J. Berant Did Aristotle use a laptop? A question answering benchmark with implicit reasoning strategies. Transactions of the Association for Computational Linguistics 9, pp. 346–361. External Links: Link, Document Cited by: §1.
A. Ghandeharioun, A. Caciularu, A. Pearce, L. Dixon, and M. Geva Patchscopes: a unifying framework for inspecting hidden representations of language models. In Proceedings of the 41st International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 235, pp. 15466–15490. External Links: Link Cited by: §2.
S. Goyal, Z. Ji, A. S. Rawat, A. K. Menon, S. Kumar, and V. Nagarajan Think before you speak: training language models with pause tokens. In The Twelfth International Conference on Learning Representations, External Links: Link Cited by: §2.
A. Grattafiori, A. Dubey, A. Jauhri, A. Pandey, A. Kadian, A. Al-Dahle, A. Letman, A. Mathur, A. Schelten, A. Vaughan, A. Yang, A. Fan, A. Goyal, A. Hartshorn, A. Yang, A. Mitra, A. Sravankumar, A. Korenev, A. Hinsvark, et al. The Llama 3 herd of models. External Links: 2407.21783, Link Cited by: §3.1.
S. Hao, S. Sukhbaatar, D. Su, X. Li, Z. Hu, J. E. Weston, and Y. Tian Training large language models to reason in a continuous latent space. In Second Conference on Language Modeling, External Links: Link Cited by: §2.
S. Haufe, F. Meinecke, K. Görgen, S. Dähne, J. Haynes, B. Blankertz, and F. Bießmann On the interpretation of weight vectors of linear models in multivariate neuroimaging. NeuroImage 87, pp. 96–110. External Links: ISSN 1053-8119, Document Cited by: §C.6, §5.1.
J. Hewitt and P. Liang Designing and interpreting probes with control tasks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP), K. Inui, J. Jiang, V. Ng, and X. Wan (Eds.), Hong Kong, China, pp. 2733–2743. External Links: Link, Document Cited by: §C.2, §4.1.
B. Højer, O. S. Jarvis, and S. Heinrich Improving reasoning performance in large language models via representation engineering. In The Thirteenth International Conference on Learning Representations, External Links: Link Cited by: §2.
S. Kadavath, T. Conerly, A. Askell, T. Henighan, D. Drain, E. Perez, N. Schiefer, Z. Hatfield-Dodds, N. DasSarma, E. Tran-Johnson, S. Johnston, S. El-Showk, A. Jones, N. Elhage, T. Hume, A. Chen, Y. Bai, S. Bowman, S. Fort, D. Ganguli, D. Hernandez, J. Jacobson, J. Kernion, S. Kravec, L. Lovitt, K. Ndousse, C. Olsson, S. Ringer, D. Amodei, T. Brown, J. Clark, N. Joseph, B. Mann, S. McCandlish, C. Olah, and J. Kaplan Language models (mostly) know what they know. External Links: 2207.05221, Link Cited by: §2.
M. Kazemi, B. Fatemi, H. Bansal, J. Palowitch, C. Anastasiou, S. V. Mehta, L. K. Jain, V. Aglietti, D. Jindal, P. Chen, N. Dikkala, G. Tyen, X. Liu, U. Shalit, S. Chiappa, K. Olszewska, Y. Tay, V. Q. Tran, Q. V. Le, and O. Firat BIG-Bench Extra Hard. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), W. Che, J. Nabende, E. Shutova, and M. T. Pilehvar (Eds.), Vienna, Austria, pp. 26473–26501. External Links: Link, Document, ISBN 979-8-89176-251-0 Cited by: §3.1.
T. Kojima, S. (. Gu, M. Reid, Y. Matsuo, and Y. Iwasawa Large language models are zero-shot reasoners. In Advances in Neural Information Processing Systems, Vol. 35, pp. 22199–22213. External Links: Link Cited by: Appendix A, §1.
K. Li, O. Patel, F. Viégas, H. Pfister, and M. Wattenberg Inference-time intervention: eliciting truthful answers from a language model. In Advances in Neural Information Processing Systems, Vol. 36, pp. 41451–41530. External Links: Link Cited by: §2.
D. C. Liu and J. Nocedal On the limited memory BFGS method for large scale optimization. Mathematical Programming 45 (1–3), pp. 503–528. External Links: Document Cited by: §C.1.
R. Liu, J. Geng, A. J. Wu, I. Sucholutsky, T. Lombrozo, and T. L. Griffiths Mind your step (by step): chain-of-thought can reduce performance on tasks where thinking makes humans worse. In Proceedings of the 42nd International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 267, pp. 38489–38517. External Links: Link Cited by: §1, §5.2.
S. Marks and M. Tegmark The geometry of truth: emergent linear structure in large language model representations of true/false datasets. In First Conference on Language Modeling, External Links: Link Cited by: §1, §2, §5.1.
H. Mehrafarin, A. Parekh, and I. Konstas When chain-of-thought fails, the solution hides in the hidden states. In Findings of the Association for Computational Linguistics: EMNLP 2026, H. Lee, S. Dev, J. Li, and D. Elliott (Eds.), Budapest, Hungary, pp. 42939–42954. External Links: Link, Document, ISBN 979-8-89176-462-0 Cited by: §C.2, §1, §2, §3.2, Limitations.
K. Meng, D. Bau, A. Andonian, and Y. Belinkov Locating and editing factual associations in GPT. In Advances in Neural Information Processing Systems, Vol. 35, pp. 17359–17372. External Links: Link Cited by: §2.
H. Orgad, M. Toker, Z. Gekhman, R. Reichart, I. Szpektor, H. Kotek, and Y. Belinkov LLMs know more than they show: on the intrinsic representation of LLM hallucinations. In The Thirteenth International Conference on Learning Representations, External Links: Link Cited by: §2.
A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin, N. Gimelshein, L. Antiga, A. Desmaison, A. Köpf, E. Yang, Z. DeVito, M. Raison, A. Tejani, S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, and S. Chintala PyTorch: an imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems, Vol. 32. External Links: Link Cited by: Appendix A.
F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and É. Duchesnay Scikit-learn: machine learning in Python. Journal of Machine Learning Research 12 (85), pp. 2825–2830. External Links: Link Cited by: Appendix A.
Qwen, A. Yang, B. Yang, B. Zhang, B. Hui, B. Zheng, B. Yu, C. Li, D. Liu, F. Huang, H. Wei, H. Lin, J. Yang, J. Tu, J. Zhang, J. Yang, J. Yang, J. Zhou, J. Lin, K. Dang, K. Lu, K. Bao, K. Yang, L. Yu, M. Li, M. Xue, P. Zhang, Q. Zhu, R. Men, R. Lin, T. Li, T. Tang, T. Xia, X. Ren, X. Ren, Y. Fan, Y. Su, Y. Zhang, Y. Wan, Y. Liu, Z. Cui, Z. Zhang, and Z. Qiu Qwen2.5 technical report. External Links: 2412.15115, Link Cited by: §3.1.
N. Rimsky, N. Gabrieli, J. Schulz, M. Tong, E. Hubinger, and A. Turner Steering Llama 2 via contrastive activation addition. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), L. Ku, A. Martins, and V. Srikumar (Eds.), Bangkok, Thailand, pp. 15504–15522. External Links: Link, Document Cited by: §1, §2, §5.1, §5.1.
K. Shoemake Animating rotation with quaternion curves. SIGGRAPH Computer Graphics 19 (3), pp. 245–254. External Links: ISSN 0097-8930, Document Cited by: §5.1.
Z. R. Sprague, F. Yin, J. D. Rodriguez, D. Jiang, M. Wadhwa, P. Singhal, X. Zhao, X. Ye, K. Mahowald, and G. Durrett To CoT or not to CoT? chain-of-thought helps mainly on math and symbolic reasoning. In The Thirteenth International Conference on Learning Representations, External Links: Link Cited by: §1.
M. Suzgun, N. Scales, N. Schärli, S. Gehrmann, Y. Tay, H. W. Chung, A. Chowdhery, Q. Le, E. Chi, D. Zhou, and J. Wei Challenging BIG-bench tasks and whether chain-of-thought can solve them. In Findings of the Association for Computational Linguistics: ACL 2023, A. Rogers, J. Boyd-Graber, and N. Okazaki (Eds.), Toronto, Canada, pp. 13003–13051. External Links: Link, Document Cited by: §1.
A. M. Turner, L. Thiergart, G. Leech, D. Udell, J. J. Vazquez, U. Mini, and M. MacDiarmid Steering language models with activation engineering. External Links: 2308.10248, Link Cited by: §2, §5.1.
P. Virtanen, R. Gommers, T. E. Oliphant, M. Haberland, T. Reddy, D. Cournapeau, E. Burovski, P. Peterson, W. Weckesser, J. Bright, S. J. van der Walt, M. Brett, et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nature Methods 17 (3), pp. 261–272. External Links: Document Cited by: Appendix A.
J. Wei, X. Wang, D. Schuurmans, M. Bosma, B. Ichter, F. Xia, E. Chi, Q. V. Le, and D. Zhou Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems, Vol. 35, pp. 24824–24837. External Links: Link Cited by: §1.
T. Wolf, L. Debut, V. Sanh, J. Chaumond, C. Delangue, A. Moi, P. Cistac, T. Rault, R. Louf, M. Funtowicz, J. Davison, S. Shleifer, P. von Platen, C. Ma, Y. Jernite, J. Plu, C. Xu, T. Le Scao, S. Gugger, M. Drame, Q. Lhoest, and A. Rush Transformers: state-of-the-art natural language processing. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, Q. Liu and D. Schlangen (Eds.), Online, pp. 38–45. External Links: Link, Document Cited by: Appendix A.
Z. You, C. Deng, and H. Chen Spherical steering: geometry-aware activation rotation for language models. In Proceedings of the 43rd International Conference on Machine Learning, Proceedings of Machine Learning Research, Vol. 306, pp. 149801–149823. External Links: Link Cited by: §5.1, §5.1.
A. Zhang, Y. Chen, J. Pan, C. Zhao, A. Panda, J. Li, and H. He Reasoning models know when they’re right: probing hidden states for self-verification. In Second Conference on Language Modeling, External Links: Link Cited by: §2, §4.1.
F. Zhang and N. Nanda Towards best practices of activation patching in language models: metrics and methods. In The Twelfth International Conference on Learning Representations, External Links: Link Cited by: §2.
J. Zhang and S. W. Viteri Uncovering latent chain of thought vectors in large language models. In ICLR 2025 Workshop on Neural Network Weights as a New Data Modality, External Links: Link Cited by: §2.
Appendix A Implementation Details
The experiments use LLaMA 3.1 8B and Qwen 2.5 7B in their instruction-tuned variants and are run on NVIDIA GH200 nodes, using about 8,000 GPU hours in total, including exploratory and preliminary experiments. All experiments are run with a batch size of and the seed to ensure reproducibility. We implement them in PyTorch (Paszke et al., 2019) with the Hugging Face Transformers library (Wolf et al., 2020), and compute AUROC with scikit-learn (Pedregosa et al., 2011) and the statistical tests with SciPy (Virtanen et al., 2020).
Prompts.
Table 3 gives the prompt templates: both prompts of a question share the user turn and differ only in the system instruction, whose answer slot depends on the answer format of the task. Both prompts are formatted with the model’s chat template, and is the state of the last token of the formatted prompt.
Data.
We use the test split of GSM8K (1,319 questions), the labelled set of StrategyQA (2,290 questions) and all questions of 23 of the 27 BIG-Bench Hard subtasks (Table 4). We exclude Dyck Languages, Word Sorting and Formal Fallacies, where answer extraction after patching was not sufficiently clean-cut for both models, and Salient Translation Error Detection, where the models often failed to generate a CoT trace. By answer format, three tasks are numeric (GSM8K, Multistep Arithmetic and Object Counting), six are binary (StrategyQA, Boolean Expressions, Causal Judgement, Navigate, Sports Understanding and Web of Lies), and the other 16 subtasks are multiple choice.
| Template, shared across tasks | |
|---|---|
| User turn | Question: {question} Answer: |
| System, CoT | you are a step-by-step reasoner, finish the reasoning with Final Answer: #### ans |
| System, direct | Answer only with ans. Do not show steps. |
| Answer slot ans (CoT; direct) | |
| True/False | [True/False]; True or False |
| Yes/No | [Yes/No]; Yes or No |
| Multiple choice | [single letter, e.g. A]; a single letter (e.g. A, B, C) |
| GSM8K | [number]; the final numeric result |
| Numeric (BBH) | [number]; a number |
Table 3: Prompt templates. Every task uses the same user turn, and the two system instructions differ only in whether they ask for steps and in the answer slot, which depends on the answer format. True/False covers StrategyQA and the True/False tasks of BIG-Bench Hard. Under CoT, #### marks the final answer.
Decoding.
Decoding is greedy in every run. The CoT and direct baselines (Table 1) generate at most 1,024 tokens. For patching, the CoT run from which we cache states and every patched run generate at most 400 tokens, and every run with an intervention (Section 5) at most 128. The CoT run for patching reaches its limit on 511 of the 9,120 questions for LLaMA 3.1 8B and 693 for Qwen 2.5 7B, and the CoT baseline reaches its own on 123 questions for LLaMA 3.1 8B and 1 for Qwen 2.5 7B. Generated tokens are counted with the model’s tokenizer, excluding special tokens.
Answer extraction.
We evaluate the models with a flexible answer extraction, similar to the answer cleansing of Kojima et al. (2022), and we apply it to every generation: under the CoT and direct prompts, after a patch and after an intervention. We read the answer from the text after the last Final Answer: of the generation, and from the whole generation if it has no such marker or no answer after it. Only the CoT prompt asks for this marker, so the other generations are almost always read whole ( of the patched runs of both models), as are 595 of the 9,120 chains of LLaMA 3.1 8B’s CoT run for patching and 667 of Qwen 2.5 7B’s, most of which reach the token limit. What we read depends on the answer format of the task: the last number for numeric tasks, with thousands separators and trailing zeros removed; the last True, False, Yes or No for binary tasks; and the last standalone capital letter, with or without parentheses, for multiple-choice tasks. The answer is correct if it matches the gold answer, ignoring case; for the multiple-choice tasks of BIG-Bench Hard, we remove the parentheses from the gold label, so that (A) becomes A. A generation from which no answer can be read counts as incorrect, so a patch whose continuation states no answer is a failed patch.
Appendix B Patch Labels
Table 4 describes the labelled states of each task. Most patches fail. Averaged over tasks, of the CoT states of LLaMA 3.1 8B recover the answer, from on Geometric Shapes to on Boolean Expressions, and of those of Qwen 2.5 7B, from on Tracking Shuffled Objects (7) to on Boolean Expressions. On the binary tasks of Qwen 2.5 7B the share approaches one half. Almost every question has both a recovering and a failed state, and so a direction; the exceptions concentrate in the hardest tasks, Tracking Shuffled Objects (7), Geometric Shapes and Logical Deduction (7). These exceptions, 350 questions for LLaMA 3.1 8B and 192 for Qwen 2.5 7B, all lack a recovering state, as no question has only recovering states, and we count them as incorrect under every direction without running them.
| LLaMA 3.1 8B | Qwen 2.5 7B | ||||||
|---|---|---|---|---|---|---|---|
| Task | Questions | States | Rec. (%) | Cov. (%) | States | Rec. (%) | Cov. (%) |
| Arithmetic | |||||||
| GSM8K | 1,319 | 172 | 26 | 97 | 246 | 30 | 98 |
| Multistep Arith. | 250 | 142 | 11 | 99 | 262 | 10 | 100 |
| Object Counting | 250 | 94 | 23 | 94 | 119 | 34 | 98 |
| Logical | |||||||
| Boolean Expr. | 250 | 141 | 47 | 100 | 174 | 56 | 100 |
| Logical Ded. (3) | 250 | 130 | 17 | 98 | 174 | 29 | 99 |
| Logical Ded. (5) | 250 | 251 | 12 | 96 | 322 | 20 | 94 |
| Logical Ded. (7) | 250 | 293 | 11 | 84 | 364 | 19 | 94 |
| Web of Lies | 250 | 122 | 13 | 99 | 187 | 31 | 100 |
| Penguins | 146 | 146 | 14 | 100 | 147 | 23 | 99 |
| Temporal and state tracking | |||||||
| Temporal Seq. | 250 | 277 | 16 | 100 | 287 | 23 | 100 |
| Date Underst. | 250 | 173 | 11 | 94 | 218 | 22 | 98 |
| Shuffled Obj. (3) | 250 | 138 | 16 | 99 | 215 | 12 | 97 |
| Shuffled Obj. (5) | 250 | 203 | 10 | 95 | 312 | 8 | 98 |
| Shuffled Obj. (7) | 250 | 274 | 8 | 89 | 379 | 7 | 80 |
| Colored Objects | 250 | 114 | 17 | 94 | 133 | 32 | 99 |
| Spatial and geometric | |||||||
| Navigate | 250 | 180 | 22 | 100 | 216 | 53 | 100 |
| Geometric Shapes | 250 | 341 | 4 | 84 | 293 | 14 | 88 |
| Causal, commonsense, and knowledge | |||||||
| Causal Judgement | 187 | 166 | 20 | 91 | 217 | 45 | 95 |
| StrategyQA | 2,290 | 227 | 19 | 97 | 263 | 51 | 100 |
| Sports Underst. | 250 | 143 | 15 | 98 | 224 | 39 | 99 |
| Movie Rec. | 250 | 249 | 22 | 95 | 369 | 29 | 99 |
| Linguistic and pragmatic | |||||||
| Hyperbaton | 250 | 200 | 31 | 100 | 198 | 28 | 98 |
| Disambig. QA | 250 | 136 | 10 | 94 | 211 | 27 | 100 |
| Snarks | 178 | 145 | 20 | 100 | 201 | 29 | 100 |
| Ruin Names | 250 | 172 | 22 | 99 | 216 | 30 | 99 |
| All 25 tasks | 9,120 | 185 | 17 | 96 | 238 | 28 | 97 |
Table 4: Patch labels per task, at layer 29 of LLaMA 3.1 8B and layer 25 of Qwen 2.5 7B. Questions is the number of questions; States is the mean number of labelled CoT states per question, one per token of the chain, which is capped at 400 tokens (Appendix A); Rec. is the percentage of these states that recover the answer when patched; Cov. is the percentage of questions with at least one recovering and one failed state, for which the directions of Section 5 are defined. The last row gives the total number of questions and, for the other columns, macro averages over tasks.
| LLaMA 3.1 8B, layer 29 | Qwen 2.5 7B, layer 25 | ||||||
|---|---|---|---|---|---|---|---|
| Task | AUROC | Sel. orig. | Sel. w.-pos. | AUROC | Sel. orig. | Sel. w.-pos. | |
| GSM8K | 1,319 | 0.773 0.007 | 0.219 | 0.199 | 0.801 0.008 | 0.262 | 0.209 |
| Multistep Arith. | 250 | 0.879 0.012 | 0.132 | 0.180 | 0.875 0.029 | 0.288 | 0.294 |
| Object Counting | 250 | 0.877 0.015 | 0.235 | 0.346 | 0.830 0.015 | 0.209 | 0.272 |
| Boolean Expr. | 250 | 0.709 0.032 | 0.100 | 0.201 | 0.725 0.006 | 0.122 | 0.214 |
| Logical Ded. (3) | 250 | 0.818 0.018 | 0.139 | 0.254 | 0.858 0.010 | 0.241 | 0.317 |
| Logical Ded. (5) | 250 | 0.814 0.022 | 0.246 | 0.291 | 0.815 0.017 | 0.250 | 0.313 |
| Logical Ded. (7) | 250 | 0.826 0.020 | 0.254 | 0.326 | 0.823 0.011 | 0.270 | 0.312 |
| Web of Lies | 250 | 0.917 0.009 | 0.221 | 0.297 | 0.794 0.006 | 0.191 | 0.270 |
| Penguins | 146 | 0.839 0.010 | 0.240 | 0.320 | 0.837 0.013 | 0.274 | 0.294 |
| Temporal Seq. | 250 | 0.921 0.003 | 0.300 | 0.348 | 0.886 0.005 | 0.273 | 0.337 |
| Date Underst. | 250 | 0.852 0.009 | 0.286 | 0.320 | 0.871 0.006 | 0.308 | 0.334 |
| Shuffled Obj. (3) | 250 | 0.772 0.009 | 0.107 | 0.212 | 0.802 0.013 | 0.091 | 0.270 |
| Shuffled Obj. (5) | 250 | 0.765 0.004 | 0.146 | 0.228 | 0.796 0.022 | 0.173 | 0.273 |
| Shuffled Obj. (7) | 250 | 0.785 0.023 | 0.211 | 0.260 | 0.785 0.023 | 0.176 | 0.299 |
| Colored Objects | 250 | 0.851 0.009 | 0.250 | 0.321 | 0.806 0.014 | 0.190 | 0.275 |
| Navigate | 250 | 0.890 0.019 | 0.289 | 0.344 | 0.782 0.019 | 0.178 | 0.254 |
| Geometric Shapes | 250 | 0.910 0.011 | 0.305 | 0.361 | 0.928 0.011 | 0.331 | 0.401 |
| Causal Judgement | 187 | 0.800 0.017 | 0.243 | 0.280 | 0.524 0.053 | 0.021 | 0.042 |
| StrategyQA | 2,290 | 0.799 0.005 | 0.254 | 0.282 | 0.640 0.009 | 0.086 | 0.138 |
| Sports Underst. | 250 | 0.879 0.011 | 0.228 | 0.304 | 0.712 0.009 | 0.128 | 0.197 |
| Movie Rec. | 250 | 0.792 0.012 | 0.229 | 0.258 | 0.809 0.003 | 0.211 | 0.282 |
| Hyperbaton | 250 | 0.884 0.020 | 0.249 | 0.285 | 0.865 0.010 | 0.219 | 0.312 |
| Disambig. QA | 250 | 0.864 0.011 | 0.206 | 0.308 | 0.788 0.005 | 0.111 | 0.243 |
| Snarks | 178 | 0.855 0.009 | 0.205 | 0.283 | 0.787 0.009 | 0.174 | 0.205 |
| Ruin Names | 250 | 0.827 0.004 | 0.227 | 0.284 | 0.752 0.012 | 0.180 | 0.229 |
| Macro average | 9,120 | 0.836 | 0.221 | 0.284 | 0.796 | 0.197 | 0.263 |
Table 5: Per-task probes at the layers reported in the main text. : questions, all of which are scored out of fold. AUROC the standard deviation of the per-fold AUROC; Figure 2 shows the same AUROC values to two decimals, rounded from the unrounded values. Sel. orig./w.-pos.: selectivity against the origin and within-position controls (Appendix C.2).
Appendix C Probe
C.1 Training the Probe
Data and folds.
The questions of each task are assigned to five folds, and every state of a question falls in the fold of that question. The assignment is a random permutation of the task’s questions, seeded with the task’s name so that both models use the same folds. Over the 25 tasks there are questions per model, and per layer M states for LLaMA 3.1 8B and M for Qwen 2.5 7B. Every probe is trained on a union of folds and evaluated only on questions outside it.
Class balance.
Most patches fail, so within each fold we downsample the failed states to a 50/50 ratio. Any union of folds is therefore balanced. Evaluation always uses all states at their natural label distribution.
Objective.
On a class-balanced training set , the probe of Eq. (1) minimises the -penalised binary cross-entropy
where the bias is not penalised. This is the standard -regularised linear probe, with inverse regularisation strength .
Standardisation.
Each probe standardises its states per dimension,
where is elementwise division and , with the hidden size, are the per-dimension mean and standard deviation of its training set . The probe applies the same and to every state it scores. Per-dimension scaling makes the penalty in Eq. (5) treat all dimensions alike and keeps a few high-variance dimensions from dominating the probe.
Optimisation.
We minimise Eq. (5) with full-batch L-BFGS (Liu and Nocedal, 1989) and a strong-Wolfe line search in double precision, and stop when every coordinate of the gradient is at most in magnitude.
Choosing the penalty.
The penalty is chosen from by nested cross-validation, so no hyperparameter is chosen on the states a probe is evaluated on. For the probe that scores fold , each is assessed by leave-one-fold-out cross-validation over the remaining four folds: we train on three and compute the AUROC on all states of the fourth. The value with the highest mean AUROC is selected, and the probe is refitted on all four folds at that value.
Out-of-fold scores.
Each fold is scored by the probe trained without it, and the five sets of scores are pooled into one AUROC per task and layer.
Full refit for transfer.
The source probe for transfer (Section 4.3) is fitted on all questions of its task. Its is the value with the highest mean out-of-fold AUROC, each fold being evaluated by the probe trained on the other four. This selection is not nested, but the full refit is only ever evaluated on other tasks.
C.2 Control Tasks
A probe can score well without reading anything specific to a state. Each probe sees a single task and layer, but patch success is not uniform along the chain: earlier positions recover more often than later ones (Mehrafarin et al., 2026). A probe could therefore reach a high AUROC by inferring a state’s position and predicting the success rate of that position. Following Hewitt and Liang (2019), we train control probes with the same architecture on modified labels and report the selectivity of each probe against them, its AUROC minus that of the control probe (Tables 5 and 6). Since the exploitable structure here is a state’s position, we assign control labels per position, separately for each task and layer.
The origin control gives all states at a position one fixed random label, drawn so that the success rate of the task and layer is preserved. A probe can solve it only by recovering where in the chain a state comes from.
The within-position control shuffles the real labels among the states at a position, independently within each fold. Each position thus keeps its exact success rate, but which question recovers becomes random. A probe can solve it only by predicting the success rate of each position.
Control probes are cross-fitted exactly like the real probes, using the penalty chosen for the real probe of the same fold. Selectivity against the origin control measures what the probe decodes beyond a state’s position. Selectivity against the within-position control measures whether the probe separates recovering from failed states at the same position. Within-position selectivity is positive for all 50 probes at the layers of the main text (means for LLaMA 3.1 8B and for Qwen 2.5 7B).
Figure 6: Transfer of the probes between every pair of tasks, at layer 29 of LLaMA 3.1 8B and layer 25 of Qwen 2.5 7B. Each cell is the AUROC of a probe trained on the row’s task and evaluated on the column’s task; tasks are grouped by reasoning type. Cells run from ivory at chance (0.5) to green, and the diagonal, a probe on its own task (Figure 2), is left white. Plum cells fall below chance. Figure 3 averages these matrices over reasoning types.
C.3 Per-Task Results
Table 5 reports the AUROC and both selectivities of every task’s probe at the layers reported in the main text. The estimates are stable across folds: the median standard deviation of the per-fold AUROC is . Across the 25 tasks, probe AUROC is not significantly correlated with CoT accuracy (Spearman’s for LLaMA 3.1 8B and for Qwen 2.5 7B), direct accuracy ( and ) or the gain of CoT over the direct prompt ( and ), all with . For Qwen 2.5 7B, probe AUROC is negatively correlated with the share of patches that succeed (, ) only because its six binary tasks, on which almost half of the patches succeed (, against on the other tasks), have weaker probes on average. Without them, (). For LLaMA 3.1 8B there is no such relation (, ).
C.4 Layer Choice
Table 6 reports all three layers of the late band. For LLaMA 3.1 8B, layer 27 is worse than each of layers 29 and 31 on 24 of the 25 tasks ( for both AUROC and within-position selectivity; Wilcoxon signed-rank), and layer 31 exceeds layer 29 only slightly ( against , ). For Qwen 2.5 7B no pair of layers differs (). The layers we report in the main text, layer 29 for LLaMA 3.1 8B and layer 25 for Qwen 2.5 7B, are therefore within AUROC of the best layer of each model.
| Control | Selectivity | ||||
|---|---|---|---|---|---|
| Probe | Orig. | W.-pos. | Orig. | W.-pos. | |
| LLaMA 3.1 8B | |||||
| 27 | 0.819 | 0.625 | 0.551 | 0.194 | 0.267 |
| 29 | 0.836 | 0.615 | 0.552 | 0.221 | 0.284 |
| 31 | 0.838 | 0.620 | 0.552 | 0.218 | 0.286 |
| Qwen 2.5 7B | |||||
| 23 | 0.795 | 0.601 | 0.534 | 0.194 | 0.261 |
| 25 | 0.796 | 0.599 | 0.532 | 0.197 | 0.263 |
| 27 | 0.794 | 0.602 | 0.529 | 0.192 | 0.264 |
Table 6: Probe performance on the original and control tasks at each layer of the late band, summarised over the 25 tasks. Probe: mean out-of-fold AUROC, computed over all questions of each task. Control: mean AUROC of the origin (Orig.) and within-position (W.-pos.) control probes (Appendix C.2). Selectivity: probe AUROC minus control AUROC.
| Off-diagonal | Reasoning type | |||||
|---|---|---|---|---|---|---|
| Diagonal | AUROC | Sel. w.-pos. | Same | Different | ||
| LLaMA 3.1 8B | ||||||
| 27 | 0.819 | 0.648 | 582/600 | 0.127 | 0.689 | 0.640 |
| 29 | 0.836 | 0.663 | 587/600 | 0.145 | 0.710 | 0.654 |
| 31 | 0.838 | 0.674 | 590/600 | 0.155 | 0.719 | 0.666 |
| Qwen 2.5 7B | ||||||
| 23 | 0.795 | 0.630 | 591/600 | 0.122 | 0.669 | 0.622 |
| 25 | 0.796 | 0.630 | 587/600 | 0.123 | 0.672 | 0.623 |
| 27 | 0.794 | 0.635 | 585/600 | 0.129 | 0.673 | 0.628 |
Table 7: Probe transfer per layer. Diagonal: mean out-of-fold AUROC within each task. Off-diagonal: mean AUROC of a probe trained on all questions of one task and scored on every state of another; : cells above chance; Sel. w.-pos.: mean selectivity against the within-position control. Same/Different: mean off-diagonal AUROC between tasks of the same or of a different reasoning type.
C.5 Transfer
Table 7 summarises the transfer matrices at all three layers, and Figure 6 shows them in full at the layers of the main text. For LLaMA 3.1 8B the three arithmetic tasks, the only ones with numeric answers, are the three weakest sources, and GSM8K and Multistep Arithmetic the two hardest targets. Yet they transfer better to one another than to or from any other type (Figure 3), which suggests that the arithmetic tasks share an encoding of recovering and failed states that extends only partly to the other tasks. For Qwen 2.5 7B the hardest targets are Causal Judgement, Sports Understanding and StrategyQA. All three are binary tasks, and two of them carry Qwen 2.5 7B’s weakest within-task probes (Figure 2). Its weakest sources are Sports Understanding, Multistep Arithmetic and GSM8K. Transfer increases with depth for LLaMA 3.1 8B and is flat for Qwen 2.5 7B (Table 7).
For the Same/Different columns of Table 7 we compare the mean AUROC of the off-diagonal cells between tasks of the same reasoning type (Table 1) with that of the cells between tasks of different types, 92 against 508 cells. As cells that share a task are not independent, we test the difference by permutation: we shuffle the reasoning types across the 25 tasks, keeping the number of tasks of each type, and none of 100,000 shuffles gives a difference as large as the observed one at the layers of the main text ( for both models).
In transfer we report only the within-position control (Appendix C.2). The source task’s within-position control probe is scored on the target’s within-position labels. The origin control is uninformative off the diagonal, because the source task’s arbitrary position labels are unrelated to the target’s. The within-position control probes transfer at an AUROC of only (LLaMA 3.1 8B) and (Qwen 2.5 7B), so off-diagonal selectivity is and on average (Table 7), and positive in and of the cells.
C.6 Probe Weights and Activation Patterns
In this section we show why we build directions from the means of recovering and failed states rather than from the probe weights. On the unstandardised state (Eq. (6)), the probe’s weight vector is . Because the probe is trained to classify, it can weight some dimensions only to cancel noise they share with informative ones, so its weight vector does not necessarily point along the difference between recovering and failed states (Haufe et al., 2014). That difference is described by the probe’s activation pattern , and more directly by the class-mean difference . We compute all three vectors on each probe’s own training states.
Across the 150 probes (25 tasks, three layers, two models), the pattern and the class-mean difference are almost the same vector (median cosine for both models), while the weight vector is far from both (median cosine with the pattern for LLaMA 3.1 8B and for Qwen 2.5 7B). The weight vector is also less stable. Each probe is trained five times, once for each held-out fold, and we take the least similar pair of its five versions: the median cosine of this pair is for LLaMA 3.1 8B and for Qwen 2.5 7B for the weight vector, against for both the pattern and the class-mean difference. The direction along which recovering and failed states differ is thus a stable property of each task and layer, whereas the weight vector varies with the questions the probe is trained on.
Appendix D Task-Solving Directions
D.1 Rotation Fraction, Norm and Layer
| LLaMA 3.1 8B | Qwen 2.5 7B | |||
|---|---|---|---|---|
| Acc. | Tok. | Acc. | Tok. | |
| Rotation fraction , towards | ||||
| 54 | 1 | 56 | 1 | |
| 71 | 5 | 67 | 3 | |
| 85 | 16 | 86 | 15 | |
| 85 | 19 | 86 | 19 | |
| 82 | 19 | 84 | 20 | |
| Target inserted at times its norm, | ||||
| 70 | 13 | 60 | 15 | |
| 83 | 18 | 83 | 19 | |
| 85 | 19 | 87 | 19 | |
| 84 | 18 | 87 | 19 | |
| 84 | 18 | 86 | 19 | |
| At every generated token, towards | ||||
| 50 | 1 | 54 | 1 | |
| 53 | 64 | 59 | 9 | |
| 6 | 111 | 6 | 109 |
Table 8: Variations of the intervention, macro-averaged over the 25 tasks: accuracy in percent and mean tokens generated per question. Unless the block says otherwise, the last state of the direct prompt is rotated once, at layer 29 of LLaMA 3.1 8B and layer 25 of Qwen 2.5 7B. The main text uses towards , which gives 85% for LLaMA 3.1 8B and 86% for Qwen 2.5 7B.
Table 8 varies the intervention around the configuration of Section 5.1, at layer 29 of LLaMA 3.1 8B and layer 25 of Qwen 2.5 7B, and Table 9 varies the layer.
Rotation fraction.
Accuracy rises with the rotation fraction and is highest at and . At the state stays close to its original direction, and the model still answers within a few tokens; past the state moves beyond the target and accuracy falls slightly.
Direction versus norm.
The rotation keeps the norm of the state and changes only its direction. To separate the two, we also replace the state with the target scaled to times its own norm, , so that changes only the norm. Since the rotation uses only the direction of its target, the norm in Eq. (3) matters only for this replacement and for the average that gives , and inserts a state with the norm of the recovering mean, whereas keeps the norm of the original state. Accuracy depends on the direction far more than on the norm. Rotating further towards the target raises accuracy from 54 to 85 on LLaMA 3.1 8B and from 56 to 86 on Qwen 2.5 7B, whereas scaling the target anywhere from half to four times its norm keeps accuracy between 83 and 87. Accuracy drops only at , where the inserted state is much smaller than the state it replaces and too small to have its full effect.
Rotation at every token.
The rotation changes one state, once. Applied at every generated token instead, as steering vectors usually are, the same rotation towards the recovering mean helps far less: at its best it reaches 53% and 59%, and at accuracy falls to 6% for both models while the generations grow to over a hundred tokens, close to the limit of 128 (Appendix A). A single change to the state that generation starts from is therefore enough for the model to compute the answer itself, and changing every later state as well overrides this computation.
| LLaMA 3.1 8B | Qwen 2.5 7B | ||||
|---|---|---|---|---|---|
| Layer | Acc. | Tok. | Layer | Acc. | Tok. |
| 27 | 75 | 16 | 23 | 76 | 18 |
| 29 | 80 | 17 | 25 | 82 | 18 |
| 31 | 76 | 15 | 27 | 85 | 18 |
Table 9: Rotating the last state of the direct prompt once, at , towards at each layer of the late band; columns as in Table 8. The main text uses layer 29 of LLaMA 3.1 8B and layer 25 of Qwen 2.5 7B.
Layer.
Table 9 rotates the state towards the recovering mean at each layer of the late band. Layer 29 is the best of the three for LLaMA 3.1 8B, while for Qwen 2.5 7B layer 27 gives three points more than layer 25.
D.2 Per-Task Results
Table 10 gives the accuracy on every task under the recovering mean, , the failed mean and the task-level direction . The recovering mean and raise accuracy above the direct prompt on every task for both models. Over the 25 tasks, reaches a higher accuracy than CoT for both models ( for LLaMA 3.1 8B and for Qwen 2.5 7B; two-sided Wilcoxon signed-rank). The failed mean lowers accuracy on every task except Multistep Arithmetic for LLaMA 3.1 8B, which the direct prompt already fails, and on six tasks of LLaMA 3.1 8B it leaves at most 2% of the questions right. The task-level direction gains more than ten points over the direct prompt only on Multistep Arithmetic and GSM8K, for both models.
D.3 Example Generations
Table 11 shows the generations of LLaMA 3.1 8B for eight questions. On the fifth and sixth, both prompts answer incorrectly and the direction reaches the correct answer with a short computation. On the last two, CoT reasons its way to a wrong answer.
D.4 Task-Level Directions Across Tasks
Section 5.3 applies each task-level direction to the questions of its own task. Here we apply the task-level direction of every task to the questions of every other task on Qwen 2.5 7B (Figure 7). Accuracy falls below the direct prompt for 465 of the 600 task pairs, by 18 points on average over these pairs and by as much as 76. The losses concentrate in a few columns: the questions of Sports Understanding, Disambiguation QA and Logical Deduction (3) lose 34, 32 and 30 points on average under the directions of the other tasks.
| LLaMA 3.1 8B | Qwen 2.5 7B | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Task | Dir. | CoT | Tok. | Dir. | CoT | Tok. | ||||||||
| Arithmetic | ||||||||||||||
| GSM8K | 9 | 85 | 73 | 86 | 6 | 32 | 39 | 20 | 90 | 74 | 83 | 9 | 44 | 52 |
| Multistep Arith. | 0 | 66 | 79 | 82 | 1 | 48 | 55 | 2 | 89 | 67 | 74 | 0 | 44 | 66 |
| Object Counting | 41 | 80 | 86 | 89 | 7 | 40 | 11 | 49 | 79 | 78 | 87 | 20 | 58 | 12 |
| Logical | ||||||||||||||
| Boolean Expr. | 58 | 84 | 96 | 100 | 7 | 54 | 3 | 72 | 95 | 98 | 100 | 13 | 54 | 2 |
| Logical Ded. (3) | 51 | 74 | 81 | 87 | 6 | 45 | 14 | 76 | 88 | 85 | 91 | 11 | 55 | 9 |
| Logical Ded. (5) | 37 | 51 | 83 | 86 | 7 | 41 | 23 | 54 | 65 | 80 | 85 | 16 | 41 | 17 |
| Logical Ded. (7) | 30 | 42 | 67 | 70 | 3 | 39 | 22 | 50 | 52 | 70 | 78 | 16 | 38 | 21 |
| Web of Lies | 51 | 92 | 92 | 92 | 8 | 48 | 6 | 58 | 95 | 83 | 87 | 11 | 48 | 40 |
| Penguins | 42 | 86 | 88 | 85 | 10 | 29 | 16 | 52 | 97 | 88 | 92 | 13 | 58 | 17 |
| Temporal and state tracking | ||||||||||||||
| Temporal Seq. | 78 | 89 | 94 | 96 | 48 | 82 | 10 | 73 | 79 | 91 | 94 | 64 | 74 | 17 |
| Date Underst. | 47 | 72 | 77 | 83 | 9 | 50 | 18 | 57 | 75 | 79 | 85 | 7 | 51 | 21 |
| Shuffled Obj. (3) | 33 | 63 | 82 | 86 | 5 | 25 | 37 | 27 | 82 | 83 | 85 | 8 | 28 | 15 |
| Shuffled Obj. (5) | 16 | 58 | 73 | 72 | 8 | 19 | 45 | 19 | 84 | 78 | 77 | 3 | 17 | 24 |
| Shuffled Obj. (7) | 16 | 45 | 56 | 56 | 8 | 18 | 51 | 13 | 74 | 62 | 62 | 1 | 9 | 24 |
| Colored Objects | 56 | 78 | 81 | 84 | 6 | 55 | 13 | 62 | 87 | 88 | 92 | 16 | 58 | 16 |
| Spatial and geometric | ||||||||||||||
| Navigate | 60 | 79 | 87 | 93 | 51 | 57 | 12 | 68 | 87 | 88 | 91 | 34 | 62 | 26 |
| Geometric Shapes | 18 | 41 | 65 | 61 | 1 | 22 | 18 | 44 | 61 | 72 | 68 | 6 | 39 | 13 |
| Causal, commonsense, and knowledge | ||||||||||||||
| Causal Judgement | 53 | 59 | 76 | 83 | 11 | 55 | 10 | 56 | 55 | 81 | 86 | 28 | 57 | 20 |
| StrategyQA | 64 | 75 | 74 | 87 | 5 | 45 | 9 | 69 | 74 | 86 | 92 | 29 | 68 | 13 |
| Sports Underst. | 74 | 79 | 80 | 86 | 10 | 65 | 6 | 70 | 75 | 83 | 92 | 14 | 66 | 9 |
| Movie Rec. | 63 | 53 | 77 | 86 | 0 | 56 | 13 | 66 | 60 | 88 | 94 | 4 | 54 | 7 |
| Linguistic and pragmatic | ||||||||||||||
| Hyperbaton | 74 | 78 | 94 | 96 | 0 | 74 | 9 | 60 | 83 | 96 | 96 | 17 | 47 | 4 |
| Disambig. QA | 35 | 57 | 75 | 84 | 1 | 38 | 11 | 58 | 66 | 82 | 90 | 14 | 66 | 11 |
| Snarks | 62 | 71 | 90 | 95 | 3 | 72 | 5 | 74 | 76 | 82 | 93 | 15 | 53 | 9 |
| Ruin Names | 71 | 62 | 74 | 93 | 1 | 42 | 8 | 54 | 51 | 82 | 89 | 21 | 54 | 12 |
| Mean (25 tasks) | 46 | 69 | 80 | 85 | 9 | 46 | 19 | 52 | 77 | 82 | 86 | 16 | 50 | 19 |
Table 10: Accuracy in percent per task after rotating the state of the direct prompt (; layer 29 of LLaMA 3.1 8B, layer 25 of Qwen 2.5 7B) towards the question’s recovering mean , contrastive direction and failed mean , and towards the task-level direction of its task, against the direct (Dir.) and CoT prompts. Tok. is the mean number of tokens generated under . Questions without a contrastive direction count as incorrect. The higher of CoT and is in bold, compared before rounding.
| GSM8K | |
|---|---|
| Question | Ali had 100. How much does Ali have now? |
| Direct | 121 wrong |
| add 50. 50 = $71 correct | |
| CoT | Let’s break it down step by step: 1. Ali initially had 100, which is 50. … Final Answer: $71 correct |
| Web of Lies | |
|---|---|
| Question | Tamika lies. Raymond says Tamika tells the truth. Willian says Raymond tells the truth. Shaunda says Willian lies. Elanor says Shaunda tells the truth. Does Elanor tell the truth? |
| Direct | No wrong |
| Yes correct | |
| CoT | Let’s break it down step by step: 1. Raymond says Tamika tells the truth, but we know Tamika lies, so Raymond must be lying. … Final Answer: Yes correct |
| Temporal Sequences | |
|---|---|
| Question | Today, Susan went to the coffee shop. Between what times could they have gone? We know that: Susan woke up at 7am. Linda saw Susan driving to the water park from 7am to 11am … |
| Direct | C wrong |
| the correct answer is A. correct | |
| CoT | Let’s analyze the information step by step: 1. Susan woke up at 7am, so she was definitely available to go to the coffee shop between 7am and 9pm. … Final Answer: A correct |
| Snarks | |
|---|---|
| Question | Which statement is sarcastic? Options: (A) Hey just be happy then you won’t be depressed anymore (B) Hey just be happy that you won’t be depressed anymore |
| Direct | B wrong |
| of (A) correct | |
| CoT | To determine which statement is sarcastic, let’s analyze the options: (A) “Hey just be happy then you won’t be depressed anymore” – This statement implies that happiness is a simple solution to depression … Final Answer: A correct |
| Multistep Arithmetic | |
|---|---|
| Question | ((−4 + −6 + −6 − −9) + (−2 * −5 * 5 * 7)) = |
| Direct | −2 wrong |
| parentheses first: (−4 + −6 + −6 − −9) = −7 then multiply: (−2 * −5 * 5 * 7) = 350 then add: −7 + 350 = 343 correct | |
| CoT | To evaluate the expression, we need to follow the order of operations (PEMDAS): … (−4 + −6 + −6 − −9) = −7 … (−2 * −5 * 5 * 7) = −2 * 125 = −250 … −7 + (−250) = −257 Final Answer: −257 wrong |
| Object Counting | |
|---|---|
| Question | I have a trumpet, four trombones, an accordion, a clarinet, a violin, and a drum. How many musical instruments do I have? |
| Direct | 8 wrong |
| Clarinet, Drum, Accordion, Trumpet, Violin, Trombone, Trombone, Trombone, Trombone = 9 correct | |
| CoT | Let’s count the instruments: 1. Trumpet 2. Four trombones (so that’s 4) 3. Accordion 4. Clarinet 5. Violin 6. Drum There are 6 instruments in total. Final Answer: 6 wrong |
| Ruin Names | |
|---|---|
| Question | Which of the following is a humorous edit of this artist or movie name: ‘counting crows’? Options: (A) mounting crows (B) coufting crows (C) counting crowj (D) counting brows |
| Direct | D correct |
| (D) correct | |
| CoT | To determine the humorous edit, let’s analyze each option: … (D) counting brows – This option is a play on words, using “brows” instead of “crows”, but it’s not as clever as option (A). Final Answer: A wrong |
| Movie Recommendation | |
|---|---|
| Question | Find a movie similar to Rocky, Star Wars Episode IV - A New Hope, Toy Story, The Terminator: Options: (A) Dracula Dead and Loving It (B) Independence Day (C) The Extraordinary Adventures of Adèle Blanc-Sec (D) The American President |
| Direct | B correct |
| these movies are all action/adventure films, so I’ll choose: (B) correct | |
| CoT | To find a movie similar to Rocky, Star Wars … we need to identify a common theme or genre among these films. … Final Answer: C wrong |
Table 11: Generations of LLaMA 3.1 8B under the direct prompt, with its last state pointed towards at layer 29 (), and under CoT. In the first four examples the direct prompt is wrong, and the direction reaches the answer of CoT in a few tokens. In the next two, the CoT and direct prompts are both wrong, and the direction reaches the correct answer with a short computation. Over all 25 tasks, both prompts are wrong on 1,867 of the 9,120 questions for LLaMA 3.1 8B and on 1,441 for Qwen 2.5 7B, and the direction reaches the correct answer on 1,192 (64%) and 1,014 (70%) of them. The last two come from tasks where CoT falls below the direct prompt: the direct prompt is already correct, the steps of CoT sway the model away from this answer, and the direction keeps it. Questions and CoT outputs are truncated (…) for space.
Figure 7: The task-level direction of each task (rows) applied to the questions of each task (columns) on Qwen 2.5 7B, at layer 25 (). Each cell is the change in accuracy over the direct prompt on the column’s task, in points. Outlined cells on the diagonal apply a task’s direction to its own questions (Figure 5).