When to Finish? Optimal Beam Search for Neural Text Generation (modulo beam size)
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). First posted on arXiv 31 Aug 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 1; 2023: 0; 2024: 2; 2025: 3; 2026: 1.
10 papers.
- 2021Advances and Challenges in Conversational Recommender Systems: A Surveycited by 118
- 2024FiDeLiS: Faithful Reasoning in Large Language Model for Knowledge Graph Question Answeringcited by 38
- 2021A New Approach to Overgenerating and Scoring Abstractive Summariescited by 13
- 2022A Call for Clarity in Beam Search: How It Works and When It Stopscited by 10
- 2021Massive-scale Decoding for Text Generation using Latticescited by 8
- 2025TreeCoder: Systematic Exploration and Optimisation of Decoding and Constraints for LLM Code Generationcited by 5
- 2024Towards a Path Dependent Account of Category Fluencycited by 1
- 2025Discovering Hidden Algebraic Structures via Transformers with Rank-Aware Beam GRPOcited by 1
- 2025TreeRanker: Fast and Model-agnostic Ranking System for Code Suggestions in IDEscited by 0
- 2026Designing RNAs with Language Modelscited by 0
- 2026Designing RNAs with Language Models12 Feb 2026
- 2025TreeCoder: Systematic Exploration and Optimisation of Decoding and Constraints for LLM Code Generation27 Nov 2025
- 2025Discovering Hidden Algebraic Structures via Transformers with Rank-Aware Beam GRPO21 Aug 2025
- 2025TreeRanker: Fast and Model-agnostic Ranking System for Code Suggestions in IDEs4 Aug 2025
- 2024FiDeLiS: Faithful Reasoning in Large Language Model for Knowledge Graph Question Answering22 May 2024
- 2024Towards a Path Dependent Account of Category Fluency9 May 2024
- 2022A Call for Clarity in Beam Search: How It Works and When It Stops11 Apr 2022
- 2021Massive-scale Decoding for Text Generation using Lattices14 Dec 2021
- 2021A New Approach to Overgenerating and Scoring Abstractive Summaries5 Apr 2021
- 2021Advances and Challenges in Conversational Recommender Systems: A Survey23 Jan 2021