Efficient Incremental Decoding for Tree-to-String Translation

Liang Huang, Haitao MiEMNLP 2010

Abstract

Syntax-based translation models should in principle be efficient with polynomially-sized search space, but in practice they are often embarrassingly slow, partly due to the cost of language model integration. In this paper we borrow from phrase-based decoding the idea to generate a translation incrementally left-to-right, and show that for tree-to-string models, with a clever encoding of derivation history, this method runs in average-case polynomial-time in theory, and linear-time with beam search in practice. Experiments show that, with comparable translation quality, our tree-to-string system (in Python) can run more than 30 times faster than the phrase-based system Moses (in C++).

Introduction

Statistical machine translation (SMT) has traditionally faced a trade-off between the speed of phrase-based models and the structural accuracy of syntax-based models. Phrase-based systems like Moses are efficient because they generate text left-to-right, facilitating easy Language Model (LM) integration. However, they often struggle with long-distance reordering. Conversely, syntax-based models handle complex reordering via tree structures but are typically much slower due to bottom-up decoding that requires tracking boundary words at both ends of every sub-phrase, leading to a massive search space.

Methodology

The core contribution of this work is an Incremental Tree-to-String Decoder. This approach replaces traditional bottom-up parsing with a top-down, depth-first search simulated via a stack-based agenda.

Translation Rules and Reordering

The system utilizes tree-to-string rules that map source language syntactic structures to target language strings. These rules inherently handle reordering by mapping source nodes to specific positions in the target string.

A tree-to-string translation rule mapping a Chinese VP to an English structure with reordering.

Incremental Decoding Process

Instead of building the tree from the leaves up, the decoder generates the target sentence strictly from left to right. This is achieved through three core actions: Predict (expand a tree node), Scan (produce a target-language word and update LM state), and Complete (pop a fully processed rule from the stack).

By forcing left-to-right production, the decoder only needs to track the rightmost boundary words for the LM, significantly reducing the state space compared to traditional syntax decoders that must track both ends.

The incremental derivation process showing how a source tree is traversed to produce a left-to-right English translation.

To maintain tractability, the authors employ a beam search where hypotheses are grouped into "bins" based on the number of source tree nodes covered. This strategy allows the search to run in linear time relative to sentence length in practice, a significant improvement over the quadratic growth often seen in phrase-based systems.

Experimental Results

The system was evaluated on a large-scale Chinese-to-English translation task using NIST MT Evaluation sets.

  • Efficiency: The incremental decoder achieved a 30x speedup over the industry-standard Moses system. While Moses (written in C++) took 10.8 seconds for a sentence, the authors' Python implementation took only 0.32 seconds with a beam size of 10.
  • Scalability: Decoding time scales linearly with sentence length, confirming the theoretical average-case polynomial complexity.
  • Quality: Translation quality (BLEU score) remained comparable to Moses. With a beam size of 50, the system achieved a BLEU score of 29.96, outperforming Moses' 29.41.

Conclusion

This paper demonstrates that algorithmic efficiency can overcome the limitations of high-level programming languages. By adapting incremental decoding to syntax-based models, the authors provide a path toward fast, structurally-aware machine translation that rivals the speed of simpler phrase-based approaches.

Summary updated

BibTeX
@inproceedings{huang2010efficient,
  author = {Liang Huang and Haitao Mi},
  title = {{Efficient Incremental Decoding for Tree-to-String Translation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2010},
  url = {https://openreview.net/forum?id=BJZbvGf_bS},
}
Figure