Best-First Beam Search

By Clara Meister, Ryan Cotterell, Tim Vieira. 2020

89 citations recorded by the source corpus.

Abstract Decoding for many NLP tasks requires an effective heuristic algorithm for approximating exact search because the problem of searching the full output space is often intractable, or impractical in many settings. The default algorithm for this job is beam search—a pruned version of breadth-first search. Quite surprisingly, beam search often returns better results than exact inference due to beneficial search bias for NLP tasks. In this work, we show that the standard implementation of beam search can be made up to 10x faster in practice. Our method assumes that the scoring function is monotonic in the sequence length, which allows us to safely prune hypotheses that cannot be in the final set of hypotheses early on. We devise effective monotonic approximations to popular nonmonontic scoring functions, including length normalization and mutual information decoding. Lastly, we propose a memory-reduced variant of best-first beam search, which has a similar beneficial search bias in terms of downstream performance, but runs in a fraction of the time.

Subfields: Prompting & Reasoning

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Prompting & Reasoning

  1. Yejin Choi
  2. Ronan Le Bras
  3. Luke S. Zettlemoyer
  4. Sean Welleck
  5. Jungo Kasai
  6. Noah A. Smith
  7. Rowan Zellers
  8. Lianhui Qin

Citations in the corpus