mlsanityData to 14 Oct 2026

Simple Mechanistic Explanations for Out-Of-Context Reasoning

arXiv 2507.08218 ↗First posted 10 Jul 2025cs.CL cs.LGcited by 10

On the map: LLM reasoning → Test-time compute and efficient thinking

also in 1 more
Abstract (arXiv)

Out-of-context reasoning (OOCR) is a phenomenon in which fine-tuned LLMs exhibit surprisingly deep out-of-distribution generalization. Rather than learning shallow heuristics, they implicitly internalize and act on the consequences of observations scattered throughout the fine-tuning data. In this work, we investigate this phenomenon mechanistically and find that many instances of OOCR in the literature have a simple explanation: the LoRA fine-tuning essentially adds a constant steering vector, steering the model towards a general concept. This improves performance on the fine-tuning task and in many other concept-related domains, causing the surprising generalization. Moreover, we can directly train steering vectors for these tasks from scratch, which also induces OOCR. We find that our results hold even for a task that seems like it must involve conditional behavior (model backdoors); it turns out that unconditionally adding a steering vector is sufficient. Overall, our work presents one explanation of what gets learned during fine-tuning for OOCR tasks, contributing to the key question of why LLMs can reason out of context, an advanced capability that is highly relevant to their safe and reliable deployment.

Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 11 of its 20 references that are in the map. First posted on arXiv 10 Jul 2025.

Builds on

11 of 20 references.

References · 11

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  2. 2025Gemma 3 Technical Reportcited by 1,824
  3. 2023Steering Language Models With Activation Engineeringcited by 922
  4. 2024Alignment faking in large language modelscited by 360
  5. 2022Extracting Latent Steering Vectors from Pretrained Language Modelscited by 225
  6. 2024Fine-Tuning Enhances Existing Mechanisms: A Case Study on Entity Trackingcited by 149
  7. 2023Taken out of context: On measuring situational awareness in LLMscited by 143
  8. 2024Analyzing the Generalization and Reliability of Steering Vectorscited by 143
  9. 2025Tell me about yourself: LLMs are aware of their learned behaviorscited by 91
  10. 2025Auditing language models for hidden objectivescited by 83
  11. 2022ModelDiff: A Framework for Comparing Learning Algorithmscited by 30

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 9.

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Generalization or Hallucination? Understanding Out-of-Context Reasoning in Transformers
  2. 2025Small Vectors, Big Effects: A Mechanistic Study of RL-Induced Reasoning via Steering Vectors
  3. 2025Reasoning-Finetuning Repurposes Latent Representations in Base Models
  4. 2026Beyond What Seems Necessary: Hidden Gains from Scaling Training-Time Reasoning Length under Outcome Supervision
  5. 2025How and Why LLMs Generalize: A Fine-Grained Analysis of LLM Reasoning from Cognitive Behaviors to Low-Level Patterns
  6. 2024Large Language Models are Limited in Out-of-Context Knowledge Reasoning
  7. 2026Fundamental Reasoning Paradigms Induce Out-of-Domain Generalization in Language Models
  8. 2026Can We Break LLMs Out of Self-Loops? Fine-Grained Reasoning Control with Activation Steering