mlsanityData to 14 Oct 2026

On Task Vectors and Gradients

arXiv 2508.16082 ↗First posted 22 Aug 2025cs.LG cs.AIcited by 7

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

  1. 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,396
  2. 2020Gradient Surgery for Multi-Task Learningcited by 1,256
  3. 2022Editing Models with Task Arithmeticcited by 1,120
  4. 2023TIES-Merging: Resolving Interference When Merging Modelscited by 818
  5. 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 694
  6. 2017Spectrally-normalized margin bounds for neural networkscited by 686
  7. 2019Linear Mode Connectivity and the Lottery Ticket Hypothesiscited by 637
  8. 2018Taskonomy: Disentangling Task Transfer Learningcited by 634
  9. 2021Merging Models with Fisher-Weighted Averagingcited by 621
  10. 2016Error bounds for approximations with deep ReLU networkscited by 574
  11. 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 471
  12. 2021Conflict-Averse Gradient Descent for Multi-task Learningcited by 459
17 more
  1. 2022Dataless Knowledge Fusion by Merging Weights of Language Modelscited by 387
  2. 2021The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networkscited by 291
  3. 2017Size-Independent Sample Complexity of Neural Networkscited by 290
  4. 2023AdaMerging: Adaptive Model Merging for Multi-Task Learningcited by 252
  5. 2023Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Modelscited by 221
  6. 2019Model Fusion via Optimal Transportcited by 219
  7. 2018A Convergence Analysis of Gradient Descent for Deep Linear Neural Networkscited by 184
  8. 2023Model Breadcrumbs: Scaling Multi-Task Model Merging with Sparse Maskscited by 133
  9. 2022REPAIR: REnormalizing Permuted Activations for Interpolation Repaircited by 120
  10. 2024Twin-Merging: Dynamic Integration of Modular Expertise in Model Mergingcited by 116
  11. 2022Fusing finetuned models for better pretrainingcited by 110
  12. 2024Representation Surgery for Multi-Task Model Mergingcited by 96
  13. 2023Model Merging by Uncertainty-Based Gradient Matchingcited by 77
  14. 2024Lottery Ticket Adaptation: Mitigating Destructive Interference in LLMscited by 31
  15. 2023PopulAtion Parameter Averaging (PAPA)cited by 23
  16. 2024C2M3: Cycle-Consistent Multi-Model Mergingcited by 20
  17. 2022Beyond Lipschitz: Sharp Generalization and Excess Risk Bounds for Full-Batch GDcited by 19

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 6.

7 papers.