arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.12744cs.LG
收藏

LoRA B矩阵中基于损失的遗忘问题上,静态梯度归因的表现逊于密度匹配的随机掩码

Static Gradient Attribution Underperforms a Density-Matched Random Mask on Loss-Based Forgetting Within LoRA B-Matrix

University of Pennsylvania(宾夕法尼亚大学);Matter Innovation Inc.(Matter创新公司);University of California, Davis(加州大学戴维斯分校);Johns Hopkins University(约翰斯·霍普金斯大学);University of California, Irvine(加州大学欧文分校);University of Glasgow(格拉斯哥大学);Stanford University(斯坦福大学);California State University, Long Beach(加州州立大学长滩分校)

Yu Sun, Junwei Zhou, Zuodong Xiang, Yike Zhang, Pengcheng Xu, Xinyu Guan, Ruoyun Ma, Hailu Xu

AI总结:

该研究发现,在LoRA B矩阵的损失遗忘问题中,参数高效持续学习的梯度归因表现逊于密度匹配的随机掩码,且效应集中于占比80%的医学任务。

摘要:

参数高效的持续学习通过更新适配器参数的受限子集来整合顺序任务,同时限制灾难性遗忘。梯度归因是选择该子集的常用规则,但它需要在校准数据上进行额外的反向传播。我们在标准零初始化LoRA(B=0)下,发现初始化时梯度掩码与无限制随机掩码比较中存在参数池混淆:关于A的梯度恒为零(∂L/∂A=0),因此梯度掩码仅从B矩阵中选择,而无限制随机掩码则从A和B两者中抽取。这种比较同时改变了选择规则和候选参数池。通过将两种方法限制在同一参数池以隔离选择准则,我们得到了负面结果:在Qwen2.5-3B上的7个随机种子实验中,均匀随机掩码始终实现比梯度归因更低的基于损失的反向迁移。该效应集中在占总和80%的医学任务上;代码任务和数学任务表现方向一致,法律任务无可靠差异。在测试的任务序列下,此优势与稳定性-可塑性权衡一致,其中随机掩码略微降低了单任务拟合。在两个离散选项任务(医学和法律)上,平均准确率-反向迁移(BWT)差异在统计上与零无区别。

英文摘要:

Parameter-efficient continual learning updates a restricted subset of adapter parameters to incorporate sequential tasks while limiting catastrophic forgetting. Gradient attribution is a common rule for selecting that subset, but it requires an additional backward pass over calibration data. We identify a parameter-pool confound in comparisons between initialization-time gradient masks and unrestricted random masks under standard zero-initialized LoRA ($B=0$): the gradient with respect to $A$ is identically zero ($\partial\mathcal{L}/\partial A=0$), so gradient masks select strictly from the $B$ matrix whereas unrestricted random masks draw from both $A$ and $B$. Such a comparison changes both the selection rule and the candidate parameter pool. Isolating the selection criterion by restricting both approaches to the same parameter pool, we find a negative result: a uniform random mask consistently achieves lower loss-based backward transfer than gradient attribution across seven seeds on Qwen2.5-3B. The effect is concentrated on the medical task, which contributes 80\% of the aggregate; code and math move in the same direction, and legal shows no reliable difference. This advantage is consistent with a stability--plasticity trade-off under the tested task sequence, in which random masking slightly reduces single-task fitting. On the two discrete-option tasks (Medical and Legal), the mean accuracy-BWT difference is not statistically distinguishable from zero.

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

↑