arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.10792cs.LGmath.OC
收藏

用于大语言模型微调的固定秩流形上的零阶黎曼优化

Zeroth-Order Riemannian Optimization on Fixed-Rank Manifolds for LLM Fine-Tuning

Aalto University(阿尔托大学);South China University of Technology(华南理工大学)

Xinjue Wang, Xiuheng Wang, Yejun Zhang, Sergiy A. Vorobyov, Esa Ollila

AI总结:

本研究提出固定秩流形上的零阶黎曼优化算法ZO-RGD及ZO-RGD-S,用于LLM内存高效微调,在多模型族和任务上与仅前向基线相当且部分场景有增益。

摘要:

零阶(ZO)优化仅通过函数值估计下降方向,消除了反向传播所需的激活存储,使其适用于大语言模型(LLM)的内存高效微调。现有低秩ZO方法要么通过欧氏因子参数化加性更新(存在非唯一表示),要么限制每个有限差分方向为低秩。本研究提出将每个加性更新块约束在固定秩矩阵流形上,同时保持预训练权重冻结,使学习到的更新在整个微调过程中保持秩约束。在此几何结构上,我们构建了黎曼ZO梯度估计器,将随机矩阵投影到切空间并归一化以修正投影导致的尺度不匹配,进一步提出零阶黎曼梯度下降(ZO-RGD)及其平滑变体ZO-RGD-S。我们证明环境有限差分与其收缩对应项匹配,归一化估计器在期望下恢复黎曼梯度,且ZO-RGD在轨迹正则性条件下收敛。在LLM微调任务上的实验表明,所提算法在各类模型族和任务中与强大的仅前向基线具有竞争力,且在若干设置中取得了增益。

英文摘要:

Zeroth-order (ZO) optimization estimates descent directions from function values alone, which removes the activation storage required by backpropagation and makes it attractive for memory-efficient fine-tuning of large language models (LLMs). Existing low-rank ZO methods either parameterize the additive update through Euclidean factors with a non-unique representation, or restrict each finite-difference direction to be low-rank. In this work, we propose to constrain each additive update block to a fixed-rank matrix manifold while keeping the pretrained weights frozen, so the learned update remains rank-constrained throughout fine-tuning. On this geometry, we build a Riemannian ZO gradient estimator that projects a random matrix onto the tangent space, normalizes it to correct the scale mismatch induced by projection, and further propose Zeroth-order Riemannian Gradient Descent (ZO-RGD) and its smoothed variant, ZO-RGD-S. We show that the ambient finite difference matches its retracted counterpart, the normalized estimator recovers the Riemannian gradient in expectation, and ZO-RGD converges under trajectory-regularity conditions. Experiments on LLM fine-tuning tasks show that the proposed algorithms are competitive with strong forward-only baselines across model families and tasks, with gains in several settings.

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

↑