atlas

Research map / Large language models / Instruction and fine-tuning

Context Steering: Controllable Personalization at Inference Time

ICLR 2025 · Large language models › Instruction and fine-tuning · approach: Fine-tuning generalization and delta compression · 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.

Introduces Context Steering (CoS), a training-free decoding method that linearly scales the difference between next-token logits with and without a user context to control personalization, and uses it for Bayesian inference over tone and implicit hate intent.

Problem

LLMs need to incorporate user context (personal, demographic, cultural) for personalized responses, but balancing personalization with general applicability usually requires collecting data and fine-tuning or prompt engineering, which are costly and inflexible.

Approach

Compute a contextual influence as the difference between LLM next-token logits with the context and without it, then add a scaled version (lambda) back to the context-conditioned logits, so lambda continuously amplifies or attenuates context at inference time; the same forward-model likelihoods are inverted via Bayesian inference to infer lambda or the context.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use an intermediate context weight (λ=-0.5 instead of no context, λ=-1) (ablation)CoS on LaMP tweet paraphrasing · LaMP tweet paraphrase held-out setRouge-1: 0.40 -> 0.42Helped
Use an intermediate context weight (λ=-0.5 instead of no context, λ=-1) (ablation)CoS on LaMP tweet paraphrasing · LaMP tweet paraphrase held-out setRouge-L: 0.35 -> 0.36Helped
Use higher λ values from -0.5 to 0.2 (ablation)CoS on LaMP tweet paraphrasing · LaMP tweet paraphrase held-out setRouge-1: 0.42 -> 0.36Hurt
Use higher λ values from -0.5 to 0.2 (ablation)CoS on LaMP tweet paraphrasing · LaMP tweet paraphrase held-out setRouge-L: 0.36 -> 0.30Hurt
Increase λ to amplify user context (ablation)CoS movie summarization · Personalized movie recommendations user studypersonalization score: ρ=.67, p<.001Helped
Use CoS rather than asking the model to paraphrase with the profile context (ablation)CoS · OpenbookQAaccuracy: ≤ 4.6% when λ=3Hurt
Vary λ from 0.0 to 1 (ablation)CoS open-ended generation · Open-ended generation across encyclopedia, science fiction, news, and poem promptscoherenceNo clear effect
Vary λ from 0.0 to 1 (ablation)CoS open-ended generation · Open-ended generation across encyclopedia, science fiction, news, and poem promptsdiversityNo clear effect
Inject context at different positions in the prompt (ablation)CoS · Prompt with 22 sentencesROUGE-1 and ROUGE-L similarity to context-at-start generationNo clear effect
Use a negative λ with a negative context instead of a positive λ with a positive context (ablation)CoS STEM proficiency personalization · Newton's second law explanationcontextual steering strengthHurt

Surprising findings

Limitations

Experimental setup

Datasets: Implicit Hate Dataset OpenbookQA LaMP

Benchmarks: Implicit Hate Dataset OpenbookQA LaMP

Metrics: GPT win rate personalization Likert score Spearman correlation classification accuracy Rouge-1 Rouge-L coherence diversity

Baselines: multi-turn Q&A in-context learning LLM-based hate rating GPT-4 pairwise evaluation

Builds on: contrastive decoding steering vectors

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