CurvZO:适应性曲率引导的稀疏零阶优化用于高效的LLM微调
CurvZO: Adaptive Curvature-Guided Sparse Zeroth-Order Optimization for Efficient LLM Fine-Tuning
AI总结:
CurvZO通过在线跟踪标量零阶反馈中的曲率信号,构建参数采样分布以减少稀疏零阶梯度估计的方差,从而提升LLM微调效率和性能。
摘要:
通过反向传播微调大型语言模型(LLMs)虽然性能高,但内存开销大,限制了在资源受限硬件上的扩展性。零阶(ZO)优化提供了一种内存高效的替代方法,仅依赖前向传递,但通常因高方差的梯度估计而收敛缓慢或不稳定。稀疏ZO更新部分解决了这一问题,通过仅扰动部分参数,但其有效性依赖于选择信息性参数,这在ZO优化中具有挑战性,因为每个查询只能提供标量反馈。我们提出了适应性曲率引导的稀疏零阶优化(CurvZO),通过从标量ZO反馈中在线跟踪曲率信号,并利用这些信号构建参数级的采样分布,以在每次更新中选择坐标,减少稀疏ZO梯度估计器的方差。此外,CurvZO动态适应扰动预算以适应演化的曲率信号分布,从而产生既聚焦又充分探索的稀疏ZO更新。在OPT和Llama在多样化的NLP任务上的广泛实验表明,CurvZO在ZO基线之上 consistently 提高微调性能并减少训练时间。它在准确率上提高了多达4.4个点,并实现了高达2倍的速度提升,同时保持内存效率。
英文摘要:
Fine-tuning large language models (LLMs) with backpropagation achieves high performance but incurs substantial memory overhead, limiting scalability on resource-constrained hardware. Zeroth-order (ZO) optimization provides a memory-efficient alternative by relying solely on forward passes, yet it typically suffers from slow or unstable convergence due to high-variance gradient estimates. Sparse ZO updates partially address this issue by perturbing only a subset of parameters, but their effectiveness hinges on selecting informative parameters, which is challenging in ZO optimization because each query yields only scalar feedback. We propose \textbf{Adaptive Curvature-Guided Sparse Zeroth-Order Optimization (CurvZO)}, which tracks curvature signals online from scalar ZO feedback and leverages these signals to construct a parameter-wise sampling distribution for selecting coordinates at each update, reducing the variance of the sparse ZO gradient estimator. Moreover, CurvZO dynamically adapts the perturbation budget to the evolving curvature signal distribution, yielding sparse ZO updates that remain both focused and sufficiently exploratory. Extensive experiments on OPT and Llama across diverse NLP tasks show that CurvZO consistently improves fine-tuning performance and reduces training time over ZO baselines. It improves accuracy by up to 4.4 points and achieves up to a $2\times$ speedup, while preserving memory efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。