Where Knowledge Collides: A Mechanistic Study of Intra-Memory Knowledge Conflict in Language Models
Minh Vu Pham, Hsuvas Borkakoty, Yufang Hou
TL;DR
This work addresses intra-memory knowledge conflict in language models caused by conflicting pre-training information. It introduces a mechanistic interpretability framework that combines logit lens, activation patching, and cross-model patching (CMAP) to localize where conflicts are encoded and to causally intervene during inference. Using the SynWikiBio dataset, the authors show that late-layer attention components predominantly encode conflicts and that CMAP can steer outputs toward correct facts with varying effectiveness across models. The approach offers a principled path toward understanding and controlling conflicting parametric knowledge, with implications for robust information tracing and potential knowledge-editing applications in LMs.
Abstract
In language models (LMs), intra-memory knowledge conflict largely arises when inconsistent information about the same event is encoded within the model's parametric knowledge. While prior work has primarily focused on resolving conflicts between a model's internal knowledge and external resources through approaches such as fine-tuning or knowledge editing, the problem of localizing conflicts that originate during pre-training within the model's internal representations remain unexplored. In this work, we design a framework based on mechanistic interpretability methods to identify where and how conflicting knowledge from the pre-training data is encoded within LMs. Our findings contribute to a growing body of evidence that specific internal components of a language model are responsible for encoding conflicting knowledge from pre-training, and we demonstrate how mechanistic interpretability methods can be leveraged to causally intervene in and control conflicting knowledge at inference time.
