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

Patches of Nonlinearity: Instruction Vectors in Large Language Models

Irina Bigoulaeva, Jonas Rohweder, Subhabrata Dutta, Iryna Gurevych

TL;DR

This paper reveals that Large Language Models (LLMs) process instructions "eagerly" by compressing them into localized "Instruction Vectors" (IVs) at the final token of the instruction prompt. While these IVs are geometrically linear and easily classifiable, their causal impact across layers is highly non-linear and synergistic ("superadditive"). To safely map this behavior, the authors introduce an intervention-free path-tracing method showing that IVs act as internal circuit selectors, routing subsequent query processing through task-specific pathways in later layers.

What Problem Does This Paper Address?

Instruction tuning—via Supervised Fine-Tuning (SFT) or Direct Preference Optimization (DPO)—is the cornerstone of modern LLM alignment. Yet, from a mechanistic perspective, we know surprisingly little about how a model internally represents and executes an instruction.

A dominant paradigm in mechanistic interpretability is the Linear Representation Hypothesis (LRH), which posits that neural networks represent high-level concepts as linear subspaces. Consequently, popular circuit discovery methods model the network as a Directed Acyclic Graph (DAG) of additive, independent components.

The authors target two major gaps:

  1. Understanding the exact internal formation and geometric properties of instruction representations.
  2. Challenging the assumption of linearity. If model components interact non-linearly or synergistically, standard causal discovery methods (like activation patching) can severely undervalue individual components and misidentify internal mechanisms.

Methods

The authors investigate the progression of instruction processing across the Base, SFT, and DPO variants of the OLMo-2 architecture. They employ two primary methodological frameworks:

  1. Causal Mediation Analysis (Activation Patching): To locate instruction representations, they patch residual stream activations from a "source" prompt containing an instruction to a "target" prompt containing a filler token, specifically looking at the final instructional token ($T_{inst}$). They test both single-layer and multi-layer patching configurations to evaluate how layers interact.
  2. Locally-Linear Surrogate Maps: To bypass the flawed assumption of component-wise additivity, the authors propose a novel, intervention-free interpretability method. By leveraging the neural polytope literature, they "linearize" the non-linear parts of the Transformer (such as LayerNorm and MLP activation patterns) within an $\epsilon$-neighborhood of a specific input. This allows them to decompose the entire forward pass into a clean sum of token-to-token locally-linear paths, enabling precise path-tracing without breaking the model's natural synergies.
Overview of Instruction Vector (IV) localization and the concept of superadditivity.

Datasets

The authors evaluate their approach using two sets of tasks:

  • Contrastive Task Pairs: Custom-generated datasets using ChatGPT-5-nano (manually verified, ~200 samples per task) designed to feature identical target queries but different instructions (e.g., Adjectives: Comparative vs. Antonym, and Animals: Color vs. Can_Fly).
  • BigBench Benchmark: Four standard tasks used to demonstrate broader generalization: METAPHOR_BOOLEAN, IMPLICATURES, OBJECT_COUNTING, and SNARKS.

Key Insights and Ideas

  • Eager Computation: LLMs don't wait for the query to process an instruction. They eagerly construct a compact neural digest—an Instruction Vector (IV)—right at the boundary token ($T_{inst}$) before the query tokens are even read.
  • The Superadditivity Paradox: IVs exhibit a fascinating contradiction. Geometrically, they are linearly separable; a simple linear probe can distinguish between different task instructions with over 98% accuracy. However, causally, their action is highly non-linear. Multi-layer patching configurations yield logit and rank improvements far greater than the sum of their individual layer contributions (Figure 1).
  • IVs as Circuit Selectors: By tracing the locally-linear paths, the authors show that instruction processing is a two-stage mechanism. In the early layers, the model uses identical, task-agnostic circuits to build the IV. In the later layers, the IV acts as a switch or "circuit selector," routing the query token information through entirely different, task-specific attention heads to compute the final answer.

Key Results

  • Linear Separability: Linear probes trained on the IV clusters achieved >98% accuracy across tasks, proving that task identity is cleanly encoded in the vector space.
  • Causal Synergy: Rigorous $t$-tests confirmed that multi-layer interactions are significantly superadditive ($p < 0.001$ across various layer combinations), proving that standard DAG-based circuit discovery models fail to capture the true mechanics of instruction following.
  • Path Dominance: Tracing high-ranking paths revealed that paths originating from $T_{inst}$ consistently form the upper bound of information propagation compared to other tokens. The only exception occurs in complex, multi-sentence instructions, where the IV localizes early at the first complete sub-instruction boundary.

Limitations and Future Work

  • Model Scale Constraints: Due to the massive computational and memory overhead of tracing combinatorially explosive function spaces, path-tracing experiments were restricted to the 1B parameter variants of OLMo-2.
  • Syntactic Separation: The study relies on prompts with a clean syntactic boundary between the instruction and the query. Real-world prompts are often messy and intermixed, which might alter how IVs are localized.
  • Instruction Complexity: The tasks evaluated were relatively straightforward. Investigating how scaling instruction complexity or task difficulty affects superadditivity remains an open question for future research.

Summary updated

BibTeX
@inproceedings{bigoulaeva2026patches,
  author = {Irina Bigoulaeva and Jonas Rohweder and Subhabrata Dutta and Iryna Gurevych},
  title = {{Patches of Nonlinearity: Instruction Vectors in Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.559},
}
Figure