Introduction
In the development of Statistical Machine Translation (SMT) systems, there is a persistent trade-off between translation quality (measured by BLEU) and latency. While researchers often prioritize maximizing BLEU scores, real-world commercial applications require systems that can translate text in real-time. This paper introduces an efficient method to optimize SMT systems for both quality and decoding speed using Bayesian Optimization (BO) with noisy constraints.
The Challenge of Speed-Constrained Tuning
Standard tuning methods, such as Minimum Error Rate Training (MERT), typically focus on optimizing feature weights while ignoring decoder parameters like pruning thresholds and reordering limits. These parameters have a profound impact on system speed. Manually tuning them is computationally prohibitive because every configuration change requires re-decoding an entire test set. The authors address this by automatically finding parameters that maximize quality while ensuring the system maintains a specific "words-per-minute" (wpm) threshold.
Methodology: Bayesian Optimization for SMT
The proposed approach utilizes Bayesian Optimization to optimize the "black-box" function of decoder performance, which is expensive to evaluate. The framework consists of four key components:
- Gaussian Processes (GP): GPs are used to model the complex relationship between decoder parameters and two outputs: the BLEU score and decoding speed.
- Constrained Optimization: The objective is redefined to find the highest BLEU score such that the probability of the decoding speed exceeding a threshold $t$ is very high (e.g., 99%).
- Predictive Entropy Search with Constraints (PESC): This acquisition function guides the BO by selecting parameter sets that provide the most information about the global optimum while respecting the speed constraint.
- Decoupling: To improve efficiency, the authors measure speed on a small subset (50 sentences) while measuring BLEU on the full set. Since speed is cheaper to measure, the BO can query it more frequently to refine its internal model without the high cost of full translation.
Key Insights: Handling Noisy Speed Data
A critical finding of this research is that decoding speed measurements are heteroscedastic, meaning the variance or noise in the measurements changes depending on the settings. Specifically, fast settings exhibit much wider speed fluctuations than slow ones. To mitigate this, the authors applied a log-transformation to the speed data, allowing the Gaussian Process to model the noise more accurately.
Furthermore, the authors found that BO's advantage over traditional methods is most pronounced when speed constraints are strict (e.g., 5000 wpm). In these difficult optimization landscapes, BO's intelligent exploration significantly outperforms random or grid searches.
Experimental Results
The approach was evaluated across three language pairs: Spanish-to-English, English-to-German, and Chinese-to-English. The results demonstrated significant improvements in tuning efficiency and system performance:
- Efficiency: In Spanish-to-English tasks, BO found optimal parameters in approximately 70 minutes. In contrast, random search required 160 minutes, and grid search took 6 hours to reach comparable quality.
- Quality Maintenance: BO consistently identified configurations that matched the BLEU scores of "slow" baseline systems while operating at speeds orders of magnitude faster (e.g., increasing from 93 wpm to over 2,000 wpm with negligible quality loss).
- Complex Tasks: For the Chinese-to-English task, which involves complex reordering, BO successfully found high-performing "fast" configurations that baseline methods could not reach within the same time budget.
Conclusion and Future Work
While Bayesian Optimization offers a powerful tool for SMT tuning, it is not without limitations. The $O(n^3)$ computational complexity of Gaussian Processes means that for very long tuning runs, the time spent calculating the next iteration may become significant. Additionally, speed constraints satisfied on a tuning set are not guaranteed to hold perfectly on diverse test sets, though they generally correlate well.
Future research directions include using Warped GPs to better model the noisy nature of decoding speed and exploring multi-task optimization to share parameter insights across different language pairs.
Summary updated