Generating Negative Samples by Manipulating Golden Responses for Unsupervised Learning of a Response Evaluation Model

ChaeHun Park, Eugene Jang, Wonsuk Yang, Jong ParkNAACL 2021

Abstract

ChaeHun Park, Eugene Jang, Wonsuk Yang, Jong Park. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.

2021.

Introduction: The Challenge of Dialogue Evaluation

Evaluating open-domain chatbots remains a significant hurdle in NLP. Unlike tasks with a single ground truth, such as machine translation, a single dialogue prompt can elicit a vast array of valid responses. Traditional overlap-based metrics like BLEU or ROUGE often fail to capture this diversity, frequently penalizing appropriate responses that lack specific word overlap with a reference.

To address this, researchers have turned to unsupervised learning via the Next-Utterance Prediction (NUP) task. In NUP, models learn to distinguish a "golden" (correct) response from a "negative" (incorrect) one. However, standard approaches typically use random negative samples—sentences pulled from elsewhere in the dataset. These "easy" negatives are often so off-topic that the model fails to learn the subtle contextual nuances required for high-quality dialogue evaluation.

Proposed Method: Generating Hard Negatives

The authors introduce a novel method to automatically generate "hard" negative samples by manipulating golden responses. The goal is to create decoys that are linguistically fluent but contextually inappropriate.

The three-step pipeline for generating hard negative samples: Scoring, Selecting, and Replacing.

The pipeline consists of three main stages:

  1. Scoring: Using a Masked Language Model (MLM) like BERT, the system calculates the context-dependency of each word in a golden response. It compares the probability of a word's occurrence given the dialogue history versus its probability in isolation. A significant drop in probability when context is removed identifies a word as highly context-dependent.
  2. Selecting: Words exceeding a dependency threshold (0.5 in this study) are flagged for replacement. This typically affects about 27% of the tokens, primarily targeting nouns and verbs.
  3. Replacing: The selected words are masked and replaced with new predictions from the MLM. Crucially, these predictions are made without considering the dialogue history. This ensures the resulting sentence remains grammatically sound and fluent but loses its logical connection to the specific conversation.

The final model, BERT-retrieval (ours), is trained to differentiate the golden response from both random and manipulated negatives.

Experimental Results and Insights

The proposed model was tested on the DailyDialog and PersonaChat datasets, showing a marked improvement in correlation with human judgment compared to baseline metrics.

  • DailyDialog: The model achieved a Pearson correlation ($r$) of 0.55, significantly higher than the random-negative baseline (0.47) and BLEU (0.08).
  • PersonaChat: The model reached an $r$ of 0.64, outperforming the baseline of 0.56.
Qualitative comparison of the proposed model against human scores and other evaluation metrics across different dialogue scenarios.

Qualitative analysis demonstrates that the model is particularly effective at identifying "hallucinated" or repetitive responses that other metrics, such as RUBER or GPT2-coherence, might incorrectly rate as appropriate. By focusing on context-dependent words, the model learns to identify the "load-bearing" semantic elements of a conversation.

Conclusion and Future Work

By automating the creation of hard negative samples, this method provides a scalable way to train more robust dialogue evaluation models without expensive manual annotation. While the model currently struggles to distinguish between "okay" and "good" responses, it represents a significant step forward in unsupervised dialogue evaluation. Future research may explore dynamic thresholds for word selection and deeper semantic analysis to further refine the model's sensitivity to conversational nuances.

Summary updated

BibTeX
@inproceedings{park2021generating,
  author = {ChaeHun Park and Eugene Jang and Wonsuk Yang and Jong Park},
  title = {{Generating Negative Samples by Manipulating Golden Responses for Unsupervised Learning of a Response Evaluation Model}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  url = {https://openreview.net/forum?id=Zk5j2CHzeX},
}
Figure