atlas

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

Tell Your Model Where to Attend: Post-hoc Attention Steering for LLMs

ICLR 2024 · Large language models › Language, safety and interpretability · approach: Task vectors and steering · 0 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.

Proposes PASTA, a post-hoc inference-time method that reweights attention scores on a profiled subset of heads so LLMs attend to user-emphasized spans, without changing weights.

Problem

LLMs struggle to focus on user-specified information (instructions, new facts in context, long contexts) and cannot interpret text emphasis markers like bold or italics, which are rarely seen in pretraining.

Approach

Identify a small set of attention heads via multi-task profiling (intersection of top-k heads across tasks) and downscale attention to non-emphasized tokens by a factor alpha (renormalized), steering the model toward user-highlighted spans at inference time without weight updates or gradients.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply multi-task PASTA instead of few-shot promptingLLaMA-7B · JSON FormattingFormat accuracy: 84.85 -> 96.64Helped
Apply multi-task PASTA instead of zero-shot promptingLLaMA-7B · Pronouns ChangingAccuracy: 71.84 -> 96.42Helped
Apply multi-task PASTA instead of few-shot promptingLLaMA-7B · BiasBiosAccuracy: 88.79 -> 95.28Helped
Apply multi-task PASTA instead of few-shot promptingLLaMA-7B · CounterFactEfficacy score: 87.45 -> 99.60Helped
Apply multi-task PASTA instead of few-shot promptingGPT-J-6B · JSON FormattingFormat accuracy: 84.15 -> 91.50Helped
Apply multi-task PASTA instead of zero-shot promptingGPT-J-6B · Pronouns ChangingAccuracy: 39.88 -> 92.96Helped
Apply multi-task PASTA instead of marked promptingGPT-J-6B · BiasBiosAccuracy: 78.64 -> 94.96Helped
Apply task-agnostic PASTA instead of few-shot promptingGPT-J-6B · CounterFactEfficacy score: 68.34 -> 99.54Helped
Select task-specific heads instead of intersection-selected heads (ablation)PASTA on LLaMA-7B · JSON FormattingFormat accuracy: 96.64 -> 95.56No clear effect
Select union heads instead of intersection-selected heads (ablation)PASTA on LLaMA-7B · JSON FormattingFormat accuracy: 96.64 -> 88.42Hurt
Select task-specific heads instead of intersection-selected heads (ablation)PASTA on GPT-J-6B · JSON FormattingFormat accuracy: 91.50 -> 85.71Mixed
Select union heads instead of intersection-selected heads (ablation)PASTA on GPT-J-6B · JSON FormattingFormat accuracy: 91.50 -> 72.61Hurt

Surprising findings

Limitations

Experimental setup

Datasets: BiasBios CounterFact JSON Formatting (constructed from BiasBios) Pronouns Changing (constructed from BiasBios)

Benchmarks: JSON Formatting Pronouns Changing BiasBios CounterFact

Metrics: format accuracy prediction accuracy accuracy all-changed accuracy efficacy score paraphrase score fluency (bi-gram/tri-gram entropy)

Baselines: Zero-shot prompting Marked prompting Few-shot prompting

Builds on: few-shot prompting chain-of-thought prompting

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