arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.14826cs.LGcs.DC
收藏

tf.data service:解耦机器学习输入数据处理的一个案例

tf.data service: A Case for Disaggregating ML Input Data Processing

Google(谷歌);ETH Zürich(苏黎世联邦理工学院)

Andrew Audibert, Yang Chen, Dan Graur, Ana Klimovic, Jiri Simsa, Chandramohan A. Thekkath

AI总结:

本文提出tf.data service,一个基于TensorFlow的开源解耦ML输入数据处理服务,通过水平扩展资源、跨作业共享数据和支持协调读取,解决了传统固定硬件比率导致的资源利用率不足问题,显著降低训练时间和成本。

摘要:

机器学习(ML)计算通常在昂贵的专用硬件(如GPU和TPU)上执行,这些硬件提供高FLOPs和每瓦性能。为了成本效益,保持这些加速器的高利用率至关重要。这要求以加速器能够摄取并对数据执行ML计算的速率来预处理输入数据。为避免数据停滞,用于ML计算的每个加速器核心所需的用于输入数据处理的宿主CPU和RAM因作业而异。因此,在ML加速器宿主上以固定硬件比率处理输入数据的传统方法会导致加速器或宿主CPU和RAM利用率不足。在本文中,我们通过构建一个解耦的ML数据处理系统来解决这些问题。我们提出了tf.data service,这是一个基于TensorFlow中的tf.data构建的开源解耦输入数据处理服务。我们表明,解耦数据预处理对大规模ML训练作业具有三个关键优势。首先,该服务可以水平扩展,为每个作业中的数据处理调整CPU/RAM宿主资源大小,平均节省32倍训练时间和26倍成本。其次,该服务可以跨作业共享临时预处理数据结果,以优化CPU使用并减少冗余计算。最后,该服务支持协调读取,这是一种避免分布式训练中因不同输入大小而导致落后者的技术,平均减少2.2倍训练时间。我们的设计受生产环境中部署tf.data service的经验启发,包括在不影响模型精度的情况下放宽数据访问保证。

英文摘要:

Machine learning (ML) computations commonly execute on expensive specialized hardware, such as GPUs and TPUs, which provide high FLOPs and performance-per-watt. For cost efficiency, it is essential to keep these accelerators highly utilized. This requires preprocessing input data at the rate at which the accelerators can ingest and perform ML computations on the data. To avoid data stalls, the host CPU and RAM required for input data processing per accelerator core used for ML computations varies across jobs. Hence, the traditional approach of processing input data on ML accelerator hosts with a fixed hardware ratio leads to either under-utilizing the accelerators or the host CPU and RAM. In this paper, we address these concerns by building a disaggregated ML data processing system. We present tf.data service, an open-source disaggregated input data processing service built on top of tf.data in TensorFlow. We show that disaggregating data preprocessing has three key advantages for large-scale ML training jobs. First, the service can horizontally scale-out to right-size CPU/RAM host resources for data processing in each job, saving 32x training time and 26x cost, on average. Second, the service can share ephemeral preprocessed data results across jobs, to optimize CPU usage and reduce redundant computations. Finally, the service supports coordinated reads, a technique that avoids stragglers due to different input sizes in distributed training, reducing training time by 2.2x, on average. Our design is inspired by lessons learned from deploying tf.data service in production, including relaxing data visitation guarantees without impacting model accuracy.

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

↑