arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.14488cs.CLcs.AI
收藏

语言模型是同步机器翻译的分支预测器

Language Model is a Branch Predictor for Simultaneous Machine Translation

Zhejiang University(浙江大学)

Aoxiong Yin, Tianyun Zhong, Haoyuan Li, Siliang Tang, Zhou Zhao

AI总结:

受CPU分支预测启发,提出用语言模型预测未来源词以提前解码,降低同步机器翻译延迟并提升质量,可无缝集成于现有模型。

摘要:

同步机器翻译(SiMT)的主要目标是在保持最终翻译质量的同时最小化延迟。受CPU分支预测技术的启发,我们提出在SiMT任务中引入分支预测技术以降低翻译延迟。具体而言,我们利用语言模型作为分支预测器来预测潜在的分支方向,即未来的源词。随后,我们利用预测的源词提前解码输出。当实际源词与预测源词不一致时,我们使用真实源词重新解码输出,替换预测的输出。为进一步降低计算成本,我们共享编码器和分支预测器的参数,并利用预训练语言模型进行初始化。我们提出的方法可以无缝集成到任何SiMT模型中。大量实验结果表明,我们的方法能够同时提高翻译质量和降低延迟。我们的代码可在https://github.com/YinAoXiong/simt_branch_predictor获取。

英文摘要:

The primary objective of simultaneous machine translation (SiMT) is to minimize latency while preserving the quality of the final translation. Drawing inspiration from CPU branch prediction techniques, we propose incorporating branch prediction techniques in SiMT tasks to reduce translation latency. Specifically, we utilize a language model as a branch predictor to predict potential branch directions, namely, future source words. Subsequently, we utilize the predicted source words to decode the output in advance. When the actual source word deviates from the predicted source word, we use the real source word to decode the output again, replacing the predicted output. To further reduce computational costs, we share the parameters of the encoder and the branch predictor, and utilize a pre-trained language model for initialization. Our proposed method can be seamlessly integrated with any SiMT model. Extensive experimental results demonstrate that our approach can improve translation quality and latency at the same time. Our code is available at https://github.com/YinAoXiong/simt_branch_predictor .

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

↑