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

大规模双层优化的内存高效梯度展开

Memory-Efficient Gradient Unrolling for Large-Scale Bi-level Optimization

National University of Singapore(新加坡国立大学);University of Southampton(南安普顿大学)

Qianli Shen, Yezhen Wang, Zhouhao Yang, Xiang Li, Haonan Wang, Yang Zhang, Jonathan Scarlett, Zhanxing Zhu, Kenji Kawaguchi

AI总结:

针对大规模双层优化的内存与计算瓶颈,提出无偏元梯度近似方法$(\ ext{FG})^2\ ext{U}$,通过前向梯度展开规避内存问题并支持并行计算,在多种大规模任务中表现卓越。

摘要:

双层优化(BO)已成为解决分层机器学习问题的基本数学框架。随着深度学习模型规模的不断增长,对可扩展的双层优化解决方案的需求变得日益关键。传统的基于梯度的双层优化算法由于其固有特性,不适合满足大规模应用的需求。在本文中,我们提出了Forward Gradient Unrolling with Forward Fradient(前向梯度与前向梯度展开),简称为$(\ ext{FG})^2\ extbf{U}$,它实现了双层优化中元梯度的无偏随机近似。$(\ ext{FG})^2\ ext{U}$规避了经典双层优化方法相关的内存和近似问题,并提供了比现有大规模双层优化方法显著更准确的梯度估计。此外,$(\ ext{FG})^2\ ext{U}$在内在设计上支持并行计算,使其能够有效利用大规模分布式计算系统以实现显著的计算效率。在实践中,$(\ ext{FG})^2\ ext{U}$和其他方法可以策略性地放置在训练过程的不同阶段,以实现更具成本效益的两阶段范式。进一步地,$(\ ext{FG})^2\ ext{U}$易于在流行的深度学习框架中实现,并可方便地适配以应对更具挑战性的零阶双层优化场景。我们为$(\ ext{FG})^2\ ext{U}$提供了详尽的收敛分析和全面的实践讨论,并辅以广泛的实证评估,展示了其在多样化大规模双层优化任务中的卓越性能。代码可在https://github.com/ShenQianli/FG2U获取。

英文摘要:

Bi-level optimization (BO) has become a fundamental mathematical framework for addressing hierarchical machine learning problems. As deep learning models continue to grow in size, the demand for scalable bi-level optimization solutions has become increasingly critical. Traditional gradient-based bi-level optimization algorithms, due to their inherent characteristics, are ill-suited to meet the demands of large-scale applications. In this paper, we introduce $\textbf{F}$orward $\textbf{G}$radient $\textbf{U}$nrolling with $\textbf{F}$orward $\textbf{F}$radient, abbreviated as $(\textbf{FG})^2\textbf{U}$, which achieves an unbiased stochastic approximation of the meta gradient for bi-level optimization. $(\text{FG})^2\text{U}$ circumvents the memory and approximation issues associated with classical bi-level optimization approaches, and delivers significantly more accurate gradient estimates than existing large-scale bi-level optimization approaches. Additionally, $(\text{FG})^2\text{U}$ is inherently designed to support parallel computing, enabling it to effectively leverage large-scale distributed computing systems to achieve significant computational efficiency. In practice, $(\text{FG})^2\text{U}$ and other methods can be strategically placed at different stages of the training process to achieve a more cost-effective two-phase paradigm. Further, $(\text{FG})^2\text{U}$ is easy to implement within popular deep learning frameworks, and can be conveniently adapted to address more challenging zeroth-order bi-level optimization scenarios. We provide a thorough convergence analysis and a comprehensive practical discussion for $(\text{FG})^2\text{U}$, complemented by extensive empirical evaluations, showcasing its superior performance in diverse large-scale bi-level optimization tasks. Code is available at https://github.com/ShenQianli/FG2U.

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

↑