arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.05489cs.CL
收藏

状态空间模型在机器翻译中的效果如何?

How Effective are State Space Models for Machine Translation?

TU Munich(慕尼黑工业大学);Instituto Superior Técnico, University of Lisbon(里斯本大学高等技术学院);Instituto de Telecomunicações(电信研究所);Unbabel(Unbabel公司);ELLIS Unit Lisbon(ELLIS里斯本单元)

Hugo Pitorro, Pavlo Vasylenko, Marcos Treviso, André F. T. Martins

AI总结:

本文系统比较 Transformer 与 RetNet、Mamba 及其注意力混合模型在机器翻译中的表现,发现 Mamba 竞争力强,融入注意力可进一步提升质量、长度外推鲁棒性和命名实体记忆。

摘要:

Transformer 是当前 NLP 的首选架构,但其注意力层不能很好地扩展到长上下文。近期研究提出用线性循环层替代注意力——状态空间模型即属于此类,它们具备高效的训练和推理优势。然而,这些模型在机器翻译(MT)中是否能与 Transformer 竞争仍不清楚。本文针对 MT 对 Transformer 与线性循环模型进行了严格而全面的实验比较。具体而言,我们实验了 RetNet、Mamba 以及融合注意力机制的 Mamba 混合版本。研究结果表明,Mamba 在句子级和段落级数据集上与 Transformer 高度竞争;在段落级数据上,两种模型都受益于将训练分布转向更长序列。进一步分析表明,将注意力集成到 Mamba 中可提升翻译质量、对序列长度外推的鲁棒性以及回忆命名实体的能力。

英文摘要:

Transformers are the current architecture of choice for NLP, but their attention layers do not scale well to long contexts. Recent works propose to replace attention with linear recurrent layers -- this is the case for state space models, which enjoy efficient training and inference. However, it remains unclear whether these models are competitive with transformers in machine translation (MT). In this paper, we provide a rigorous and comprehensive experimental comparison between transformers and linear recurrent models for MT. Concretely, we experiment with RetNet, Mamba, and hybrid versions of Mamba which incorporate attention mechanisms. Our findings demonstrate that Mamba is highly competitive with transformers on sentence and paragraph-level datasets, where in the latter both models benefit from shifting the training distribution towards longer sequences. Further analysis show that integrating attention into Mamba improves translation quality, robustness to sequence length extrapolation, and the ability to recall named entities.

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

↑