Group-wise Contrastive Learning for Neural Dialogue Generation

Hengyi Cai, Hongshen Chen, Yonghao Song, Zhuoye Ding, Yongjun Bao +2 more
9/16/2020
36 citations
cs.CLcs.AI
contrastive-ssl

Official code: hengyicai/ContrastiveLearning4Dialogue (55 stars, Python, MIT, PyTorch, last commit 2021-02-24).

Abstract

Neural dialogue response generation has gained much popularity in recent years. Maximum Likelihood Estimation (MLE) objective is widely adopted in existing dialogue model learning.

Show full abstract

However, models trained with MLE objective function are plagued by the low-diversity issue when it comes to the open-domain conversational setting. Inspired by the observation that humans not only learn from the positive signals but also benefit from correcting behaviors of undesirable actions, in this work, we introduce contrastive learning into dialogue generation, where the model explicitly perceives the difference between the well-chosen positive and negative utterances. Specifically, we employ a pretrained baseline model as a reference. During contrastive learning, the target dialogue model is trained to give higher conditional probabilities for the positive samples, and lower conditional probabilities for those negative samples, compared to the reference model. To manage the multi-mapping relations prevailed in human conversation, we augment contrastive dialogue learning with group-wise dual sampling. Extensive experimental results show that the proposed group-wise contrastive learning framework is suited for training a wide range of neural dialogue generation models with very favorable performance over the baseline training approaches.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

The codebase for "Group-wise Contrastive Learning for Neural Dialogue Generation" (Cai et al., Findings of EMNLP 2020)

554Python, JavaScriptSep 16, 20205 years agoMIT
contrastive-learningconversational-aidialogparlaipytorch

Similar Papers

Cite this paper

@article{cai2020groupwise,
  title  = {Group-wise Contrastive Learning for Neural Dialogue Generation},
  author = {Hengyi Cai and Hongshen Chen and Yonghao Song and Zhuoye Ding and Yongjun Bao and Weipeng Yan and Xiaofang Zhao},
  year   = {2020},
  eprint = {2009.07543},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2009.07543}
}

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

Discussion