# Poster 29556

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/29556

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi everyone, I'm Leonardo and today I'm presenting you our latest work accepted at ICLR 2025. So context. In recent years we saw how many companies started open sourcing their pre-training models and this combined with advancements in parameter efficient fine-tuning and model quantization has made model adaptation increasingly accessible even on consumer grade GPUs.
And we now have an ecosystem of specialized models that are fine-tuned for specific tasks and freely shared on open platforms. And this collaborative approach is great because it allows users to adapt and edit pre-trained models more efficiently directly by sharing checkpoints online.
And in this context, task arithmetic has emerged as a promising framework for a scalable and cost-effective model editing. So when a user fine-tunes a model for a specific task, let's say math or coding, knowledge about the task can be encoded as a task vector, essentially the difference between the fine -tuned weights and the original pretrained.
And these vectors can then be downloaded by other users and combined. For example they can be added to the pre-trained weights to enhance a specific skill, example math, subtracted to suppress unwanted behaviours like toxicity, or merged together to create a multitask model, enhancing thus multiple skills at once.
But there's a major challenge because when task vectors are derived independently, adding or removing them can unintentionally harm what the model has already learned. And this is called the task interference and happens when the task vectors modify shared parameters that affect multiple tasks. So how do we prevent interference? Ideally, changes in one part of the model should only affect the relevant task and leave everything else untouched.
And this is known as the weight disentanglement, a property that emerges naturally during large-scale pre-training, and this makes foundation models a great fit for task arithmetic, provided that we can figure out how to fine -tune them without breaking the property. Our study thus answers how can we preserve weight disentanglement during fine -tuning so that the resulting task vectors will have minimal negative interference with each other.
Formally, a weight disentanglement is fulfilled if when receiving an input for unknown data support, only the correct task function activates in the composed model. While when receiving an input outside of all known data supports, the output falls back to the one of the base pre -trained model. Previous works tried preserving it by fine -tuning the linearized version of the model, as this explicitly constraints have to be represented as a linear combination of functions.
But notice that each restored term does not necessarily correspond to a function that vanishes outside its own task data support. Thus, linearization alone is not sufficient. In our work, instead, we impose localization as a set of constraints that ensure that updating the model on a task does not affect how the model processes data from other tasks, exactly preventing interference.
The problem is that these constraints require simultaneous access to data from all tasks, which is impractical in realistic scenarios where we want to enable users to optimize their models asynchronously on private data. So to address this, we discovered that there exists some so-called special parameters in large Bayesian models, having consistently low gradient component for all tasks.
For which we can rewrite the localization constraints as depending only on the data for the task at hand. Thus, we propose learning task vectors via task-localized sparse fine-tuning, TALOS for short, in which we rank weights according to their sensitivity and update only those with the sensitivity lower than some user-defined threshold.
This allows us to learn each fast vector by respecting localization and weight disentanglement, as this approach will minimally increase the constraints that product. And indeed, plotting the weight disentanglement error, we can see that TALOS fast vectors are more weight disentangled, where here lighter regions means more weight disentanglement across task pairs on both vision and language.
And the special parameters that Talos selects are always in the QMK projections of self-attention layers, which is remarkable because this structure allows most of the weights to be fully kept frozen during optimization, further improving the fine-tuning efficiency. And indeed, looking at experimental results on both task addition and negation, Talos consistently outperforms existing approaches, comparing the enhanced quality of the task vector it derives.
And for efficiency overall, we see huge gains in both memory and training speed, especially on larger models, as expected. This concludes and summarizes briefly the observations of our study and potential extensions, and you can find more details on our page and paper at the following links or by scanning the QR code and feel free to reach out by email and I hope to see you at ICLR. Thanks.
