arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.20186cs.CLcs.LG
收藏

层感知任务算术:解耦任务特定知识与指令遵循知识

Layer-Aware Task Arithmetic: Disentangling Task-Specific and Instruction-Following Knowledge

National Yang Ming Chiao Tung University(国立阳明交通大学);Hon Hai Research Institute(鸿海研究院)

Yan-Lun Chen, Yi-Ru Wei, Chia-Yi Hsu, Chia-Mu Yu, Chun-Ying Huang, Ying-Dar Lin, Yu-Sung Wu, Wei-Bin Lee

AI总结:

针对多模型合并时任务特定知识与指令遵循知识纠缠导致性能下降的问题,提出层感知任务算术(LATA),通过层特定权重放大任务相关层、衰减指令层,在多个基准上提升多任务学习与选择性遗忘性能。

摘要:

大型语言模型(LLMs)通过微调展现出强大的任务特定能力,但合并多个微调模型常因指令遵循组件的重叠而导致性能下降。任务算术(TA)通过组合源自微调的任务向量,实现多任务学习与任务遗忘,但在将任务特定知识与通用指令遵循行为分离方面存在困难。为解决此问题,我们提出层感知任务算术(LATA),一种新颖方法,根据任务向量与指令遵循或任务特定组件的对齐程度,为其分配层特定权重。通过放大任务相关层并衰减指令遵循层,LATA在保持整体模型效用的同时,提升了任务学习与遗忘性能。在包括WikiText-2、GSM8K和HumanEval在内的多个基准上的实验表明,LATA在多任务学习和选择性任务遗忘方面均优于现有方法,实现了更高的任务准确率和对齐度,且输出质量退化最小。我们的发现强调了层分析在解耦任务特定知识与通用知识中的重要性,为高效模型合并与编辑提供了稳健框架。

英文摘要:

Large language models (LLMs) demonstrate strong task-specific capabilities through fine-tuning, but merging multiple fine-tuned models often leads to degraded performance due to overlapping instruction-following components. Task Arithmetic (TA), which combines task vectors derived from fine-tuning, enables multi-task learning and task forgetting but struggles to isolate task-specific knowledge from general instruction-following behavior. To address this, we propose Layer-Aware Task Arithmetic (LATA), a novel approach that assigns layer-specific weights to task vectors based on their alignment with instruction-following or task-specific components. By amplifying task-relevant layers and attenuating instruction-following layers, LATA improves task learning and forgetting performance while preserving overall model utility. Experiments on multiple benchmarks, including WikiText-2, GSM8K, and HumanEval, demonstrate that LATA outperforms existing methods in both multi-task learning and selective task forgetting, achieving higher task accuracy and alignment with minimal degradation in output quality. Our findings highlight the importance of layer-wise analysis in disentangling task-specific and general-purpose knowledge, offering a robust framework for efficient model merging and editing.

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

↑