Skip to main content
QUICK REVIEW

[Paper Review] Jointly Measuring Diversity and Quality in Text Generation Models

Ehsan Montahaei, Danial Alihosseini|arXiv (Cornell University)|Apr 8, 2019
Topic ModelingComputer Science19 references11 citations
TL;DR

This paper proposes a unified framework for jointly evaluating text generation models on both quality and diversity by introducing MS-Jaccard (n-gram based) and FBD (feature-based using BERT) metrics, along with distributional divergences for oracle settings. The key contribution is a set of metrics that correlate strongly with human judgment and model behavior across temperature-variation spectra, outperforming isolated metrics like BLEU or Self-BLEU.

ABSTRACT

Text generation is an important Natural Language Processing task with various applications. Although several metrics have already been introduced to evaluate the text generation methods, each of them has its own shortcomings. The most widely used metrics such as BLEU only consider the quality of generated sentences and neglect their diversity. For example, repeatedly generation of only one high quality sentence would result in a high BLEU score. On the other hand, the more recent metric introduced to evaluate the diversity of generated texts known as Self-BLEU ignores the quality of generated texts. In this paper, we propose metrics to evaluate both the quality and diversity simultaneously by approximating the distance of the learned generative model and the real data distribution. For this purpose, we first introduce a metric that approximates this distance using n-gram based measures. Then, a feature-based measure which is based on a recent highly deep model trained on a large text corpus called BERT is introduced. Finally, for oracle training mode in which the generator's density can also be calculated, we propose to use the distance measures between the corresponding explicit distributions. Eventually, the most popular and recent text generation models are evaluated using both the existing and the proposed metrics and the preferences of the proposed metrics are determined.

Motivation & Objective

  • To address the limitation of existing metrics that evaluate either quality (e.g., BLEU) or diversity (e.g., Self-BLEU) in isolation, ignoring the trade-off between the two.
  • To develop a symmetric, joint evaluation metric that penalizes models for generating low-quality or low-diversity outputs, including mode-collapsed generations.
  • To introduce a BERT-based feature-space metric (FBD) inspired by Fréchet Inception Distance (FID) for image generation, adapted to natural language.
  • To provide a principled evaluation method for oracle training settings where the true data distribution is known, using divergences like Bhattacharyya distance.
  • To validate the proposed metrics on real-world and synthetic datasets, demonstrating consistency with qualitative model behavior across temperature variations.

Proposed method

  • Proposes MS-Jaccard, a symmetric n-gram-based metric that computes the Jaccard similarity between sets of generated and reference sentences, capturing both quality and coverage.
  • Introduces FBD (Feature-Based Distance), a metric that computes the Fréchet distance between the feature distributions of real and generated texts using BERT embeddings as the feature extractor.
  • For oracle settings, proposes using the Bhattacharyya distance between the learned model distribution and the true data distribution (oracle), enabling direct distributional comparison.
  • Employs temperature scaling during inference to generate diverse outputs across a spectrum, enabling analysis of model behavior in quality-diversity space.
  • Uses NLL (Negative Log-Likelihood) and entropy as baseline quality and diversity measures, respectively, for comparison.
  • Applies polynomial fitting to model performance across temperature values to visualize and compare quality-diversity trade-offs.

Experimental results

Research questions

  • RQ1Can a single metric effectively capture both the quality and diversity of text generation models without relying on isolated metrics like BLEU or Self-BLEU?
  • RQ2How well do the proposed metrics (MS-Jaccard and FBD) correlate with the actual quality-diversity behavior of models across varying inference temperatures?
  • RQ3To what extent do the proposed metrics align with human evaluation and dominance ordering of models in quality-diversity space?
  • RQ4Can BERT-based feature representations enable a robust, transferable evaluation metric for text generation, analogous to FID in image generation?
  • RQ5How do distributional divergences (e.g., Bhattacharyya) perform in oracle settings where the true data distribution is known?

Key findings

  • MS-Jaccard4 shows consistent ordering of models across datasets (COCO, EMNLP2017, IMDB), matching the dominance observed in full temperature-spectrum analysis (e.g., MLE > MaliGAN > RankGAN > SeqGAN).
  • FBD scores correlate highly with the quality-diversity behavior observed across temperature settings, particularly in the EMNLP2017 and IMDB datasets.
  • The proposed metrics (1−MS-Jaccard4 and FBD) exhibit high Pearson correlation (r > 0.8) with each other and with NLL on real-world datasets, indicating strong consistency.
  • On the Oracle dataset, the Bhattacharyya distance between model and oracle distributions correctly ranks model performance, confirming its validity in closed-form settings.
  • The metrics successfully identify mode collapse: models with low diversity (e.g., SeqGAN) receive high scores on BLEU but low scores on MS-Jaccard and FBD, reflecting their failure to generate diverse outputs.
  • The use of temperature scaling reveals that the proposed metrics can predict model behavior across the entire quality-diversity spectrum without requiring exhaustive evaluation at every temperature.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.