arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.11382cs.CL
收藏

在多语言神经机器翻译模型中诱导长上下文能力的研究

Towards Inducing Long-Context Abilities in Multilingual Neural Machine Translation Models

Microsoft Corporation(微软公司)

Varun Gumma, Pranjal A. Chitale, Kalika Bali

AI总结:

针对传统正弦位置嵌入难以捕捉长距离依赖的问题,提出通过参数高效微调将预训练NMT模型从绝对正弦PEs过渡到相对PEs,在句子级保持竞争力,文档级RoPE模型性能更优,且少量多语言长上下文数据可诱导跨语言长上下文能力。

摘要:

神经机器翻译(NMT)模型传统上使用正弦位置嵌入(PEs),这类嵌入通常难以捕捉长距离依赖,在处理扩展上下文或文档级翻译任务时效率低下。本研究旨在解决将预训练NMT模型从绝对正弦PEs过渡到相对PEs(如RoPE和ALiBi)的挑战,同时不损害性能。我们证明,仅使用少量高质量数据的参数高效微调能够成功实现这一过渡。实验结果表明,从正弦PEs切换到相对PEs在句子级评估基准上可获得具有竞争力的翻译质量。此外,在文档级基准上,使用RoPE训练的模型在基于字符串的指标和定性评估中持续优于使用ALiBi和正弦PEs的模型。而且,我们发现少量几种语言的长上下文数据足以实现跨语言长度泛化,从而诱导长上下文能力。

英文摘要:

Neural Machine Translation (NMT) models have traditionally used Sinusoidal Positional Embeddings (PEs), which often struggle to capture long-range dependencies and are inefficient for handling extended context or document-level translation tasks. This work addresses the challenge of transitioning pre-trained NMT models from absolute Sinusoidal PEs to Relative PEs, such as RoPE and ALiBi, without compromising performance. We demonstrate that parameter-efficient fine-tuning, using only a small amount of high-quality data, can successfully facilitate this transition. Experimental results indicate that switching from Sinusoidal to Relative PEs results in competitive translation quality on sentence-level evaluation benchmarks. Additionally, models trained with RoPE consistently outperform those using ALiBi and Sinusoidal PEs on document-level benchmarks across both string-based metrics and qualitative evaluations. Moreover, we find that a small amount of long-context data in a few languages is sufficient for cross-lingual length generalization, thereby inducing long-context capabilities.

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

↑