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

零阶优化中子空间扰动的阐明:理论与实践规模化

Elucidating Subspace Perturbation in Zeroth-Order Optimization: Theory and Practice at Scale

KAIST(韩国科学技术院);Intel Labs(英特尔实验室);AITRICS(人工智能与机器学习研究机构)

Sihwan Park, Jihun Yun, SungYub Kim, Souvik Kundu, Eunho Yang

AI总结:

该研究提出统一理论框架分析零阶优化中子空间扰动,引入子空间对齐概念,并基于块坐标下降提出MeZO-BCD方法,在OPT-13B上实现高达2.77倍加速,同时保持性能。

摘要:

零阶(ZO)优化已成为基于梯度的反向传播方法的一种有前景的替代方案,特别是在黑盒优化和大语言模型(LLM)微调中。然而,由于随机梯度估计器的高方差,ZO方法通常面临收敛速度慢的问题。尽管已探索使用子空间扰动(如稀疏性和低秩约束)来缓解这一问题,但其有效性仍缺乏深入理解。在本工作中,我们开发了一个统一的理论框架,分析子空间扰动下ZO优化的收敛性和泛化性质。我们表明高维性是主要瓶颈,并引入子空间对齐的概念来解释子空间扰动如何降低梯度噪声并加速收敛。我们的分析进一步表明,一大类子空间扰动表现出相似的收敛速率,这促使我们在实际算法设计中优先考虑实用性。基于这些见解,我们提出了一种使用块坐标下降的高效ZO方法(MeZO-BCD),该方法在每一步仅扰动和更新参数的一个子集。大量实验表明,MeZO-BCD显著加速了优化,在OPT-13B上相比MeZO实现了高达×2.77倍的墙钟时间加速,同时保持了相当的迭代复杂度和微调性能。

英文摘要:

Zeroth-order (ZO) optimization has emerged as a promising alternative to gradient-based backpropagation methods, particularly for black-box optimization and large language model (LLM) fine-tuning. However, ZO methods often suffer from slow convergence due to high-variance stochastic gradient estimators. While subspace perturbations, such as sparsity and low-rank constraints, have been explored to mitigate this issue, their effectiveness remains poorly understood. In this work, we develop a \emph{unified theoretical framework} that analyzes both the convergence and generalization properties of ZO optimization under subspace perturbations. We show that high dimensionality is the primary bottleneck and introduce the notion of \textit{subspace alignment} to explain how the subspace perturbations reduce gradient noise and accelerate convergence. Our analysis further shows that a broad class of subspace perturbations exhibits a similar convergence rate, motivating us to prioritize practical considerations in real-world algorithm design. Building on these insights, we propose an efficient ZO method using block coordinate descent (MeZO-BCD), which perturbs and updates only a subset of parameters at each step. Extensive experiments show that MeZO-BCD significantly accelerates optimization, achieving up to $\mathbf{\times2.77}$ speedup in wall-clock time over MeZO on OPT-13B, while maintaining comparable iteration complexity and fine-tuning performance.

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

↑