Abstract
Building effective retrieval-based chatbots requires high-quality training data, which is typically scarce and expensive to obtain. Traditional methods rely on random negative sampling, leading to models that struggle with semantically similar but incorrect responses. This paper introduces a weak supervision framework that utilizes a pre-trained generative model as a "teacher" to provide soft labels for "hard" negative examples retrieved from a search engine. Our experiments on the STC and Douban datasets show that this framework consistently improves the performance of various matching architectures, setting new benchmarks for response selection.
Introduction
Retrieval-based chatbots select the most appropriate response from a large repository by calculating a compatibility score between the conversation context and candidate responses. The standard training paradigm involves labeling the actual human response as positive and randomly sampled responses as negative. However, this approach suffers from two major issues: "easy negatives," where the model fails to learn subtle semantic distinctions, and "false negatives," where valid responses are incorrectly labeled as zero. To overcome these limitations without the prohibitive cost of human annotation, we propose a teacher-student framework based on weak supervision.
The Weak Supervision Framework
Our approach treats the learning process as a teacher-student interaction designed to provide more nuanced training signals.
- The Weak Annotator (Teacher): We employ a standard Sequence-to-Sequence (Seq2Seq) model with attention, pre-trained on millions of conversation pairs. This generative model acts as a weak supervisor by providing a likelihood score for any context-response pair.
- Hard Negative Sampling: Instead of random sampling, we use a search engine to retrieve top candidates for a given context. This ensures that negative examples are semantically related to the context, presenting a more challenging learning task for the student.
- The Matching Model (Student): The framework is architecture-agnostic. We evaluated its impact on Convolutional Neural Networks (CNNs), Long Short-Term Memory networks (LSTMs), and Sequential Matching Networks (SMNs).
- Learning with Soft Signals: We utilize a margin-based loss function where the student is trained to rank the true response higher than retrieved candidates. Crucially, the margin is guided by the Seq2Seq teacher’s scores, allowing the model to tolerate "good" retrieved responses and reducing the impact of label noise.
Experimental Results
We evaluated our framework on two public benchmarks: the single-turn STC (Short Text Conversation) dataset and the multi-turn Douban Conversation Corpus.
Performance Gains Across Architectures
The weak supervision (WS) strategy consistently outperformed traditional random sampling (WSrand) and fixed-margin (const) approaches across all tested architectures.
As shown in the table above, the LSTM+WS model achieved a Precision@1 (P@1) of 0.616 on the STC dataset, while the SMN+WS model reached a Mean Average Precision (MAP) of 0.565 on the Douban dataset.
Comparison with State-of-the-Art
When compared against existing state-of-the-art models, our WS-enhanced versions showed significant improvements. On the Douban dataset, the SMN+WS model outperformed the original SMN baseline and other competitive models like DL2R and Multi-View.
Our ablation studies confirmed that both the soft signals from the teacher and the retrieval of hard negatives are essential for these performance gains, with the retrieval strategy being particularly critical.
Conclusion and Future Work
By leveraging generative models as weak supervisors, we can train more robust matching models that handle the complexities of real-world retrieval scenarios. While the current approach adds computational overhead during training and inherits some biases from the generative teacher, it represents a significant step toward automated, high-quality training for chatbots. Future research will explore iterative updates to the teacher model and the integration of small amounts of human-labeled data to further refine the supervision signal.
Summary updated