Task Arithmetic Through The Lens Of One-Shot Federated Learning

Zhixu Silvia Tao, Ian Mason, Sanjeev Kulkarni, Xavier Boix
11/27/2024
cs.LG

No confident code implementation found for this paper.

Abstract

Task Arithmetic is a model merging technique that enables the combination of multiple models' capabilities into a single model through simple arithmetic in the weight space, without the need for additional fine-tuning or access to the original training data. However, the factors that determine the success of Task Arithmetic remain unclear. In this paper, we examine Task Arithmetic for multi-task learning by framing it as a one-shot Federated Learning problem. We demonstrate that Task Arithmetic is mathematically equivalent to the commonly used algorithm in Federated Learning, called Federated Averaging (FedAvg). By leveraging well-established theoretical results from FedAvg, we identify two key factors that impact the performance of Task Arithmetic: data heterogeneity and training heterogeneity. To mitigate these challenges, we adapt several algorithms from Federated Learning to improve the effectiveness of Task Arithmetic. Our experiments demonstrate that applying these algorithms can often significantly boost performance of the merged model compared to the original Task Arithmetic approach. This work bridges Task Arithmetic and Federated Learning, offering new theoretical perspectives on Task Arithmetic and improved practical methodologies for model merging.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tao2024task,
  title  = {Task Arithmetic Through The Lens Of One-Shot Federated Learning},
  author = {Zhixu Silvia Tao and Ian Mason and Sanjeev Kulkarni and Xavier Boix},
  year   = {2024},
  eprint = {2411.18607},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.18607v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.18607.svg)](https://codeofpaper.com/paper/2411.18607)

Discussion