Abstract
Model merging via task vectors is a promising approach for multi-task learning, yet it suffers from parameter interference and high storage costs. This paper introduces T-Switch and Auto-Switch, methods that leverage the inherent sparsity of task vectors. By binarizing these vectors into lightweight masks and signs, the proposed approach reduces storage requirements to 1–3% of full-precision models while mitigating interference. Experimental results across vision and language benchmarks demonstrate that this "less is more" strategy can even surpass the performance of individual fine-tuned models.
Introduction
Fine-tuning pre-trained models for specific tasks often results in "task vectors"—the difference between the specialized weights and the original backbone. Merging these vectors allows for the creation of multi-task models without extensive retraining. However, two primary challenges persist: parameter interference, where conflicting weight updates between tasks degrade performance, and storage overhead, as maintaining full-precision weights for numerous tasks is impractical for resource-constrained environments.
Methodology
The authors observe that task vectors exhibit a "pulse-like" characteristic: high-magnitude weights carry the essential signal, while low-magnitude changes often represent redundant noise. Through controlled experiments, they found that discarding up to 70% of low-magnitude parameters doesn't just maintain performance—it often improves it by eliminating interference.
T-Switch: Binary Task Decomposition
T-Switch decomposes a full-precision task vector into three lightweight components:
- Activation Switch ($S_A$): A binary mask ($0$ or $1$) identifying important parameters above a magnitude threshold.
- Polarity Switch ($S_P$): A binary sign vector ($+1$ or $-1$) capturing the direction of weight changes.
- Switch Knob ($\lambda$): A scalar coefficient that scales the binarized representation back to an appropriate magnitude.
This binarization acts as a form of extreme regularization, forcing the model to rely only on the most critical features while significantly compressing the task information.
Auto-Switch: Dynamic Inference
To automate the merging process during inference, Auto-Switch employs a training-free mechanism. It utilizes a small "query set" of examples for each task. For a given input, the system performs a K-Nearest Neighbor (KNN) search against the query set to determine the optimal combination and weighting of task switches, enabling dynamic multi-task capabilities without manual intervention.
Experimental Evaluation
The methods were evaluated on 8 vision datasets (including SUN397, Oxford Cars, and MNIST) using CLIP backbones and 8 NLP tasks from the GLUE benchmark using RoBERTa. The approach was also tested for compatibility with Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA.
Key Results
- Performance Gains: On vision tasks, Auto-Switch outperformed state-of-the-art dynamic merging (EMR-merging) by 1.83%. In some instances, the merged model exceeded the accuracy of individual full-precision models (91.14% vs 91.01%).
- Massive Storage Savings: For a ViT-B/32 backbone, storage requirements dropped from 3474.2 MB (Twin-Merging) to just 58.6 MB—a reduction of over 98%.
- Robustness: The binarization process effectively mitigated the "conflicts" typically seen in static merging, where tasks compete for parameter updates.
Conclusion and Future Work
T-Switch and Auto-Switch provide a highly efficient framework for model merging, proving that binarized task vectors are sufficient for high-performance multi-tasking. While highly effective, the KNN-based retrieval in Auto-Switch faces challenges with high inter-class similarity, where the system may struggle to distinguish between very similar scenes. Future research will focus on more robust retrieval mechanisms and scaling these techniques to large language models (LLMs) with tens of billions of parameters.
Summary updated