Best-First Beam Search
Paper · 2020 · Clara Meister, Tim Vieira and Ryan Cotterell
Summary
Beam search is the standard approximate decoder for neural sequence models such as NMT systems, yet earlier work mostly changed its scoring function rather than its speed. Meister, Vieira and Cotterell recast decoding as a generic agenda-based procedure with configurable choice points: a priority comparator, a stopping rule, a per-length beam limit and a heuristic. Under this view, ordinary beam search is the special case that orders hypotheses by length. Ordering them by score instead gives best-first beam search. When the scoring function never increases as a sequence grows, as with standard log-probability, this method returns exactly the hypotheses that classic beam search would. It can also halt as soon as it pops its first finished hypothesis, skipping work on paths that could never stay in the beam. The authors build monotonic approximations of length normalization and mutual-information decoding, and they add a variant that caps queue memory. Experiments cover machine translation and abstractive summarization. The approach makes a ubiquitous decoder cheaper without changing its outputs.
Key points
- Best-first beam search saves about 30% over standard beam search at typical beam widths, and roughly 10x at a beam of 500. Abstractive summarization shows similar trends.
- One meta-algorithm recovers greedy search, beam search, best-first (Dijkstra) search and A* by changing a few settings. Exactness relies on the scoring function being monotonic in sequence length.
- Evaluation used IWSLT'14 De-En, MTTT Fr-En and WMT'17 De-En, measured with BLEU, search error and the number of calls to the scoring function.
- The memory-reduced version limits the queue to k·γ entries. On IWSLT'14 with beam 10 it decodes more than 3x faster with no BLEU loss, and search error stays low at γ = 5.
- Heuristic variants for length normalization and mutual information produce many search errors relative to beam search. Their BLEU nevertheless stays comparable to or slightly above the baseline.
Institutions
Fields, topics and concepts
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 18,614 worksArtificial Intelligence · 17,965 worksArts and Humanities · 17,450 worksLanguage and Linguistics · 17,296 works
Cite
Cite as Clara Meister, Tim Vieira and Ryan Cotterell. 2020. Best-First Beam Search. Transactions of the Association for Computational Linguistics.
@article{meister2020best,
title = {{Best-First Beam Search}},
author = {Clara Meister, Tim Vieira and Ryan Cotterell},
journal = {Transactions of the Association for Computational Linguistics},
year = {2020},
doi = {10.1162/tacl\_a\_00346},
url = {https://doi.org/10.1162/tacl_a_00346}
}References
- M. D. Atkinson, J. R. Sack, N. Santoro, and T. Strothotte, 1986. Min-max heaps and generalized priority queues. Communications of ACM: 29(10). DOI: https://doi.org/10.1145/6617.6621 ↗
- Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. 2015. Neural machine translation by jointly learning to align and translate. In Proceedings of the International Conference on Learning Representations.
- Ondřej Bojar, Rajen Chatterjee, Christian Federmann, Yvette Graham, Barry Haddow, Shujian Huang, Matthias Huck, Philipp Koehn, Qun Liu, Varvara Logacheva, Christof Monz, Matteo Negri, Matt Post, Raphael Rubino, Lucia Specia, and Marco Turchi. 2017. Findings of the 2017 conference on machine transla…
- Mauro Cettolo, Christian Girardi, and Marcello Federico. 2012. Wit 3 : Web inventory of transcribed and translated talks. In Proceedings of the Conference of the European Association for Machine Translation. find
- Edsger W. Dijkstra. 1959. A note on two problems in connexion with graphs. Numerische Mathematik 1(1). DOI: https://doi.org/10.1007/BF01386390 ↗
- Kevin Duh. 2018. The multitarget TED talks task. http://www.cs.jhu.edu/∼kevinduh/a/multitarget-tedtalks/ \#\# Conclusion ↗
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/meister-2020-best-first-beam-search/