Towards Efficiently Diversifying Dialogue Generation via Embedding Augmentation

Yu Cao, Liang Ding, Zhiliang Tian, Meng Fang

Introduction

Dialogue generation is inherently a many-to-many problem: a single prompt (e.g., "What are you doing?") can have dozens of valid responses, and a single response can fit many prompts. However, standard neural models are typically trained with a "one-to-one" objective using "hard" labels (one-hot vectors). This mismatch often forces models to produce safe, repetitive, and generic responses like "I'm not sure" or "Me too."

Existing solutions generally fall into two categories: objective modification (penalizing generic words) or data augmentation (hard word replacement). The former often compromises grammatical quality, while the latter is brittle and fails to capture the nuanced relationships between words. This paper introduces Embedding Augmentation (EA), a method designed to capture natural conversational diversity while remaining computationally efficient.

Methods: Embedding Augmentation (EA)

The proposed EA framework operates at the vector level rather than the token level, avoiding the pitfalls of discrete word replacement. The process consists of three core components:

  1. Semantic Neighbor Selection: Using fastText, the model identifies the $k$ most semantically similar words for a given token. This approach is significantly faster than using large language models like BERT and ensures the neighbors are relevant to the specific domain.
  2. Soft Embedding Fusion: Instead of a simple swap, the model creates a "fused" embedding—a weighted average of the original word's vector and its neighbors' vectors. This preserves the original semantic signal while introducing controlled variety.
  3. Soft Label Supervision: During training, the model is supervised with a soft label (a probability distribution) rather than a hard one-hot vector. This encourages the model to learn that multiple words are plausible in a given context.
The Embedding Augmentation (EA) architecture, illustrating the integration of semantic-neighbor prediction and soft label supervision.

To maintain stability, the training process alternates between augmented and standard steps, preventing the model from losing grammatical coherence.

Experimental Setup

The method was evaluated on two major dialogue benchmarks:

  • PersonaChat: Conversations where speakers follow specific "persona" profiles.
  • DailyDialog: High-quality human conversations covering diverse daily life topics.

Key Results

The researchers implemented EA on both Seq2seq and Transformer architectures. As shown in the experimental results, EA consistently improves diversity metrics without sacrificing accuracy.

Comprehensive performance comparison of Seq2seq and Transformer models with and without Embedding Augmentation (EA) across PersonaChat and DailyDialog datasets.

Key findings include:

  • Diversity Boost: On the DailyDialog dataset, the Dist-3 metric (measuring unique tri-grams) for the Transformer model increased from 12.925 to 16.658.
  • Accuracy Preservation: Unlike other diversity-promoting techniques, EA often provided a slight boost to BLEU and METEOR scores.
  • Perplexity (PPL) Reduction: For Transformer models on DailyDialog, EA reduced perplexity from 77.952 to 74.020, indicating higher confidence in predictions despite the increased variety.

Discussion

  • Soft vs. Hard Augmentation: Hard replacement is brittle; replacing "dog" with "canine" can feel unnatural. By blending embeddings, the model encounters a "dog-ish" representation that is broader and more robust.
  • Efficiency: By utilizing fastText for neighbor prediction, EA achieves performance gains with minimal overhead. The EA method increased training time by ~1.98x, compared to ~5.87x for a BERT-based alternative.
  • Optimal Augmentation: Analysis revealed a "sweet spot" for the augmentation ratio ($\rho$) between 0.4 and 0.5. Beyond this point, diversity gains plateau and accuracy begins to decline.

Limitations and Future Work

Future research could address the sensitivity of the method to the quality of the semantic-neighbor model and the need for per-dataset hyperparameter tuning. Additionally, exploring how "soft" augmentation scales to massive pre-trained models like GPT-4 remains a promising direction.

Summary updated

BibTeX
@inproceedings{cao2021towards,
  author = {Yu Cao and Liang Ding and Zhiliang Tian and Meng Fang},
  title = {{Towards Efficiently Diversifying Dialogue Generation via Embedding Augmentation}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2021},
  doi = {10.1109/icassp39728.2021.9414915},
}
Figure