什么决定 LoRA 微调中的遗忘:跨优化器的预测因素分析
What Predicts Forgetting in LoRA Fine-Tuning Across Optimizers
AI 导读
该研究在 Llama-3.2 1B 和 3B 上固定任务与 LoRA adapter、更换优化器,测试哪种指标能预测微调导致的遗忘。新任务上的 KL 散度在留出优化器上预测失败(R²≤0.11),等 KL 下与 AdamW 更新形状不同的优化器遗忘多 20-80%;真正可迁移的预测指标是通用文本上 Fisher 加权更新尺寸的 K-FAC 形式,R² 达 0.55-0.79。
正文 · 原文
Abstract:Which property of a fine-tuning update determines how much a language model forgets? Recent work argues that the KL divergence from the base model on the new task is the one consistent predictor. We test candidate predictors under a stricter protocol: we change the optimizer while holding task, model and LoRA adapter fixed, fit forgetting as a monotone function of each candidate on all optimizers but one, and predict the held-out optimizer. On Llama-3.2 1B and 3B fine-tuned on grade-school math, KL and weight distance fit pooled runs in-sample but predict held-out optimizers no better than a constant ($R^2\le0.11$): at equal KL, optimizers whose updates differ in shape from AdamW's forget 20-80% more. The predictor that transfers is the K-FAC form of the Fisher-weighted update size on general text, $\operatorname{tr}(\Delta W^\top G\,\Delta W\,\Sigma)$, which combines the second moment $\Sigma$ of each layer's inputs with the second moment $G$ of the loss gradient at its outputs: it predicts held-out optimizers with $R^2$ 0.55-0.79 in all four model, dataset and adapter settings, including LoRA on all linear layers. Its gradient-free special case $G=I$, $\|\Delta W\|_\Sigma^2=\mathbb{E}_x\|\Delta W x\|^2$, does as well when only the attention projections are adapted ($R^2$ 0.67-0.77) but not when the MLP is adapted (0.22). A causal test confirms the role of the input subspace: removing from every update the principal subspace of general-text inputs reduces forgetting ninefold at unchanged task accuracy and unchanged KL, whereas removing a random or least-energy subspace of the same dimension does not reduce forgetting. Forgetting under LoRA fine-tuning is governed by where the update falls relative to the inputs and loss sensitivity of general text, not by how far the model moves in weight space or in its output distribution on the new task.
| Comments: | 13 pages, 5 figures, 4 tables |
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2612.02912 [cs.LG] |
| (or arXiv:2612.02912v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2612.02912 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Zhiyong Jin [view email]
[v1]
Wed, 2 Dec 2026 00:11:27 UTC (188 KB)
来源:arXiv cs.AI · arxiv.org