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

超越 Decoder-only:大型语言模型可以作为机器翻译的优秀编码器

Beyond Decoder-only: Large Language Models Can be Good Encoders for Machine Translation

NLP Lab, Northeastern University, Shenyang, China(东北大学自然语言处理实验室);NiuTrans Research, Shenyang, China(NiuTrans研究院)

Yingfeng Luo, Tong Zheng, Yongyu Mu, Bei Li, Qinghong Zhang, Yongqi Gao, Ziqiang Xu, Peinan Feng, Xiaoqian Liu, Tong Xiao, Jingbo Zhu

AI总结:

本文提出将大型语言模型(LLMs)作为编码器与神经机器翻译(NMT)解码器结合,构建通用高效的翻译模型,在匹配或超越基线翻译质量的同时实现显著推理加速和内存降低。

摘要:

随着大型语言模型(LLMs)的出现,神经机器翻译(NMT)领域发生了变化。最近自然语言处理(NLP)的重点是使用单个预训练的 Transformer 解码器对机器翻译和许多其他问题进行建模,而作为早期 NMT 模型标准的编码器-解码器架构则受到相对较少的关注。在本文中,我们通过将 LLMs 的世界与 NMT 的世界相结合,探索通用、高效且易于优化的翻译模型。我们将 LLMs 应用于 NMT 编码,并保持 NMT 解码器不变。我们还开发了使 LLMs 更好地与 NMT 解码器协同工作的方法。此外,我们构建了一个涉及多个任务的新数据集,以评估机器翻译系统在各种任务中的泛化能力。在 WMT 和我们的数据集上的评估表明,使用我们方法的结果在翻译质量方面匹配或超越了一系列基线,但实现了 $2.4 \sim 6.5 \times$ 的推理加速以及 KV 缓存内存占用减少 $75\\%$。它还在各种与翻译相关的任务中展示了强大的泛化能力。

英文摘要:

The field of neural machine translation (NMT) has changed with the advent of large language models (LLMs). Much of the recent emphasis in natural language processing (NLP) has been on modeling machine translation and many other problems using a single pre-trained Transformer decoder, while encoder-decoder architectures, which were the standard in earlier NMT models, have received relatively less attention. In this paper, we explore translation models that are universal, efficient, and easy to optimize, by marrying the world of LLMs with the world of NMT. We apply LLMs to NMT encoding and leave the NMT decoder unchanged. We also develop methods for adapting LLMs to work better with the NMT decoder. Furthermore, we construct a new dataset involving multiple tasks to assess how well the machine translation system generalizes across various tasks. Evaluations on the WMT and our datasets show that results using our method match or surpass a range of baselines in terms of translation quality, but achieve $2.4 \sim 6.5 \times$ inference speedups and a $75\%$ reduction in the memory footprint of the KV cache. It also demonstrates strong generalization across a variety of translation-related tasks.

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

↑