arXiv:2610.20067cs.CLOct 2026

Manuscript Offprint

arXiv:2610.20067

Which Knowledge Should LLMs Trust? Uncovering a Generalizable Steering Direction Across Knowledge Conflicts

Yibin Lou, Yi Hu, Jianhui Chen, Chenpeng Wang, Muhan Zhang, Liangming Pan

Abstract

Large Language Models (LLMs) frequently encounter conflicts between internal parametric knowledge and external contextual knowledge, yet the mechanisms governing this selection remain unclear. We show that the choice between context and parametric knowledge is linearly represented and can be controlled along a single direction in the model's residual stream. We first demonstrate that this direction generalizes across factual-conflict settings, including context formats, knowledge categories, and datasets, while consistently shifting behavior between parametric and contextual answers. We then transfer a direction learned from simple factual conflicts to three more complex task families: RAG, memory, and rule following, where models must acquire information from retrieved documents, interaction histories, or explicit rules. Across four model families and multiple transfer settings, steering consistently improves the use of prompt-provided information over the unsteered model. These results suggest that the direction captures a transferable preference for external knowledge rather than a mechanism specific to factual conflicts. Code is available at https://github.com/AheadOFpotato/knowledge_selection_steering.

1 Introduction

Large Language Models (LLMs) store a vast amount of world knowledge within their parameters, commonly referred to as parametric knowledge, enabling remarkable performance across various knowledge-intensive tasks (Wang et al., 2024). Concurrently, in complex settings involving retrieved evidence, multi-turn memories, and explicit rules, LLMs must reliably acquire external contextual knowledge (Gao et al., 2024). However, these two knowledge sources often contain disparate or contradictory facts, leading to the challenge of

Context: Windows Phone 7 is developed by Dodge.

Question: Windows Phone 7 is developed by?

Context: Dodge Dart, created by Toyota.

Question: Dodge Dart is developed by?

Use Parameter (Original)

Answer: Microsoft.

Use Parameter (Steered)

Answer: Dodge.

Mixed

Answer: Dodge, is a mobile operating system developed by Microsoft.

Mixed

Answer: Toyota in collaboration with Dodge.

Use Context (Steered)

Answer: Dodge.

Use Context (Original)

Answer: Toyota.

Figure 1: Under knowledge conflicts, steering along a single residual-stream direction smoothly shifts outputs between parametric knowledge and contextual knowledge, with intermediate mixed or hesitant responses.

knowledge conflict. Such conflicts frequently induce undesired behaviors, where the model indiscriminately relies on inaccurate sources and thus produces incorrect outputs (Xu et al., 2024; Cheng et al., 2024). Consequently, understanding the internal mechanism of how LLMs choose between conflicting knowledge sources, and achieving reliable control over this knowledge selection process, has become a critical open problem (Zhao et al., 2025b; Jin et al., 2024).

Existing approaches address knowledge conflict primarily from two directions. One line of work controls knowledge source choice at the input level, which can be categorized into two main approaches: explicit prompt or instruction design (Choi et al., 2025; Merth et al., 2024), and structured RAG templates that organize retrieved context into designated slots or label relevance (Cattan et al., 2025). While straightforward to implement, these methods provide limited visibility into the model's internal arbitration process and offer only indirect control over the reliance on context versus parameters. A

∗^{*}Corresponding author: liangmingpan@pku.edu.cn complementary line intervenes on internal components, including manipulating attention (Jin et al., 2024; Li et al., 2025), steering sparse autoencoder (SAE) features (Zhao et al., 2025a), and modifying decoding-time token distributions (Bi et al., 2025; Wang et al., 2025a). These methods are primarily evaluated on simple factual datasets, without testing knowledge conflicts involving retrieved evidence, long interaction histories, or explicit rules. They also incur the cost of task-specific attribution, feature search, adaptation, or decoding-time modification, while lacking robust evaluation across such complex application settings.

These limitations motivate us to ask whether internal knowledge arbitration admits a simple, generalizable control mechanism. A growing body of literature in mechanistic interpretability suggests that LLMs represent complex high-level concepts, such as truthfulness (Li et al., 2024), safety (Wolf et al., 2025; Zou et al., 2025), emotions (Sofroniew et al., 2026), or refusal behaviors (Arditi et al., 2024), as linear directions within their activation space (Turner et al., 2024; Elhage et al., 2022; Park et al., 2024). These directions serve as causal mediators that allow fine-grained output steering. This perspective motivates the following research question: Can knowledge selection under conflict be captured and controlled by a low-dimensional steering axis that generalizes across tasks?

In this work, we demonstrate that a robust “knowledge selection direction” exists. Specifically, we extract this vector by contrasting the hidden states of paired prompts designed to isolate parametric reliance from contextual reliance. By identifying the critical intervention layer through cosine similarity analysis, we apply signed activation steering exclusively at this layer to modulate the model’s knowledge selection.

A direction demonstrated on one factual-conflict setting may reflect a local shortcut rather than a reusable control mechanism. We evaluate across four architectures and a progression from controlled factual conflicts to complex tasks. Within the controlled setting, we vary factual format, relation category, and dataset while retaining short prompts with competing answers. We then apply the direction learned from these conflicts to RAG, memory, and rule-following tasks, where retrieved documents, multi-turn histories, and natural-language rules supply information to be acquired. Together, these experiments test whether different tasks share a common direction for acquiring input-provided knowledge. Our contributions are:

• We identify a single residual-stream direction on controlled factual-conflict benchmarks that produces bidirectional, continuous control of knowledge selection across four model families.

• We demonstrate that the same direction works across diverse knowledge-conflict settings, including changes in context format, knowledge category, and factual-conflict dataset.

• More importantly, we show that it improves complex RAG, memory, and rule-following tasks. These improvements suggest that different task families may share an underlying direction for acquiring external knowledge.