Lightweight Cross-Lingual Sentence Representation Learning

Zhuoyuan Mao, Prakhar Gupta, Pei Wang, Chenhui Chu, Martin Jaggi +1 more
5/28/2021
cs.CLcs.AI
transformer-attention

Official code: Mao-KU/lightweight-crosslingual-sent2vec (5 stars, Python, last commit 2021-12-08).

Abstract

Large-scale models for learning fixed-dimensional cross-lingual sentence representations like LASER (Artetxe and Schwenk, 2019b) lead to significant improvement in performance on downstream tasks. However, further increases and modifications based on such large-scale models are usually impractical due to memory limitations.

Show full abstract

In this work, we introduce a lightweight dual-transformer architecture with just 2 layers for generating memory-efficient cross-lingual sentence representations. We explore different training tasks and observe that current cross-lingual training tasks leave a lot to be desired for this shallow architecture. To ameliorate this, we propose a novel cross-lingual language model, which combines the existing single-word masked language model with the newly proposed cross-lingual token-level reconstruction task. We further augment the training task by the introduction of two computationally-lite sentence-level contrastive learning tasks to enhance the alignment of cross-lingual sentence representation space, which compensates for the learning bottleneck of the lightweight transformer for generative tasks. Our comparisons with competing models on cross-lingual sentence retrieval and multilingual document classification confirm the effectiveness of the newly proposed training tasks for a shallow model.

View on arXivView PDF

Code Implementations(1)

Lightweight Cross-Lingual Sentence Representation Learning (ACL 2021)

50Python, ShellMay 10, 20214 years ago

Similar Papers

Cite this paper

@article{mao2021lightweight,
  title  = {Lightweight Cross-Lingual Sentence Representation Learning},
  author = {Zhuoyuan Mao and Prakhar Gupta and Pei Wang and Chenhui Chu and Martin Jaggi and Sadao Kurohashi},
  year   = {2021},
  eprint = {2105.13856},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.13856}
}

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/2105.13856.svg)](https://codeofpaper.com/paper/2105.13856)

Discussion