TL;DR
This paper reveals that when we merge multiple task-specific models into one, the specialized information isn't actually "erased"—it’s just buried under interference. By introducing TALL-masks to localize task-specific weights and Consensus Merging to filter out "selfish" parameters that hurt collective performance, the authors achieve massive storage compression (up to 85%) and state-of-the-art multi-task accuracy.
Introduction
In the era of foundation models, we often fine-tune a base model (like CLIP or T5) on many different downstream tasks. Storing a full copy of the model for every single task is prohibitively expensive.
Task Arithmetic emerged as a solution: you take the "task vector" (the difference between the fine-tuned weights and the pre-trained weights) and simply add these vectors together. While elegant and scalable, this usually leads to a significant drop in performance compared to individual models.
Researchers previously assumed this happened because information was being "erased" during the merge or because weights were interfering with each other. This paper asks: Is the information actually gone, or are we just looking at it the wrong way?
Methodology
The authors propose two primary innovations based on the idea of Task Localization:
-
TALL-masks (TAsk LocaLization Masks): The authors demonstrate that the information for each task is still present in the merged multi-task vector. They develop an algorithm to identify a binary mask for each task. By applying this mask to the merged model, they can "extract" the specific knowledge needed for one task while silencing the noise from others. This allows them to reconstruct original task performance almost perfectly using only the merged model and a set of sparse binary masks.
-
Consensus Merging: By analyzing these masks, the authors categorized weights into three types:
-
Catastrophic: Weights that aren't important to any task but add noise.
- Selfish: Weights that are important to only one task but detrimental to all others (causing interference).
-
General: Weights that are important to multiple tasks.
Consensus Merging improves the standard merging process by using a threshold ($k$) to keep only the "general" weights that multiple tasks agree on, effectively pruning away the selfish and catastrophic weights that cause performance degradation.
Datasets
The researchers evaluated their methods across both Computer Vision and Natural Language Processing:
- Vision: They used CLIP models (ViT-B/32, ViT-B/16, and ViT-L/14) across benchmarks containing 8, 14, and 20 tasks. These included diverse datasets like MNIST, CIFAR-100, EuroSAT (satellite imagery), and Oxford-IIIT Pets.
- NLP: They used T5-large models on a 7-task NLP benchmark (including QASC and WikiQA) and an 8-task Question Answering benchmark.
Key Insights
- Information is Preserved, Not Erased: The most surprising finding is that even when a merged model performs poorly, the "discriminant information" for individual tasks is still there. You don't need to re-train; you just need a mask to find it.
- The "Selfish" Weight Problem: The paper identifies that "interference" isn't just a random collision of values. It’s often caused by specific parameters that help one task but actively sabotage others. Removing these "selfish" weights actually makes the model better at everything else.
- Non-Overlapping Supports: Different tasks naturally utilize mostly non-overlapping sets of weights. This sparsity is what makes binary masking so effective for compression.
Results
- Massive Compression: On a 20-task vision benchmark, the proposed scheme reduced storage requirements from 57GB to 8.2GB (an 85% reduction) while retaining 99.7% of the original models' performance.
- Superior Merging: Consensus Merging consistently outperformed existing methods like Task Arithmetic and TIES-merging. For instance, it provided a 4.9% absolute accuracy gain on a 20-task vision benchmark compared to standard Task Arithmetic.
- Robustness to Scale: Unlike previous merging methods that degrade rapidly as you add more tasks, Consensus Merging showed remarkable stability even when scaling up to 20 disparate tasks.
Limitations and Future Work
- Hyperparameter Sensitivity: The method relies on tuning a sparsity hyperparameter ($\lambda$) and a consensus threshold ($k$). While the authors provide guidelines, the optimal values can vary depending on the model and task combination.
- Mask Storage: While binary masks are much smaller than weight vectors, they still require storage. As the number of tasks grows into the hundreds or thousands, managing these masks could become a secondary bottleneck.
- Future Directions: The authors suggest exploring how different fine-tuning strategies (like LoRA vs. full fine-tuning) affect the "mask agreement" profiles and whether this approach can be used to build more efficient Mixture-of-Experts (MoE) models.
Summary updated