How Do Language Models Choose Between Context and Memory?
cs.LG, cs.CL
Submitted: 2026-09-01
Updated: 2026-09-28
License: http://creativecommons.org/licenses/by/4.0/
The gist: When contextual information conflicts with the knowledge stored in model parameters, activation directions can be used to decode and steer which source the model follows.
Terminology
Abstract
When contextual information conflicts with the knowledge stored in model parameters, activation directions can be used to decode and steer which source the model follows. However, steering along a direction does not establish causality: whether the unedited model would naturally use that direction or whether the direction is reusable across tasks. We test these distinctions through counterfactual experiments in unambiguous settings. First, we estimate authority directions from agreement prompts, in which the context and parametric knowledge support the same answer. We then interchange naturally occurring coordinates along these directions between matched prompts that direct the model to prioritize either the supplied context or its parametric knowledge. Across Qwen, Llama, and OLMo models, this intervention reproduces 30-68% of the authority-induced shift in source choice, whereas matched controls reproduce almost none. To test cross-task reuse, we learn authority directions on two tasks separately and see that cross-task transferability closes only 9% of the authority gap while the local direction learned on the given task closes 57%. These results distinguish authority representation, causal use, and cross-task causal reuse, and suggest that authority computations may be task-dependent, rather than reusable across tasks.
Sources
- A Mechanistic Lens on Semantic Conflicts: Using Activation Patching to Understand LLM Behavior
- ContextFocus: Activation Steering for Contextual Faithfulness in Large Language Models
- Decodable but Not Faithful: Coupling Natural-Language Rationales to Programmatic Verifiers
- Certified Interventional Fidelity: Anytime-Valid, Adaptive Evaluation of Causal Claims in Mechanistic Interpretability
- Observable Patterns Are Not Explanations: A Causal-Geometric Analysis of Latent Reasoning Models
- Interpretability without actionability: mechanistic methods cannot correct language model errors despite near-perfect internal representations
- Representational Analysis of Binding in Language Models
- Cell-Based Representation of Relational Binding in Language Models
- Patch-Effect Graph Kernels for LLM Interpretability
- Causality is Key for Interpretability Claims to Generalise
- A Mechanistic View of Authority Hierarchy in LLM Sycophancy
- Taming Knowledge Conflicts in Language Models
- SHIFT: Gate-Modulated Activation Steering for Knowledge Conflict Mitigation in Retrieval-Augmented Generation
- Who Endorsed It? Measuring Authority Bias Across Expertise Levels in Language Models
- MIB: A Mechanistic Interpretability Benchmark
- Causality $\neq$ Invariance: Function and Concept Vectors in LLMs
- Language Models use Lookbacks to Track Beliefs
- When Does Activation Steering Change What a Model Computes From?
- Steering the Language Axis: From Linear Decodability to Causal Control
- Where Steering Signals Come From: Activation Source Selection in Activation Steering
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: Local-Consistency Optimisation for Bayesian Neural Networks
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks