atlas

Research map / Large language models / Agents, code and math

Do LLMs ``know'' internally when they follow instructions?

ICLR 2025 · Large language models › Agents, code and math · approach: Agent instruction-following benchmarks · 1 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.

Probes LLM first-token representations to find an instruction-following direction that predicts compliance on unseen tasks (not unseen instruction types) and steers success rates upward versus random directions.

Problem

LLMs often fail to follow simple, clear instructions, and it is unclear whether their internal states encode whether an instruction will be followed.

Approach

Train linear probes on hidden representations (first, middle, last token) to predict instruction-following success on IFEval-simple, identify an instruction-following direction, use it for representation engineering to convert failures into successes, and analyze its relation to task familiarity, instruction difficulty, and phrasing.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train a linear probe on first-token representations for a consistent instruction type and test on unseen tasksLLaMA-2-chat-7B, LLaMA-2-chat-13B, Mistral-7B-Instruct-v0.3, and Phi-3-mini-128k · IFEval-simple, unseen tasksAUROC: 0.77 $\pm$ 0.04; 0.83 $\pm$ 0.03; 0.74 $\pm$ 0.02; 0.88 $\pm$ 0.03Helped
Train a linear probe on four instruction types and test on an unseen instruction typeFour evaluated language models · IFEval-simple, unseen instruction typesAUROC: 0.52 $\pm$ 0.03; 0.56 $\pm$ 0.06; 0.50 $\pm$ 0.05; 0.55 $\pm$ 0.04No clear effect
Use the first or last token rather than a middle token representationLinear probes for instruction-following · IFEval-simple, unseen tasksAUROC: 0.77 $\pm$ 0.04 vs 0.55 $\pm$ 0.07; 0.73 $\pm$ 0.04Helped
Use early rather than later layers for task generalizationLinear probes for instruction-following · IFEval-simple, unseen tasksAUROC: 0.83 $\pm$ 0.03; 0.81 $\pm$ 0.02; 0.78 $\pm$ 0.04Mixed
Shift representations along the instruction-following direction instead of leaving them unchangedLLaMA-2-chat-7B · IFEval-simplesuccess rate: 0.57 $\pm$ 0.00 -> 0.59 $\pm$ 0.00Helped
Shift representations along the instruction-following direction instead of leaving them unchangedLLaMA-2-chat-13B · IFEval-simplesuccess rate: 0.61 $\pm$ 0.00 -> 0.65 $\pm$ 0.02Helped
Shift representations along the instruction-following direction instead of leaving them unchangedMistral-7B-Instruct-v0.3 · IFEval-simplesuccess rate: 0.58 $\pm$ 0.00 -> 0.64 $\pm$ 0.02Helped
Shift representations along the instruction-following direction instead of leaving them unchangedPhi-3-mini-128k · IFEval-simplesuccess rate: 0.71 $\pm$ 0.00 -> 0.74 $\pm$ 0.01Helped
Use the instruction-following direction rather than random directionsFour evaluated language models · IFEval-simplesuccess rate: 0.55 $\pm$ 0.00 -> 0.59 $\pm$ 0.00; 0.54 $\pm$ 0.12 -> 0.65 $\pm$ 0.02; 0.56 $\pm$ 0.02 -> 0.64 $\pm$ 0.02; 0.63 $\pm$ 0Helped
Shift representations along the instruction-following direction rather than leave them unchangedFour evaluated language models · IFEval-simplequality ratio: 0.87 $\pm$ 0.09 -> 0.87 $\pm$ 0.08; 0.92 $\pm$ 0.00 -> 0.94 $\pm$ 0.00; 0.95 $\pm$ 0.02 -> 0.98 $\pm$ 0.06; 0.76 $\pm$ 0No clear effect
Increase the training set to 23 instruction types (ablation)Linear probes for instruction-following · IFEval-simple-expanded, unseen instruction typesAUROCNo clear effect
Shift representations opposite to the instruction-following direction (ablation)Mistral-7B-Instruct-v0.3 and Phi-3-mini-128k · IFEval-simplesuccess rate: 0.58 ± 0.00 -> 0.54 ± 0.01; 0.71 ± 0.00 -> 0.60 ± 0.02Hurt

Surprising findings

Limitations

Experimental setup

Datasets: IFEval IFEval-simple IFEval-simple-expanded

Benchmarks: IFEval-simple IFEval

Metrics: AUROC success rate quality ratio success conversion ratio success preservation ratio

Baselines: random directions original outputs

Builds on: IFEval representation engineering linear probing

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