Skip to main content
QUICK REVIEW

[Paper Review] Contrastive Learning for Many-to-many Multilingual Neural Machine Translation

Xiao Pan, Mingxuan Wang|arXiv (Cornell University)|May 20, 2021
Natural Language Processing TechniquesComputer Science36 references5 citations
TL;DR

This paper proposes mRASP2, a contrastive learning framework for many-to-many multilingual neural machine translation that improves cross-lingual representation alignment using contrastive loss and data augmentation on parallel and monolingual data. It achieves state-of-the-art performance on both English-centric and non-English translation directions, with over 10 BLEU improvement on average for zero-shot and unsupervised settings compared to baselines.

ABSTRACT

Existing multilingual machine translation approaches mainly focus on English-centric directions, while the non-English directions still lag behind. In this work, we aim to build a many-to-many translation system with an emphasis on the quality of non-English language directions. Our intuition is based on the hypothesis that a universal cross-language representation leads to better multilingual translation performance. To this end, we propose mRASP2, a training method to obtain a single unified multilingual translation model. mRASP2 is empowered by two techniques: a) a contrastive learning scheme to close the gap among representations of different languages, and b) data augmentation on both multiple parallel and monolingual data to further align token representations. For English-centric directions, mRASP2 outperforms existing best unified model and achieves competitive or even better performance than the pre-trained and fine-tuned model mBART on tens of WMT's translation directions. For non-English directions, mRASP2 achieves an improvement of average 10+ BLEU compared with the multilingual Transformer baseline. Code, data and trained models are available at https://github.com/PANXiao1994/mRASP2.

Motivation & Objective

  • To close the representation gap between different languages in multilingual NMT to improve knowledge transfer across all language pairs.
  • To improve translation quality for non-English directions, which are often underperforming in existing multilingual systems.
  • To develop a unified many-to-many multilingual model that performs well across all language pairs, not just English-centric ones.
  • To leverage both parallel and monolingual data effectively through aligned data augmentation to enhance representation learning.
  • To achieve competitive or superior performance compared to strong bilingual models like mBART, especially in zero-shot and unsupervised translation.

Proposed method

  • mRASP2 employs a contrastive learning scheme that minimizes the distance between representations of parallel sentence pairs (positive pairs) while maximizing the distance from non-parallel pairs (negative pairs).
  • It uses a multilingual Transformer with a 12-layer encoder and decoder, enhanced with layer normalization and pre-norm residual connections for better training stability.
  • The model incorporates language identification tokens before each sentence to enable multi-language input and output.
  • Aligned data augmentation is applied to both parallel and monolingual corpora by replacing words with synonyms using a synonym dictionary, creating pseudo-parallel or pseudo-self-parallel examples.
  • The framework unifies training on real parallel data and augmented pseudo-pairs using a combined loss: standard cross-entropy loss and contrastive loss.
  • Contrastive learning is applied on the encoder representations of aligned and non-aligned sentence pairs to encourage semantic consistency across languages.

Experimental results

Research questions

  • RQ1Can contrastive learning effectively reduce the representation gap between different languages in a multilingual NMT model?
  • RQ2Does data augmentation on both parallel and monolingual corpora improve multilingual translation performance, especially for low-resource or non-English directions?
  • RQ3Can a single unified model achieve competitive performance on both English-centric and non-English translation directions without relying on pivot-based methods?
  • RQ4To what extent does contrastive learning improve zero-shot and unsupervised translation performance in a many-to-many multilingual setup?
  • RQ5How does mRASP2 compare to strong bilingual models like mBART across diverse WMT translation benchmarks?

Key findings

  • For English-centric directions, mRASP2 outperforms the multilingual Transformer baseline on 20 WMT translation directions and achieves competitive or better results than mBART on 10 WMT benchmarks.
  • On non-English directions, mRASP2 achieves an average improvement of over 10 BLEU points compared to the multilingual Transformer baseline.
  • For zero-shot and unsupervised translation, mRASP2 achieves strong results across 36 translation directions, with an average BLEU improvement of over 10 points compared to the baseline.
  • The model demonstrates consistent performance gains across all language pairs, indicating effective cross-lingual knowledge transfer.
  • Visualization shows that contrastive learning successfully reduces the representation gap between different languages in the shared embedding space.
  • The combination of contrastive learning and aligned data augmentation leads to more robust and generalizable multilingual representations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.