arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.00224cs.DCcs.LG
收藏

SOLAR:一个高度优化的CNN科学代理分布式训练数据加载框架

SOLAR: A Highly Optimized Data Loading Framework for Distributed Training of CNN-based Scientific Surrogates

Indiana University(印第安纳大学);Argonne National Lab(阿贡国家实验室)

Baixi Sun, Xiaodong Yu, Chengming Zhang, Jiannan Tian, Sian Jin, Kamil Iskra, Tao Zhou, Tekin Bicer, Pete Beckman, Dingwen Tao

摘要:

基于CNN的代理人在科学应用中已经变得普遍,以取代传统耗时的物理方法。虽然这些代理可以产生令人满意的结果,显着降低计算成本在小的训练数据集,我们的基准测试结果表明,数据加载开销成为主要的性能瓶颈时,训练代理与大数据集。在实践中,代理人通常使用高分辨率的科学数据进行训练,这些数据可以很容易地达到TB级。提出了几种最先进的数据加载器来提高一般CNN训练中的加载吞吐量;然而,当应用于代理训练时,它们是次优的。在这项工作中,我们提出了SOLAR,一个代理数据加载器,可以最终增加加载吞吐量在训练过程中。它利用了我们在基准测试期间的三个关键观察结果,并包含三个新颖的设计。具体地说,SOLAR首先生成一个预定的混洗索引列表,并相应地优化全局访问顺序和缓冲区驱逐计划,以最大限度地提高数据重用和缓冲区命中率。然后,它提出了轻量级计算不平衡和重量级加载工作负载不平衡之间的权衡,以加快整体训练。最后,利用HDF 5对数据访问模式进行了优化,获得了更好的并行I/O吞吐量。我们使用三个科学代理和32个GPU进行的评估表明,SOLAR可以实现比PyTorch数据加载器高出24.4倍的加速,比最先进的数据加载器高出3.52倍。

英文摘要:

CNN-based surrogates have become prevalent in scientific applications to replace conventional time-consuming physical approaches. Although these surrogates can yield satisfactory results with significantly lower computation costs over small training datasets, our benchmarking results show that data-loading overhead becomes the major performance bottleneck when training surrogates with large datasets. In practice, surrogates are usually trained with high-resolution scientific data, which can easily reach the terabyte scale. Several state-of-the-art data loaders are proposed to improve the loading throughput in general CNN training; however, they are sub-optimal when applied to the surrogate training. In this work, we propose SOLAR, a surrogate data loader, that can ultimately increase loading throughput during the training. It leverages our three key observations during the benchmarking and contains three novel designs. Specifically, SOLAR first generates a pre-determined shuffled index list and accordingly optimizes the global access order and the buffer eviction scheme to maximize the data reuse and the buffer hit rate. It then proposes a tradeoff between lightweight computational imbalance and heavyweight loading workload imbalance to speed up the overall training. It finally optimizes its data access pattern with HDF5 to achieve a better parallel I/O throughput. Our evaluation with three scientific surrogates and 32 GPUs illustrates that SOLAR can achieve up to 24.4X speedup over PyTorch Data Loader and 3.52X speedup over state-of-the-art data loaders.

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

↑