Fine-Tuning Attention Modules Only: Enhancing Weight Disentanglement in Task Arithmetic
Ruochen Jin, Bojian Hou, Jiancong Xiao, Weijie J. Su, Li Shen
摘要
In recent years, task arithmetic has garnered increasing attention. This approach edits pre-trained models directly in weight space by combining the fine-tuned weights of various tasks into a unified model. Its efficiency and cost-effectiveness stem from its training-free combination, contrasting with traditional methods that require model training on large datasets for multiple tasks. However, applying such a unified model to individual tasks can lead to interference from other tasks (lack of weight disentanglement). To address this issue, Neural Tangent Kernel (NTK) linearization has been employed to leverage a "kernel behavior", facilitating weight disentanglement and mitigating adverse effects from unrelated tasks. Despite its benefits, NTK linearization presents drawbacks, including doubled training costs, as well as reduced performance of individual models. To tackle this problem, we propose a simple yet effective and efficient method that is to finetune the attention modules only in the Transformer. Our study reveals that the attention modules exhibit kernel behavior, and fine-tuning the attention modules only significantly improves weight disentanglement. To further understand how our method improves the weight disentanglement of task arithmetic, we present a comprehensive study of task arithmetic by differentiating the role of the representation module and task-specific module. In particular, we find that the representation module plays an important role in improving weight disentanglement whereas the task-specific modules such as the classification heads can degenerate the weight disentanglement performance. 1
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 17 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Dataless Weight Disentanglement in Task Arithmetic via Kronecker-Factored Approximate Curvature 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Merging on the Fly Without Retraining: A Sequential Approach to Scalable Continual Model Merging 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- Merging on the Fly Without Retraining: A Sequential Approach to Scalable Continual Model Merging 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Understanding and Enforcing Weight Disentanglement in Task Arithmetic 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- Understanding and Enforcing Weight Disentanglement in Task Arithmetic 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Understanding and Enforcing Weight Disentanglement in Task Arithmetic 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Distilling Linearized Behavior into Non-linear Fine-Tuning for Effective Task Arithmetic 引用了 Dataless Weight Disentanglement in Task Arithmetic via Kronecker-Factored Approximate Curvature
- Distilling Linearized Behavior into Non-linear Fine-Tuning for Effective Task Arithmetic 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Navigating the Accuracy-Size Trade-Off with Flexible Model Merging 引用了 Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time
- Navigating the Accuracy-Size Trade-Off with Flexible Model Merging 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Navigating the Accuracy-Size Trade-Off with Flexible Model Merging 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Learning Transferable Visual Models From Natural Language Supervision 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
引用它的顶会 Paper17
- Merging on the Fly Without Retraining: A Sequential Approach to Scalable Continual Model MergingAnke Tang, Enneng Yang, Li Shen, Yong Luo 等NeurIPS 2025 · 8 次引用
- Dataless Weight Disentanglement in Task Arithmetic via Kronecker-Factored Approximate CurvatureAngelo Porrello, Pietro Buzzega, Felix Dangel, Thomas Sommariva 等ICLR 2026 · 6 次引用
- Understanding and Enforcing Weight Disentanglement in Task ArithmeticShangge Liu, Yuehan Yin, Lei Wang, Qi Fan 等CVPR 2026 · 3 次引用
- Distilling Linearized Behavior into Non-linear Fine-Tuning for Effective Task ArithmeticThomas Sommariva, Francesca Morandi, Simone Calderara, Angelo PorrelloICML 2026 · 2 次引用
- Navigating the Accuracy-Size Trade-Off with Flexible Model MergingAkash Balasaheb Dhasade, Divyansh Jhunjhunwala, Milos Vujasinovic, Gauri Joshi 等ICLR 2026 · 2 次引用
它引用的 Paper18
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida 等NeurIPS 2022 · 24,707 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional DomainsMatthew Tancik, Pratul P. Srinivasan, Ben Mildenhall, Sara Fridovich-Keil 等NeurIPS 2020 · 4,036 次引用
- Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timeMitchell Wortsman, Gabriel Ilharco, Samir Yitzhak Gadre, Rebecca Roelofs 等ICML 2022 · 1,464 次引用
相关 Paper
- Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained ModelsGuillermo Ortiz-Jiménez, Alessandro Favero, Pascal FrossardNeurIPS 2023 · 272 次引用
- Efficient Model Editing with Task-Localized Sparse Fine-tuningLeonardo Iurada, Marco Ciccone, Tatiana TommasiICLR 2025
- Leveraging Submodule Linearity Enhances Task Arithmetic Performance in LLMsRui Dai, Sile Hu, Xu Shen, Yonggang Zhang 等ICLR 2025
- When is Task Vector Provably Effective for Model Editing? A Generalization Analysis of Nonlinear TransformersHongkang Li, Yihua Zhang, Shuai Zhang, Pin-Yu Chen 等ICLR 2025
- Editing models with task arithmeticGabriel Ilharco, Marco Túlio Ribeiro, Mitchell Wortsman, Ludwig Schmidt 等ICLR 2023 · 31 次引用
