Skip to content
conftrace_
2017 EMNLP EMNLP 2017

When to Finish? Optimal Beam Search for Neural Text Generation (modulo beam size)

AbstractIn neural text generation such as neural machine translation, summarization, and image captioning, beam search is widely used to improve the output text quality. However, in the neural generation setting, hypotheses can finish in different steps, which makes it difficult to decide when to end beam search to ensure optimality. We propose a provably optimal beam search algorithm that will always return the optimal-score complete hypothesis (modulo beam size), and finish as soon as the optimality is established. To counter neural generation’s tendency for shorter hypotheses, we also introduce a bounded length reward mechanism which allows a modified version of our beam search algorithm to remain optimal. Experiments on neural machine translation demonstrate that our principled beam search algorithm leads to improvement in BLEU score over previously proposed alternatives.

❓ The Questioner
🌱 Topic Pioneer - Text Generation
🌉 Interdisciplinary Bridge - Artificial Intelligence and Natural Language Processing
📈 Trend Setter - Text Generation
🐣 Hot Topic Early Bird - beam search

More from EMNLP 2017

All EMNLP 2017 papers →