Distributed Sparse Interventions in Language Models

Maximilian S. Ernst, Lorenz Linhardt, Aaron Peikert, Oliver EberlearXiv 2026

TL;DR

The paper introduces Distributed Sparse Interventions (DSI), a novel method to steer language model behavior by intervening on as few as 0.01% of individual neurons across multiple layers. By moving beyond traditional linear, vector-based steering approaches, DSI accounts for complex non-linear interactions between neurons, matching or exceeding 10-shot in-context learning performance with extreme sparsity.

What Problem Does This Paper Address?

Most current techniques for steering or controlling language models rely on finding global directions in activation space (e.g., adding a "steering vector" to an entire layer or attention head). These methods operate under the assumption that task representations are approximately linear and additive.

However, the authors demonstrate that these assumptions are frequently violated. Interventions at the individual neuron level reveal significant, non-linear interaction effects—meaning the combined effect of modifying two neurons is not simply the sum of their individual effects. Prior methods struggle to localize and manipulate these sparse, distributed, and non-linear native neuron representations without being overly invasive or relying on brittle first-order approximations.

Methods

DSI identifies and refines a highly sparse set of task-relevant neurons using a four-step pipeline:

  1. Compute Activation Differences: The method extracts the average activation differences of all neurons between a 10-shot in-context learning (ICL) setting and a 0-shot setting to isolate task-specific shifts.
  2. Score & Select Neurons: To avoid the instability of raw neural network gradients (gradient shattering), DSI uses a robustified gradient estimate via Layer-wise Relevance Propagation (LRP). An initial candidate set of $n$ neurons with the highest expected first-order impact is selected.
  3. Refine Interventions: Because neuron interactions are highly non-linear, DSI iteratively optimizes the intervention strengths and the specific subset of neurons. It employs ZeroFPR, a numerical optimization algorithm designed for non-convex functions with $L_0$ sparsity constraints.
  4. Modify Forward Pass: The refined sparse intervention is applied additively to the selected neurons during a 0-shot forward pass to trigger the desired behavior.
Figure 1: Schematic overview of how distributed sparse interventions are identified and applied via DSI. (1) Activation differences are extracted from 10-shot and 0-shot ICL prompts. (2) An initial sparse intervention is computed using a robustified gradient estimate. (3) The intervention is refined via an iterative procedure. (4) The refined intervention is applied additively to modify model behaviour.

Datasets

The approach was evaluated across 12 distinct tasks spanning two abstraction levels:

  • Extractive Tasks: The correct answer is present in the prompt (e.g., fruit_v_animal_3, choose_first_of_3, capitalize).
  • Abstractive Tasks: The answer must be generated from internal knowledge (e.g., country-capital, english-french translation, present-past tense switching).

Experiments were conducted on three instruction-tuned models: Qwen 3 (8B), Gemma 3 (4B), and Llama 3.2 (3B).

Key Insights and Ideas

  • The Reality of Non-Linearity: Intervening on individual neurons yields highly non-linear changes in output logits. As shown in the paper's analysis, scaling up an intervention on a single neuron or a pair of neurons does not produce a linear behavioral response, validating the need for DSI's iterative optimization.
Figure 2: Value of the correct output logit of Llama 3.2 (3B) for the english-french task, when intervening on hidden neurons. Neurons are sampled from the 16 neurons with the highest expected intervention effect, and labels correspond to their ranks. (a) shows the correct output logit as a function of single-neuron interventions, (b) as a function of interventions on pairs of neurons.
  • Extreme Sparsity Suffices: Activating a complex task doesn't require shifting entire representation vectors. Intervening on a tiny fraction of the network—often just 8 to 64 neurons out of tens of thousands—is enough to induce the target behavior.
  • Task Composition via Set Operations: Grounding interventions in discrete sets of neurons allows researchers to use set theory (intersections, unions, differences) to dissect model mechanics. For example, by intersecting the neuron set for "translation" with a generic "copying" task, the authors successfully isolated neurons responsible for pure text reproduction versus those responsible for semantic transformation.

Key Results

  • Performance Gains: Across all models and tasks, DSI substantially improved 0-shot accuracy. Intervening on just 64 neurons achieved mean task accuracies between 72% and 98%, frequently matching or outperforming the 10-shot ICL baseline.
  • Ablation Importance: Both components of DSI are critical. Removing the robustified gradient (LRP) or skipping the iterative refinement step ("no iter.") consistently degraded accuracy, especially at very small neuron set sizes (e.g., $n=8$ or $16$).
  • Anatomical Distribution: The identified task neurons were found to be widely distributed across multiple attention heads and layers (primarily middle and later layers), rather than concentrated in a single "task layer."

Limitations and Future Work

  • Evaluation Scope: The current framework evaluates performance using clean prompts and single-token predictions. The authors note that future work must explore how these sparse interventions hold up during long-form, open-ended autoregressive generation.
  • Subtask Activation Challenges: While set operations successfully isolated functional primitives (like "copying" neurons), activating the derived subtask sets did not always perfectly isolate the clean behavior without side effects, indicating that more advanced task-decomposition strategies are required.

Summary updated

BibTeX
@misc{ernst2026distributed,
  author = {Maximilian S. Ernst and Lorenz Linhardt and Aaron Peikert and Oliver Eberle},
  title = {{Distributed Sparse Interventions in Language Models}},
  year = {2026},
  eprint = {2607.07128},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.07128},
}
Figure