Trading Off Diversity and Quality in Natural Language Generation
Hugh Zhang, Daniel Duckworth, Daphne Ippolito, Arvind Neelakantan
TL;DR
This paper reframes open-ended natural language generation as a multi-objective optimization problem balancing quality and diversity, and conducts the first large-scale, fair evaluation of decoding algorithms along the quality-diversity frontier. It formalizes a framework combining human-judged quality with Shannon entropy to define a joint objective, and experimentally shows nucleus/top-p sampling yields superior quality when diversity is controlled, while random sampling is diverse but low-quality. The study also confirms the existence of the likelihood trap, quantifies the relationship between model likelihood and human judgments, and introduces selective sampling as a tractable approach to globally-normalized temperature sampling, along with theoretical and empirical analyses of its limitations. The findings offer practical guidance for choosing decoding strategies in open-ended tasks and lay groundwork for further improvements in adaptive decoding and cross-modal generation.
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.
