
摘要
我们提出了一种架构,用于学习93种语言的联合多语言句子表示,这些语言属于30多个不同的语系并使用28种不同的书写系统。我们的系统采用单一的双向长短期记忆(BiLSTM)编码器,所有语言共享一个字节对编码(BPE)词汇表,并结合辅助解码器在公开可用的平行语料库上进行训练。这使得我们能够在仅使用英语注释数据的情况下,在生成的嵌入向量之上学习分类器,并将其无修改地迁移到93种语言中的任何一种。我们在跨语言自然语言推理(XNLI数据集)、跨语言文档分类(MLDoc数据集)和平行语料库挖掘(BUCC数据集)上的实验表明了该方法的有效性。我们还引入了一个包含112种语言对齐句子的新测试集,并展示了我们的句子嵌入在低资源语言的多语言相似性搜索中也能取得良好的结果。我们的实现、预训练的编码器和多语言测试集可在https://github.com/facebookresearch/LASER 获取。
代码仓库
facebookresearch/LASER
官方
pytorch
GitHub 中提及
transducens/LASERtrain
pytorch
GitHub 中提及
yannvgn/laserembeddings
pytorch
GitHub 中提及
Unbabel/COMET
pytorch
GitHub 中提及
jiamingkong/infoxlm_paddle
paddle
GitHub 中提及
jeongukjae/smaller-labse
tf
GitHub 中提及
Tony4469/laser-agir
pytorch
GitHub 中提及
facebookresearch/vizseq
GitHub 中提及
raymondhs/fairseq-laser
pytorch
GitHub 中提及
imamathcat/LASER_Dependencies
pytorch
GitHub 中提及
kmkwon94/ainize-laser
pytorch
GitHub 中提及
prabhakar267/LASER-improved
pytorch
GitHub 中提及
LawrenceDuan/myLASER
pytorch
GitHub 中提及
基准测试
| 基准 | 方法 | 指标 |
|---|---|---|
| cross-lingual-bitext-mining-on-bucc-chinese | Massively Multilingual Sentence Embeddings | F1 score: 92.27 |
| cross-lingual-bitext-mining-on-bucc-french-to | Massively Multilingual Sentence Embeddings | F1 score: 93.91 |
| cross-lingual-bitext-mining-on-bucc-german-to | Massively Multilingual Sentence Embeddings | F1 score: 96.19 |
| cross-lingual-bitext-mining-on-bucc-russian | Massively Multilingual Sentence Embeddings | F1 score: 93.3 |
| cross-lingual-document-classification-on | Massively Multilingual Sentence Embeddings | Accuracy: 84.78% |
| cross-lingual-document-classification-on-1 | Massively Multilingual Sentence Embeddings | Accuracy: 77.33 |
| cross-lingual-document-classification-on-10 | Massively Multilingual Sentence Embeddings | Accuracy: 69.43 |
| cross-lingual-document-classification-on-11 | Massively Multilingual Sentence Embeddings | Accuracy: 60.3 |
| cross-lingual-document-classification-on-2 | Massively Multilingual Sentence Embeddings | Accuracy: 77.95 |
| cross-lingual-document-classification-on-8 | Massively Multilingual Sentence Embeddings | Accuracy: 71.93 |
| cross-lingual-document-classification-on-9 | Massively Multilingual Sentence Embeddings | Accuracy: 67.78 |