Stacking for Statistical Machine Translation

Majid Razmara, Anoop SarkarACL 2013

Introduction

Ensemble learning techniques, which combine multiple models to produce a single "strong" model, are widely used in machine learning to improve accuracy and stability. While techniques like bagging and boosting have been explored in Statistical Machine Translation (SMT), stacking (or stacked generalization) has remained largely untapped. This paper introduces a stacking framework for SMT that partitions training data into multiple folds to create a diverse team of "weak" learners, achieving performance boosts of up to 4.5 BLEU points.

The Challenge of Ensemble Learning in SMT

The primary challenge in SMT is that training a single, massive model on all available data can lead to overfitting or an inability to capture the nuances of different data subsets. Furthermore, simple ensemble tactics like averaging model outputs often fail to capture the complex, non-linear interactions between translation features. The authors sought a way to create a diverse set of models from the same data and a sophisticated way to "stack" them during the decoding phase.

Methodology: Stacking via Ensemble Decoding

The proposed framework involves a two-step process:

  1. Creating the Ensemble: Instead of training one model on the entire dataset, a $k$-fold cross-validation approach is used. The training data $\mathcal{D}$ is split into $k$ disjoint sets. For each fold $i$, a model $\mathcal{M}_i$ is trained on $k-1$ parts and tuned on the remaining part $\mathcal{D}^i$. This results in $k$ different models, each with slightly different feature weights and phrase tables.
  2. Stacking via Ensemble Decoding: To combine these models, the system uses Ensemble Decoding, where the decoder considers hypotheses from all $k$ models simultaneously. Several mixture operations were tested:
  3. Weighted Sum (WSUM): A linear combination of model scores.
  4. Weighted Max (WMAX): Taking the best score among the models for each rule.
  5. Product (PROD): Multiplying probabilities (log-summing).
  6. Model Switching: Dynamically choosing an "expert" model for specific source spans.
Algorithm for creating a strong stacked model through k-fold cross-validation.

The base engine used was Kriya, a hierarchical phrase-based SMT system.

Experimental Setup

The method was evaluated on French-to-English (Fr-En) and Spanish-to-English (Es-En) pairs using the Europarl (v7) corpus. Three training scales were tested:

  • Low-resource: Using only the development set (~2k sentences).
  • Small: 10k sentences + dev set.
  • Medium: 100k sentences + dev set.

Evaluation was performed on the ACL/WMT 2005 test sets.

Results and Discussion

The stacking approach consistently outperformed baseline models and Bayesian Model Averaging (BMA).

BLEU score comparisons across different language pairs, corpus sizes, and ensemble methods.

Key Insights

  • Diversity from Division: Splitting the data and forcing models to tune on different "held-out" slices captures a wider variety of translation behaviors than using the entire dataset at once.
  • Decoding-time Integration: Integrating models "on-the-fly" allows the system to benefit from the full search space of all models.
  • WMAX and WSUM Performance: Weighted Max and Weighted Sum were generally the most effective mixture operations, suggesting that letting the "best" model lead or balancing all opinions works better than strict multiplication.

Quantitative Gains

The improvements were statistically significant and visually striking. On the 100k French-English task, the baseline BLEU score was 29.53, while the stacked model (using WMAX) reached 34.07—an increase of 4.54 BLEU points. Similar gains were seen in Spanish-English, where the 100k baseline of 33.25 rose to 34.22 (WSUM). Even in the zero-training scenario, stacking improved the Fr-En score from a mean of 19.67 to 22.48.

Conclusion

While stacking provides massive performance boosts, it introduces computational overhead, as training $k$ models takes more time and storage than a single model. Future work will investigate scalability to larger datasets and domain sensitivity.

Summary updated

BibTeX
@inproceedings{razmara2013stacking,
  author = {Majid Razmara and Anoop Sarkar},
  title = {{Stacking for Statistical Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2013},
}
Figure