mlsanityData to 7 Oct 2026

Controllable Context Sensitivity and the Knob Behind It

arXiv 2411.07404 ↗First posted 11 Nov 2024cs.CL cs.AIcited by 22

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2023GPT-4 Technical Reportcited by 18,132
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  5. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  6. 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,114
  7. 2019Language Models as Knowledge Bases?cited by 1,922
  8. 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
  9. 2016Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddingscited by 1,304
  10. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,259
  11. 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,239
  12. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
38 more
  1. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
  2. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,009
  3. 2024Refusal in Language Models Is Mediated by a Single Directioncited by 960
  4. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
  5. 2022Quantifying Memorization Across Neural Language Modelscited by 755
  6. 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
  7. 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 695
  8. 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 673
  9. 2021Knowledge Neurons in Pretrained Transformerscited by 590
  10. 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
  11. 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
  12. 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
  13. 2023Making Retrieval-Augmented Language Models Robust to Irrelevant Contextcited by 364
  14. 2021Entity-Based Knowledge Conflicts in Question Answeringcited by 349
  15. 2023Adaptive Chameleon or Stubborn Sloth: Revealing the Behavior of Large Language Models in Knowledge Conflictscited by 333
  16. 2023LEACE: Perfect linear concept erasure in closed formcited by 254
  17. 2023Can Large Language Models Transform Computational Social Science?cited by 245
  18. 2022RealTime QA: What's the Answer Right Now?cited by 239
  19. 2024Patchscopes: A Unifying Framework for Inspecting Hidden Representations of Language Modelscited by 225
  20. 2023Finding Alignments Between Interpretable Causal Variables and Distributed Neural Representationscited by 197
  21. 2015A Neural Conversational Modelcited by 195
  22. 2023Causal Abstraction: A Theoretical Foundation for Mechanistic Interpretabilitycited by 194
  23. 2023Localizing Model Behavior with Path Patchingcited by 182
  24. 2022Large Language Models with Controllable Working Memorycited by 169
  25. 2023Linear Representations of Sentiment in Large Language Modelscited by 157
  26. 2022Linear Adversarial Concept Erasurecited by 98
  27. 2022DisentQA: Disentangling Parametric and Contextual Knowledge with Counterfactual Question Answeringcited by 93
  28. 2024Cutting Off the Head Ends the Conflict: A Mechanism for Interpreting and Mitigating Knowledge Conflicts in Language Modelscited by 87
  29. 2023Overthinking the Truth: Understanding how Language Models Process False Demonstrationscited by 78
  30. 2024Don't Listen To Me: Understanding and Exploring Jailbreak Prompts of Large Language Modelscited by 77
  31. 2023Context-faithful Prompting for Large Language Modelscited by 76
  32. 2023Can LMs Learn New Entities from Descriptions? Challenges in Propagating Injected Knowledgecited by 66
  33. 2024SelfIE: Self-Interpretation of Large Language Model Embeddingscited by 63
  34. 2023Concept Algebra for (Score-Based) Text-Controlled Generative Modelscited by 59
  35. 2024pyvene: A Library for Understanding and Improving PyTorch Models via Interventionscited by 53
  36. 2023Why So Gullible? Enhancing the Robustness of Retrieval-Augmented Models against Counterfactual Noisecited by 52
  37. 2023Characterizing Mechanisms for Factual Recall in Language Modelscited by 47
  38. 2024Representation Surgery: Theory and Practice of Affine Steeringcited by 47

50 most cited of 62 All 62 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 15; 2026: 7.

22 papers.

Sort:

By area:

  1. 2025Measuring Chain of Thought Faithfulness by Unlearning Reasoning Stepscited by 43
  2. 2025The Non-Linear Representation Dilemma: Is Causal Abstraction Enough for Mechanistic Interpretability?cited by 34
  3. 2025Overcoming Sparsity Artifacts in Crosscoders to Interpret Chat-Tuningcited by 31
  4. 2025Narrow Finetuning Leaves Clearly Readable Traces in Activation Differencescited by 24
  5. 2025Localized Cultural Knowledge is Conserved and Controllable in Large Language Modelscited by 19
  6. 2025Understanding and Leveraging the Expert Specialization of Context Faithfulness in Mixture-of-Experts LLMscited by 12
  7. 2025The Atlas of In-Context Learning: How Attention Heads Shape In-Context Retrieval Augmentationcited by 11
  8. 2025The First Impression Problem: Internal Bias Triggers Overthinking in Reasoning Modelscited by 10
  9. 2025A Single Direction of Truth: An Observer Model's Linear Residual Probe Exposes and Steers Contextual Hallucinationscited by 8
  10. 2025Do Role-Playing Agents Practice What They Preach? Belief-Behavior Consistency in LLM-Based Simulations of Human Trustcited by 6
  11. 2025Transparentize the Internal and External Knowledge Utilization in LLMs with Trustworthy Citationcited by 4
  12. 2025Representation-based Broad Hallucination Detectors Fail to Generalize Out of Distributioncited by 4
10 more
  1. 2026Operationalising the Superficial Alignment Hypothesis via Task Complexitycited by 4
  2. 2025Sycophancy as compositions of Atomic Psychometric Traitscited by 1
  3. 2025How Persuasive is Your Context?cited by 1
  4. 2025Multi-Step Knowledge Interaction Analysis via Rank-2 Subspace Disentanglementcited by 1
  5. 2026To Copy or Not to Copy: Copying Is Easier to Induce Than Recallcited by 1
  6. 2026It's Not What You Say, It's How You Say It: Evaluating LLM Responses to Expressions of Beliefcited by 1
  7. 2026Seeing or Knowing? Visual Context Sensitivity in Multimodal Large Language Modelscited by 0
  8. 2026How Do Language Models Choose Between Context and Memory?cited by 0
  9. 2026The Geometry of Ignorance: LLMs Know When to Temper Bayesian Priorscited by 0
  10. 2026Stale-Document Poisoning: When Outdated Retrieval Overrides Correct Model Answerscited by 0

Similar, not cited

Close in wording, no citation either way

  1. 2025CUB: Benchmarking Context Utilisation Techniques for Language Models
  2. 2025"Lost-in-the-Later": Framework for Quantifying Contextual Grounding in Large Language Models
  3. 2025Hidden in the Haystack: Smaller Needles are More Difficult for LLMs to Find
  4. 2026Context-Length Robustness in Question Answering Models: A Comparative Empirical Study
  5. 2024Teaching Smaller Language Models To Generalise To Unseen Compositional Questions (Full Thesis)
  6. 2024From RAGs to rich parameters: Probing how language models utilize external knowledge over parametric information for factual queries
  7. 2026Beyond the Parameters: A Technical Survey of Contextual Enrichment in Large Language Models: From In-Context Prompting to Causal Retrieval-Augmented Generation
  8. 2026CL-bench: A Benchmark for Context Learning