Forest Rescoring: Faster Decoding with Integrated Language Models
Summary
Decoding in statistical machine translation is costly when an n-gram language model is built directly into the search, because every partial hypothesis must track target-side boundary words. Plain k-best rescoring is cheap but misses many good translations. Huang and Chiang place both phrase-based and SCFG/tree-to-string decoding in a single hypergraph (forest) framework. Within it, they generalize cube pruning, which keeps only the top k +LM items at each forest node and enumerates them roughly best-first. They also introduce cube growing, a lazy variant that computes only as many items per node as the root actually needs. Together these are called forest rescoring. On large English-to-Chinese tasks, they compare against beam-search full integration at matched search error and BLEU:
- In their phrase-based decoder (Cubit), cube pruning is more than ten times faster.
- In their tree-to-string system, cube growing gives a speed-up of up to 9.8×.
The work matters because it makes LM-integrated decoding much faster across very different translation models. It also suggests a general strategy for combining expensive models during search.
Key points
- Unified view: phrase-based and syntax-based decoding are both framed as deduction over a −LM forest (graph or hypergraph). +LM items add boundary words: the last word for phrase-based, the left and right words (a⋆b) for SCFG. Experiments use trigram LMs.
- Phrase-based setup:
- Decoder: Cubit, which reproduces Pharaoh (BLEU always within 0.004).
- Test data: 140 sentences drawn from the NIST 2003 test set.
- Limits: phrase-table limit 100 and distortion limit 4.
- Result: cube pruning is over 10× faster at every search-quality level and 32× faster at the lowest search-error level.
- Tree-to-string setup:
- Source side parsed with a Collins (1997)-style parser.
- 24.7M rules extracted using the Galley et al. (2006) method.
- Forest hyperedges binarized on the target side before decoding.
- Tree-to-string speed-ups: at the lowest search-error level, cube growing is 9.8× and cube pruning 4.1× faster than full integration. Measured in BLEU, the gains look even larger.
- Cube growing heuristic: it relies on lower-bound heuristics taken from the 100 best unique −LM translations. Computing these costs about 0.12 seconds per sentence, which is negligible.
Interesting ideas
- I1. Cheap model first, costly model on top: first build a compact forest using only the cheap model, then apply the expensive model inside the forest rather than only on a final k-best list. This middle ground suits any pipeline that joins a fast structural model with a slow scoring model, such as parsing with non-local features or joint tagging and parsing.
- I2. Best-first grid exploration: combine sorted lists from child nodes by expanding a grid best-first from its top-left corner. This finds near-top combinations without scoring all pairs, which helps wherever top-k results must be built from several ranked sub-results.
- I3. Buffer and re-sort: an interaction cost (here the LM) can make the grid non-monotonic, so items may come out in the wrong order. Collecting k items in a buffer and sorting them afterwards is a cheap repair worth reusing in approximate k-best merges.
- I4. Lazy, demand-driven computation: cube growing computes only as many items at each node as the final output requires, guided by estimates from the cheap model. Laziness of this kind generalizes to any hierarchical search where most intermediate candidates are never used.
- I5. Fair efficiency comparison: methods are compared on curves of search quality (model cost or BLEU) against work done (hypotheses or items explored), not at a single setting. This gives a fair basis for judging approximate search methods.
Cited by
- Farasa: A Fast and Furious Segmenter for Arabic
- N-gram Counts and Language Models from the Common Crawl
- Feature-Rich Translation by Quasi-Synchronous Lattice Parsing
- A Challenge Set Approach to Evaluating Machine Translation
- On the Impact of Various Types of Noise on Neural Machine Translation
- Forest-Based Translation
Cite
@inproceedings{huang2007forest,
title = {{Forest Rescoring: Faster Decoding with Integrated Language Models}},
author = {Huang, Liang and Chiang, David},
booktitle = {Proceedings of the 45th Annual Meeting of the Association of Computational Linguistics},
year = {2007},
url = {https://aclanthology.org/P07-1019/}
}References
- David Chiang. 2005. A hierarchical phrase-based model for statistical machine translation. In Proc. ACL. find our card
- David Chiang. 2007. Hierarchical phrase-based translation. Computational Linguistics, 33(2). To appear. find our card
- Michael Collins. 1997. Three generative lexicalised models for statistical parsing. In Proc. ACL. find
- M. Galley, J. Graehl, K. Knight, D. Marcu, S. DeNeefe, W. Wang, and I. Thayer. 2006. Scalable inference and training of context-rich syntactic translation models. In Proc. COLING-ACL. 0.262 0.260 find our card
- BLEU score 0.258 full-integration cube pruning cube growing 0.256 0.254 10 3 10 4 10 5 average number of +LM items explored per sentence (b) find
- Liang Huang and David Chiang. 2005. Better k-best parsing. In Proc. IWPT. find
- Liang Huang, Kevin Knight, and Aravind Joshi. 2006. Statistical syntax-directed translation with extended domain of locality. In Proc. AMTA. find our card
- Liang Huang. 2007. Binarization, synchronous binarization, and target-side binarization. In Proc. NAACL Workshop on Syntax and Structure in Statistical Translation. find
- S. Kirkpatrick, C. D. Gelatt, and M. P. Vecchi. 1983. Optimization by simulated annealing. Science, 220(4598):671–680. find
- Kevin Knight. 1999. Decoding complexity in word-replacement translation models. Computational Linguistics, 25(4):607–615. find
- Philipp Koehn. 2004. Pharaoh: a beam search decoder for phrase-based statistical machine translation models. In Proc. AMTA, pages 115–124. find
- P. M. Lewis and R. E. Stearns. 1968. Syntax-directed transduction. J. ACM, 15:465–488. find
- Yang Liu, Qun Liu, and Shouxun Lin. 2006. Tree-to-string alignment template for statistical machine translation. In Proc. COLING-ACL, pages 609–616. find our card
- Franz Joseph Och and Hermann Ney. 2004. The alignment template approach to statistical machine translation. Computational Linguistics, 30:417–449. find
- Stuart Shieber, Yves Schabes, and Fernando Pereira. 1995. Principles and implementation of deductive parsing. J. Logic Programming, 24:3–36. find
- Radu Soricut. 2006. Natural Language Generation using an Information-Slim Representation. Ph.D. thesis, University of Southern California. find
- Charles Sutton and Andrew McCallum. 2005. Joint parsing and semantic role labeling. In Proc. find
- Dekai Wu. 1996. A polynomial-time algorithm for statistical machine translation. In Proc. ACL. find
This page in Markdown → https://md.research.elamur.ai/free/en/papers/huang-2007-forest-rescoring-faster-decoding-integrated/