Abstract
This work exploits translation data as a source of semantically relevant learning signal for models of word representation. In particular, we exploit equivalence through translation as a form of distributed context and jointly learn how to embed and align with a deep generative model. Our EmbedAlign model embeds words in their complete observed context and learns by marginalisation of latent lexical alignments. Besides, it embeds words as posterior probability densities, rather than point estimates, which allows us to compare words in context using a measure of overlap between distributions (e.g. KL divergence). We investigate our model's performance on a range of lexical semantics tasks achieving competitive results on several standard benchmarks including natural language inference, paraphrasing, and text similarity.
Introduction
Traditional word embedding techniques, such as Word2Vec or GloVe, are rooted in the distributional hypothesis: the idea that words appearing in similar contexts share similar meanings. Typically, "context" is defined by a local window of neighboring words within a single language. However, this approach often struggles with polysemy and fails to capture deeper semantic nuances.
This paper introduces EMBEDALIGN, a model that leverages translation as a powerful "indirect" semantic signal. By jointly learning to align words across languages and produce word embeddings, EMBEDALIGN "triangulates" meaning through bilingual data. If an English word and a French word are frequently aligned in a parallel corpus, they almost certainly share a core meaning. The challenge addressed here is building a model that can mine this bilingual signal to create superior monolingual embeddings.
The EMBEDALIGN Model
EMBEDALIGN is formulated as a deep generative model within a Variational Autoencoder (VAE) framework. The generative process for a pair of sentences (L1 and L2) involves sampling latent embeddings from a Gaussian prior, generating L1 words, sampling alignments, and finally generating L2 words conditioned on the aligned L1 embeddings.
Key Innovations
- Embeddings as Densities: Unlike standard models that represent a word as a single point (vector), EMBEDALIGN represents a word as a posterior probability distribution (a Gaussian with a mean and a variance). This allows the model to express uncertainty and represent the "breadth" of a word's meaning.
- Variational Inference: A Bidirectional RNN (BiRNN) serves as an inference network, mapping observed text to latent distributions. This ensures that the embedding for a word like "bank" changes based on whether the surrounding words are "river" or "money."
- Efficiency: To handle large vocabularies, the model employs Complementary Sum Sampling (CSS), an efficient method to approximate the softmax function during training.
Experimental Evaluation
The model was trained on several standard corpora, including Europarl-v7 (English-French and English-German) and the Giga English-French web corpus. Evaluation spanned a variety of tasks: word alignment, lexical substitution (using the LST dataset), and sentence-level semantics via the SentEval framework.
Results and Discussion
In word alignment tasks, EMBEDALIGN demonstrated strong performance. On the English-French dataset, it outperformed the classic IBM Model 1 and approached the accuracy of the more complex IBM Model 2, proving it learns highly accurate cross-lingual correspondences.
For lexical substitution, the model achieved a Generalized Average Precision (GAP) of 42.72, proving highly effective at identifying synonyms in context. Furthermore, in the SentEval suite, EMBEDALIGN models were competitive with or superior to Skip-Gram and Neural Machine Translation (NMT) encoders across tasks like sentiment analysis and textual entailment. Notably, on the SimLex-999 benchmark—which measures true semantic similarity rather than simple association—EMBEDALIGN outperformed Skip-Gram on several benchmarks.
Conclusion
EMBEDALIGN offers a robust framework for learning semantically rich word representations by exploiting bilingual signals. By representing words as distributions and utilizing a deep generative approach, it captures context-dependent meanings that survive translation. A crucial feature is that while the model trains on bilingual data, the inference network only needs monolingual text at test time, making it a drop-in replacement for standard embeddings. Future work may explore multi-language triangulation and the incorporation of global sentence-level context.
Summary updated