arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.02523math.OCcs.DCcs.LGstat.ML
收藏

首个可证明最优的异步随机梯度下降法用于同质和异质数据

First Provably Optimal Asynchronous SGD for Homogeneous and Heterogeneous Data

King Abdullah University of Science and Technology(阿卜杜拉国王科技大学)

Artavazd Maranjyan

AI总结:

本研究提出异步SGD方法,通过优化设计实现同质和异质数据下的最优时间复杂度,提升分布式学习效率。

摘要:

人工智能通过在大规模数据集上使用数千块GPU或TPU训练大型神经网络而迅速发展。此类训练可以占用整个数据中心数周,需要巨大的计算和能源资源。然而,这些运行背后优化算法的进步却跟不上。大多数大规模训练仍然依赖于同步方法,其中工人必须等待最慢的设备,浪费计算资源并放大硬件和网络变化的影响。去除同步似乎是一个简单的修复,但异步性引入了陈旧性,意味着在过时的模型上计算的更新。这使得分析变得困难,尤其是在延迟来自系统层面的随机性而非算法选择时。因此,异步方法的时间复杂度仍然缺乏深入理解。本论文开发了一个严谨的框架,用于异步一阶随机优化,重点在于异构工人速度的核心挑战。在此框架中,我们证明了通过适当设计,异步SGD可以达到最优时间复杂度,匹配之前仅在同步方法中已知的保证。我们的第一个贡献,Ringmaster ASGD,在同质数据设置中通过选择性丢弃陈旧更新来实现最优时间复杂度。第二个贡献,Ringleader ASGD,通过使用结构化的梯度表机制将最优性扩展到异质数据,这在联邦学习中很常见。最后,ATA通过学习工人计算时间分布并适应性地分配任务来提高资源效率,实现了接近最优的墙钟时间,但计算量更少。这些结果确立了异步优化作为分布式学习理论严谨且实际高效的基础,表明在没有同步的情况下协调是可行且最优的。

英文摘要:

Artificial intelligence has advanced rapidly through large neural networks trained on massive datasets using thousands of GPUs or TPUs. Such training can occupy entire data centers for weeks and requires enormous computational and energy resources. Yet the optimization algorithms behind these runs have not kept pace. Most large scale training still relies on synchronous methods, where workers must wait for the slowest device, wasting compute and amplifying the effects of hardware and network variability. Removing synchronization seems like a simple fix, but asynchrony introduces staleness, meaning updates computed on outdated models. This makes analysis difficult, especially when delays arise from system level randomness rather than algorithmic choices. As a result, the time complexity of asynchronous methods remains poorly understood. This dissertation develops a rigorous framework for asynchronous first order stochastic optimization, focusing on the core challenge of heterogeneous worker speeds. Within this framework, we show that with proper design, asynchronous SGD can achieve optimal time complexity, matching guarantees previously known only for synchronous methods. Our first contribution, Ringmaster ASGD, attains optimal time complexity in the homogeneous data setting by selectively discarding stale updates. The second, Ringleader ASGD, extends optimality to heterogeneous data, common in federated learning, using a structured gradient table mechanism. Finally, ATA improves resource efficiency by learning worker compute time distributions and allocating tasks adaptively, achieving near optimal wall clock time with less computation. Together, these results establish asynchronous optimization as a theoretically sound and practically efficient foundation for distributed learning, showing that coordination without synchronization can be both feasible and optimal.

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

↑