Abstract: We present a probabilistic model that simultaneously learns alignments and distributed representations for bilingual data. By marginalizing over word alignments the model captures a larger semantic context than prior work relying on hard alignments. The advantage of this approach is demonstrated in a cross-lingual classification task, where we outperform the prior published state of the art.
Introduction
Distributed word representations, or embeddings, are foundational to modern Natural Language Processing (NLP). While techniques for learning these in monolingual settings are well-established, creating effective bilingual embeddings remains a challenge. Traditionally, researchers have relied on "hard alignments"—fixed, one-to-one mappings between words in parallel corpora. However, translation is rarely a simple substitution; meaning is often distributed across phrases and influenced by context. Hard alignments can be brittle, and errors in the alignment phase propagate to the learned representations. The authors sought a way to learn these representations that is robust to the inherent "fuzziness" of translation.
The Distributed Word Alignment (DWA) Model
The authors introduce the Distributed Word Alignment (DWA) model, which integrates word alignment and representation learning into a single probabilistic framework. DWA combines two key components:
- FASTALIGN (FA): A high-speed version of the classic IBM Model 2 for statistical word alignment.
- Log-Bilinear (LBL) Language Model: A neural approach that predicts a word based on the vector representations of its neighbors.
The "Secret Sauce": Marginalization
The core innovation is the use of marginalization. Instead of committing to the single most likely alignment for a word (e.g., "this English word definitely maps to that German word"), the DWA model calculates the probability of all possible alignments. It then "marginalizes" them—essentially taking a weighted average of all possible connections. This "soft" approach allows the model to learn from the broader semantic neighborhood of a word, making it less sensitive to errors in the alignment process.
Experimental Results
The DWA model was evaluated across several language pairs and tasks, including alignment accuracy on the FBIS (Chinese-English) and Europarl (French-English) corpora, and document classification on the Reuters RCV1/2 benchmark.
Cross-Lingual Classification
The most significant result was in document classification, where a classifier trained on English data was tested on German. DWA achieved a state-of-the-art accuracy of 76.0% in the German-to-English task, significantly surpassing the previous benchmark of 71.1% (Klementiev et al., 2012).
Alignment Performance
Despite the added complexity of learning embeddings, DWA performed on par with FASTALIGN in terms of Alignment Error Rate (AER). For instance, on the French-English Europarl corpus, it achieved an AER of approximately 16%, demonstrating that neural embeddings are just as capable of finding word matches as traditional statistical methods.
Qualitative Success
Visualizing the learned embeddings using t-SNE reveals that DWA successfully clusters semantically related words across languages. For example, words related to "presidency" (e.g., vorsitz, ratspräsidentschaft) are grouped together even if they were not explicitly aligned during training. This demonstrates that the model successfully captures semantic relationships that a strict dictionary-style mapping might miss.
Conclusion
The DWA model demonstrates that marginalizing over alignments provides a richer, more robust foundation for bilingual word representations. By moving away from rigid "hard" mappings, the model achieves superior performance in downstream tasks like cross-lingual classification. While the impact of increasing the context window ($k$) was found to be inconclusive for alignment, it provided more informative representations for classification. Future work may involve integrating DWA into full machine translation pipelines or leveraging large-scale monolingual data to further refine these embeddings.
Summary updated