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

UnifiedNN:在云上高效训练神经网络

UnifiedNN: Efficient Neural Network Training on the Cloud

University of Notre Dame(圣母大学);Harvey Mudd College(哈维穆德学院)

Sifat Ut Taki, Arthi Padmanabhan, Spyridon Mastorakis

AI总结:

针对云上并发训练多个神经网络模型的资源与时间开销问题,提出 UnifiedNN,通过合并模型形成统一模型并结合节省机制,在不影响准确率的前提下显著降低内存和训练时间。

摘要:

如今,相较于在本地训练神经网络(NN)模型的传统方法,基于云的服务受到广泛青睐。云服务通常会处理来自用户的多个请求,从而并发训练多个 NN 模型。然而,并发训练 NN 模型是一个具有挑战性的过程,通常需要大量可用计算资源,并且需要很长时间才能完成。本文提出 UnifiedNN,用于在云上有效地并发训练多个 NN 模型。UnifiedNN 有效地“组合”多个 NN 模型,并具有若干内存和时间节省机制,可在不影响训练过程准确性的情况下同时训练多个模型。具体而言,UnifiedNN 合并多个 NN 模型并创建一个大型单一统一模型,以便一次性高效训练所有模型。我们在 PyTorch 中实现了 UnifiedNN 原型,并将其性能与相关的最先进框架进行了比较。实验结果表明,与原生 PyTorch 相比,UnifiedNN 可将内存消耗最多降低 53%,训练时间最多缩短 81%,且不会影响模型训练和测试准确率。最后,结果表明,在并发训练多个模型时,与最先进框架相比,UnifiedNN 可将内存消耗最多降低 52%,训练时间最多缩短 41%。

英文摘要:

Nowadays, cloud-based services are widely favored over the traditional approach of locally training a Neural Network (NN) model. Oftentimes, a cloud service processes multiple requests from users--thus training multiple NN models concurrently. However, training NN models concurrently is a challenging process, which typically requires significant amounts of available computing resources and takes a long time to complete. In this paper, we present UnifiedNN to effectively train multiple NN models concurrently on the cloud. UnifiedNN effectively "combines" multiple NN models and features several memory and time conservation mechanisms to train multiple NN models simultaneously without impacting the accuracy of the training process. Specifically, UnifiedNN merges multiple NN models and creates a large singular unified model in order to efficiently train all models at once. We have implemented a prototype of UnifiedNN in PyTorch and we have compared its performance with relevant state-of-the-art frameworks. Our experimental results demonstrate that UnifiedNN can reduce memory consumption by up to 53% and training time by up to 81% when compared with vanilla PyTorch without impacting the model training and testing accuracy. Finally, our results indicate that UnifiedNN can reduce memory consumption by up to 52% and training time by up to 41% when compared to state-of-the-art frameworks when training multiple models concurrently.

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

↑