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

学习何时适应

Learning When to Adapt

Universität des Saarlandes(萨尔布吕肯大学);CISPA Helmholtz Center for Information Security(信息安全研究中心)

Ali Zindari, Xiaowen Jiang, Rotem Mulayoff, Sebastian U. Stich

AI总结:

本文提出DISeL,一种动态输入敏感的低秩适应方法,通过引入轻量级输入依赖门控机制,减少遗忘并保持微调准确性,同时提供可解释的诊断视图。

摘要:

低秩适应(LoRA)是一种广泛使用的参数高效微调方法,但其学习修正却是静态的:相同的低秩更新被应用于每一个输入。这种输入无关的方法在适应微调分布和保持预训练行为在该分布之外的输入之间造成不可避免的权衡,导致灾难性遗忘。我们引入DISeL(动态输入敏感LoRA),通过在LoRA模块中添加轻量级的输入依赖门控机制,增强每个秩一组件。门控机制默认保留预训练模型的行为,而训练过程学习激活选定的组件以减少微调损失。DISeL仅添加少量参数并保持低秩结构。在RoBERTa在GLUE上的表现,以及经过数学推理和代码生成微调的Llama和Mistral模型中,DISeL相比LoRA及相关变体减少了遗忘,同时保持竞争性的微调准确性。此外,学习到的门控激活提供了可解释的诊断视图,显示哪些层和秩组件在微调过程中最活跃,从而提供关于任务特定适应集中位置的见解。代码可在https://github.com/alizindari/DISeL获得。

英文摘要:

Low-rank adaptation (LoRA) is a widely used parameter-efficient fine-tuning method, yet its learned correction is static: the same low-rank update is applied to every input. This input-agnostic approach creates an inevitable compromise between adapting to the fine-tuning distribution and preserving pre-trained behavior on inputs outside that distribution, contributing to catastrophic forgetting. We introduce DISeL (Dynamic Input-Sensitive LoRA), which augments LoRA modules with lightweight input-dependent gates over individual rank-one components. The gating mechanism is designed to preserve the pre-trained model's behavior by default, while training learns to activate selected components that reduce the fine-tuning loss. DISeL adds only a small number of parameters and preserves the low-rank structure. Across RoBERTa on GLUE, and Llama and Mistral models fine-tuned for mathematical reasoning and code generation, DISeL reduces forgetting relative to LoRA and related variants while maintaining competitive fine-tuning accuracy. In addition, the learned gate activations provide an interpretable diagnostic view of which layers and rank components are most activated during fine-tuning, giving insight into where task-specific adaptation is concentrated. Code available at https://github.com/alizindari/DISeL .

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

↑