Embedding-Enhanced Giza++: Improving Alignment in Low- and High- Resource Scenarios Using Embedding Space Geometry

Kelly Marchisio, Conghao Xiong, Philipp KoehnarXiv 2021

Abstract

A popular natural language processing task decades ago, word alignment has been dominated until recently by GIZA++, a statistical method based on the 30-year-old IBM models. New methods that outperform GIZA++ primarily rely on large machine translation models, massively multilingual language models, or supervision from GIZA++ alignments itself. We introduce Embedding-Enhanced GIZA++, and outperform GIZA++ without any of the aforementioned factors. Taking advantage of monolingual embedding spaces of source and target language only, we exceed GIZA++'s performance in every tested scenario for three languages pairs. In the lowest-resource setting, we outperform GIZA++ by 8.5, 10.9, and 12 AER for Ro-En, De-En, and En-Fr, respectively.

Introduction

Word alignment—the task of identifying corresponding words between a source sentence and its translation—remains a fundamental component in natural language processing. While modern Neural Machine Translation (NMT) often uses implicit attention mechanisms, explicit alignment is still essential for tasks like annotation transfer (e.g., part-of-speech tags) and document formatting preservation.

For over two decades, GIZA++ has served as the industry standard. However, it suffers from a significant "rare word" problem. Because it relies on co-occurrence statistics, words appearing infrequently in a dataset lack sufficient evidence for accurate alignment. While newer neural aligners offer improvements, they typically require vast amounts of parallel data or computationally expensive pre-trained models. This research introduces Embedding-Enhanced GIZA++ (EE-GIZA++), a method to improve alignment by leveraging the geometric properties of word embeddings without these heavy requirements.

Methodology: Integrating Semantic Priors

EE-GIZA++ augments the traditional statistical foundations of GIZA++ with semantic information from word embeddings. The core innovation is a frequency-aware interpolation that biases the model toward semantically similar words, particularly when statistical evidence is sparse.

The EE-GIZA++ workflow: (1) mapping embeddings, (2) calculating initial alignment probabilities, (3) frequency-aware interpolation, and (4) iterative refinement.

The process involves five key steps:

  1. Cross-Lingual Mapping: Pre-trained monolingual word embeddings (e.g., fastText) are mapped into a shared space using VecMap.
  2. Similarity Calculation: Cross-lingual similarity scores (CSLS) are computed for word pairs in the parallel text.
  3. Frequency-Aware Interpolation: The model combines GIZA++’s statistical probability with the embedding-based probability. The embedding influence is weighted by the inverse of the word's frequency ($1/\text{freq}$), ensuring that the model trusts embeddings for rare words and raw statistics for frequent ones.
  4. Integration: This combined probability is injected into the Expectation-Maximization (EM) training loop.
  5. Iteration: The process repeats through the IBM Model 1 and HMM training phases.

Experimental Setup

The method was evaluated on three language pairs: German-English (De-En), Romanian-English (Ro-En), and English-French (En-Fr). Testing spanned various corpus sizes, ranging from a "tiny" setting (~500 lines) to high-resource scenarios with nearly 2 million lines. Embeddings were sourced from publicly available fastText vectors trained on Wikipedia.

Key Results

EE-GIZA++ consistently outperformed the standard GIZA++ across all tested scenarios and language pairs.

Alignment Error Rate (AER) across different corpus sizes. EE-GIZA++ (solid lines) consistently achieves lower error rates than the GIZA++ baseline (dotted lines).
  • Low-Resource Performance: The most dramatic gains occurred in the lowest-resource settings. For the "test set only" scenario, EE-GIZA++ reduced the Alignment Error Rate (AER) by 10.9 points for De-En and 12.0 points for En-Fr.
  • High-Resource Robustness: Even with 1.9 million lines of data, EE-GIZA++ provided a measurable boost (0.7 AER improvement), demonstrating that semantic priors remain beneficial even with ample statistical evidence.
  • Competitive Benchmarking: EE-GIZA++ outperformed other popular statistical aligners like eflomal and fast-align and remained competitive with more complex bilingual NMT-based models.

Discussion and Conclusion

The success of EE-GIZA++ highlights the power of using monolingual data to inform bilingual tasks. By utilizing pre-trained embeddings, the model effectively uses "semantic priors" to solve the long-tail problem of rare words.

This approach is particularly valuable for low-resource language research because it is unsupervised, CPU-based, and does not require the massive parallel datasets needed by modern neural architectures. Future work may extend this integration to more complex IBM models (3 and 4) and explore its efficacy on more morphologically diverse language pairs.

Summary updated

BibTeX
@misc{marchisio2021embedding,
  author = {Kelly Marchisio and Conghao Xiong and Philipp Koehn},
  title = {{Embedding-Enhanced Giza++: Improving Alignment in Low- and High- Resource Scenarios Using Embedding Space Geometry}},
  year = {2021},
  eprint = {2104.08721},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.08721},
}
Figure