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

SOTASTREAM:一种机器翻译训练的流式方法

SOTASTREAM: A Streaming Approach to Machine Translation Training

Microsoft(微软)

Matt Post, Thamme Gowda, Roman Grundkiewicz, Huda Khayrallah, Rohit Jain, Marcin Junczys-Dowmunt

AI总结:

针对机器翻译中静态数据预处理耗时、占空间且不灵活的问题,本文提出并开源 SOTASTREAM 流式数据生成与训练框架,支持实时算子处理并保持模型准确率。

摘要:

许多机器翻译工具包都会使用一个数据准备步骤,在该步骤中,原始数据被转换为训练器可直接使用的张量格式。这一准备步骤与现代研发实践越来越不协调,因为该过程会生成一个静态、不可更改的训练数据版本,使常见的训练时需求变得困难(例如子词采样)、耗时(使用大规模数据进行预处理可能需要数天)、昂贵(例如磁盘空间)且繁琐(管理实验组合)。我们提出了一种替代方法,将数据的生成与数据的消费分离开来。在这种方法中,不存在单独的预处理步骤;数据生成会产生原始训练数据排列的无限流,训练器在消费这些数据时对其进行张量化和批处理。此外,该数据流可由一组用户可定义的算子进行操作,这些算子提供即时修改,例如数据归一化、增强或过滤。我们发布了实现该方法的开源工具包 SOTASTREAM:https://github.com/marian-nmt/sotastream。我们表明,它缩短了训练时间、增加了灵活性、降低了实验管理复杂性并减少了磁盘空间,所有这些都不会影响所训练模型的准确率。

英文摘要:

Many machine translation toolkits make use of a data preparation step wherein raw data is transformed into a tensor format that can be used directly by the trainer. This preparation step is increasingly at odds with modern research and development practices because this process produces a static, unchangeable version of the training data, making common training-time needs difficult (e.g., subword sampling), time-consuming (preprocessing with large data can take days), expensive (e.g., disk space), and cumbersome (managing experiment combinatorics). We propose an alternative approach that separates the generation of data from the consumption of that data. In this approach, there is no separate pre-processing step; data generation produces an infinite stream of permutations of the raw training data, which the trainer tensorizes and batches as it is consumed. Additionally, this data stream can be manipulated by a set of user-definable operators that provide on-the-fly modifications, such as data normalization, augmentation or filtering. We release an open-source toolkit, SOTASTREAM, that implements this approach: https://github.com/marian-nmt/sotastream. We show that it cuts training time, adds flexibility, reduces experiment management complexity, and reduces disk space, all without affecting the accuracy of the trained models.

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

↑