4 个月前

大规模多语言句子嵌入用于零样本跨语言迁移及更多应用

大规模多语言句子嵌入用于零样本跨语言迁移及更多应用

摘要

我们提出了一种架构,用于学习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-chineseMassively Multilingual Sentence Embeddings
F1 score: 92.27
cross-lingual-bitext-mining-on-bucc-french-toMassively Multilingual Sentence Embeddings
F1 score: 93.91
cross-lingual-bitext-mining-on-bucc-german-toMassively Multilingual Sentence Embeddings
F1 score: 96.19
cross-lingual-bitext-mining-on-bucc-russianMassively Multilingual Sentence Embeddings
F1 score: 93.3
cross-lingual-document-classification-onMassively Multilingual Sentence Embeddings
Accuracy: 84.78%
cross-lingual-document-classification-on-1Massively Multilingual Sentence Embeddings
Accuracy: 77.33
cross-lingual-document-classification-on-10Massively Multilingual Sentence Embeddings
Accuracy: 69.43
cross-lingual-document-classification-on-11Massively Multilingual Sentence Embeddings
Accuracy: 60.3
cross-lingual-document-classification-on-2Massively Multilingual Sentence Embeddings
Accuracy: 77.95
cross-lingual-document-classification-on-8Massively Multilingual Sentence Embeddings
Accuracy: 71.93
cross-lingual-document-classification-on-9Massively Multilingual Sentence Embeddings
Accuracy: 67.78

用 AI 构建 AI

从想法到上线——通过免费 AI 协同编程、开箱即用的环境和市场最优价格的 GPU 加速您的 AI 开发

AI 协同编程
即用型 GPU
最优价格
立即开始

Hyper Newsletters

订阅我们的最新资讯
我们会在北京时间 每周一的上午九点 向您的邮箱投递本周内的最新更新
邮件发送服务由 MailChimp 提供
大规模多语言句子嵌入用于零样本跨语言迁移及更多应用 | 论文 | HyperAI超神经