Improving Neural Response Diversity with Frequency-Aware Cross-Entropy Loss

Shaojie Jiang, Pengjie Ren, Christof Monz, Maarten de Rijke
2/25/2019
cs.IRcs.CLcs.LG

Official code: ShaojieJiang/FACE (19 stars, last commit 2019-06-05).

Abstract

Sequence-to-Sequence (Seq2Seq) models have achieved encouraging performance on the dialogue response generation task. However, existing Seq2Seq-based response generation methods suffer from a low-diversity problem: they frequently generate generic responses, which make the conversation less interesting. In this paper, we address the low-diversity problem by investigating its connection with model over-confidence reflected in predicted distributions. Specifically, we first analyze the influence of the commonly used Cross-Entropy (CE) loss function, and find that the CE loss function prefers high-frequency tokens, which results in low-diversity responses. We then propose a Frequency-Aware Cross-Entropy (FACE) loss function that improves over the CE loss function by incorporating a weighting mechanism conditioned on token frequency. Extensive experiments on benchmark datasets show that the FACE loss function is able to substantially improve the diversity of existing state-of-the-art Seq2Seq response generation methods, in terms of both automatic and human evaluations.

View on arXivView PDF

Code Implementations(1)

ShaojieJiang/FACEOfficial100%

Official implementation of the models proposed in paper "Improving Neural Response Diversity with Frequency-Aware Cross-Entropy Loss"

193PythonFeb 20, 20197 years agoNOASSERTION

Similar Papers

Cite this paper

@article{jiang2019improving,
  title  = {Improving Neural Response Diversity with Frequency-Aware Cross-Entropy Loss},
  author = {Shaojie Jiang and Pengjie Ren and Christof Monz and Maarten de Rijke},
  year   = {2019},
  eprint = {1902.09191},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1902.09191}
}

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

Discussion