Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models
Abstract
Task arithmetic has recently emerged as a cost-effective and scalable approach to edit pre-trained models directly in weight space: By adding the fine-tuned weights of different tasks, the model's performance can be improved on these tasks, while negating them leads to task forgetting. Yet, our understanding of the effectiveness of task arithmetic and its underlying principles remains limited. We present a comprehensive study of task arithmetic in vision-language models and show that weight disentanglement is the crucial factor that makes it effective. This property arises during pre-training and manifests when distinct directions in weight space govern separate, localized regions in function space associated with the tasks. Notably, we show that fine-tuning models in their tangent space by linearizing them amplifies weight disentanglement. This leads to substantial performance improvements across multiple task arithmetic benchmarks and diverse models. Building on these findings, we provide theoretical and empirical analyses of the neural tangent kernel (NTK) of these models and establish a compelling link between task arithmetic and the spatial localization of the NTK eigenfunctions. Overall, our work uncovers novel insights into the fundamental mechanisms of task arithmetic and offers a more reliable and effective approach to edit pre-trained models through the NTK linearization.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
131 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- TIES-Merging: Resolving Interference When Merging Models cites LoRA: Low-Rank Adaptation of Large Language Models
- TIES-Merging: Resolving Interference When Merging Models cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- TIES-Merging: Resolving Interference When Merging Models cites Learning Transferable Visual Models From Natural Language Supervision
- Twin-Merging: Dynamic Integration of Modular Expertise in Model Merging cites LoRA: Low-Rank Adaptation of Large Language Models
- Twin-Merging: Dynamic Integration of Modular Expertise in Model Merging cites TIES-Merging: Resolving Interference When Merging Models
- Twin-Merging: Dynamic Integration of Modular Expertise in Model Merging cites AdaMerging: Adaptive Model Merging for Multi-Task Learning
- Twin-Merging: Dynamic Integration of Modular Expertise in Model Merging cites Learning Transferable Visual Models From Natural Language Supervision
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale cites A Simple Framework for Contrastive Learning of Visual Representations
- Localizing Task Information for Improved Model Merging and Compression cites TIES-Merging: Resolving Interference When Merging Models
- Localizing Task Information for Improved Model Merging and Compression cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Localizing Task Information for Improved Model Merging and Compression cites AdaMerging: Adaptive Model Merging for Multi-Task Learning
- Localizing Task Information for Improved Model Merging and Compression cites Learning Transferable Visual Models From Natural Language Supervision
- AdaMerging: Adaptive Model Merging for Multi-Task Learning cites LoRA: Low-Rank Adaptation of Large Language Models
- AdaMerging: Adaptive Model Merging for Multi-Task Learning cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- AdaMerging: Adaptive Model Merging for Multi-Task Learning cites Learning Transferable Visual Models From Natural Language Supervision
- Learning Transferable Visual Models From Natural Language Supervision cites A Simple Framework for Contrastive Learning of Visual Representations
- Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models cites LoRA: Low-Rank Adaptation of Large Language Models
- WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models cites TIES-Merging: Resolving Interference When Merging Models
- WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language Models cites A Simple Framework for Contrastive Learning of Visual Representations
Cited by top-tier papers131
- TIES-Merging: Resolving Interference When Merging ModelsPrateek Yadav, Derek Tam, Leshem Choshen, Colin A. Raffel et al.NeurIPS 2023 · 999 citations
- AdaMerging: Adaptive Model Merging for Multi-Task LearningEnneng Yang, Zhenyi Wang, Li Shen, Shiwei Liu et al.ICLR 2024 · 230 citations
- Twin-Merging: Dynamic Integration of Modular Expertise in Model MergingZhenyi Lu, Chenghao Fan, Wei Wei, Xiaoye Qu et al.NeurIPS 2024 · 139 citations
- WISE: Rethinking the Knowledge Memory for Lifelong Model Editing of Large Language ModelsPeng Wang, Zexi Li, Ningyu Zhang, Ziwen Xu et al.NeurIPS 2024 · 125 citations
- Localizing Task Information for Improved Model Merging and CompressionKe Wang, Nikolaos Dimitriadis, Guillermo Ortiz-Jiménez, François Fleuret et al.ICML 2024 · 107 citations
Builds on41
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- Training language models to follow instructions with human feedbackLong Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida et al.NeurIPS 2022 · 24,707 citations
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
Related papers
- Fine-Tuning Attention Modules Only: Enhancing Weight Disentanglement in Task ArithmeticRuochen Jin, Bojian Hou, Jiancong Xiao, Weijie J. Su et al.ICLR 2025
- Distilling Linearized Behavior into Non-linear Fine-Tuning for Effective Task ArithmeticThomas Sommariva, Francesca Morandi, Simone Calderara, Angelo PorrelloICML 2026 · 2 citations
- Understanding and Enforcing Weight Disentanglement in Task ArithmeticShangge Liu, Yuehan Yin, Lei Wang, Qi Fan et al.CVPR 2026 · 3 citations
- Editing models with task arithmeticGabriel Ilharco, Marco Túlio Ribeiro, Mitchell Wortsman, Ludwig Schmidt et al.ICLR 2023 · 31 citations
- Efficient Model Editing with Task-Localized Sparse Fine-tuningLeonardo Iurada, Marco Ciccone, Tatiana TommasiICLR 2025
