Abstract
Open-domain conversation systems often suffer from the prevalence of "noisy" data in large-scale crawled datasets, leading to irrelevant or generic responses. We present a "generation with calibration" framework designed to automatically identify and mitigate the impact of low-quality training pairs. By integrating a calibration network that scores the appropriateness of query-reply pairs, we implement a weighted loss function in the sequence-to-sequence (seq2seq) generation model. This approach ensures that high-quality examples exert greater influence during training. Experimental results on a large-scale Chinese dataset demonstrate significant improvements in both response relevance and diversity, outperforming standard attention-based seq2seq models.
Introduction
Training robust chatbots requires massive amounts of conversational data, typically sourced from social media and online forums. However, this data is inherently noisy, containing irrelevant replies (e.g., random lyrics) and universal/boring replies (e.g., "I don't know"). Standard seq2seq models treat all training pairs as equally valid, which often results in models that produce nonsensical or repetitive outputs. Manually filtering millions of pairs is infeasible, necessitating an automated solution to distinguish between high-quality conversational patterns and noise.
Methodology
The Calibration Framework
Our proposed framework consists of two primary components: a Calibration Network (the "Judge") and a Generation Network (the "Student"). The system operates by scoring the quality of each training pair and using that score to weight the learning process.
- Calibration Network: This component measures the appropriateness of a reply given a query. It utilizes a bidirectional Gated Recurrent Unit (BiGRU) to generate embeddings for both the query and the reply, which are then processed by a Multi-Layer Perceptron (MLP) to output a quality score between 0 and 1. To train this network without manual labels, we employ negative sampling, teaching the model to distinguish original replies from randomly sampled ones.
- Generation Network: The student model is a standard seq2seq architecture enhanced with an attention mechanism. The key innovation lies in the weighted loss function. During training, the Judge provides a score for each pair in a mini-batch. These scores are converted into weights that scale the gradient updates. Consequently, noisy or irrelevant pairs have a minimized impact on the model's parameter updates.
Experimental Results
Dataset and Metrics
We evaluated the framework using a dataset of approximately 1.33 million query-reply pairs crawled from Douban. The model's performance was measured using automatic metrics (BLEU for similarity and Distinct for diversity) and human evaluation.
Quantitative Performance
The calibrated model (S2SAC) demonstrated superior performance across all metrics compared to standard seq2seq (S2S) and attention-based seq2seq (S2SA) baselines.
As shown in the table above, S2SAC achieved a 33% improvement in BLEU-4 and a 37% improvement in Distinct-4 over the S2SA baseline. These results indicate that the model not only produces responses more similar to human ground truth but also utilizes a much wider and more diverse vocabulary.
Qualitative Analysis and Human Evaluation
Human evaluators rated responses on a scale of 0 (irrelevant) to 2 (good). The S2SAC model significantly reduced the frequency of irrelevant scores while increasing the proportion of high-quality responses. Qualitative case studies revealed that while baseline models often defaulted to generic "safe" replies, the calibrated model provided context-specific and content-rich answers.
Conclusion and Future Work
This work demonstrates that not all training data is created equal and that down-weighting low-quality samples is more effective than simple filtering. By allowing the model to learn from the entire dataset while "trusting" high-quality samples more, we significantly improve the relevance and diversity of open-domain chatbots. Future research will explore extending this framework to multi-turn dialogues and investigating joint training strategies where the calibration and generation networks improve simultaneously.
Summary updated