Best-$k$ Search Algorithm for Neural Text Generation
Jiacheng Xu, Caiming Xiong, Silvio Savarese, Yingbo Zhou

TL;DR
This paper introduces a deterministic best-$k$ search algorithm for neural text generation that balances quality and diversity, outperforming existing methods across multiple NLP tasks.
Contribution
The paper proposes a novel best-$k$ search algorithm inspired by BFS, enhancing diversity and efficiency in neural text generation without additional parameters.
Findings
Outperforms baseline methods in diversity and naturalness
Maintains high text quality across tasks
Efficient and parameter-free algorithm
Abstract
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- Search algorithm. Inspired by BFS, we greedily expand the top 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Multimodal Machine Learning Applications
MethodsPruning
