通过子空间梯度正交化提升零阶训练
Powering Up Zeroth-Order Training via Subspace Gradient Orthogonalization
AI总结:
本文提出ZO-Muon方法,通过子空间梯度正交化提升零阶训练的精度和效率,显著加速收敛并实现准确性和查询效率的双赢。
摘要:
零阶(ZO)优化通过函数评估的有限差分来估计梯度,为第一阶(FO)方法提供了一种无梯度的替代方案,最近因其在避免反向传播的情况下对大规模模型进行微调而成为一种内存高效的范式。然而,ZO优化在精度和查询效率之间存在根本性的矛盾。在本文中,我们展示了通过统一两个互补原则可以显著改进ZO优化:(i)基于投影的子空间观点,通过利用模型更新的内在低秩结构来减少梯度估计的方差;(ii)Muon风格的谱优化,通过将梯度正交化来从噪声的ZO梯度中提取信息性的谱结构。这些发现形成了一种统一的子空间梯度正交化框架,我们将其实例化为一种新的方法ZO-Muon,其自然解释为在ZO设置中的低秩Muon优化器。在大规模语言模型(LLMs)和视觉转换器(ViTs)上的广泛实验表明,ZO-Muon显著加速了收敛,并在准确性和查询/运行时间效率上实现了双赢的改进。值得注意的是,与流行的MeZO基线相比,ZO-Muon仅需24.7%的查询即可达到相同的SST-2性能,对于LLM微调,在CIFAR-100上ViT-B微调的准确性提高了25.1%。
英文摘要:
Zeroth-order (ZO) optimization provides a gradient-free alternative to first-order (FO) methods by estimating gradients via finite differences of function evaluations, and has recently emerged as a memory-efficient paradigm for fine-tuning large-scale models by avoiding backpropagation. However, ZO optimization has a fundamental tension between accuracy and query efficiency. In this work, we show that ZO optimization can be substantially improved by unifying two complementary principles: (i) a projection-based subspace view that reduces gradient estimation variance by exploiting the intrinsic low-rank structure of model updates, and (ii) Muon-style spectral optimization that applies gradient orthogonalization to extract informative spectral structure from noisy ZO gradients. These findings form a unified framework of subspace gradient orthogonalization, which we instantiate in a new method, ZO-Muon, admitting a natural interpretation as a low-rank Muon optimizer in the ZO setting. Extensive experiments on large language models (LLMs) and vision transformers (ViTs) demonstrate that ZO-Muon significantly accelerates convergence and achieves a win-win improvement in accuracy and query/runtime efficiency. Notably, compared to the popular MeZO baseline, ZO-Muon requires only 24.7% of the queries to reach the same SST-2 performance for LLM fine-tuning, and improves accuracy by 25.1% on ViT-L fine-tuning on CIFAR-100.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。