Identifying Untrustworthy Samples: Data Filtering for Open-domain Dialogues with Bayesian Optimization

Lei Shen, Haolan Zhan, Xin Shen, Hongshen Chen, Xiaofang Zhao, Xiaodan Zhu

TL;DR

Open-domain chatbots often suffer from "garbage in, garbage out" due to noisy, inconsistent, or generic training data. This paper introduces a novel data filtering framework that uses Bayesian Optimization to automatically learn how to weight seven different dialogue quality attributes (like fluency and coherence) to prune "untrustworthy" samples. To make this iterative process efficient, the authors propose Diff-MLE-NEG, a training method that updates models using both positive reinforcement for kept samples and negative training for removed ones.

What Problem Does This Paper Address?

Neural Conversational Models (NCMs) are typically trained on massive datasets scraped from social media or movie scripts. While large, these datasets are riddled with "untrustworthy" samples: responses that are generic (e.g., "I don't know"), logically inconsistent with previous turns, or completely unrelated to the context.

Existing solutions often try to fix this by making the model architecture more complex or by filtering data based on a single metric (like entropy). However, dialogue quality is multi-faceted; a response might be fluent but totally irrelevant. The challenge lies in determining the "perfect recipe"—the right combination of various quality attributes—to filter the data effectively without requiring manual tuning for every new dataset.

Methods

The authors propose a two-part solution:

  1. Multi-Attribute Scoring with Bayesian Optimization (BayesOpt): The researchers define a quality measure $S$ as a linear combination of seven attributes: Specificity, Repetitiveness, Relatedness, Continuity, Coherence, Fluency, and Consistency. Because the relationship between these weights and final model performance is a "black box" (non-differentiable), they use BayesOpt. BayesOpt iteratively searches for the optimal weights by treating the validation set performance as the objective function to maximize.

  2. Diff-MLE-NEG for Training Acceleration: Normally, BayesOpt would require training a model from scratch in every iteration to see if the new filter weights worked—a prohibitively expensive task on large datasets. Instead, the authors start with a base model and perform "differential" updates:

  3. MLE (Maximum Likelihood Estimation): Applied to newly "maintained" samples to maximize their probability.

  4. NEG (Negative Training): Applied to newly "removed" samples to explicitly minimize their probability, teaching the model what not to say.

Datasets

The method was evaluated on two popular open-domain dialogue benchmarks:

  • OpenSubtitles: A massive, notoriously noisy collection of movie subtitles (approx. 300k samples used).
  • DailyDialog: A smaller, higher-quality dataset of human-written daily conversations (approx. 55k samples).

Key Insights and Ideas

  • Dialogue Quality is Multi-faceted: The ablation studies show that filtering by any single attribute (like just "Coherence") helps, but the combination of all seven consistently yields the best results.
  • BayesOpt as a "Meta-Tuner": Rather than researchers guessing which attributes matter most, BayesOpt discovers the optimal filtering strategy for a specific dataset and model architecture automatically.
  • Negative Training is a Powerful Signal: By using the "removed" samples in a negative training objective (NEG), the authors turn the "trash" data into a useful signal that helps the model avoid common pitfalls like genericness.
  • Efficiency Matters: The Diff-MLE-NEG framework is crucial. It allows the system to explore 100 different filtering configurations (iterations) in a reasonable timeframe, which would be impossible with standard re-training.

Key Results

The authors tested the filter on four architectures: Sequence-to-Sequence (S2S), CVAE, Transformer (TRS), and GVT.

  • Automatic Metrics: Models trained on filtered data showed significant improvements across almost all metrics. For the Transformer model on OpenSubtitles, Perplexity dropped from 48.98 to 46.06, and BLEU scores nearly doubled (0.46 to 0.80).
  • Diversity: "Distinct" n-gram scores (measuring how diverse the responses are) saw massive gains, particularly on the noisy OpenSubtitles dataset, proving the filter successfully pruned "safe" but boring responses.
  • Human Evaluation: In head-to-head matchups, humans preferred the responses from the filtered-data models significantly more often than the original-data models (e.g., a 52% "Win" rate vs. 8% "Loss" rate for the Transformer).

Limitations and Future Work

  • Objective Function Choice: The authors primarily used simple metrics like Perplexity or a sum of standard metrics as the objective for BayesOpt. They acknowledge that more advanced, human-correlated automatic metrics (like FED or USR) could be used as the objective function in the future.
  • Linear Combination: The quality measure $S$ is currently a simple linear combination of attributes. Future work could explore non-linear combinations to capture more complex interactions between attributes.
  • Attribute Selection: While seven attributes were used, there may be others (like toxicity or sentiment) that could be integrated into the filtering process.

Summary updated

BibTeX
@inproceedings{shen2021identifying,
  author = {Lei Shen and Haolan Zhan and Xin Shen and Hongshen Chen and Xiaofang Zhao and Xiaodan Zhu},
  title = {{Identifying Untrustworthy Samples: Data Filtering for Open-domain Dialogues with Bayesian Optimization}},
  booktitle = {ACM International Conference on Information and Knowledge Management},
  year = {2021},
  url = {https://openreview.net/forum?id=eBaVR-wE8gz},
}

Loading related content...

Figure