Fora: 从权重空间到函数空间的保护在保持能力的微调中
Fora: From Weight-Space to Function-Space Protection in Capability-Preserving Fine-Tuning
AI总结:
提出函数空间保护方法FORA,通过输入激活协方差的主方向投影,在微调中保留模型原有能力,实验表明优于权重空间投影。
摘要:
全参数微调使大型语言模型适应新任务,但可能削弱已有能力。现有方法通过参数距离、重要性惩罚、输出匹配或权重的奇异主方向等代理进行保护,但均未直接询问保留能力依赖的激活方向。我们认为,能力更忠实地由其所诱导的激活子空间表征,而非权重矩阵的奇异几何,并开发了函数空间保护,实例化为FORA(函数空间正交残差适应)。从无标签校准输入中,FORA逐层估计输入激活协方差的主方向$Q$,并形成右投影器$P_Q = I - QQ^T$。结合来自权重SVD的左投影器$P_U$,更新为$\Delta W = P_U M P_Q + U_2 D_{\delta} V_2^T$:一个高容量分支,结构上禁止读取能力相关函数方向,加上一个窄谱通道以提供受控可塑性。该构造通过$M \to (\alpha/r) BA$扩展到参数高效适应。在Qwen3-1.7B上的三个设置中,包括学习COGS和GSM8K时保留翻译,以及学习翻译时保留数学,FORA在保持能力上一致优于权重空间投影和标准正则化,仅在数学保持设置中带来小的新任务权衡。控制消融实验隔离投影来源表明,优势并非来自投影本身,而是来自投影到能力导出而非权重导出的方向。代码可在该https URL获取。
英文摘要:
Full fine-tuning adapts large language models to new tasks but can erode capabilities they already possess. Existing remedies protect through proxies such as parameter distances, importance penalties, output matching, or dominant singular directions of the weights, but none directly asks which activation directions the preserved capability relies on. We argue that a capability is characterized more faithfully by the activation subspace it induces than by the singular geometry of the weight matrix, and develop function-space protection, instantiated as FORA (Function-space Orthogonal Residual Adaptation). From label-free calibration inputs, FORA estimates, per layer, the principal directions $Q$ of the input-activation covariance and forms a right projector $P_Q = I - QQ^T$. Paired with a left projector $P_U$ from the weight SVD, the update is $ΔW = P_U M P_Q + U_2 D_δ V_2^T$: a high-capacity branch structurally barred from reading capability-relevant function directions, plus a narrow spectral channel for controlled plasticity. The construction extends to parameter-efficient adaptation via $M \to (α/r) BA$. Across three settings on Qwen3-1.7B, including COGS and GSM8K learned while preserving translation and translation learned while preserving math, FORA consistently improves preservation over weight-space projection and standard regularization, with only a small new-task trade-off in the math-preservation setting. A controlled ablation isolating the projection source shows that the advantage comes not from projection itself, but from projecting onto capability-derived rather than weight-derived directions. Code is available at https://github.com/zrui239/FORA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。