Contrastive Learning Reduces Hallucination in Conversations

Weiwei Sun, Zhengliang Shi, Shen Gao, Pengjie Ren, Maarten de Rijke +1 more
12/20/2022
cs.CLcs.AI
contrastive-ssl

Official code: sunnweiwei/MixCL (24 stars, Python, last commit 2023-10-17).

Abstract

Pre-trained language models (LMs) store knowledge in their parameters and can generate informative responses when used in conversational systems. However, LMs suffer from the problem of "hallucination:" they may generate plausible-looking statements that are irrelevant or factually incorrect.

Show full abstract

To address this problem, we propose a contrastive learning scheme, named MixCL. A novel mixed contrastive objective is proposed to explicitly optimize the implicit knowledge elicitation process of LMs, and thus reduce their hallucination in conversations. We also examine negative sampling strategies of retrieved hard negatives and model-generated negatives. We conduct experiments on Wizard-of-Wikipedia, a public, open-domain knowledge-grounded dialogue benchmark, and assess the effectiveness of MixCL. MixCL effectively reduces the hallucination of LMs in conversations and achieves the highest performance among LM-based dialogue agents in terms of relevancy and factuality. We show that MixCL achieves comparable performance to state-of-the-art KB-based approaches while enjoying notable advantages in terms of efficiency and scalability.

View on arXivView PDF

Code Implementations(1)

sunnweiwei/MixCLOfficial100%

Contrastive Learning Reduces Hallucination in Conversations

242PythonAug 15, 20223 years ago

Similar Papers

Cite this paper

@article{sun2022contrastive,
  title  = {Contrastive Learning Reduces Hallucination in Conversations},
  author = {Weiwei Sun and Zhengliang Shi and Shen Gao and Pengjie Ren and Maarten de Rijke and Zhaochun Ren},
  year   = {2022},
  eprint = {2212.10400},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.10400}
}

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/2212.10400.svg)](https://codeofpaper.com/paper/2212.10400)

Discussion