paper-with-me

홈 › Papers

Taming Knowledge Conflicts in Language Models

2025-03-14 · Gaotang Li, Yuzhong Chen, Hanghang Tong

Language Models (LMs) often encounter knowledge conflicts when parametric memory contradicts contextual knowledge. Previous works attribute this conflict to the interplay between "memory heads" and "context heads", attention heads assumed to promote either memory or context exclusively. In this study, we go beyond this fundamental assumption by uncovering a critical phenomenon we term the "superposition of contextual information and parametric memory", where highly influential attention heads could simultaneously contribute to both memory and context. Building upon this insight, we propose Just Run Twice (JUICE), a test-time attention intervention method that steers LMs toward either parametric beliefs or contextual knowledge without requiring fine-tuning. JUICE identifies a set of reliable attention heads and leverages a dual-run approach to mitigate the superposition effects. Extensive experiments across 11 datasets and 6 model architectures demonstrate that JUICE sets the new state-of-the-art performance and robust generalization, achieving significant and consistent improvement across different domains under various conflict types. Finally, we theoretically analyze knowledge conflict and the superposition of contextual information and parametric memory in attention heads, which further elucidates the effectiveness of JUICE in these settings.

📄 PDF Abstract BibTeX arXiv:2503.10996

Code (1)

GaotangLi/JUICE 공식 구현 pytorch

Tasks

Attribute

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
SET Dynamic Sparse Training method where weight mask is updated randomly periodically

Similar Papers 제목 키워드 기반

Tug-of-War Between Knowledge: Exploring and Resolving Knowledge Conflicts in Retrieval-Augmented Language Models

2024-02-22 · Zhuoran Jin, Pengfei Cao, Yubo Chen, Kang Liu 외

Retrieval-augmented language models (RALMs) have demonstrated significant potential in refining and expanding their internal memory by retrieving evidence from external sources. However, RALMs will inevitably encounter k…

Retrieval

Resolving Knowledge Conflicts in Large Language Models

2023-10-02 · Yike Wang, Shangbin Feng, Heng Wang, Weijia Shi 외

Large language models (LLMs) often encounter knowledge conflicts, scenarios where discrepancy arises between the internal parametric knowledge of LLMs and non-parametric information provided in the prompt context. In thi…

Knowledge Conflicts for LLMs: A Survey

2024-03-13 · Rongwu Xu, Zehan Qi, Zhijiang Guo, Cunxiang Wang 외

This survey provides an in-depth analysis of knowledge conflicts for large language models (LLMs), highlighting the complex challenges they encounter when blending contextual and parametric knowledge. Our focus is on thr…

MisinformationSurvey

Discerning and Resolving Knowledge Conflicts through Adaptive Decoding with Contextual Information-Entropy Constraint

2024-02-19 · Xiaowei Yuan, Zhao Yang, Yequan Wang, Shengping Liu 외

Large language models internalize enormous parametric knowledge during pre-training. Concurrently, realistic applications necessitate external contextual knowledge to aid models on the underlying tasks. This raises a cru…

ConflictBank: A Benchmark for Evaluating the Influence of Knowledge Conflicts in LLM

2024-08-22 · Zhaochen Su, Jun Zhang, Xiaoye Qu, Tong Zhu 외

Large language models (LLMs) have achieved impressive advancements across numerous disciplines, yet the critical issue of knowledge conflicts, a major source of hallucinations, has rarely been studied. Only a few researc…

Misinformation