Lune

ICLR2025Top-tier venue

Controllable Context Sensitivity and the Knob Behind It

Julian Minder, Kevin Du, Niklas Stoehr, Giovanni Monea, Chris Wendler, Robert West, Ryan Cotterell

Abstract

When making predictions, a language model must trade off how much it relies on its context versus its prior knowledge. Choosing how sensitive the model is to its context is a fundamental functionality, as it enables the model to excel at tasks like retrieval-augmented generation and question-answering. In this paper, we search for a knob that controls this sensitivity, determining whether language models answer from the context or their prior knowledge. To guide this search, we first design a task for controllable context sensitivity. In this task, we feed the model a context, e.g., Paris is in England, and a question, e.g., Where is Paris?. Then, we instruct the model to either use its prior or contextual knowledge and evaluate whether it generates the correct answer for both intents, i.e., either France or England. When fine-tuned on this task, instruct versions of Llama-3.1, Mistral-v0.3, and Gemma-2 can solve it with high accuracy (85-95%). Analyzing these high-performing models, we narrow down which layers may be important to context sensitivity using a novel linear time algorithm. Then, in each model, we identify a 1-dimensional subspace in a single layer that encodes whether the model follows context or prior knowledge. Interestingly, while we identify this subspace in a fine-tuned model, we find that the exact same subspace serves as an effective knob in not only that model but also non-fine-tuned instruct and base models of that model family. Finally, we show a strong correlation between a model's performance and how distinctly it separates context-agreeing from context-ignoring answers in this subspace. Our results suggest that a single fundamental subspace facilitates how the model chooses between context and prior knowledge.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Measuring Chain of Thought Faithfulness by Unlearning Reasoning Steps cites Locating and Editing Factual Associations in GPT
  • The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentation cites Inference-Time Intervention: Eliciting Truthful Answers from a Language Model
  • The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentation cites Language Models are Few-Shot Learners
  • The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentation cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • Locating and Editing Factual Associations in GPT cites Language Models are Few-Shot Learners
  • Inference-Time Intervention: Eliciting Truthful Answers from a Language Model cites Locating and Editing Factual Associations in GPT
  • Inference-Time Intervention: Eliciting Truthful Answers from a Language Model cites Language Models are Few-Shot Learners
  • Language Models are Few-Shot Learners cites Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
  • Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuning cites Refusal in Language Models Is Mediated by a Single Direction
  • Refusal in Language Models Is Mediated by a Single Direction cites Inference-Time Intervention: Eliciting Truthful Answers from a Language Model
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. Measuring Chain of Thought Faithfulness by Unlearning Reasoning StepsMartin Tutek, Fateme Hashemi Chaleshtori, Ana Marasovic, Yonatan BelinkovEMNLP 2025 · 37 citations
  2. Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-TuningJulian Minder, Clément Dumas, Caden Juang, Bilal Chughtai et al.NeurIPS 2025 · 32 citations
  3. Narrow Finetuning Leaves Clearly Readable Traces in Activation DifferencesJulian Minder, Clément Dumas, Stewart Slocum, Helena Casademunt et al.ICLR 2026 · 29 citations
  4. The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval AugmentationPatrick Kahardipraja, Reduan Achtibat, Thomas Wiegand, Wojciech Samek et al.NeurIPS 2025 · 13 citations
  5. The First Impression Problem: Internal Bias Triggers Overthinking in Reasoning ModelsRenfei Dang, Zhening Li, Shujian Huang, Jiajun ChenICLR 2026 · 10 citations

Builds on37

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Retrieval-Augmented Generation for Knowledge-Intensive NLP TasksPatrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni et al.NeurIPS 2020 · 19,162 citations
  3. Locating and Editing Factual Associations in GPTKevin Meng, David Bau, Alex Andonian, Yonatan BelinkovNeurIPS 2022 · 3,415 citations
  4. Inference-Time Intervention: Eliciting Truthful Answers from a Language ModelKenneth Li, Oam Patel, Fernanda B. Viégas, Hanspeter Pfister et al.NeurIPS 2023 · 1,549 citations
  5. Refusal in Language Models Is Mediated by a Single DirectionAndy Arditi, Oscar Obeso, Aaquib Syed, Daniel Paleka et al.NeurIPS 2024 · 1,166 citations

Related papers

  1. Sufficient Context: A New Lens on Retrieval Augmented Generation SystemsHailey Joren, Jianyi Zhang, Chun-Sung Ferng, Da-Cheng Juan et al.ICLR 2025
  2. SARA: Selective and Adaptive Retrieval-augmented Generation with Context CompressionYiqiao Jin, Kartik Sharma, Vineeth Rakesh, Yingtong Dou et al.ACL 2026 · 7 citations
  3. Density estimation with LLMs: a geometric investigation of in-context learning trajectoriesToni J. B. Liu, Nicolas Boullé, Raphaël Sarfati, Christopher J. EarlsICLR 2025
  4. Knowing When to Stop: Efficient Context Processing via Latent Sufficiency SignalsRoy Xie, Junlin Wang, Paul Rosu, Chunyuan Deng et al.NeurIPS 2025 · 3 citations
  5. A Implies B: Circuit Analysis in LLMs for Propositional Logical ReasoningGuanzhe Hong, Nishanth Dikkala, Enming Luo, Cyrus Rashtchian et al.NeurIPS 2025 · 17 citations
Dusk over the sea between two cliffs drawn in fine vertical lines