[Paper Review] Breaking the Beam Search Curse: A Study of (Re-)Scoring Methods and Stopping Criteria for Neural Machine Translation
This paper identifies the root cause of the beam search curse in neural machine translation—beam size increases lead to shorter translations due to length ratio distortion—and proposes hyperparameter-free rescoring methods, including BP-Norm and bounded word-reward with predicted length, that improve BLEU by +2.0 over length normalization. It also introduces optimal stopping criteria that boost performance by +0.9 BLEU, achieving state-of-the-art results on Chinese-to-English translation.
Beam search is widely used in neural machine translation, and usually improves translation quality compared to greedy search. It has been widely observed that, however, beam sizes larger than 5 hurt translation quality. We explain why this happens, and propose several methods to address this problem. Furthermore, we discuss the optimal stopping criteria for these methods. Results show that our hyperparameter-free methods outperform the widely-used hyperparameter-free heuristic of length normalization by +2.0 BLEU, and achieve the best results among all methods on Chinese-to-English translation.
Motivation & Objective
- To explain the underlying cause of the beam search curse, where increasing beam size degrades translation quality despite greater search capacity.
- To address the issue of shorter translations generated with larger beams by formalizing and improving existing rescoring methods.
- To develop hyperparameter-free rescoring techniques that outperform length normalization without requiring tuning on dev sets.
- To investigate optimal stopping criteria that enhance beam search performance by controlling generation length dynamically.
- To demonstrate the effectiveness of proposed methods on low-resource, long-sequence translation tasks, particularly Chinese-to-English.
Proposed method
- Proposes BP-Norm, a rescoring method that normalizes the model score using a brevity penalty derived from the ratio of generated to reference length, without requiring hyperparameters.
- Introduces bounded word-reward, a rescoring mechanism that applies a fixed reward to each generated word, with the reward bound set by predicted sequence length to avoid over-generation.
- Employs a length prediction model to estimate the target sequence length during inference, which informs the upper bound for beam search and guides the bounded word-reward mechanism.
- Introduces optimal stopping criteria that dynamically halt beam search when the expected length is reached, improving length ratio control and translation quality.
- Uses a hybrid approach combining length prediction with rescoring to maintain high BLEU scores across varying beam sizes.
- Evaluates all methods using standard NMT training and inference pipelines, with beam search enhanced by rescoring and stopping rules.
Experimental results
Research questions
- RQ1Why does increasing beam size beyond 5 degrade translation quality in neural machine translation, despite greater search capacity?
- RQ2How can rescoring methods be designed to be hyperparameter-free while outperforming length normalization in BLEU score?
- RQ3What is the impact of optimal stopping criteria on beam search performance, particularly in controlling translation length and improving BLEU?
- RQ4Can predicted sequence length improve the robustness and quality of beam search across diverse input lengths?
- RQ5How do different rescoring strategies compare in terms of BLEU score, length ratio, and generalization across long and short sequences?
Key findings
- The beam search curse is primarily caused by beam size increases leading to shorter translations due to length ratio distortion, not data uncertainty or copying issues.
- The proposed hyperparameter-free method BP-Norm improves BLEU by +2.0 over the widely used length normalization baseline on Chinese-to-English translation.
- Optimal stopping criteria alone improve the performance of length normalization by +0.9 BLEU, demonstrating its significant impact.
- With optimal stopping and length prediction, the bounded word-reward method achieves the highest BLEU score of 40.14 on the test set with large beams (b=39–41).
- The BP-Norm method achieves comparable performance to more complex methods like bounded adaptive-reward and bounded word-reward with r=1.4, but without requiring hyperparameter tuning.
- All proposed methods maintain length ratios close to 1.0, especially on longer input sequences, which are typically more challenging for NMT systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.