arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.02979cs.CL
收藏

多语言神经机器翻译中源语言标记到目标语言空间的注册

Registering Source Tokens to Target Language Spaces in Multilingual Neural Machine Translation

Nara Institute of Science and Technology(奈良科学技术研究所);National Institute of Information and Communications Technology(信息与通信技术国家研究所)

Zhi Qu, Yiran Wang, Jiannan Mao, Chenchen Ding, Hideki Tanaka, Masao Utiyama, Taro Watanabe

AI总结:

本文提出注册方法,通过插入目标语言注册标记并修改注意力掩码,使小型多语言神经机器翻译模型MITRE-913M在EC-40基准上超越NLLB-3.3B,达到商业LLM水平,并开源模型。

摘要:

多语言神经机器翻译(MNMT)旨在实现多种语言之间的任意翻译。尽管基于平行语料训练的MNMT专用模型在训练和部署成本上较低,但其性能始终落后于大型语言模型(LLMs)。在本工作中,我们引入了注册(registering)这一新方法,使得小型MNMT专用模型能够与LLMs竞争。具体而言,我们在输入序列中源语言标记与目标语言标记之间插入一组指定目标语言的人工标记,称为注册标记(registers)。通过修改注意力掩码,目标语言标记的生成仅关注注册标记的激活,这些激活代表了目标语言空间中的源语言标记。在大型基准测试EC-40上的实验表明,我们的方法推进了MNMT的最新技术水平。我们进一步预训练了两个模型,即MITRE(带注册标记的多语言翻译),使用了从公共语料库收集的24种语言的93亿句子对。其中一个模型MITRE-913M优于NLLB-3.3B,达到了与商业LLMs相当的性能,并展现出在微调中的强大适应性。最后,我们开源了我们的模型,以促进MNMT的进一步研究和发展:https://github.com/zhiqu22/mitre。

英文摘要:

The multilingual neural machine translation (MNMT) aims for arbitrary translations across multiple languages. Although MNMT-specific models trained on parallel data offer low costs in training and deployment, their performance consistently lags behind that of large language models (LLMs). In this work, we introduce registering, a novel method that enables a small MNMT-specific model to compete with LLMs. Specifically, we insert a set of artificial tokens specifying the target language, called registers, into the input sequence between the source and target tokens. By modifying the attention mask, the target token generation only pays attention to the activation of registers, representing the source tokens in the target language space. Experiments on EC-40, a large-scale benchmark, show that our method advances the state-of-the-art of MNMT. We further pre-train two models, namely MITRE (multilingual translation with registers), by 9.3 billion sentence pairs across 24 languages collected from public corpora. One of them, MITRE-913M, outperforms NLLB-3.3B, achieves comparable performance with commercial LLMs, and shows strong adaptability in fine-tuning. Finally, we open-source our models to facilitate further research and development in MNMT: https://github.com/zhiqu22/mitre.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑