Abstract
Cross-lingual word embeddings (CLWE) have been proven useful in many cross-lingual tasks. However, most existing approaches to learn CLWE including the ones with contextual embeddings are sense agnostic. In this work, we propose a novel framework to align contextual embeddings at the sense level by leveraging cross-lingual signal from bilingual dictionaries only. We operationalize our framework by first proposing a novel sense-aware cross entropy loss to model word senses explicitly. The monolingual ELMo and BERT models pretrained with our sense-aware cross entropy loss demonstrate significant performance improvement for word sense disambiguation tasks. We then propose a sense alignment objective on top of the sense-aware cross entropy loss for cross-lingual model pretraining, and pretrain cross-lingual models for several language pairs (English to German/Spanish/Japanese/Chinese). Compared with the best baseline results, our cross-lingual models achieve 0.52%, 2.09% and 1.29% average performance improvements on zero-shot cross-lingual NER, sentiment classification and XNLI tasks, respectively.
Introduction
Cross-lingual word embeddings (CLWE) serve as the backbone for modern multilingual Natural Language Processing, allowing models trained in a high-resource language like English to be applied to others. However, a significant limitation of current state-of-the-art models, including BERT and ELMo, is that they are largely "sense-agnostic."
Consider the English word bank. It can refer to a financial institution or the terrain alongside a river. In languages like Japanese, these meanings are represented by entirely different words: 銀行 (ginkō) and 岸 (kishi). Standard contextual models often produce embeddings where these distinct senses are clumped too closely together. This creates an "anisomorphic" (differently shaped) distribution between languages, making it difficult to map a polysemous English word accurately to its specific counterparts in another language. This research introduces a framework to "untangle" these senses in the embedding space to facilitate cleaner cross-lingual alignment.
Methodology
The proposed framework consists of a two-stage process: sense-aware pretraining and joint cross-lingual training.
Sense-Aware Pretraining
Instead of the traditional approach of having a single output vector per word, the model maintains $S$ separate "sense vectors." To select the appropriate vector during training, the authors implement a Word Sense Selection algorithm based on an online k-means clustering approach.
A key finding in this stage was the impact of the "curse of dimensionality." Calculating similarity in high-dimensional spaces (e.g., 1024D) proved ineffective for clustering. To resolve this, the researchers learned a projection matrix ($P$) using PCA components to map embeddings to a lower-dimensional space (approximately 14-16D) specifically for the sense selection step.
Cross-Lingual Sense Alignment
The second stage involves joint training using concatenated corpora from two languages and a bilingual seed dictionary. When a word has a known translation, the model is trained with a joint loss that encourages the contextual embedding of the source word to predict the correct sense of its translation in the target language.
By forcing the model to distinguish between senses during pretraining, the embedding spaces of different languages become more "isomorphic" (structurally similar). This structural alignment naturally improves the performance of linear projection methods used in cross-lingual mapping.
Experimental Results
The researchers developed several model variants, including SaELMo (Sense-aware ELMo) and SaBERT, along with bilingual versions like Bi-SaELMo. These were evaluated across several benchmarks:
- Word Sense Disambiguation (WSD): SaELMo and SaBERT consistently outperformed standard counterparts across five test sets, proving that explicit sense modeling enhances contextual understanding.
- Zero-Shot NER: The Bi-SaELMo+Proj model achieved a state-of-the-art F1 score of 72.19 on German NER, outperforming models like mBERT that were trained on significantly larger datasets.
- Cross-Lingual Transfer: On average, the models showed improvements of 0.52% on NER, 2.09% on sentiment classification, and 1.29% on XNLI compared to the best baseline results. Gains were particularly notable on linguistically distant pairs such as English-Chinese.
Conclusion and Future Work
This work demonstrates that explicit sense modeling is crucial for high-quality cross-lingual alignment. However, some limitations remain. The current method relies on bilingual dictionaries, which may be a bottleneck for low-resource languages. Additionally, the model uses a fixed maximum number of senses ($S$) per word, whereas natural language exhibits varying degrees of polysemy. Future research will focus on extending this framework to a truly multilingual "all-to-all" alignment space and exploring dynamic sense allocation.
Summary updated