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

YANMTT:又一个神经机器翻译工具包

YANMTT: Yet Another Neural Machine Translation Toolkit

National Institute of Information and Communications Technology(日本国立信息通信技术研究所)

Raj Dabre, Eiichiro Sumita

摘要:

在本文中,我们提出了我们的开源神经机器翻译(NMT)工具包,称为“又一个神经机器翻译工具包”,简称为YANMTT,它是建立在Transformers库之上的。尽管序列到序列预训练的重要性越来越大,但令人惊讶的是,很少有(如果不是没有的话)完善的工具包允许用户轻松地进行预训练。像Fairseq这样的工具包允许预先训练,有非常大的代码库,因此它们对初学者不友好。关于通过微调的迁移学习,大多数工具包并不明确允许用户控制预训练模型的哪些部分可以被迁移。YANMTT旨在通过最少的代码来预训练大规模NMT模型,选择性地传输预训练的参数并对其进行微调,执行翻译以及提取表示和注意事项以进行可视化和分析。除了这些核心功能外,我们的工具包还提供其他高级功能,例如但不限于文档/多源NMT,同步NMT和通过蒸馏的模型压缩,我们认为这些功能与我们工具包背后的目的相关。

英文摘要:

In this paper we present our open-source neural machine translation (NMT) toolkit called "Yet Another Neural Machine Translation Toolkit" abbreviated as YANMTT which is built on top of the Transformers library. Despite the growing importance of sequence to sequence pre-training there surprisingly few, if not none, well established toolkits that allow users to easily do pre-training. Toolkits such as Fairseq which do allow pre-training, have very large codebases and thus they are not beginner friendly. With regards to transfer learning via fine-tuning most toolkits do not explicitly allow the user to have control over what parts of the pre-trained models can be transferred. YANMTT aims to address these issues via the minimum amount of code to pre-train large scale NMT models, selectively transfer pre-trained parameters and fine-tune them, perform translation as well as extract representations and attentions for visualization and analyses. Apart from these core features our toolkit also provides other advanced functionalities such as but not limited to document/multi-source NMT, simultaneous NMT and model compression via distillation which we believe are relevant to the purpose behind our toolkit.

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

↑