mlsanityData to 7 Oct 2026

Fine-Tuning Attention Modules Only: Enhancing Weight Disentanglement in Task Arithmetic

arXiv 2407.07089 ↗First posted 9 Jul 2024cs.LGcited by 14

Not on the map. Why?

Abstract (arXiv)

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. (The code is available at https://github.com/kyrie-23/task_arithmetic_tangent)

Key facts. Cited by 14 papers in the map (data through 7 Oct 2026). Builds on 31 of its 46 references that are in the map. First posted on arXiv 9 Jul 2024.

Builds on

31 of 46 references.

References · 31

  1. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  5. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  6. 2018Neural Tangent Kernel: Convergence and Generalization in Neural Networkscited by 2,597
  7. 2020Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domainscited by 2,170
  8. 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
  9. 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
  10. 2022Reproducible scaling laws for contrastive language-image learningcited by 1,163
  11. 2019A Comprehensive Survey on Transfer Learningcited by 1,154
  12. 2022Editing Models with Task Arithmeticcited by 1,076
19 more
  1. 2017Remote Sensing Image Scene Classification: Benchmark and State of the Artcited by 791
  2. 2021Merging Models with Fisher-Weighted Averagingcited by 613
  3. 2018Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNscited by 585
  4. 2022Improving alignment of dialogue agents via targeted human judgementscited by 527
  5. 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 460
  6. 2023AdaMerging: Adaptive Model Merging for Multi-Task Learningcited by 248
  7. 2022Quark: Controllable Text Generation with Reinforced Unlearningcited by 236
  8. 2023Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Modelscited by 218
  9. 2022Patching open-vocabulary models by interpolating weightscited by 187
  10. 2023ZipIt! Merging Models from Different Tasks without Trainingcited by 178
  11. 2023Composing Parameter-Efficient Modules with Arithmetic Operationscited by 155
  12. 2024EMR-Merging: Tuning-Free High-Performance Model Mergingcited by 108
  13. 2024On the Algorithmic Bias of Aligning Large Language Models with RLHF: Preference Collapse and Matching Regularizationcited by 72
  14. 2021Editing a classifier by rewriting its prediction rulescited by 64
  15. 2023Parameter Efficient Multi-task Model Fusion with Partial Linearizationcited by 64
  16. 2020Optimism in the Face of Adversity: Understanding and Improving Deep Learning through Adversarial Robustnesscited by 28
  17. 2024Training Neural Networks from Scratch with Parallel Low-Rank Adapterscited by 17
  18. 2017Learning with Feature Evolvable Streamscited by 15
  19. 2023Tangent Transformers for Composition, Privacy and Removalcited by 13

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 5; 2026: 8.

14 papers.

Sort:

By area: