paper-with-me

홈 › Papers

Best-First Beam Search

2020-07-08 · Clara Meister, Tim Vieira, Ryan Cotterell

Decoding for many NLP tasks requires an effective heuristic algorithm for approximating exact search since 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.

📄 PDF Abstract BibTeX arXiv:2007.03909

Code (1)

rycolab/bfbs 공식 구현

Similar Papers 제목 키워드 기반

Rectangle Search: An Anytime Beam Search (Extended Version)

2023-12-19 · Sofia Lemons, Wheeler Ruml, Robert C. Holte, Carlos Linares López

Anytime heuristic search algorithms try to find a (potentially suboptimal) solution as quickly as possible and then work to find better and better solutions until an optimal solution is obtained or time is exhausted. The…

Heuristic Search

On NMT Search Errors and Model Errors: Cat Got Your Tongue?

2019-08-27 · IJCNLP 2019 11 · Felix Stahlberg, Bill Byrne

We report on search errors and model errors in neural machine translation (NMT). We present an exact inference procedure for neural sequence models based on a combination of beam search and depth-first search. We use our…

Machine TranslationNMTTranslation

Beam Search Strategies for Neural Machine Translation

2017-02-06 · WS 2017 8 · Markus Freitag, Yaser Al-Onaizan

The basic concept in Neural Machine Translation (NMT) is to train a large Neural Network that maximizes the translation performance on a given parallel corpus. NMT is then using a simple left-to-right beam-search decoder…

DecoderMachine TranslationNMTSentence+1

First the worst: Finding better gender translations during beam search

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Generating machine translations via beam search seeks the most likely output under a model. However, beam search has been shown to amplify demographic biases exhibited by a model. We aim to address this, focusing on gend…

DiversityRerankingSentenceTranslation

Bidirectional Beam Search: Forward-Backward Inference in Neural Sequence Models for Fill-in-the-Blank Image Captioning

2017-05-24 · CVPR 2017 7 · Qing Sun, Stefan Lee, Dhruv Batra

We develop the first approximate inference algorithm for 1-Best (and M-Best) decoding in bidirectional neural sequence models by extending Beam Search (BS) to reason about both forward and backward time dependencies. Bea…

Image CaptioningSentence