Discriminative Word Alignment with Conditional Random Fields

Phil Blunsom, Trevor CohnACL 2006 · DOI

Introduction

In Statistical Machine Translation (SMT), word alignment is the foundational task of mapping corresponding words between source and target sentences. Traditionally, this field has been dominated by generative models, such as the IBM Models and HMMs implemented in tools like GIZA++. While effective, these models suffer from rigid independence assumptions and computational intractability for higher-order models (e.g., IBM Model 4), which often require heuristic greedy searches that do not guarantee optimal results.

This paper proposes a discriminative alternative using Conditional Random Fields (CRFs). By framing alignment as a supervised learning problem, the authors demonstrate that a model trained on a small amount of gold-standard data can outperform state-of-the-art unsupervised systems by leveraging a rich, overlapping feature set.

Methodology: The CRF Framework

The authors employ a linear-chain CRF where the labels represent the indices of target words aligned to each source word. This discriminative approach allows for the integration of diverse features without the need for complex joint probability modeling.

Feature Engineering

The strength of the CRF lies in its ability to handle a massive variety of features:

  • Statistical Hints: Probabilities from simpler models (like IBM Model 1) and Dice coefficients trained on large unlabelled corpora.
  • Syntactic and Orthographic Data: Part-of-Speech (POS) tags and string similarity metrics like edit distance and cognate detection.
  • Markov Features: These model the "jump width" between alignment points, penalizing non-monotonic jumps and encouraging sequential alignment.
Comparison of alignments with and without Markov features.

As shown in the figure above, Markov features are critical for capturing the spatial relationships between words. Without them, the model struggles to maintain the diagonal structure typical of European language pairs, which can lead to a near-doubling of the Alignment Error Rate (AER).

Experimental Results

The model was evaluated on the English-French Hansards corpus and the Romanian-English ACL 2005 shared task. Remarkably, the CRF required only 100 to 200 manually aligned sentences to surpass the performance of GIZA++ models trained on millions of unlabelled sentences.

Performance on English-French

On the Hansards dataset, the CRF achieved an AER of 5.29, a substantial improvement over the IBM Model 4 refined baseline of 9.81. The results highlight that the discriminative model excels in both precision and recall.

Performance metrics for the English-French Hansards corpus.

Performance on Romanian-English

For the Romanian-English task, the CRF achieved an AER of 25.8, outperforming the Model 4 baseline of 28.63. Even when restricted to a minimal feature set without large-scale pre-computation, the model remained competitive with IBM Model 3, proving the robustness of the supervised approach for low-resource scenarios.

Key Insights and Limitations

A major advantage of the CRF approach is global optimality. Unlike the heuristic searches used in IBM Model 4, the Viterbi algorithm allows for exact inference, ensuring the mathematically best alignment is always found given the model parameters. Furthermore, the study reveals that including "Possible" (P) alignments in training data is valuable for improving recall, even if they slightly impact precision.

However, the linear-chain CRF is inherently a sequence labeler, making it naturally many-to-one. To achieve many-to-many alignments, the authors used a symmetrization heuristic (combining Source → Target and Target → Source models). While effective, this remains a post-processing step rather than an integrated part of the model architecture. Additionally, while AER is a standard metric, its direct correlation with final translation quality (BLEU scores) remains a subject for further investigation.

Conclusion

By shifting from generative to discriminative modeling, this work provides a more flexible and accurate framework for word alignment. The ability to achieve state-of-the-art results with minimal supervised data makes this approach particularly promising for languages where massive parallel corpora are unavailable.

Summary updated

BibTeX
@inproceedings{blunsom2006discriminative,
  author = {Phil Blunsom and Trevor Cohn},
  title = {{Discriminative Word Alignment with Conditional Random Fields}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2006},
  doi = {10.3115/1220175.1220184},
}
Figure