A New Data Normalization Method to Improve Dialogue Generation by Minimizing Long Tail Effect

Zhiqiang Zhan, Zifeng Hou, Yang ZhangarXiv 2020

Abstract

Recent neural models have shown significant progress in dialogue generation. Most generation models are based on language models. However, due to the Long Tail Phenomenon in linguistics, the trained models tend to generate words that appear frequently in training datasets, leading to a monotonous issue. To address this issue, we analyze a large corpus from Wikipedia and propose three frequency-based data normalization methods. We conduct extensive experiments based on transformers and three datasets respectively collected from social media, subtitles, and the industrial application. Experimental results demonstrate significant improvements in diversity and informativeness (defined as the numbers of nouns and verbs) of generated responses. More specifically, the unigram and bigram diversity are increased by 2.6%-12.6% and 2.2%-18.9% on the three datasets, respectively. Moreover, the informativeness, i.e. the numbers of nouns and verbs, are increased by 4.0%-7.0% and 1.4%-12.1%, respectively. Additionally, the simplicity and effectiveness enable our methods to be adapted to different generation models without much extra computational cost.

Introduction: The Monotonous Response Problem

In the field of dialogue generation, a persistent challenge is the "monotonous response" issue. Chatbots often default to safe, generic phrases like "I don't know" or "OK," which lack informativeness and fail to engage users. This behavior is fundamentally rooted in the Long Tail Phenomenon (often associated with Zipf's Law).

In any large linguistic corpus, a small number of "function words" (e.g., "the", "a", "it") appear with extreme frequency, while the vast majority of "content words" (nouns and verbs) reside in the "long tail" of the distribution, appearing much less frequently. Standard training objectives, such as Cross-Entropy loss, reward models for predicting high-probability words. Consequently, models learn to favor these high-frequency, generic terms to minimize loss, resulting in boring output.

Visualization of the Long Tail Phenomenon in word frequency distribution, where a few words dominate the total count.

Proposed Methodology

To mitigate this bias, we propose three "plug-and-play" frequency-based normalization methods that adjust the model's loss function during training. These methods use N-gram frequencies (specifically bigrams) derived from a massive 15.83 GB Wikipedia corpus to rebalance the model's perception of word importance.

  1. Log Normalization (LN): This method applies a logarithmic transformation to word pair frequencies. By "squashing" the frequency range, it reduces the mathematical dominance of common words, creating a flatter distribution.
  2. Mutual Normalization (MN): Inspired by Pointwise Mutual Information, MN divides the bigram frequency by the unigram frequency. This helps correct for biases where a word pair appears common simply because one of its constituent words is universally frequent.
  3. Log Mutual Normalization (LMN): Combining the strengths of both, LMN takes the logarithm of both bigram and unigram frequencies before division. This approach provides the most balanced probability distribution for training.

Experimental Results

The proposed methods were evaluated using Transformer-based architectures across three diverse datasets: Twitter (social media), OpenSubtitles (scripted dialogue), and Lenovo (industrial customer service).

The Log Mutual Normalization (LMN) method consistently outperformed others:

  • Diversity: Bigram diversity saw a significant boost, reaching an 18.9% increase on the Subtitle dataset.
  • Informativeness: By measuring the density of nouns and verbs, we found that LMN increased informativeness by up to 12.1%.
  • Response Quality: On the Lenovo dataset, the frequency of the top-5 most generic responses (like "ok" or "yes") plummeted by 38.0%. Furthermore, BLEU scores—measuring similarity to human responses—improved by up to 29.2% on the Subtitle dataset.

Conclusion

Our research demonstrates that complex frameworks like GANs or Reinforcement Learning are not always necessary to improve dialogue diversity. Simple, frequency-based normalization of the loss function can effectively minimize the Long Tail effect. These methods are computationally efficient and easily adaptable to various sequence-to-sequence architectures, providing a practical path toward more engaging and informative AI conversation.

Summary updated

BibTeX
@misc{zhan2020new,
  author = {Zhiqiang Zhan and Zifeng Hou and Yang Zhang},
  title = {{A New Data Normalization Method to Improve Dialogue Generation by Minimizing Long Tail Effect}},
  year = {2020},
  eprint = {2005.01278},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2005.01278},
}
Figure