通过激活空间方向保护模型能力,实现高效微调不丢失原有技能。
Fora: From Weight-Space to Function-Space Protection in Capability-Preserving Fine-Tuning

- 基于输入-激活协方差估计各层关键功能方向,构建函数空间投影
- 在保持数学与翻译能力的前提下,微调表现优于传统权重空间方法
- 适合需保留多任务能力的轻量级模型优化场景
全量微调虽能适应新任务,但会削弱模型已有能力。现有方法多依赖参数距离、重要性惩罚或权重奇异方向等代理指标,却未直接关注能力所依赖的激活方向。本文认为,能力更应由其引发的激活子空间刻画,而非权重矩阵的奇异结构。为此提出函数空间保护机制,实现为FORA(Function-space Orthogonal Residual Adaptation)。从无标签校准输入中,逐层估计输入-激活协方差的主要方向 $Q$,构建右投影算子 $P_Q = I - QQ^T$;结合权重SVD得到的左投影 $P_U$,更新形式为 $ΔW = P_U M P_Q + U_2 D_δ V_2^T$:一个受阻于能力相关功能方向的高容量分支,外加一条用于可控可塑性的窄谱通道。该方法还可推广至参数高效微调($M \to (α/r) BA$)。在Qwen3-1.7B上三个场景测试,包括在保持翻译能力下学习数学推理(GSM8K)、在保持数学能力下学习翻译(COGS),FORA始终优于权重空间投影与标准正则化,仅在数学保有能力设置中略有新任务性能下降。消融实验表明优势源于以能力衍生方向而非权重衍生方向进行投影。代码已开源:https://github.com/zrui239/FORA。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。