Towards Multi-Sense Cross-Lingual Alignment of Contextual Embeddings

Linlin Liu, Thien Hai Nguyen, Shafiq R. Joty, Lidong Bing, Luo Si

Introduction

Cross-lingual word embeddings (CLWE) are essential for enabling zero-shot transfer in NLP, allowing models trained in one language (e.g., English) to be applied to others (e.g., Japanese or German). While contextual models like BERT and ELMo generate dynamic embeddings, current alignment methods often treat them in a "sense-agnostic" manner. Typically, these methods average all contextual embeddings of a word to create a single anchor point in the shared vector space. This approach fails to account for polysemy, where a single word has multiple distinct meanings.

The Challenge of Polysemy

When a word like "bank" can refer to both a financial institution and a riverbank, sense-agnostic alignment creates a mismatched (anisomorphic) embedding space. In English, a contextual model might cluster these senses relatively close together. However, in a target language like Japanese, these meanings are represented by entirely different words ("銀行" and "岸"), which reside in distant parts of the embedding space. Forcing a single English anchor to map to two distant Japanese points results in poor alignment and degraded performance on downstream tasks.

Visualization of cross-lingual sense alignment for polysemous words like "bank" across English, Japanese, and Chinese.

Proposed Methodology

To address this, the authors propose a framework that aligns contextual embeddings at the sense level during pretraining, requiring only simple bilingual dictionaries rather than expensive parallel corpora.

Sense-Aware Pretraining

The core of the approach is a Sense-Aware Cross Entropy Loss. Instead of a single output embedding per word, the model maintains $S$ distinct "sense vectors." During training, an online k-means clustering algorithm assigns the current contextual representation to the most relevant sense cluster. To ensure stability in high-dimensional space, the model uses a shared projection matrix (PCA) to reduce dimensionality before clustering.

Overview of the sense-aware pretraining architecture for both LSTM and Transformer models, alongside the sense clustering mechanism.

Cross-Lingual Alignment

For cross-lingual transfer, the model employs a Sense-Level Translation Objective. Using a bilingual dictionary, the model is trained to predict the correct sense-level translation in the target language based on the English context. This explicitly pulls the relevant sense clusters of different languages together. Redundant or rarely used sense vectors are dynamically pruned during training to maintain efficiency.

Experimental Results

The authors evaluated their models (SaELMo and SaBERT) across several benchmarks:

  • Word Sense Disambiguation (WSD): The sense-aware models consistently outperformed standard ELMo and BERT-Tiny, proving that the loss function effectively captures distinct meanings.
  • Zero-Shot Transfer: On tasks like Named Entity Recognition (NER), Sentiment Classification, and Natural Language Inference (XNLI), the bilingual models achieved significant improvements over sense-agnostic baselines.
  • Efficiency: Notably, the Bi-SaELMo model outperformed much larger models like XLM-R and mBERT on German zero-shot NER, despite being trained on substantially less data.

Conclusion

This research demonstrates that explicit sense modeling is crucial for high-quality cross-lingual alignment. By incorporating sense-aware objectives into pretraining, the model can better navigate the complexities of polysemy. Importantly, the extra parameters used for sense selection are discarded after training, resulting in a final model with zero inference overhead compared to standard architectures. Future work aims to scale this framework from bilingual pairs to unified multilingual models.

Summary updated

BibTeX
@inproceedings{liu2022towards,
  author = {Linlin Liu and Thien Hai Nguyen and Shafiq R. Joty and Lidong Bing and Luo Si},
  title = {{Towards Multi-Sense Cross-Lingual Alignment of Contextual Embeddings}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
}
Figure