Dual-Alignment Pre-training for Cross-lingual Sentence Embedding

Ziheng Li, Shaohan Huang, Zihan Zhang, Zhi-Hong Deng, Qiang Lou +5 more
5/16/2023
cs.CLcs.AI

Official code: ChillingDream/DAP (24 stars, MIT, last commit 2024-08-21).

Abstract

Recent studies have shown that dual encoder models trained with the sentence-level translation ranking task are effective methods for cross-lingual sentence embedding. However, our research indicates that token-level alignment is also crucial in multilingual scenarios, which has not been fully explored previously. Based on our findings, we propose a dual-alignment pre-training (DAP) framework for cross-lingual sentence embedding that incorporates both sentence-level and token-level alignment. To achieve this, we introduce a novel representation translation learning (RTL) task, where the model learns to use one-side contextualized token representation to reconstruct its translation counterpart. This reconstruction objective encourages the model to embed translation information into the token representation. Compared to other token-level alignment methods such as translation language modeling, RTL is more suitable for dual encoder architectures and is computationally efficient. Extensive experiments on three sentence-level cross-lingual benchmarks demonstrate that our approach can significantly improve sentence embedding. Our code is available at https://github.com/ChillingDream/DAP.

View on arXivView PDF

Code Implementations(1)

ChillingDream/DAPOfficial100%
MIT

ACL 2023 Dual-Alignment Pre-training for Cross-lingual Sentence Embedding

242Shell, PythonMay 14, 20232 years agoMIT

Similar Papers

Cite this paper

@article{li2023dualalignment,
  title  = {Dual-Alignment Pre-training for Cross-lingual Sentence Embedding},
  author = {Ziheng Li and Shaohan Huang and Zihan Zhang and Zhi-Hong Deng and Qiang Lou and Haizhen Huang and Jian Jiao and Furu Wei and Weiwei Deng and Qi Zhang},
  year   = {2023},
  eprint = {2305.09148},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.09148v1}
}

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

Discussion