让大模型在流式翻译中达到离线翻译的高质量与高效率。
LLMs Can Achieve High-quality Simultaneous Machine Translation as Efficiently as Offline
- 将源和目标文本交错排列,用特殊标记控制延迟,让模型学会动态读写。
- 仅用少量微调数据即在多个基准上达到顶尖流式翻译性能。
- 无需额外训练即可处理文档级翻译,兼容原有离线翻译能力。
当完整源句提供时,大型语言模型(LLMs)在离线机器翻译中表现优异,仅需简单提示‘将以下句子从[源语言]翻译成[目标语言]’即可。然而,在真实场景中,源词汇常以流式方式到达,需进行同时性机器翻译(SiMT),此时仅解码器结构的LLMs因自回归特性,效率与性能均受限。为此,我们提出新范式:构建适用于SiMT的监督微调(SFT)数据,并设计新的训练与推理策略。通过按不同延迟要求,将源与目标词交错排列并用特殊标记分隔,使强大LLMs能基于可变延迟提示自适应学习读写操作,同时保持高效的自回归解码。实验表明,即使仅使用有限SFT数据,本方法在多个SiMT基准上实现最先进性能,并保留原模型的离线翻译能力。此外,该方法无需专门微调即可泛化至文档级SiMT场景,超越原始离线翻译模型。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。