Skip to main content
QUICK REVIEW

[Paper Review] Trading Off Diversity and Quality in Natural Language Generation

Hugh Zhang, Daniel Duckworth|arXiv (Cornell University)|Apr 22, 2020
Natural Language Processing TechniquesComputer Science35 references19 citations
TL;DR

This paper proposes a multi-objective framework to evaluate decoding algorithms in natural language generation by simultaneously optimizing for response quality and diversity. It conducts the first large-scale evaluation across the quality-diversity spectrum, finding that nucleus sampling outperforms other methods when quality is prioritized, and empirically confirms the 'likelihood trap'—where high-probability outputs are often low quality—while introducing selective sampling as a tractable approximation to globally normalized temperature sampling.

ABSTRACT

For open-ended language generation tasks such as storytelling and dialogue, choosing the right decoding algorithm is critical to controlling the tradeoff between generation quality and diversity. However, there presently exists no consensus on which decoding procedure is best or even the criteria by which to compare them. We address these issues by casting decoding as a multi-objective optimization problem aiming to simultaneously maximize both response quality and diversity. Our framework enables us to perform the first large-scale evaluation of decoding methods along the entire quality-diversity spectrum. We find that when diversity is a priority, all methods perform similarly, but when quality is viewed as more important, the recently proposed nucleus sampling (Holtzman et al. 2019) outperforms all other evaluated decoding algorithms. Our experiments also confirm the existence of the `likelihood trap', the counter-intuitive observation that high likelihood sequences are often surprisingly low quality. We leverage our findings to create and evaluate an algorithm called \emph{selective sampling} which tractably approximates globally-normalized temperature sampling.

Motivation & Objective

  • To address the lack of consensus on decoding algorithms for open-ended language generation tasks such as dialogue and storytelling.
  • To establish a credible, human-evaluation-based framework for comparing decoding methods across the full spectrum of quality and diversity.
  • To investigate the counter-intuitive phenomenon where high model likelihood correlates with low human-rated quality—known as the 'likelihood trap'.
  • To develop and evaluate a new decoding algorithm, selective sampling, that approximates globally normalized temperature sampling without explicit partition function computation.
  • To provide a scalable, large-scale evaluation of decoding performance using over 38,000 human judgments on nearly 10,000 generated samples.

Proposed method

  • Formulates decoding as a multi-objective optimization problem maximizing both response quality and diversity, using human judgments as the quality proxy.
  • Employs a large-scale human evaluation study with 146 crowdworkers rating 100 sentences across varying model likelihoods to measure the quality-likelihood relationship.
  • Introduces selective sampling, a rejection-sampling-based method that approximates the globally normalized temperature distribution without computing the partition function.
  • Uses reverse KL divergence and competing objectives maximization to theoretically ground the selective sampling approach and enable probability density estimation for sampled sentences.
  • Evaluates multiple decoding algorithms—including greedy search, beam search, top-k, top-p (nucleus sampling), and temperature sampling—across diverse and quality-focused settings.
  • Employs a two-stage process: model training on a human-written corpus as a proxy for quality, followed by inference with various decoding strategies to optimize for desired trade-offs.

Experimental results

Research questions

  • RQ1How do different decoding algorithms perform across the entire quality-diversity spectrum in open-ended language generation?
  • RQ2To what extent is model likelihood correlated with human-rated response quality, and does this relationship exhibit a non-monotonic pattern?
  • RQ3Can a tractable decoding algorithm approximate globally normalized temperature sampling without explicit computation of the partition function?
  • RQ4Does nucleus sampling outperform other decoding strategies when quality is prioritized over diversity?
  • RQ5Can selective sampling effectively balance diversity and quality while enabling probability density estimation for generated outputs?

Key findings

  • When diversity is prioritized, all decoding algorithms perform similarly, indicating that diversity is not a differentiating factor among standard methods.
  • When quality is prioritized, nucleus sampling (top-p) significantly outperforms other decoding algorithms, including greedy search, beam search, top-k, and temperature sampling.
  • The study empirically confirms the existence of the 'likelihood trap': high-probability sequences are often rated as low quality by human annotators, despite a general positive correlation between likelihood and quality.
  • The likelihood trap is most pronounced at the extremes of the probability distribution, where both very low and very high likelihood sequences tend to be of lower human-rated quality.
  • Selective sampling provides a tractable approximation to globally normalized temperature sampling, enabling accurate probability density estimation for generated sentences without explicit partition function computation.
  • The framework enables large-scale, human-evaluated comparison of decoding methods across the full quality-diversity frontier, offering a credible benchmark for future evaluation.

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.