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

通过数据排序实现 NMT 模型的快速训练

Fast Training of NMT Model with Data Sorting

Handong Global University(韩东国际大学)

Daniela N. Rim, Kimera Richard, Heeyoul Choi

AI总结:

针对 Transformer 训练中空 token 造成的无效计算,本文提出按句长部分排序后分批的数据组织方法,在英语—韩语和英语—卢干达语翻译任务上保持性能并缩短训练时间,且架构无关、易于集成。

摘要:

Transformer 模型已经彻底改变了神经机器翻译等自然语言处理任务,并且已有大量研究致力于改进 Transformer 架构,从而提升其效率和准确率。一个具有改进潜力的方向是处理空 token 的计算问题:Transformer 会计算这些 token,随后却将其丢弃,从而造成不必要的计算负担。为解决这一问题,我们提出一种算法,在分批之前根据翻译句对的长度对其进行排序,以最大限度减少计算资源浪费。由于排序程度可能破坏独立同分布(i.i.d.)数据假设,我们对数据进行部分排序。在实验中,我们将所提方法应用于英语—韩语和英语—卢干达语机器翻译语言对,结果表明在保持性能的同时缩短了计算时间。我们的方法独立于架构,因此可以轻松集成到任何具有可变数据长度的训练过程中。

英文摘要:

The Transformer model has revolutionized Natural Language Processing tasks such as Neural Machine Translation, and many efforts have been made to study the Transformer architecture, which increased its efficiency and accuracy. One potential area for improvement is to address the computation of empty tokens that the Transformer computes only to discard them later, leading to an unnecessary computational burden. To tackle this, we propose an algorithm that sorts translation sentence pairs based on their length before batching, minimizing the waste of computing power. Since the amount of sorting could violate the independent and identically distributed (i.i.d) data assumption, we sort the data partially. In experiments, we apply the proposed method to English-Korean and English-Luganda language pairs for machine translation and show that there are gains in computational time while maintaining the performance. Our method is independent of architectures, so that it can be easily integrated into any training process with flexible data lengths.

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

↑