Abstract
In Natural Language Generation (NLG) for concept-to-text tasks, models often struggle to balance output diversity with semantic accuracy and fluency. Standard stochastic sampling methods like Top-$k$ or Nucleus sampling frequently lead to disfluent or inaccurate sentences due to error propagation. This paper introduces Informed Sampling, a novel decoding strategy that utilizes a meta-classifier to identify "reliable" words during generation. Trained via Imitation Learning, this approach enables highly diverse outputs without the typical degradation in quality seen in traditional sampling methods.
The Challenge: Diversity vs. Reliability
Concept-to-text generation involves converting structured data (e.g., tables or meaning representations) into natural language. While modern models are proficient at generating accurate text, they often produce repetitive and "safe" outputs. This is a direct consequence of Maximum Likelihood Estimation (MLE) training, which penalizes deviations from common patterns in the training data.
In open-ended generation, techniques like Top-$k$ or Nucleus (p) sampling are used to inject variety. However, in constrained concept-to-text tasks, these methods often fail. Because the relationship between input data and output text is strict, selecting an unlikely word early in the sequence can lead to "error propagation." Once the model deviates from a high-probability path, it may enter a state where it can no longer produce a fluent sentence or correctly express the required data attributes (slot errors).
Methodology: The Meta-Classifier
The authors propose adding a Meta-Classifier (MC) as a gatekeeper during the decoding process. Unlike standard sampling, which relies solely on the probability distribution of the underlying NLG model, Informed Sampling uses the MC to filter the vocabulary at each step.
1. Architecture
The meta-classifier is a feed-forward neural network integrated with a pretrained NLG model (specifically an SCLSTM in this study). At each timestep $t$, the MC receives the hidden state $h_t$ and the embeddings of candidate words $x_{t+1}$. It then predicts a binary label for each candidate: "reliable" (1) or "unreliable" (0).
2. Training via Imitation Learning (IL)
Because there is no gold-standard dataset for word "reliability," the authors employ Imitation Learning. They define an expert policy (a dynamic oracle) that performs a "look-ahead": it takes a candidate word, completes the sentence using greedy decoding, and evaluates the final quality using metrics like BLEU. The MC is then trained to mimic this expert. The authors explored three IL frameworks:
- Exact Imitation: Direct training on expert labels.
- DAGGER: Exposing the classifier to its own potential mistakes during training to improve robustness.
- LOLS (Locally Optimal Learning to Search): A sophisticated approach allowing the classifier to potentially exceed the expert's initial performance.
Key Insights
The Failure of Probability as a Proxy
A central finding of the paper is that in concept-to-text tasks, probability is a poor proxy for reliability. The authors observed that the probability distribution is often extremely "peaky" (the top word frequently holds >70% of the mass). In such cases, standard stochastic sampling often picks low-confidence words that lead to immediate disfluency. Informed Sampling, by contrast, identifies words that might have lower probability but still lead to high-quality, diverse paths.
Model-Agnostic Orthogonality
Informed Sampling is model-agnostic. It does not require modifying the internal architecture of the underlying NLG model; it simply acts as a filter on the output distribution, making it compatible with various generation frameworks.
Experimental Results
The system was evaluated on the MultiWOZ dataset, a large-scale multi-domain dialogue dataset known for its diversity.
- Diversity vs. Quality: Informed Sampling achieved significantly higher diversity (measured by 1-Self-BLEU and Distinct n-grams) compared to traditional Beam Search and MMI-AntiLM.
- Semantic Accuracy: While other diversity-promoting methods like SpaceFusion suffered from high slot error rates (up to 45.2%), Informed Sampling maintained an error rate of approximately 0.8%, nearly identical to greedy decoding.
- Human Evaluation: In "edge case" tests where models were forced to pick the least likely word in their allowed pool, Informed Sampling remained significantly more fluent than Nucleus sampling, proving the MC successfully learned the boundaries of safe generation.
Conclusion and Future Work
Informed Sampling provides a robust framework for generating diverse text without sacrificing the strict accuracy required for concept-to-text tasks. While training the meta-classifier is computationally intensive due to the required rollouts, the resulting inference-time performance is highly effective. Future research may explore applying this strategy to Transformer-based architectures and broader tasks like Machine Translation.
Summary updated