atlas

Research map / Large language models / Language, safety and interpretability

Improving Instruction-Following in Language Models through Activation Steering

ICLR 2025 · Large language models › Language, safety and interpretability · approach: Reasoning mechanisms and failure modes · 8 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Derives instruction-specific steering vectors via difference-in-means on residual-stream activations with and without instructions, and uses them to steer LLMs toward format, length, and word-inclusion/exclusion constraints on IFEval.

Problem

Language models often fail to follow fine-grained, verifiable instructions (format, length, keyword constraints) and drift from them during generation; it is unclear whether such instructions are linearly represented and can be used to control behavior at inference time.

Approach

Compute a steering direction per instruction as the mean difference in last-token residual-stream activations between base queries with and without the instruction, then add a scaled version at a single layer during generation; extend this to multiple instructions, word exclusion via subtraction, and cross-model transfer from instruction-tuned to base models.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply format-instruction steering without explicit text instructionsPhi-3, Gemma 2 2B, Gemma 2 9B, and Mistral 7B · IFEval format instructionsinstruction-following accuracy: around 10% -> approximately 30%Helped
Apply format-instruction steering when instructions are explicitly presentPhi-3, Gemma 2 2B, Gemma 2 9B, and Mistral 7B · IFEval format instructionsinstruction-following accuracyHelped
Steer for conciseness with increasing weightPhi-3 · IFEval base prompts without explicit length instructionsresponse length: 15 -> 9 -> 10 -> 3 -> 1 sentences; 324 -> 228 -> 203 -> 81 -> 23 wordsHelped
Apply conciseness steering with c=20Phi-3 · IFEval maximum sentence constraints, n in {1, ..., 5}length-constraint adherenceHelped
Apply word-inclusion steeringPhi-3 and other evaluated models · IFEval keyword inclusionkeyword inclusionHelped
Use inclusion vectors and subtract them to steer away from a keyword, rather than using exclusion vectorsPhi-3 and other evaluated models · IFEval keyword exclusionkeyword exclusionHelped
Steer simultaneously for two instructionsPhi-3 · IFEval format and length; lowercase and keyword exclusioninstruction adherenceHelped
Transfer steering vectors from instruction-tuned Gemma 2 2B to the base model instead of computing vectors on the base modelGemma 2 2B base · IFEval format instructions, with and without explicit instructionsinstruction-following performanceHelped
Apply instruction-tuned Gemma 2 9B conciseness vectors to the base modelGemma 2 9B base · Length controlresponse lengthHelped
Apply format steeringFour evaluated models · Response quality on base queriesresponse quality scoreHurt
Use averaged steering vectors for variable, input-dependent End Checker textPhi-3 · IFEval End Checker format instructioninstruction-following accuracyHurt
Apply steering to Constrained Response or Title instructionsEvaluated models · IFEval Constrained Response and Title instructionsinstruction-following accuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: IFEval synthetically augmented IFEval prompts (GPT-4o generated)

Benchmarks: IFEval

Metrics: loose instruction-following accuracy word/sentence count compliance keyword presence accuracy response quality score (GPT-4o yes/no questions) perplexity (GPT-2)

Baselines: no steering (same model) adding instruction as text

Builds on: IFEval difference-in-means steering activation addition

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy