A Multi-Domain Translation Model Framework for Statistical Machine Translation

Rico Sennrich, Holger Schwenk, Walid AransaACL 2013

Abstract: While domain adaptation techniques for SMT have proven to be effective at improving translation quality, their practicality for a multi-domain environment is often limited because of the computational and human costs of developing and maintaining multiple systems adapted to different domains. We present an architecture that delays the computation of translation model features until decoding, allowing for the application of mixture-modeling techniques at decoding time. We also describe a method for unsupervised adaptation with development and test data from multiple domains. Experimental results on two language pairs demonstrate the effectiveness of both our translation model architecture and automatic clustering, with gains of up to 1 BLEU over unadapted systems and single-domain adaptation.

Introduction

Domain adaptation is a critical challenge in statistical machine translation (SMT). A system trained on one domain, such as legal documents, often performs poorly on another, such as technical manuals. Traditional solutions involve training specialized models for each domain, but this approach is resource-intensive, rigid, and impractical for real-world web services that handle heterogeneous, unlabeled text streams. This paper introduces a flexible framework that manages multiple domains within a single system by delaying feature computation and utilizing unsupervised online clustering.

Methods

The proposed framework introduces two major innovations to make multi-domain SMT practical and scalable.

Delayed Feature Computation

Standard SMT systems pre-calculate translation probabilities during the training phase, which "bakes in" the domain bias. This framework instead stores sufficient statistics—raw counts of phrases and word alignments—from various component corpora.

Example of delayed feature computation: raw counts from different corpora are combined using weights to produce final translation probabilities.

By storing raw counts, the system can assign different weights ($\lambda$) to component corpora at the moment of decoding. This allows the system to dynamically favor data from an "IT" corpus when translating a manual, or a "Legal" corpus when translating a contract, without needing to reload models.

Unsupervised Clustering for Online Adaptation

To handle unlabeled data, the researchers developed a three-step pipeline for online adaptation:

  1. Clustering: Sentences are grouped into $k$ clusters based on their entropy relative to domain-specific language models.
  2. Optimization: Optimal translation model weights are calculated for each specific cluster.
  3. Decoding: For every new sentence, the system identifies the closest cluster and applies its optimized weights instantly.
Clustering sentences based on language model entropy using cosine similarity, which effectively separates domains.

A key insight from this process is that cosine similarity significantly outperforms Euclidean distance for clustering. While Euclidean distance focuses on the absolute magnitude of entropy (overall difficulty), cosine similarity focuses on the relative differences between domains, which is essential for identifying the specific topic.

Experimental Results

The framework was evaluated on English–German (IT, Legal, and Europarl data) and Czech–English (CzEng 0.9 corpus) tasks.

  • Translation Quality: On the English–German IT test set, BLEU scores improved from a baseline of 21.1 to 23.2 when adapting both translation and language models.
  • Consistency: On the Czech–English task, the system achieved a 1.0 BLEU gain (34.4 to 35.4).
  • Unsupervised vs. Gold: Surprisingly, unsupervised clustering with 2–8 clusters often performed as well as, or better than, using "gold" human-provided domain labels. This suggests that data-driven clusters may capture nuances that manual labels miss.

Conclusion and Future Work

The proposed architecture enables efficient multi-domain adaptation within a single decoder instance, avoiding the overhead of maintaining separate pipelines. While translation model features are calculated dynamically, language model adaptation currently remains an offline process due to computational costs. Future work aims to integrate language model adaptation fully into the decoding phase and explore interactive machine translation, where user feedback could be treated as a new component in the weight vector.

Summary updated

BibTeX
@inproceedings{sennrich2013multi,
  author = {Rico Sennrich and Holger Schwenk and Walid Aransa},
  title = {{A Multi-Domain Translation Model Framework for Statistical Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2013},
  url = {https://openreview.net/forum?id=SJ4YIieubS},
}
Figure