BilBOWA: Fast Bilingual Distributed Representations without Word Alignments

Stephan Gouws, Yoshua Bengio, Greg Corrado

Abstract

BilBOWA (Bilingual Bag-of-Words without Alignments) is a computationally efficient model for learning bilingual word embeddings without the need for expensive word-level alignments. By optimizing a simple "bag-of-words" objective on sentence-aligned parallel data alongside standard monolingual training, it achieves state-of-the-art performance on cross-lingual tasks while being up to 2,400x faster than previous joint-training methods.

The Cross-Lingual "Trilemma"

In Natural Language Processing (NLP), massive amounts of labeled data exist for English, but resources are scarce for other languages. Cross-lingual word embeddings bridge this gap by representing words from two different languages in the same vector space (e.g., ensuring "apple" and "pomme" are neighbors). However, existing methods faced a three-way trade-off:

  1. Computational Complexity: Many models used expensive layers or alignment terms scaling with the square of the vocabulary size ($O(V^2)$), leading to extreme training times.
  2. Data Requirements: Some required "word-aligned" data, necessitating slow and noisy preprocessing tools like Giza++ to map specific words between sentences.
  3. Domain Bias: Models trained exclusively on parallel text (like parliamentary proceedings) often failed to generalize to general-purpose language found in Wikipedia.

Methodology

BilBOWA addresses these issues by jointly optimizing two distinct objectives in a shared memory space using an asynchronous "Hogwild!" approach.

The BilBOWA model architecture jointly optimizing monolingual skip-gram objectives and a cross-lingual sampled L2 loss.

1. Monolingual Feature Learning

The model uses the Skip-gram model with negative sampling (similar to word2vec) to learn the internal structure of each language independently. This allows BilBOWA to leverage massive, unbiased monolingual datasets like Wikipedia to capture rich semantic relationships.

2. Cross-lingual Alignment (The BilBOWA-loss)

Instead of word-level alignments, the model uses a novel sampled bag-of-words objective. It assumes a "uniform alignment" model where every word in a source sentence is potentially related to every word in its translation. Mathematically, it minimizes the Euclidean distance between the mean vector of the English sentence and the mean vector of the French sentence. By sampling just one sentence pair per training step, the alignment cost becomes negligible.

Key Insights: The Power of Averages

A central finding of the paper is that exact word-to-word mapping is unnecessary for alignment. Forcing the "center of mass" of two translated sentences to be close in vector space provides a sufficient signal to align individual word vectors over time.

Visualization of word vector alignments: (a) English monolingual, (b) French monolingual, and (c) the joint bilingual space.

To prevent frequent words (like "the" or "and") from over-regularizing the space and pulling all vectors toward the center, the authors implemented parallel subsampling. By randomly discarding frequent words during the alignment phase, rare but meaningful words receive a stronger alignment signal.

Experimental Results

The model was evaluated using Wikipedia for monolingual training, Europarl v7 for parallel training, and Reuters RCV1/RCV2 for classification tasks.

  • Massive Speedup: On English-German document classification, BilBOWA trained in just 6 minutes, compared to 10 days for previous state-of-the-art joint models—a 2,400x improvement.
  • Superior Accuracy: Despite its speed, it achieved 75% accuracy on German-to-English classification, outperforming Bilingual Auto-encoder (BAE) and BiCVM models.
  • Word Translation: On the WMT11 English-Spanish translation task, BilBOWA improved "Precision @ 1" (the accuracy of the top-ranked translation) by 6% to 9% over previous best methods.

Limitations and Future Work

While BilBOWA removes the need for word alignments, it still requires sentence-aligned parallel text, making it unsuitable for extremely low-resource scenarios where even sentence-level translations are unavailable. Additionally, while joint training captures finer-grained relationships than "offline" mapping methods (which align pre-trained monolingual models), the latter remain faster. Future research may focus on hybrid models that combine BilBOWA’s efficiency with the strengths of parallel-only techniques for high-quality, general-purpose bilingual embeddings.

Summary updated

BibTeX
@inproceedings{gouws2015bilbowa,
  author = {Stephan Gouws and Yoshua Bengio and Greg Corrado},
  title = {{BilBOWA: Fast Bilingual Distributed Representations without Word Alignments}},
  booktitle = {International Conference on Machine Learning},
  year = {2015},
  url = {https://openreview.net/forum?id=HJ4EMnZ_Wr},
}
Figure