paper-with-me

Papers

DeCoRe: Decoding by Contrasting Retrieval Heads to Mitigate Hallucinations

2024-10-24 · Aryo Pradipta Gema, Chen Jin, Ahmed Abdulaal, Tom Diethe, Philip Teare, Beatrice Alex, Pasquale Minervini, Amrutha Saseendran

Large Language Models (LLMs) often hallucinate, producing unfaithful or factually incorrect outputs by misrepresenting the provided context or incorrectly recalling internal knowledge. Recent studies have identified specific attention heads within the Transformer architecture, known as retrieval heads, responsible for extracting relevant contextual information. We hypothesise that masking these retrieval heads can induce hallucinations and that contrasting the outputs of the base LLM and the masked LLM can reduce hallucinations. To this end, we propose Decoding by Contrasting Retrieval Heads (DeCoRe), a novel training-free decoding strategy that amplifies information found in the context and model parameters. DeCoRe mitigates potentially hallucinated responses by dynamically contrasting the outputs of the base LLM and the masked LLM, using conditional entropy as a guide. Our extensive experiments confirm that DeCoRe significantly improves performance on tasks requiring high contextual faithfulness, such as summarisation (XSum by 18.6%), instruction following (MemoTrap by 10.9%), and open-book question answering (NQ-Open by 2.4% and NQ-Swap by 5.5%).

📄 PDF Abstract BibTeX arXiv:2410.18860

Code (1)

aryopg/decore 공식 구현 pytorch

Tasks

Instruction FollowingQuestion AnsweringRetrieval

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Multi-Head Attention 설명 없음
Adam 설명 없음
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$…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…

Similar Papers 제목 키워드 기반

An Analysis of Decoding Methods for LLM-based Agents for Faithful Multi-Hop Question Answering

2025-03-30 · Alexander Murphy, Mohd Sanad Zaki Rizvi, Aden Haussmann, Ping Nie 외

Large Language Models (LLMs) frequently produce factually inaccurate outputs - a phenomenon known as hallucination - which limits their accuracy in knowledge-intensive NLP tasks. Retrieval-augmented generation and agenti…

HallucinationMulti-hop Question AnsweringQuestion AnsweringRetrieval+1

DecoRec: Decomposed 3D Scene Reconstruction from Single-View Images via Object-Level Diffusion

2026-05-16 · Yuhan Ping, Yuan Liu, Xiaoxiao Long, Peng Wang 외 arxiv

In this paper, we introduce \textit{DecoRec}, a novel system designed to elevate single-view 2D images to a decomposed 3D scene mesh. Current methods for single-view scene reconstruction typically rely on object retrieva…

Scene Generation

From Interpretability to Performance: Optimizing Retrieval Heads for Long-Context Language Models

2026-01-16 · Youmi Ma, Naoaki Okazaki arxiv

Advances in mechanistic interpretability have identified special attention heads, known as retrieval heads, that are responsible for retrieving information from the context. However, the role of these retrieval heads in …

Passage Re-Ranking

DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads

2024-10-14 · Guangxuan Xiao, Jiaming Tang, Jingwei Zuo, Junxian Guo 외

Deploying long-context large language models (LLMs) is essential but poses significant computational and memory challenges. Caching all Key and Value (KV) states across all attention heads consumes substantial memory. Ex…

GPUQuantizationRetrieval

Logit-Contribution Scoring Identifies Non-Literal Retrieval Heads

2026-07-01 · Aryo Pradipta Gema, Beatrice Alex, Pasquale Minervini hf

In long-context use, large language models frequently synthesize answers from the meaning of a relevant context span rather than literally copy-pasting them. Identifying which attention heads perform this synthesis matte…

Arithmetic Reasoning