Abstract
Deep-learning models for language generation tasks tend to produce repetitive output. Various methods have been proposed to encourage lexical diversity during decoding, but this often comes at a cost to the perceived fluency and adequacy of the output. In this work, we propose to ameliorate this cost by using an Imitation Learning approach to explore the level of diversity that a language generation model can reliably produce. Specifically, we augment the decoding process with a meta-classifier trained to distinguish which words at any given timestep will lead to high-quality output. We focus our experiments on concept-to-text generation where models are sensitive to the inclusion of irrelevant words due to the strict relation between input and output. Our analysis shows that previous methods for diversity underperform in this setting, while human evaluation suggests that our proposed method achieves a high level of diversity with minimal effect to the output's fluency and adequacy.
Introduction
Natural Language Generation (NLG) models are notorious for producing repetitive, "safe" outputs. While decoding strategies like Top-$k$ or Nucleus Sampling can force diversity, they often do so at the expense of fluency and adequacy. In constrained tasks like concept-to-text generation—where a model must accurately reflect a structured Meaning Representation—a single "off" word choice can trigger a cascade of errors, leading to ungrammatical or factually incorrect sentences.
Methodology: Informed Sampling
To address this trade-off, we propose Informed Sampling. The core idea is to augment the decoding process with a meta-classifier (MC) that acts as a safety filter, identifying which candidate words are "reliable" paths to a high-quality final sentence.
The Meta-Classifier and Architecture
The MC is a feed-forward neural network that evaluates candidate words based on the current state of the NLG model. During inference, the model only samples from the pool of words the MC deems reliable.
Training via Imitation Learning
To train the MC, we define an expert policy that performs "roll-outs": for a candidate word, it completes the sentence using greedy decoding and calculates the n-gram overlap (BLEU) with human references. If the result is high-quality, the word is labeled "reliable."
Because the MC's choices change the future states it encounters, we use Imitation Learning (IL) frameworks like DAGGER and LOLS. These methods allow the model to learn from its own potential mistakes during training, making the final classifier robust during actual text generation.
Experimental Results
We evaluated our approach on the MultiWOZ dataset, a large-scale multi-domain corpus for task-oriented dialogue.
- Diversity Gains: Informed Sampling significantly outperformed standard Beam Search and Greedy decoding on diversity metrics like Self-BLEU and Distinct-n.
- Reliability vs. Probability: Our results show that a word's probability in the model's distribution isn't always a perfect proxy for its reliability. Informed Sampling identifies low-probability "hidden gems" that lead to fluent, diverse sentences while filtering out higher-probability words that might lead to dead ends.
- Edge Case Robustness: In "edge case" experiments—where the model is forced to pick the least likely word in the allowed pool—Informed Sampling maintained much higher fluency and adequacy than Nucleus Sampling, which often produced nonsensical output when pushed to its limits.
Conclusion
Informed Sampling provides a principled framework for generating diverse text without sacrificing the strict constraints of concept-to-text tasks. By using Imitation Learning to train a reliability filter, we can explore the diversity latent in a model while preventing the error propagation common in traditional sampling methods. Future work will investigate the scalability of this approach to large-scale Transformer architectures.
Summary updated