When to Finish? Optimal Beam Search for Neural Text Generation (modulo beam size)
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.
Code (0)
등록된 구현이 없습니다.
Tasks
Image CaptioningMachine TranslationText GenerationTranslationSimilar Papers 제목 키워드 기반
Learning to Stop in Structured Prediction for Neural Machine Translation
Beam search optimization resolves many issues in neural machine translation. However, this method lacks principled stopping criteria and does not learn how to stop during training, and the model naturally prefers the lon…
Machine TranslationStructured PredictionTranslationFirst Finish Search: Efficient Test-Time Scaling in Large Language Models
Test-time scaling (TTS), which involves dynamic allocation of compute during inference, offers a promising way to improve reasoning in large language models. While existing TTS methods work well, they often rely on long …
Radar Enhanced Multi-Armed Bandit for Rapid Beam Selection in Millimeter Wave Communications
Multi-arm bandit (MAB) algorithms have been used to learn optimal beams for millimeter wave communication systems. Here, the complexity of learning the optimal beam linearly scales with the number of beams, leading to hi…
Multi-armed Bandits for Link Configuration in Millimeter-wave Networks
Establishing and maintaining millimeter-wave (mmWave) links is challenging due to the changing environment and the high sensibility of mmWave signal to user mobility and channel conditions. MmWave link configuration prob…
Multi-Armed BanditsEfficient Beam Search for Initial Access Using Collaborative Filtering
Beamforming-capable antenna arrays overcome the high free-space path loss at higher carrier frequencies. However, the beams must be properly aligned to ensure that the highest power is radiated towards (and received by) …
Collaborative FilteringRecommendation Systems