Trusting Your Evidence: Hallucinate Less with Context-aware Decoding

By Weijia Shi, Xiaochuang Han, Michael Lewis, Yulia Tsvetkov, Luke S. Zettlemoyer, Scott Yih. North American Chapter of the Association for Computational Linguistics, 2023

387 citations recorded by the source corpus.

Language models (LMs) often struggle to pay enough attention to the input context, and generate texts that are unfaithful or contain hallucinations. To mitigate this issue, we present context-aware decoding (CAD), which follows a contrastive output distribution that amplifies the difference between the output probabilities when a model is used with and without context. Our experiments show that CAD, without additional training, significantly improves the faithfulness of different LM families, including OPT, GPT, LLaMA, and FLAN-T5 for summarization tasks (e.g., 14.3% gain for LLaMA in factuality metrics). Furthermore, CAD is particularly effective in overriding a model’s prior knowledge when it contradicts the provided context, leading to substantial improvements in tasks where resolving the knowledge conflict is essential. Our code is publicly released at https://github.com/xhan77/context-aware-decoding.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition

View Paper: https://www.semanticscholar.org/paper/984d4a1d41bfc8184fb77b8aa0eb8e96d536d048

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Yung-Sung Chuang
  2. Pengcheng He
  3. Ziwei Xu
  4. Yoon Kim
  5. James R. Glass
  6. Mohan Kankanhalli
  7. Hongyin Luo
  8. Sicong Leng

In Computer Vision and Pattern Recognition

  1. James R. Glass
  2. Mohan Kankanhalli
  3. Hongyin Luo
  4. Sicong Leng
  5. Li Bing
  6. Shijian Lu
  7. Chunyan Miao
  8. Guanzheng Chen

Citations in the corpus