Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Beam Search Strategies for Neural Machine Translation

About

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 to generate new translations that approximately maximize the trained conditional probability. The current beam search strategy generates the target sentence word by word from left-to- right while keeping a fixed amount of active candidates at each time step. First, this simple search is less adaptive as it also expands candidates whose scores are much worse than the current best. Secondly, it does not expand hypotheses if they are not within the best scoring candidates, even if their scores are close to the best one. The latter one can be avoided by increasing the beam size until no performance improvement can be observed. While you can reach better performance, this has the draw- back of a slower decoding speed. In this paper, we concentrate on speeding up the decoder by applying a more flexible beam search strategy whose candidate size may vary at each time step depending on the candidate scores. We speed up the original decoder by up to 43% for the two language pairs German-English and Chinese-English without losing any translation quality.

Markus Freitag, Yaser Al-Onaizan• 2017

Related benchmarks

TaskDatasetResultRank
Object HallucinationPOPE Popular
F1 Score68.95
372
Object HallucinationPOPE Adversarial
Accuracy55.5
353
Object HallucinationPOPE (Random)
F1 Score71.84
324
Multi-answer Question AnsweringMAQA
Hamming Distance0.62
52
Ordinal RegressionHelpSteer
L1 Error0.78
48
Multiple-Choice ClassificationMMLU
Accuracy80.27
47
Image CaptioningMS-COCO 2014 (test)--
43
Object Hallucination MitigationMSCOCO 2014 (val)
CHAIR Specificity Score30.1
27
Question Answering with AbstentionTriviaQA
BAS47
24
Question Answering with AbstentionSimpleQA
BAS0.17
24
Showing 10 of 20 rows

Other info

Follow for update