Controllable Context Sensitivity and the Knob Behind It
Not on the map. Why?
Abstract (arXiv)
When making predictions, a language model must trade off how much it relies on its context vs. 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 which controls this sensitivity, determining whether language models answer from the context or their prior knowledge. To guide this search, we design a task for controllable context sensitivity. In this task, we first feed the model a context (Paris is in England) and a question (Where is Paris?); we then instruct the model to either use its prior or contextual knowledge and evaluate whether it generates the correct answer for both intents (either France or England). When fine-tuned on this task, instruction-tuned 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-D 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. These results suggest a single subspace facilitates how the model chooses between context and prior knowledge, hinting at a simple fundamental mechanism that controls this behavior.
Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). Builds on 62 of its 70 references that are in the map. First posted on arXiv 11 Nov 2024.
Builds on
62 of 70 references.
References · 62
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2016Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddingscited by 1,304
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
- 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
- 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
38 more
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,009
- 2024Refusal in Language Models Is Mediated by a Single Directioncited by 960
- 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
- 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 695
- 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 673
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
- 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2023Making Retrieval-Augmented Language Models Robust to Irrelevant Contextcited by 364
- 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 349
- 2023Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflictscited by 333
- 2023LEACE: Perfect linear concept erasure in closed formcited by 254
- 2023Can Large Language Models Transform Computational Social Science?cited by 245
- 2022RealTime QA: What's the Answer Right Now?cited by 239
- 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 225
- 2023Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representationscited by 197
- 2015A Neural Conversational Modelcited by 195
- 2023Causal Abstraction: A Theoretical Foundation for Mechanistic Interpretabilitycited by 194
- 2023Localizing Model Behavior with Path Patchingcited by 182
- 2022Large Language Models with Controllable Working Memorycited by 169
- 2023Linear Representations of Sentiment in Large Language Modelscited by 157
- 2022Linear Adversarial Concept Erasurecited by 98
- 2022DisentQA: Disentangling Parametric and Contextual Knowledge with Counterfactual Question Answeringcited by 93
- 2024Cutting Off the Head Ends the Conflict: A Mechanism for Interpreting and Mitigating Knowledge Conflicts in Language Modelscited by 87
- 2023Overthinking the Truth: Understanding how Language Models Process False Demonstrationscited by 78
- 2024Don't Listen To Me: Understanding and Exploring Jailbreak Prompts of Large Language Modelscited by 77
- 2023Context-faithful Prompting for Large Language Modelscited by 76
- 2023Can LMs Learn New Entities from Descriptions? Challenges in Propagating Injected Knowledgecited by 66
- 2024SelfIE: Self-Interpretation of Large Language Model Embeddingscited by 63
- 2023Concept Algebra for (Score-Based) Text-Controlled Generative Modelscited by 59
- 2024pyvene: A Library for Understanding and Improving PyTorch Models via Interventionscited by 53
- 2023Why So Gullible? Enhancing the Robustness of Retrieval-Augmented Models against Counterfactual Noisecited by 52
- 2023Characterizing Mechanisms for Factual Recall in Language Modelscited by 47
- 2024Representation Surgery: Theory and Practice of Affine Steeringcited by 47
50 most cited of 62 All 62 (JSON)
Built on by
Citing papers per year: 2025: 15; 2026: 7.
22 papers.
Sort:
By area:
- 2025Measuring Chain of Thought Faithfulness by Unlearning Reasoning Stepscited by 43
- 2025The Non-Linear Representation Dilemma: Is Causal Abstraction Enough for Mechanistic Interpretability?cited by 34
- 2025Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuningcited by 31
- 2025Narrow Finetuning Leaves Clearly Readable Traces in Activation Differencescited by 24
- 2025Localized Cultural Knowledge is Conserved and Controllable in Large Language Modelscited by 19
- 2025Understanding and Leveraging the Expert Specialization of Context Faithfulness in Mixture-of-Experts LLMscited by 12
- 2025The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentationcited by 11
- 2025The First Impression Problem: Internal Bias Triggers Overthinking in Reasoning Modelscited by 10
- 2025A Single Direction of Truth: An Observer Model's Linear Residual Probe Exposes and Steers Contextual Hallucinationscited by 8
- 2025Do Role-Playing Agents Practice What They Preach? Belief-Behavior Consistency in LLM-Based Simulations of Human Trustcited by 6
- 2025Transparentize the Internal and External Knowledge Utilization in LLMs with Trustworthy Citationcited by 4
- 2025Representation-based Broad Hallucination Detectors Fail to Generalize Out of Distributioncited by 4
10 more
- 2026Operationalising the Superficial Alignment Hypothesis via Task Complexitycited by 4
- 2025Sycophancy as compositions of Atomic Psychometric Traitscited by 1
- 2025How Persuasive is Your Context?cited by 1
- 2025Multi-Step Knowledge Interaction Analysis via Rank-2 Subspace Disentanglementcited by 1
- 2026To Copy or Not to Copy: Copying Is Easier to Induce Than Recallcited by 1
- 2026It's Not What You Say, It's How You Say It: Evaluating LLM Responses to Expressions of Beliefcited by 1
- 2026Seeing or Knowing? Visual Context Sensitivity in Multimodal Large Language Modelscited by 0
- 2026How Do Language Models Choose Between Context and Memory?cited by 0
- 2026The Geometry of Ignorance: LLMs Know When to Temper Bayesian Priorscited by 0
- 2026Stale-Document Poisoning: When Outdated Retrieval Overrides Correct Model Answerscited by 0
- 2026Stale-Document Poisoning: When Outdated Retrieval Overrides Correct Model Answers25 Sep 2026
- 2026The Geometry of Ignorance: LLMs Know When to Temper Bayesian Priors2 Sep 2026
- 2026How Do Language Models Choose Between Context and Memory?1 Sep 2026
- 2026Seeing or Knowing? Visual Context Sensitivity in Multimodal Large Language Models28 Jul 2026
- 2026It's Not What You Say, It's How You Say It: Evaluating LLM Responses to Expressions of Belief20 Jul 2026
- 2026Operationalising the Superficial Alignment Hypothesis via Task Complexity17 Feb 2026
- 2026To Copy or Not to Copy: Copying Is Easier to Induce Than Recall17 Jan 2026
- 2025Multi-Step Knowledge Interaction Analysis via Rank-2 Subspace Disentanglement3 Nov 2025
- 2025Narrow Finetuning Leaves Clearly Readable Traces in Activation Differences14 Oct 2025
- 2025How Persuasive is Your Context?22 Sep 2025
- 2025Representation-based Broad Hallucination Detectors Fail to Generalize Out of Distribution19 Sep 2025
- 2025Understanding and Leveraging the Expert Specialization of Context Faithfulness in Mixture-of-Experts LLMs27 Aug 2025
10 more
- 2025Sycophancy as compositions of Atomic Psychometric Traits26 Aug 2025
- 2025A Single Direction of Truth: An Observer Model's Linear Residual Probe Exposes and Steers Contextual Hallucinations31 Jul 2025
- 2025The Non-Linear Representation Dilemma: Is Causal Abstraction Enough for Mechanistic Interpretability?11 Jul 2025
- 2025Do Role-Playing Agents Practice What They Preach? Belief-Behavior Consistency in LLM-Based Simulations of Human Trust2 Jul 2025
- 2025The First Impression Problem: Internal Bias Triggers Overthinking in Reasoning Models22 May 2025
- 2025The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentation21 May 2025
- 2025Transparentize the Internal and External Knowledge Utilization in LLMs with Trustworthy Citation21 Apr 2025
- 2025Localized Cultural Knowledge is Conserved and Controllable in Large Language Models14 Apr 2025
- 2025Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuning3 Apr 2025
- 2025Measuring Chain of Thought Faithfulness by Unlearning Reasoning Steps20 Feb 2025
- 2025The Non-Linear Representation Dilemma: Is Causal Abstraction Enough for Mechanistic Interpretability?cited by 34
- 2025Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuningcited by 31
- 2025Narrow Finetuning Leaves Clearly Readable Traces in Activation Differencescited by 24
- 2025The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentationcited by 11
- 2025A Single Direction of Truth: An Observer Model's Linear Residual Probe Exposes and Steers Contextual Hallucinationscited by 8
- 2025Representation-based Broad Hallucination Detectors Fail to Generalize Out of Distributioncited by 4
- 2026Operationalising the Superficial Alignment Hypothesis via Task Complexitycited by 4
- 2025Sycophancy as compositions of Atomic Psychometric Traitscited by 1
- 2025How Persuasive is Your Context?cited by 1
- 2025Multi-Step Knowledge Interaction Analysis via Rank-2 Subspace Disentanglementcited by 1
- 2026It's Not What You Say, It's How You Say It: Evaluating LLM Responses to Expressions of Beliefcited by 1
- 2026How Do Language Models Choose Between Context and Memory?cited by 0
12 most cited of 13 All 13 (JSON)
- 2026The Geometry of Ignorance: LLMs Know When to Temper Bayesian Priors2 Sep 2026
- 2026How Do Language Models Choose Between Context and Memory?1 Sep 2026
- 2026It's Not What You Say, It's How You Say It: Evaluating LLM Responses to Expressions of Belief20 Jul 2026
- 2026Operationalising the Superficial Alignment Hypothesis via Task Complexity17 Feb 2026
- 2025Multi-Step Knowledge Interaction Analysis via Rank-2 Subspace Disentanglement3 Nov 2025
- 2025Narrow Finetuning Leaves Clearly Readable Traces in Activation Differences14 Oct 2025
- 2025How Persuasive is Your Context?22 Sep 2025
- 2025Representation-based Broad Hallucination Detectors Fail to Generalize Out of Distribution19 Sep 2025
- 2025Sycophancy as compositions of Atomic Psychometric Traits26 Aug 2025
- 2025A Single Direction of Truth: An Observer Model's Linear Residual Probe Exposes and Steers Contextual Hallucinations31 Jul 2025
- 2025The Non-Linear Representation Dilemma: Is Causal Abstraction Enough for Mechanistic Interpretability?11 Jul 2025
- 2025The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentation21 May 2025
12 newest of 13 All 13 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025CUB: Benchmarking Context Utilisation Techniques for Language Models
- 2025"Lost-in-the-Later": Framework for Quantifying Contextual Grounding in Large Language Models
- 2025Hidden in the Haystack: Smaller Needles are More Difficult for LLMs to Find
- 2026Context-Length Robustness in Question Answering Models: A Comparative Empirical Study
- 2024Teaching Smaller Language Models To Generalise To Unseen Compositional Questions (Full Thesis)
- 2024From RAGs to rich parameters: Probing how language models utilize external knowledge over parametric information for factual queries
- 2026Beyond the Parameters: A Technical Survey of Contextual Enrichment in Large Language Models: From In-Context Prompting to Causal Retrieval-Augmented Generation
- 2026CL-bench: A Benchmark for Context Learning