Best-k Search Algorithm for Neural Text Generation
Not on the map. Why?
Abstract (arXiv)
Modern natural language generation paradigms require a good decoding strategy to obtain quality sequences out of the model. Beam search yields high-quality but low diversity outputs; stochastic approaches suffer from high variance and sometimes low quality, but the outputs tend to be more natural and creative. In this work, we propose a deterministic search algorithm balancing both quality and diversity. We first investigate the vanilla best-first search (BFS) algorithm and then propose the Best-k Search algorithm. Inspired by BFS, we greedily expand the top k nodes, instead of only the first node, to boost efficiency and diversity. Upweighting recently discovered nodes accompanied by heap pruning ensures the completeness of the search procedure. Experiments on four NLG tasks, including question generation, commonsense generation, text summarization, and translation, show that best-k search yields more diverse and natural outputs compared to strong baselines, while our approach maintains high text quality. The proposed algorithm is parameter-free, lightweight, efficient, and easy to use.
Key facts. Cited by 6 papers in the map (data through 13 Oct 2026). Builds on 48 of its 63 references that are in the map. First posted on arXiv 22 Nov 2022.
Builds on
48 of 63 references.
References · 48
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,549
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,884
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,133
- 2019The Curious Case of Neural Text Degenerationcited by 2,893
- 2016Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translationcited by 1,473
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,312
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,249
- 2018Hierarchical Neural Story Generationcited by 1,186
- 2015A Diversity-Promoting Objective Function for Neural Conversation Modelscited by 1,071
- 2020COMET: A Neural Framework for MT Evaluationcited by 1,027
36 more
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 890
- 2019DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generationcited by 842
- 2020SummEval: Re-evaluating Summarization Evaluationcited by 668
- 2019Evaluating the Factual Consistency of Abstractive Text Summarizationcited by 580
- 2019Neural Text Generation with Unlikelihood Trainingcited by 494
- 2021MAUVE: Measuring the Gap Between Neural Text and Human Text using Divergence Frontierscited by 468
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 375
- 2017Lexically Constrained Decoding for Sequence Generation Using Grid Beam Searchcited by 234
- 2021QAFactEval: Improved QA-Based Factual Consistency Evaluation for Summarizationcited by 234
- 2018Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translationcited by 181
- 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 154
- 2020Is MAP Decoding All You Need? The Inadequacy of the Mode in Neural Machine Translationcited by 138
- 2018Analyzing Uncertainty in Neural Machine Translationcited by 126
- 2019On NMT Search Errors and Model Errors: Cat Got Your Tongue?cited by 114
- 2020If beam search is the answer, what was the question?cited by 114
- 2022Locally Typical Samplingcited by 109
- 2016Guided Open Vocabulary Image Captioning with Constrained Beam Searchcited by 105
- 2021High Quality Rather than High Model Probability: Minimum Bayes Risk Decoding with Neural Metricscited by 104
- 2019Quoref: A Reading Comprehension Dataset with Questions Requiring Coreferential Reasoningcited by 100
- 2020Trading Off Diversity and Quality in Natural Language Generationcited by 94
- 2019Mixture Models for Diverse Machine Translation: Tricks of the Tradecited by 77
- 2022SummaReranker: A Multi-Task Mixture-of-Experts Re-ranking Framework for Abstractive Summarizationcited by 61
- 2021Machine Translation Decoding beyond Beam Searchcited by 55
- 2020Consistency of a Recurrent Language Model With Respect to Incomplete Decodingcited by 54
- 2022Follow the Wisdom of the Crowd: Effective Text Generation via Minimum Bayes Risk Decodingcited by 54
- 2022Quality-Aware Decoding for Neural Machine Translationcited by 49
- 2020Best-First Beam Searchcited by 40
- 2022Natural Language Deduction through Search over Statement Compositionscited by 35
- 2021PPL-MCTS: Constrained Textual Generation Through Discriminator-Guided MCTS Decodingcited by 33
- 2021MixQG: Neural Question Generation with Mixed Answer Typescited by 28
- 2022Semantic Diversity in Dialogue with Natural Language Inferencecited by 28
- 2022On the probability-quality paradox in language generationcited by 16
- 2022Summarization Programs: Interpretable Abstractive Summarization with Neural Modular Treescited by 14
- 2021A New Approach to Overgenerating and Scoring Abstractive Summariescited by 13
- 2021Massive-scale Decoding for Text Generation using Latticescited by 8
- 2022Improving abstractive summarization with energy-based re-rankingcited by 3
Built on by
Citing papers per year: 2023: 1; 2024: 4; 2025: 1.
6 papers.
- 2024JustiLM: Few-shot Justification Generation for Explainable Fact-Checking of Real-world Claimscited by 29
- 2024Automatic Metrics in Natural Language Generation: A Survey of Current Evaluation Practicescited by 20
- 2024Generating Diverse and High-Quality Texts by Minimum Bayes Risk Decodingcited by 11
- 2024Entropy Guided Extrapolative Decoding to Improve Factuality in Large Language Modelscited by 4
- 2025Advancing Decoding Strategies: Enhancements in Locally Typical Sampling for LLMscited by 4
- 2023Prompt Sketching for Large Language Modelscited by 3
- 2025Advancing Decoding Strategies: Enhancements in Locally Typical Sampling for LLMs3 Jun 2025
- 2024Automatic Metrics in Natural Language Generation: A Survey of Current Evaluation Practices17 Aug 2024
- 2024Entropy Guided Extrapolative Decoding to Improve Factuality in Large Language Models14 Apr 2024
- 2024JustiLM: Few-shot Justification Generation for Explainable Fact-Checking of Real-world Claims16 Jan 2024
- 2024Generating Diverse and High-Quality Texts by Minimum Bayes Risk Decoding10 Jan 2024
- 2023Prompt Sketching for Large Language Models8 Nov 2023