Improving Word Translation via Two-Stage Contrastive Learning

Yaoyiran Li, Fangyu Liu, Nigel Collier, Anna Korhonen, Ivan Vulić
3/15/2022
cs.CLcs.AIcs.IR
contrastive-ssl

Official code: cambridgeltl/ContrastiveBLI (36 stars, Python, MIT, PyTorch, last commit 2025-01-23).

Abstract

Word translation or bilingual lexicon induction (BLI) is a key cross-lingual task, aiming to bridge the lexical gap between different languages. In this work, we propose a robust and effective two-stage contrastive learning framework for the BLI task.

Show full abstract

At Stage C1, we propose to refine standard cross-lingual linear maps between static word embeddings (WEs) via a contrastive learning objective; we also show how to integrate it into the self-learning procedure for even more refined cross-lingual maps. In Stage C2, we conduct BLI-oriented contrastive fine-tuning of mBERT, unlocking its word translation capability. We also show that static WEs induced from the `C2-tuned' mBERT complement static WEs from Stage C1. Comprehensive experiments on standard BLI datasets for diverse languages and different experimental setups demonstrate substantial gains achieved by our framework. While the BLI method from Stage C1 already yields substantial gains over all state-of-the-art BLI methods in our comparison, even stronger improvements are met with the full two-stage framework: e.g., we report gains for 112/112 BLI setups, spanning 28 language pairs.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

Improving Word Translation via Two-Stage Contrastive Learning (ACL 2022). Keywords: Bilingual Lexicon Induction, Word Translation, Cross-Lingual Word Embeddings.

369Python, ShellFeb 24, 20221 years agoMIT
bilingual-dictionary-inductionbilingual-lexicon-extractionbilingual-lexicon-inductionbilingual-word-embeddingcontrastive-learning+13 more

Similar Papers

Cite this paper

@article{li2022improving,
  title  = {Improving Word Translation via Two-Stage Contrastive Learning},
  author = {Yaoyiran Li and Fangyu Liu and Nigel Collier and Anna Korhonen and Ivan Vulić},
  year   = {2022},
  eprint = {2203.08307},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.08307}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.08307.svg)](https://codeofpaper.com/paper/2203.08307)

Discussion