[Paper Review] Another Diversity-Promoting Objective Function for Neural Dialogue Generation
This paper proposes Inverse Token Frequency (ITF) loss, a novel objective function that boosts response diversity in neural dialogue generation by down-weighting frequent tokens and up-weighting rare ones during training. By replacing only the loss function without modifying the model architecture, ITF achieves state-of-the-art unigram diversity (DIST-1 = 7.56) on OpenSubtitles while maintaining strong BLEU-1 scores, outperforming MLE and MMI baselines.
Although generation-based dialogue systems have been widely researched, the response generations by most existing systems have very low diversities. The most likely reason for this problem is Maximum Likelihood Estimation (MLE) with Softmax Cross-Entropy (SCE) loss. MLE trains models to generate the most frequent responses from enormous generation candidates, although in actual dialogues there are various responses based on the context. In this paper, we propose a new objective function called Inverse Token Frequency (ITF) loss, which individually scales smaller loss for frequent token classes and larger loss for rare token classes. This function encourages the model to generate rare tokens rather than frequent tokens. It does not complicate the model and its training is stable because we only replace the objective function. On the OpenSubtitles dialogue dataset, our loss model establishes a state-of-the-art DIST-1 of 7.56, which is the unigram diversity score, while maintaining a good BLEU-1 score. On a Japanese Twitter replies dataset, our loss model achieves a DIST-1 score comparable to the ground truth.
Motivation & Objective
- To address the low diversity problem in neural dialogue generation, where models tend to produce generic responses like 'I don't know'.
- To improve response diversity without compromising generation quality or requiring complex model modifications.
- To develop a simple, stable, and effective loss function that encourages the model to generate rare, contextually appropriate tokens.
- To provide an alternative to complex methods like GANs, VAEs, or reinforcement learning that require architectural changes or pre-training.
Proposed method
- Proposes Inverse Token Frequency (ITF) loss as a frequency-weighted variant of Softmax Cross-Entropy (SCE) loss.
- Applies inverse frequency scaling to the loss: $ w_c = 1 / \text{freq}(\text{token}_c)^\lambda $, where $ \lambda $ controls the strength of weighting.
- Uses the weighted loss $ L_{\text{ITF}} = w_c \cdot L_{\text{SCE}} $ to reduce gradients for frequent tokens and increase them for rare tokens.
- Maintains the same model architecture and training pipeline as MLE, only replacing the objective function.
- Employs a subword tokenization (Sentencepiece, 32k vocab) to compute token frequencies across the training set.
- Tunes the hyperparameter $ \lambda $ to balance diversity and fluency, with optimal performance at $ \lambda = 0.4 $.
Experimental results
Research questions
- RQ1Can a simple, non-generative loss function improve response diversity without architectural changes?
- RQ2Does frequency-based loss weighting effectively reduce overuse of generic phrases like 'I don't know'?
- RQ3Can ITF loss maintain high fluency (measured by BLEU) while significantly improving unigram diversity (DIST-1)?
- RQ4How does ITF compare to advanced methods like MMI, GANs, and VAEs in terms of diversity and training stability?
- RQ5Does ITF loss lead to more contextually relevant and less repetitive responses in both English and Japanese dialogue datasets?
Key findings
- On the OpenSubtitles dataset, the ITF loss model achieves a state-of-the-art unigram diversity score of DIST-1 = 7.56, significantly outperforming MLE and MMI baselines.
- The ITF model maintains a high BLEU-1 score, indicating strong fluency and coherence despite increased diversity.
- On the Japanese Twitter replies dataset, the ITF model produces responses with unigram diversity comparable to the ground truth, suggesting improved naturalness and variety.
- Human evaluation of generated responses showed no serious grammatical issues when $ \lambda \leq 0.7 $, indicating stable and fluent generation.
- The ITF loss function is stable during training and does not require pre-training, unlike GAN- or RL-based methods.
- The method outperforms MMI-based inference models in both diversity and quality, demonstrating that loss reweighting alone can yield strong gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.