Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Fast Lexically Constrained Decoding with Dynamic Beam Allocation for Neural Machine Translation

About

The end-to-end nature of neural machine translation (NMT) removes many ways of manually guiding the translation process that were available in older paradigms. Recent work, however, has introduced a new capability: lexically constrained or guided decoding, a modification to beam search that forces the inclusion of pre-specified words and phrases in the output. However, while theoretically sound, existing approaches have computational complexities that are either linear (Hokamp and Liu, 2017) or exponential (Anderson et al., 2017) in the number of constraints. We present a algorithm for lexically constrained decoding with a complexity of O(1) in the number of constraints. We demonstrate the algorithms remarkable ability to properly place these constraints, and use it to explore the shaky relationship between model and BLEU scores. Our implementation is available as part of Sockeye.

Matt Post, David Vilar• 2018

Related benchmarks

TaskDatasetResultRank
Commonsense GenerationCommonGen (test)
ROUGE-L38.3
31
Constrained Machine TranslationWMT EN-DE 2017 (test)
BLEU33
14
After-visit care instruction generationAfter-visit care instruction generation dataset (test)
BERTScore23.59
14
Automatic Care Plan GenerationCustom internal dataset (test)
Relevance3.36
5
Showing 4 of 4 rows

Other info

Follow for update