Introduction
In machine translation (MT), the "decoding" phase is a critical bottleneck. To produce high-quality, fluent output, decoders must integrate a Language Model (LM). However, full LM integration is computationally expensive, leading to a massive search space. Traditionally, researchers have relied on either slow, exhaustive search or fast but less accurate k-best rescoring. This paper introduces forest rescoring, featuring "cube pruning" and "cube growing" algorithms that achieve significant speedups without sacrificing translation quality.
The Challenge of LM Integration
Statistical MT decoders represent the space of possible translations as a packed forest. Integrating an LM requires tracking "boundary words" to calculate scores for phrase combinations. This creates a non-monotonic search space where the best local sub-translation might not lead to the best global translation once combined. Traditionally, this forced a choice between full integration (slow) and k-best rescoring (potentially inaccurate).
Methods: Cube Pruning and Cube Growing
The authors propose two primary algorithms to navigate this complexity by performing "mini-rescoring" at every junction in the translation forest.
Cube Pruning
Cube pruning applies the LM locally at every node in the translation forest rather than waiting for a final k-best list. It uses a k-best parsing algorithm to efficiently identify the top candidates at each step, pruning the search space on-the-fly.
As shown in Figure 1, the algorithm treats the combination of sub-translations as a grid (or "cube" in higher dimensions), calculating the combined cost (base cost + LM combination cost) for the most promising cells. This allows the decoder to discard bad paths much earlier than in standard rescoring.
Cube Growing
Cube growing is a "lazy" version of cube pruning. Instead of a bottom-up approach that processes the whole forest, it operates top-down, requesting sub-translations only as strictly necessary to find the overall best translation. To handle the non-monotonicity of LM costs, it employs heuristic lower bounds ($h$-values), similar to an A* search.
Figure 2 illustrates the relationship between these $h$-values and the true costs. By using these heuristics, the decoder can prioritize exploring paths that are likely to yield the best overall translation while avoiding unnecessary computation at intermediate nodes.
Evaluation and Results
The algorithms were evaluated on large-scale English-to-Chinese translation tasks using a parallel corpus of 28.3 million words and the NIST 2003 test set.
- Speedup: In phrase-based decoding, cube pruning was over 10x faster than conventional beam search at the same level of search error. At the lowest error levels, the speedup reached a factor of 32x.
- Efficiency: In tree-to-string decoding, cube growing outperformed cube pruning, providing a 9.8x speedup over full integration (compared to cube pruning's 4.1x speedup).
- Quality: The algorithms maintained high translation quality (measured by BLEU scores) while using a fraction of the computational resources.
Conclusion
Forest rescoring bridges the gap between speed and accuracy in MT decoding. By performing local rescoring and utilizing lazy computation with heuristics, these techniques allow for high-quality translation at a fraction of the traditional computational cost. The authors suggest these techniques could be applied to other complex NLP tasks like head-lexicalized parsing or joint semantic role labeling.
Summary updated