Abstract
Recent advances in sequence-to-sequence learning reveal a purely data-driven approach to the response generation task. Despite its diverse applications, existing neural models are prone to producing short and generic replies, making it infeasible to tackle open-domain challenges. In this research, we analyze this critical issue in light of the model's optimization goal and the specific characteristics of the human-to-human dialog corpus. By decomposing the black box into parts, a detailed analysis of the probability limit was conducted to reveal the reason behind these universal replies. Based on these analyses, we propose a max-margin ranking regularization term to avoid the models leaning to these replies. Finally, empirical experiments on case studies and benchmarks with several metrics validate this approach.
Introduction
In Neural Response Generation (NRG), sequence-to-sequence (Seq2Seq) models have become the standard architecture. However, unlike machine translation where a source sentence has a narrow set of correct targets, dialogue is characterized by a "one-to-many" mapping. A single query can elicit an infinite variety of valid responses. This flexibility often leads models to "play it safe" by generating high-frequency, generic phrases—known as Universal Replies (e.g., "I don't know" or "Me too"). While grammatically correct, these responses are conversationally stagnant and fail to engage users effectively.
The Mechanics of Universal Replies
The preference for universal replies stems from two main factors identified through statistical analysis:
- Word Selection Bias: Following Zipf’s Law, high-frequency words dominate the training corpus. Standard models, which aim to maximize the likelihood of the target given the source, naturally gravitate toward these "safe" words because they appear in a vast range of contexts, giving them a mathematical advantage during the word selection phase.
- Weak Constraints: In translation, the source provides strong semantic constraints. In dialogue, these constraints are weaker, allowing the model to default to the path of least resistance—the statistically most probable (and thus most generic) words.
Max-Marginal Ranking Regularization (RReg)
To address the learning bias toward generic responses, we introduce a max-marginal ranking regularization (RReg) term. This approach moves beyond simple cross-entropy loss by incorporating a ranking mechanism during training.
The model is presented with a "triplet": the query, the ground-truth response (positive), and a randomly sampled response from the dataset (negative). The RReg term penalizes the model if the probability of the random "noise" response is too close to the probability of the informative ground-truth response. This forces the model to learn features that distinguish semantically relevant content from merely frequent filler, addressing the issue at the learning stage rather than just during decoding.
Experimental Results
We evaluated the RReg approach using the Douban Group Chat dataset, comprising approximately 6 million training pairs.
Qualitative Analysis
The impact of RReg is most visible in the specificity of generated responses. As shown in the qualitative comparison below, the standard Seq2Seq+Attention model often collapses multiple distinct queries into the same generic response pattern. In contrast, the model trained with Ranking Loss maintains query-specific information, producing more diverse and relevant replies.
Quantitative Performance
The proposed model was compared against standard Seq2Seq (S2SA) and Variational Autoencoders (CVAE) using human evaluation and automated metrics.
As detailed in the results table, the S2SA + RReg model achieved a significantly higher rate of "Informative" (Level 2) responses (36.42%) compared to the baseline S2SA (27.02%). Furthermore, it showed marked improvements in diversity metrics (Distinct-1 and Distinct-2) and achieved the lowest Perplexity (PPL) of 85.6. Interestingly, while standard models sometimes achieve higher ROUGE scores due to word overlap with generic ground-truth responses, the RReg model's superiority in human evaluation suggests that ROUGE may be a deceptive metric for dialogue quality.
Conclusion
The "boring reply" problem in NRG is fundamentally a learning issue driven by the statistical distribution of language and the lack of strong semantic constraints in dialogue. By introducing a ranking-based regularization term, we can steer models away from universal replies toward more informative communication. Future work will explore more sophisticated negative sampling strategies and the computational optimization of the RReg training process.
Summary updated