TensorSocket:面向深度学习训练的共享数据加载
TensorSocket: Shared Data Loading for Deep Learning Training
AI总结:
针对深度学习训练中数据加载重复导致的CPU瓶颈与资源浪费问题,提出共享数据加载框架TensorSocket,通过进程间共享数据加载、利用GPU互连提升效率,实现吞吐量最高翻倍、云成本减半,性能优于现有方案。
摘要:
深度学习模型训练是一个重复性高且资源密集的过程。数据科学家通常需要训练多个模型,才能确定一组能带来最高准确率的参数(例如超参数调优)和模型架构(例如神经架构搜索)等配置。这些训练任务的计算效率高度依赖于训练数据向训练过程的供给效率。这类任务的重复性导致相同的数据处理流水线反复运行,加剧了计算资源的需求与成本。本文提出TensorSocket,通过让并行的训练进程共享同一个数据加载器,来降低深度学习训练的计算需求。当并置的训练工作负载在GPU上具有高吞吐量,却受限于CPU端较低的数据加载吞吐量时,TensorSocket可缓解CPU侧的瓶颈。TensorSocket通过减少并置训练进程间的冗余计算和数据重复,并利用现代GPU-GPU互连技术实现这一目标。在此过程中,TensorSocket能够训练并平衡不同规模的模型,同时支持多种批量大小,且本质上与硬件和流水线无关。我们的评估表明,TensorSocket实现了无数据共享时无法实现的场景,将训练吞吐量提升最高达100%;在使用云实例时,通过降低CPU侧的硬件资源需求,实现了50%的成本节约。此外,TensorSocket的性能优于CoorDL和Joader等最先进的共享数据加载解决方案;它更易于部署和维护,在所需CPU资源更少的情况下,吞吐量要么更高,要么与现有方案持平。
英文摘要:
Training deep learning models is a repetitive and resource-intensive process. Data scientists often train several models before landing on a set of parameters (e.g., hyper-parameter tuning) and model architecture (e.g., neural architecture search), among other things that yield the highest accuracy. The computational efficiency of these training tasks depends highly on how well the training data is supplied to the training process. The repetitive nature of these tasks results in the same data processing pipelines running over and over, exacerbating the need for and costs of computational resources. In this paper, we present TensorSocket to reduce the computational needs of deep learning training by enabling simultaneous training processes to share the same data loader. TensorSocket mitigates CPU-side bottlenecks in cases where the collocated training workloads have high throughput on GPU, but are held back by lower data-loading throughput on CPU. TensorSocket achieves this by reducing redundant computations and data duplication across collocated training processes and leveraging modern GPU-GPU interconnects. While doing so, TensorSocket is able to train and balance differently-sized models and serve multiple batch sizes simultaneously and is hardware- and pipeline-agnostic in nature. Our evaluation shows that TensorSocket enables scenarios that are infeasible without data sharing, increases training throughput by up to 100%, and when utilizing cloud instances, achieves cost savings of 50% by reducing the hardware resource needs on the CPU side. Furthermore, TensorSocket outperforms the state-of-the-art solutions for shared data loading such as CoorDL and Joader; it is easier to deploy and maintain and either achieves higher or matches their throughput while requiring fewer CPU resources.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。