Conditional language models (CLMs) have seen significant success in tasks like machine translation, where the goal is typically to find the single most probable output sequence. However, in open-ended generation tasks—such as creative writing, image captioning, or dialogue—the objective shifts toward generating a set of diverse, high-quality candidates. Standard decoding algorithms like Beam Search often fail here, producing semantically redundant lists (e.g., "A bus is stopped" vs. "A bus stopped"). Conversely, stochastic methods like Random Sampling can introduce diversity at the expense of grammatical correctness and coherence. This paper systematically evaluates various "diverse decoding" strategies to navigate this fundamental trade-off.
Decoding Strategies
The authors categorize existing and proposed decoding methods into three main groups: standard baselines, beam search extensions, and post-decoding processing.
Standard baselines include Greedy Search, Beam Search, and Random Sampling (often with temperature or top-s filtering). Beam search extensions attempt to enforce diversity during the search process by adding noise (NPAD), capping parent-child hypotheses (Top-g Capping), or penalizing token overlap (Hamming Diversity Reward).
A key contribution of this work is Post-Decoding Clustering (PDC). Instead of modifying the search algorithm, PDC generates a large pool of candidates (e.g., 100) via over-sampling and then clusters them using BERT-based sentence embeddings. The highest-likelihood candidate from each cluster is selected, ensuring the final set is both diverse and high-quality.
The Quality-Diversity Trade-off
A central finding of the research is the stark negative correlation between human-perceived quality (fluency and adequacy) and automated diversity metrics (such as Dist-k or Ent-k).
As shown in the analysis, increasing diversity often leads to a drop in fluency. Interestingly, human-judged "interestingness" does not always align with automated diversity metrics, suggesting that simple n-gram counts do not fully capture what makes a response engaging. In image captioning, the authors observed a strong Pearson correlation of -0.84 between diversity (Dist-2) and quality (SPICE), reinforcing the difficulty of optimizing both simultaneously.
Key Results and Insights
- Dialogue Performance: Clustered Beam Search and Standard Beam Search combined with PDC yielded the best balance of fluency and interestingness. Over-sampling 100 candidates and filtering down to 10 proved significantly more effective than generating only 10 candidates directly.
- Image Captioning Performance: Random sampling with temperature $T=1.0$, top-10 capping, and PDC emerged as the most effective strategy when balancing SPICE (quality) and Ent-4 (diversity) scores.
- Task Sensitivity: The effectiveness of diversity strategies depends on the task's inherent ambiguity. Image captioning is more grounded and less ambiguous than dialogue, meaning the model's probability mass is more concentrated, which affects how filtering methods perform.
Conclusion
While Post-Decoding Clustering (PDC) offers a robust way to achieve high-quality diversity, it comes with increased computational latency due to the over-sampling requirement. Furthermore, the "interestingness paradox" highlights a critical gap in current automated evaluation metrics. Future work should focus on developing more sophisticated metrics for semantic diversity and reducing the computational overhead of over-sampling pipelines.
Summary updated