[Paper Review] Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Models
This paper proposes linearizing vision-language models in their tangent space to enhance task arithmetic performance by amplifying weight disentanglement—where distinct weight directions control separate, localized input regions. By fine-tuning in the tangent space, the method achieves up to 5.8 accuracy points higher on task addition and 13.1 points lower on task negation across benchmarks, revealing that weight disentanglement, not the NTK alone, is the key enabler of effective task arithmetic in pre-trained models.
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.
Motivation & Objective
- To understand the fundamental mechanisms enabling task arithmetic in pre-trained models.
- To investigate why task arithmetic works in nonlinear models despite limitations of the neural tangent kernel (NTK).
- To improve the reliability and performance of model editing via linearized fine-tuning in the tangent space.
- To establish a link between weight disentanglement and spatial localization of NTK eigenfunctions.
- To demonstrate that weight disentanglement is an emergent property of pre-training, not present at random initialization.
Proposed method
- The authors formalize task arithmetic as a property (Property 1) that enables additive combination of task-specific weight updates.
- They introduce linearized fine-tuning by approximating the model's dynamics using its tangent space, effectively linearizing the model around the pre-trained weights.
- Weight disentanglement is quantified via a disentanglement error metric that measures how independently different weight directions affect distinct input regions.
- The spatial localization of NTK eigenfunctions is analyzed to link kernel structure to functional disentanglement in linearized models.
- Experiments are conducted on CLIP, ConvNeXt, and T5-Base models across vision and NLP tasks to validate findings across architectures and modalities.
- The method compares nonlinear and linearized fine-tuning across multiple benchmarks, including VQA, Hateful Memes, and IMDB/QASC, to evaluate performance on task addition and negation.
Experimental results
Research questions
- RQ1What underlying property enables task arithmetic in pre-trained models, and why does it fail in randomly initialized models?
- RQ2To what extent can the neural tangent kernel explain task arithmetic in nonlinear pre-trained models?
- RQ3How does linearizing the model in its tangent space affect weight disentanglement and task arithmetic performance?
- RQ4Is weight disentanglement an emergent property of pre-training, and if so, when does it emerge?
- RQ5What is the relationship between the spatial localization of NTK eigenfunctions and the functional disentanglement of model weights?
Key findings
- Linearized fine-tuning significantly improves task arithmetic performance, achieving up to 5.8 points higher accuracy on task addition and 13.1 points lower on task negation compared to nonlinear fine-tuning.
- Weight disentanglement—where distinct weight directions control disjoint input regions—is the key factor enabling task arithmetic, not the NTK itself.
- Weight disentanglement emerges during pre-training and is absent at random initialization, indicating it is an emergent property of the pre-training process.
- The spatial localization of NTK eigenfunctions in pre-trained models correlates with functional disentanglement, providing a theoretical link to the success of linearized fine-tuning.
- The method generalizes across architectures and modalities, as shown by successful task arithmetic in both vision (CLIP, ConvNeXt) and NLP (T5-Base) models.
- Randomly initialized models fail at task arithmetic not due to poor learning capacity, but due to lack of weight disentanglement, even when they achieve moderate single-task accuracy.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.