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

08/31/2018
by   Liang Huang, et al.
0

In 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 (finishing no later than the baseline). 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.

READ FULL TEXT
research
07/06/2017

Single-Queue Decoding for Neural Machine Translation

Neural machine translation models rely on the beam search algorithm for ...
research
08/25/2023

On the Depth between Beam Search and Exhaustive Search for Text Generation

Beam search and exhaustive search are two extreme ends of text decoding ...
research
02/04/2021

Incremental Beam Manipulation for Natural Language Generation

The performance of natural language generation systems has improved subs...
research
03/28/2021

On Hallucination and Predictive Uncertainty in Conditional Language Generation

Despite improvements in performances on different natural language gener...
research
08/28/2018

Breaking the Beam Search Curse: A Study of (Re-)Scoring Methods and Stopping Criteria for Neural Machine Translation

Beam search is widely used in neural machine translation, and usually im...
research
12/14/2021

Massive-scale Decoding for Text Generation using Lattices

Neural text generation models like those used for summarization and tran...
research
09/12/2019

Speculative Beam Search for Simultaneous Translation

Beam search is universally used in full-sentence translation but its app...

Please sign up or login with your details

Forgot password? Click here to reset