arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2101.12127cs.LGcs.MS
收藏

tf.data:一个机器学习数据处理框架

tf.data: A Machine Learning Data Processing Framework

Microsoft(微软公司);Google(谷歌公司);ETH Zurich(苏黎世联邦理工学院)

Derek G. Murray, Jiri Simsa, Ana Klimovic, Ihor Indyk

摘要:

训练机器学习模型需要为模型提供输入数据。机器学习作业的输入管道通常具有挑战性,因为它们需要读取大量数据,应用复杂的转换,并将数据传输到硬件加速器,同时重叠计算和通信以实现最佳性能。我们提出了tf.data,这是一个为机器学习作业构建和执行高效输入管道的框架。tf.data API提供的运算符可以通过用户定义的计算进行参数化、组合,并在不同的机器学习域中重复使用。这些抽象允许用户专注于数据处理的应用程序逻辑,而tf.data的运行时则确保管道高效运行。我们证明了输入管道性能对最先进的机器学习模型的端到端训练时间至关重要。tf.data提供了所需的高性能,同时避免了手动调整性能旋钮的需要。我们表明,tf.data的功能,如并行,缓存,静态优化,和非确定性执行的高性能是必不可少的。最后,我们描述了在Google车队中运行的数百万个作业的机器学习输入管道,表明输入数据处理是高度多样化的,并且消耗了很大一部分作业资源。我们的分析激发了未来的研究方向,如跨作业共享计算和将数据投影推到存储层。

英文摘要:

Training machine learning models requires feeding input data for models to ingest. Input pipelines for machine learning jobs are often challenging to implement efficiently as they require reading large volumes of data, applying complex transformations, and transferring data to hardware accelerators while overlapping computation and communication to achieve optimal performance. We present tf.data, a framework for building and executing efficient input pipelines for machine learning jobs. The tf.data API provides operators which can be parameterized with user-defined computation, composed, and reused across different machine learning domains. These abstractions allow users to focus on the application logic of data processing, while tf.data's runtime ensures that pipelines run efficiently. We demonstrate that input pipeline performance is critical to the end-to-end training time of state-of-the-art machine learning models. tf.data delivers the high performance required, while avoiding the need for manual tuning of performance knobs. We show that tf.data features, such as parallelism, caching, static optimizations, and non-deterministic execution are essential for high performance. Finally, we characterize machine learning input pipelines for millions of jobs that ran in Google's fleet, showing that input data processing is highly diverse and consumes a significant fraction of job resources. Our analysis motivates future research directions, such as sharing computation across jobs and pushing data projection to the storage layer.

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

↑