Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Learning Reduces Hallucination in Conversations

Weiwei Sun, Zhengliang Shi|arXiv (Cornell University)|Dec 20, 2022
Topic ModelingComputer Science7 citations
TL;DR

This paper proposes MixCL, a contrastive learning framework that reduces hallucination in large language model (LM)-based dialogue systems by employing mixed-contrastive learning with hard negative sampling from retrieved and model-generated knowledge. MixCL improves response factuality and relevance, achieving performance comparable to state-of-the-art knowledge-base (KB)-based methods while being 5× faster and more scalable, all without requiring retrieval at inference time.

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. 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.

Motivation & Objective

  • To address the problem of hallucination in large language model (LM)-based dialogue systems, where models generate plausible but factually incorrect or irrelevant responses.
  • To reduce intrinsic hallucinations (e.g., false facts) and extrinsic hallucinations (e.g., off-topic responses) in open-domain, knowledge-grounded dialogues.
  • To improve the faithfulness and relevance of LM-generated responses without relying on external knowledge bases or retrieval at inference time.
  • To develop a contrastive learning framework that explicitly optimizes implicit knowledge elicitation from LMs’ parameters.
  • To achieve performance on par with KB-based methods while significantly improving inference efficiency and scalability.

Proposed method

  • Proposes a novel mixed contrastive learning objective inspired by mix-up data augmentation, which combines positive and negative knowledge spans during training.
  • Introduces two types of negative sampling: (1) hard negatives retrieved from a corpus using dense retrieval, and (2) model-generated negatives via self-bootstrapping to simulate confusable knowledge.
  • Employs entity-based and constituency-based mix-up strategies to create diverse, challenging negative examples at the span level.
  • Optimizes the model end-to-end using a multi-objective loss combining mixed contrastive loss, LM pretraining loss (MLE), and negative sampling objectives.
  • Uses a dual-branch architecture to contrast the model’s generated response with both ground-truth and hard negative knowledge representations.
  • Enables efficient inference by internalizing knowledge during training, eliminating the need for retrieval at test time.

Experimental results

Research questions

  • RQ1Can contrastive learning reduce hallucination in LM-based dialogue systems by explicitly contrasting plausible but incorrect knowledge?
  • RQ2How effective is hard negative sampling—both from retrieval and model generation—in improving the model’s ability to distinguish correct from confusable knowledge?
  • RQ3Does mixed-contrastive learning at the span level enhance response factuality and relevance compared to standard contrastive or MLE training?
  • RQ4Can a purely LM-based approach match the performance of KB-based methods in knowledge-grounded dialogue while being significantly more efficient?
  • RQ5To what extent does MixCL mitigate knowledge forgetting during fine-tuning on dialogue-specific data?

Key findings

  • MixCL reduces hallucination by 24% (intrinsic) and 27% (extrinsic) compared to baseline BART, as measured by expert-annotated responses on the Wizard-of-Wikipedia dataset.
  • MixCL improves response relevance and factuality by 5% to 15% over previous LM-based methods in automatic evaluation metrics such as KF1 and F1.
  • The model achieves comparable performance to state-of-the-art KB-based methods (e.g., KnowledGPT) in response quality, with a 5× speedup in inference time.
  • Ablation studies confirm that both the mixed contrastive objective and hard negative sampling are essential, with performance dropping by up to 15% when removed.
  • Human evaluation confirms that MixCL generates more engaging, factually accurate, and human-like responses than baselines.
  • The model shows superior scalability: performance gains with larger model sizes are more pronounced than for KB-based methods, indicating better utilization of pre-trained knowledge.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.