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

LLMs能像离线翻译一样高效地实现高质量同声机器翻译

LLMs Can Achieve High-quality Simultaneous Machine Translation as Efficiently as Offline

Xiamen University(厦门大学);Tongyi Lab(通义实验室);Key Laboratory of Digital Protection and Intelligent Processing of Intangible Cultural Heritage of Fujian and Taiwan (Xiamen University), Ministry of Culture and Tourism(文化和旅游部闽台非物质文化遗产数字化保护与智能处理重点实验室(厦门大学))

Biao Fu, Minpeng Liao, Kai Fan, Chengxi Li, Liang Zhang, Yidong Chen, Xiaodong Shi

AI总结:

提出包含SFT数据构建和训练推理策略的新范式,使LLMs能像离线翻译一样高效实现高质量同声机器翻译,在有限数据下达到SOTA且保留离线能力。

摘要:

当提供完整的源语言句子时,大型语言模型(LLMs)在离线机器翻译中表现出色,即使使用简单的提示词“将以下句子从[src lang]翻译成[tgt lang]:”。然而,在许多实际场景中,源语言token以流式方式到达,需要同声机器翻译(SiMT),此时仅解码器LLMs的效率和性能受到其自回归特性的显著限制。为了使LLMs能够像离线翻译一样高效地实现高质量SiMT,我们提出了一种新范式,包括为SiMT构建监督微调(SFT)数据,以及新的训练和推理策略。为了在SiMT中复现token输入/输出流,源语言和目标语言token被重新排列成交错序列,并根据不同的延迟要求由特殊token分隔。这使得强大的LLMs能够基于不同的延迟提示自适应地学习读写操作,同时仍保持高效的自回归解码。实验结果表明,即使使用有限的SFT数据,我们的方法在各种SiMT基准上实现了最先进的性能,并保留了离线翻译的原始能力。此外,我们的方法无需特定微调即可很好地泛化到文档级SiMT设置,甚至超越了离线翻译模型。

英文摘要:

When the complete source sentence is provided, Large Language Models (LLMs) perform excellently in offline machine translation even with a simple prompt "Translate the following sentence from [src lang] into [tgt lang]:". However, in many real scenarios, the source tokens arrive in a streaming manner and simultaneous machine translation (SiMT) is required, then the efficiency and performance of decoder-only LLMs are significantly limited by their auto-regressive nature. To enable LLMs to achieve high-quality SiMT as efficiently as offline translation, we propose a novel paradigm that includes constructing supervised fine-tuning (SFT) data for SiMT, along with new training and inference strategies. To replicate the token input/output stream in SiMT, the source and target tokens are rearranged into an interleaved sequence, separated by special tokens according to varying latency requirements. This enables powerful LLMs to learn read and write operations adaptively, based on varying latency prompts, while still maintaining efficient auto-regressive decoding. Experimental results show that, even with limited SFT data, our approach achieves state-of-the-art performance across various SiMT benchmarks, and preserves the original abilities of offline translation. Moreover, our approach generalizes well to document-level SiMT setting without requiring specific fine-tuning, even beyond the offline translation model.

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

↑