Entropy-Based Decoding for Retrieval-Augmented Large Language Models

Zexuan Qiu, Zijing Ou, Bin Wu, Jingjing Li, Aiwei Liu +1 more
6/25/2024
cs.CL

No official code found. Best implementation: zexuanqiu/entropy-based-decoding (6 stars, last commit 2025-03-05).

Abstract

Augmenting Large Language Models (LLMs) with retrieved external knowledge has proven effective for improving the factual accuracy of generated responses. Despite their success, retrieval-augmented LLMs still face the distractibility issue, where the generated responses are negatively influenced by noise from both external and internal knowledge sources. In this paper, we introduce a novel, training-free decoding method guided by entropy considerations to mitigate this issue. Our approach utilizes entropy-based document-parallel ensemble decoding to prioritize low-entropy distributions from retrieved documents, thereby enhancing the extraction of relevant information of context. Additionally, it incorporates a contrastive decoding mechanism that contrasts the obtained low-entropy ensemble distribution with the high-entropy distribution derived from the model's internal knowledge across layers, which ensures a greater emphasis on reliable external information. Extensive experiments on open-domain question answering datasets demonstrate the superiority of our method.

View on arXivView PDF

Code Implementations(1)

Entropy-Based Decoding for Retrieval-Augmented Large Language Models [NAACL 2025 Main]

61Shell, PythonMar 5, 20251 years ago

Similar Papers

Cite this paper

@article{qiu2024entropybased,
  title  = {Entropy-Based Decoding for Retrieval-Augmented Large Language Models},
  author = {Zexuan Qiu and Zijing Ou and Bin Wu and Jingjing Li and Aiwei Liu and Irwin King},
  year   = {2024},
  eprint = {2406.17519},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.17519v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.17519.svg)](https://codeofpaper.com/paper/2406.17519)

Discussion