PAMS:面向零阶LLM微调的预条件激活度量子空间方法
PAMS: Preconditioned Activation-Metric Subspace for Zeroth-Order LLM Fine-tuning
PAMS是一种零阶优化框架,利用前向传播的激活统计量构建分层扰动几何,无需计算梯度或稠密曲率矩阵。该方法在线跟踪主导激活子空间的低秩近似及其谱,用谱对扰动方差软重加权,并通过迹归一化统一各层扰动幅度。在GLUE和SuperGLUE的Transformer语言模型微调任务上,PAMS提升了零阶优化的有效性与稳定性。
arXiv:2611.28476v1 Announce Type: new Abstract: Zeroth-order (ZO) optimization provides a computationally efficient approach to fine-tuning large language models (LLMs), but conventional methods typically rely on isotropic perturbations that ignore the anisotropic structure of neural-network parameter spaces. We introduce Preconditioned Activation-Metric Subspace (PAMS), a ZO optimization framework that uses forward-pass activation statistics to construct structured, layer-wise perturbation geometries without computing gradients or forming dense curvature matrices. PAMS tracks a low-rank approximation of the dominant activation subspace and its associated spectrum online, and uses the spectrum to softly reweight perturbation variance while preserving exploration in directions outside the retained subspace. A trace normalization separates the perturbation geometry from its overall scale, enabling consistent perturbation magnitudes across layers. We show theoretically that the resulting perturbation covariance induces right-side preconditioning of the gradient of the corresponding Gaussian-smoothed objective. We further characterize the estimator's smoothing bias and second moment and derive a nonconvex convergence guarantee that captures the effects of the perturbation geometry and smoothing radius. The proposed low-rank tracking procedure requires $\mathcal{O}(n_l r)$ persistent memory for a layer with input dimension nl and retained rank r, avoiding the $\mathcal{O}(n_l^2)$ memory required by a dense activation covariance. Experiments on transformer-based language-model fine-tuning tasks across GLUE and SuperGLUE demonstrate that PAMS improves the effectiveness and stability of zeroth-order optimization while retaining its gradient-free and objective-evaluation-based advantages.
来源:arXiv (AI + Vision + Imaging) · arxiv.org