On Task Vectors and Gradients
Not on the map. Why?
Abstract (arXiv)
Task arithmetic has emerged as a simple yet powerful technique for model merging, enabling the combination of multiple finetuned models into one. Despite its empirical success, a clear theoretical explanation of why and when it works is lacking. This paper provides a rigorous theoretical foundation for task arithmetic by establishing a connection between task vectors and gradients of the task losses. We show that under standard gradient descent, a task vector generated from one epoch of finetuning is exactly equivalent to the negative gradient of the loss, scaled by the learning rate. For the practical multi-epoch setting, we prove that this equivalence holds approximately, with a second-order error term that we explicitly bound for feed-forward networks. Our empirical analysis across seven vision benchmarks corroborates our theory, demonstrating that the first-epoch gradient dominates the finetuning trajectory in both norm and direction. A key implication is that merging models finetuned for only a single epoch often yields performance comparable to merging fully converged models. These findings reframe task arithmetic as a form of approximate multitask learning, providing a clear rationale for its effectiveness and highlighting the critical role of early training dynamics in model merging.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 29 of its 32 references that are in the map. First posted on arXiv 22 Aug 2025.
Builds on
29 of 32 references.
References · 29
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,396
- 2020Gradient Surgery for Multi-Task Learningcited by 1,256
- 2022Editing Models with Task Arithmeticcited by 1,120
- 2023TIES-Merging: Resolving Interference When Merging Modelscited by 818
- 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 694
- 2017Spectrally-normalized margin bounds for neural networkscited by 686
- 2019Linear Mode Connectivity and the Lottery Ticket Hypothesiscited by 637
- 2018Taskonomy: Disentangling Task Transfer Learningcited by 634
- 2021Merging Models with Fisher-Weighted Averagingcited by 621
- 2016Error bounds for approximations with deep ReLU networkscited by 574
- 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 471
- 2021Conflict-Averse Gradient Descent for Multi-task Learningcited by 459
17 more
- 2022Dataless Knowledge Fusion by Merging Weights of Language Modelscited by 387
- 2021The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networkscited by 291
- 2017Size-Independent Sample Complexity of Neural Networkscited by 290
- 2023AdaMerging: Adaptive Model Merging for Multi-Task Learningcited by 252
- 2023Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Modelscited by 221
- 2019Model Fusion via Optimal Transportcited by 219
- 2018A Convergence Analysis of Gradient Descent for Deep Linear Neural Networkscited by 184
- 2023Model Breadcrumbs: Scaling Multi-Task Model Merging with Sparse Maskscited by 133
- 2022REPAIR: REnormalizing Permuted Activations for Interpolation Repaircited by 120
- 2024Twin-Merging: Dynamic Integration of Modular Expertise in Model Mergingcited by 116
- 2022Fusing finetuned models for better pretrainingcited by 110
- 2024Representation Surgery for Multi-Task Model Mergingcited by 96
- 2023Model Merging by Uncertainty-Based Gradient Matchingcited by 77
- 2024Lottery Ticket Adaptation: Mitigating Destructive Interference in LLMscited by 31
- 2023PopulAtion Parameter Averaging (PAPA)cited by 23
- 2024C2M3: Cycle-Consistent Multi-Model Mergingcited by 20
- 2022Beyond Lipschitz: Sharp Generalization and Excess Risk Bounds for Full-Batch GDcited by 19
Built on by
Citing papers per year: 2025: 1; 2026: 6.
7 papers.
- 2026Demystifying Mergeability: Interpretable Properties to Predict Model Merging Successcited by 7
- 2025Defending Unauthorized Model Merging via Dual-Stage Weight Protectioncited by 2
- 2026Zero-Shot Quantization via Weight-Space Arithmeticcited by 2
- 2026Can Model Merging Improve Aggregation in DiLoCo?cited by 1
- 2026Beyond Fixed Rounds: Data-Free Early Stopping for Practical Federated Learningcited by 0
- 2026Efficient Decentralized Multi-task Dataset Valuation via Model Mergingcited by 0
- 2026On Emergent Capabilities and Model Mergingcited by 0
- 2026On Emergent Capabilities and Model Merging21 Sep 2026
- 2026Efficient Decentralized Multi-task Dataset Valuation via Model Merging3 Jul 2026
- 2026Can Model Merging Improve Aggregation in DiLoCo?3 Jul 2026
- 2026Zero-Shot Quantization via Weight-Space Arithmetic3 Apr 2026
- 2026Beyond Fixed Rounds: Data-Free Early Stopping for Practical Federated Learning30 Jan 2026
- 2026Demystifying Mergeability: Interpretable Properties to Predict Model Merging Success29 Jan 2026
- 2025Defending Unauthorized Model Merging via Dual-Stage Weight Protection14 Nov 2025