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

Enhancing Instruction Following of LLMs via Activation Steering with Dynamic Rejection

Minjae Kang, Jaehyung Kim

Executive Summary

Large Language Models (LLMs) often fail to follow complex instructions or "oversteer" when forced, leading to degraded text quality. This paper introduces DIRECTER (Dynamic Rejection Steering), a method that dynamically adjusts activation steering strength at every decoding step by checking if the steered output remains "plausible" relative to the model's original distribution. It improves instruction-following accuracy by up to 6.5% without the typical trade-offs in generation quality.

The Challenge: Instruction Following and Oversteering

Even the most advanced LLMs struggle with complex, multi-constraint instructions (e.g., "Write a poem about a cat, use no commas, and ensure every third word starts with 's'"). While "instruction tuning" helps align models generally, it cannot cover every possible edge case or strict formatting constraint.

To fix this at inference time, researchers use activation steering—manually nudging the model's internal mathematical states to pay more attention to specific instructions. However, existing methods are "static": they apply the same nudge strength throughout the entire response. This often leads to oversteering, where the model becomes so focused on the constraint that it loses the "thread" of the actual task, produces ungrammatical text, or hallucinates. Finding the optimal "Goldilocks" zone for steering strength currently requires tedious, manual hyperparameter tuning for every different task.

Methodology: DIRECTER

The authors propose DIRECTER, which treats steering as an adaptive feedback loop rather than a fixed, static nudge.

Comparison of static oversteering versus DIRECTER's dynamic steering success, including a text generation example.

DIRECTER operates through four primary mechanisms:

  1. KV Cache Scaling: DIRECTER steers the model by scaling the Key (K) vectors in the attention mechanism specifically for the "instruction" tokens in the prompt. This forces the model to attend more heavily to the rules established by the user.
  2. Attention Sensitivity Analysis: Before generating text, the model performs a one-time "stress test" to see which layers are most responsive to steering. It ranks layers based on how much their internal representations shift (measured by cosine distance) when steered.
  3. Plausibility-Guided Decoding: This is the core innovation. At each generated token, the model calculates a "raw" distribution (what it would say naturally) and a "steered" distribution. It then checks if the steered top choice is plausible. If the probability of the steered token is too low compared to the raw top choice (based on a threshold $\beta$), the steering is deemed too aggressive. If rejected, DIRECTER progressively weakens the steering by halving the number of steered layers (starting with the most sensitive) until a plausible token is found.
  4. Efficiency Gating: To save compute, if the model is already very confident in its next word (i.e., the gap between the top two choices is huge), DIRECTER skips the steering process entirely.

Experimental Setup and Key Insights

The researchers evaluated DIRECTER across several demanding benchmarks, including IFEval (strict, verifiable instruction following), LIFBench (long-context scenarios up to 128k tokens), and GSM8K-Format (combining math reasoning with strict JSON formatting). They also tested safety and factuality using SORRY-Bench and Adversarial Factuality datasets.

Several key insights emerged from the study:

  • Steering is a Moving Target: The "optimal" amount of steering isn't constant; it changes word-by-word. Some words need a heavy nudge to stay on track, while others should be left alone to maintain fluency.
  • The Original Model is a Safety Rail: By using the "raw" distribution as a plausibility check, DIRECTER uses the model's pre-trained knowledge to prevent the steering mechanism from breaking the language logic.
  • Layer Importance is Task-Specific: For general instructions, middle layers are often most sensitive. However, for strict formatting tasks (like JSON), the final layers of the network become the high-leverage points for steering.
  • Direction Over Magnitude: When measuring layer sensitivity, cosine distance (change in direction) is a much better predictor of steering success than L2 norm (change in magnitude).

Key Results

DIRECTER demonstrates significant improvements over both zero-shot performance and existing steering techniques.

Accuracy comparison between Zero-shot, PASTA, SpotLight, and DIRECTER.
  • Accuracy Boost: DIRECTER improved average accuracy by 6.5% over zero-shot baselines and outperformed state-of-the-art static steering methods (like PASTA and SpotLight) by roughly 4%.
  • High Task Fidelity: On the GSM8K-Format task, DIRECTER achieved ~92% task fidelity. In contrast, other steering methods often saw accuracy drop because they "oversteered" into the formatting at the expense of the underlying math reasoning.
  • Efficiency: Despite the "trial and error" nature of the plausibility loop, the gating mechanism keeps the overhead low. DIRECTER only reduced throughput by about 16%, making it significantly faster than methods like SpotLight, which can double latency.
  • Model Agnostic: The method showed consistent gains across different model families (Llama-3 and Qwen-2.5) and scales (from 1B to 14B parameters).

Limitations and Future Work

While highly effective, DIRECTER currently relies on knowing exactly which tokens in the prompt are "instructions" versus "tasks." While the authors showed an LLM can self-extract these spans, it remains a potential point of failure if the extraction is messy. Furthermore, the sensitivity metric is highly effective but currently empirical; developing a more formal theoretical framework for why specific layers react to steering would be a valuable next step. Finally, future work could focus on more sophisticated ways to detect and steer "latent" instructions within complex, interleaved prompts.

Summary updated

BibTeX
@inproceedings{kang2026enhancing,
  author = {Minjae Kang and Jaehyung Kim},
  title = {{Enhancing Instruction Following of LLMs via Activation Steering with Dynamic Rejection}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=OpuPBNcQwe},
}
Figure