Log-Linear Models for Word Alignment

Yang Liu, Qun Liu, Shouxun Lin

Abstract

This paper introduces a flexible log-linear framework for word alignment, a critical component in statistical machine translation. Unlike traditional generative models that are mathematically rigid and often asymmetric, the proposed approach allows for the seamless integration of diverse linguistic features, such as part-of-speech (POS) tags and bilingual dictionaries. By employing a greedy search algorithm with a tuned gain threshold, the model achieves significant improvements in Alignment Error Rate (AER) over standard IBM models. Experiments on Chinese-English corpora demonstrate the robustness of the framework across varying training set sizes.

Introduction

Word alignment—the task of identifying correspondences between words in a source sentence and a target sentence—is fundamental to machine translation. Historically, this task was dominated by the IBM Models, which are purely statistical and largely unsupervised. While effective, these models are difficult to extend with new linguistic information. This paper, presented at ACL 2005, proposes a shift toward a discriminative log-linear framework. This framework treats alignment as a feature-combination problem, providing a systematic way to weight and combine multiple sources of evidence.

The Limitations of Traditional Models

In the early 2000s, the "IBM Models" (1 through 5) were the state-of-the-art. However, they suffered from two primary drawbacks:

  1. Rigidity: Being generative models, they were mathematically "closed." Incorporating new data types, such as syntax or human-curated dictionaries, required a complete redesign of the model's probability equations.
  2. Directionality: These models were inherently asymmetric. Aligning English to Chinese produced different results than aligning Chinese to English. Researchers often relied on "symmetrization" heuristics (like the "Refined Method") to combine these directional results, which was often suboptimal.

Methodology

The core of the proposed approach is a Log-linear Model. Instead of a single complex equation, the probability of an alignment is calculated based on a weighted sum of various feature functions. This allows the model to treat alignment as a discriminative task where various "clues" can be weighted appropriately.

Key Features

  • IBM Model Probabilities: Used as base features to capture standard statistical alignment patterns.
  • POS Tag Transition Model: Learns the likelihood of specific Part-of-Speech tags in the source language aligning with specific tags in the target language.
  • Bilingual Dictionary: Provides additional weight to alignments found in human-curated dictionaries.

The Search Algorithm

Finding the optimal alignment in this framework is NP-complete. To address this, the authors implemented a Greedy Search Algorithm. The search begins with an empty alignment and iteratively adds the link that offers the highest probability "gain." To ensure efficiency and accuracy, a gain threshold ($t$) is used to stop the search when additional links no longer yield significant improvements.

Performance metrics vs. gain threshold.

As shown in the figure above, the gain threshold plays a crucial role in balancing precision and recall. Tuning this threshold allows the model to minimize the overall Alignment Error Rate (AER) by stopping the search at the optimal point.

Experimental Setup

The model was evaluated on a Chinese-English translation task using the following datasets:

  • Training Corpus: Ranging from 1,000 to 109,000 sentence pairs.
  • Bilingual Dictionary: Approximately 415,000 entries.
  • Development/Test Sets: 435 and 500 manually aligned sentence pairs, respectively. Feature weights ($\lambda$) were optimized using Generalized Iterative Scaling (GIS) on the development set.

Key Results

The log-linear model consistently outperformed standard IBM Model 3 and Model 5 implementations across all training sizes.

AER results for Model 5 and log-linear combinations.

The results in the table above highlight several key findings:

  • Superiority over GIZA++: On the largest training set (109K sentences), the best log-linear model (combining Model 3, POS, and Dictionary features) achieved an AER of 0.2625, a significant improvement over the 0.2748 achieved by the standard "Refined Method" for Model 5.
  • Feature Impact: The incremental addition of POS tags and dictionary information consistently reduced the error rate. This proves that linguistic "clues" provide substantial value that raw statistical data alone cannot capture.
  • Natural Symmetrization: By including both directional IBM model scores as features, the log-linear model naturally produces symmetric alignments, eliminating the need for post-processing heuristics.

Conclusion

The transition to a log-linear framework represents a major advancement in word alignment. By treating alignment as a feature engineering task, researchers can easily incorporate new linguistic insights. While the model requires a small amount of supervised data for training weights, the resulting gains in accuracy and the flexibility of the framework make it a powerful tool for modern machine translation pipelines.

Summary updated

BibTeX
@inproceedings{liu2005log,
  author = {Yang Liu and Qun Liu and Shouxun Lin},
  title = {{Log-Linear Models for Word Alignment}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2005},
  doi = {10.3115/1219840.1219897},
}
Figure