Measuring and Improving Semantic Diversity of Dialogue Generation

Seungju Han, Beomsu Kim, Buru Chang

Introduction

Open-domain chatbots often suffer from a "boringness" problem, frequently defaulting to safe but generic responses such as "I don't know" or "That's cool." This research identifies two primary causes: the inadequacy of lexical evaluation metrics and the inherent imbalance of dialogue datasets. Traditional metrics like Distinct-n focus on word-level variety, failing to distinguish between semantically identical phrases (e.g., "I am happy" vs. "I'm feeling glad"). Furthermore, most training datasets are "head-heavy," where a small set of generic responses is overrepresented, leading models to favor these dull outputs.

Sem-Ent: A Semantic Diversity Metric

To address the limitations of lexical metrics, the authors propose Sem-Ent (Semantic Entropy). This metric evaluates diversity by mapping generated responses into a semantic latent space using pretrained models like DialoGPT or BERT.

Overview of the Sem-Ent evaluation pipeline

The process involves:

  1. Clustering: Using k-means to group responses into $k$ semantic clusters.
  2. Entropy Calculation: Measuring the entropy of the distribution across these clusters. A higher entropy indicates that the model's responses are spread more evenly across a wider variety of meanings, reflecting greater semantic diversity.

DRESS: Diversifying Responses Semantically

To combat dataset imbalance, the authors introduce DRESS (Diversifying RESponses Semantically), a training method designed to steer models away from generic "head" clusters and toward informative "tail" clusters. DRESS employs two main strategies:

  • Weighted Loss: Training samples from infrequent semantic clusters are assigned higher weights, forcing the model to prioritize learning rare, specific responses.
  • Negative Training (NT): The model is explicitly penalized when it generates responses that fall into overrepresented generic clusters during training.

Experimental Results

The researchers evaluated Sem-Ent and DRESS on the DailyDialog and OpenSubtitles benchmarks. A key finding was the significant gap between semantic and lexical metrics in reflecting human intuition.

Correlation of automatic metrics with human judgments

As shown in the table above, traditional lexical metrics like Dist-3 correlate poorly with human diversity judgments (Pearson = 0.348). In contrast, Sem-Ent achieved a correlation of 0.810, demonstrating that semantic distribution is a far more accurate proxy for human-perceived diversity.

Furthermore, DRESS consistently outperformed state-of-the-art baselines (such as MMI and CVAE) in semantic diversity. Human evaluations confirmed that DRESS-trained models produce more appropriate and informative responses without sacrificing coherency, as measured by the MaUdE metric.

Conclusion and Future Work

Sem-Ent provides a robust, human-aligned metric for evaluating dialogue diversity, while DRESS offers an effective training objective to mitigate the "boringness" trap of head-heavy datasets. While Sem-Ent is more computationally intensive than n-gram counting and currently focused on English, it represents a significant step toward more meaningful AI evaluation. Future work includes extending these methods to multilingual contexts and integrating context-response coherency directly into the diversity metric.

Summary updated

BibTeX
@inproceedings{han2022measuring,
  author = {Seungju Han and Beomsu Kim and Buru Chang},
  title = {{Measuring and Improving Semantic Diversity of Dialogue Generation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.findings-emnlp.66},
}
Figure