Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Localizing Task Information for Improved Model Merging and Compression

About

Model merging and task arithmetic have emerged as promising scalable approaches to merge multiple single-task checkpoints to one multi-task model, but their applicability is reduced by significant performance loss. Previous works have linked these drops to interference in the weight space and erasure of important task-specific features. Instead, in this work we show that the information required to solve each task is still preserved after merging as different tasks mostly use non-overlapping sets of weights. We propose TALL-masks, a method to identify these task supports given a collection of task vectors and show that one can retrieve >99% of the single task accuracy by applying our masks to the multi-task vector, effectively compressing the individual checkpoints. We study the statistics of intersections among constructed masks and reveal the existence of selfish and catastrophic weights, i.e., parameters that are important exclusively to one task and irrelevant to all tasks but detrimental to multi-task fusion. For this reason, we propose Consensus Merging, an algorithm that eliminates such weights and improves the general performance of existing model merging approaches. Our experiments in vision and NLP benchmarks with up to 20 tasks, show that Consensus Merging consistently improves existing approaches. Furthermore, our proposed compression scheme reduces storage from 57Gb to 8.2Gb while retaining 99.7% of original performance.

Ke Wang, Nikolaos Dimitriadis, Guillermo Ortiz-Jimenez, Fran\c{c}ois Fleuret, Pascal Frossard• 2024

Related benchmarks

TaskDatasetResultRank
Image ClassificationVision Multi-task Suite (SUN397, Cars, RESISC45, EuroSAT, SVHN, GTSRB, MNIST, DTD)
Average Accuracy95.8
72
Image Classification14 Tasks Merge
Average Accuracy94.3
51
Image Classification8 Vision Tasks (test)
Avg Accuracy86.2
47
Image ClassificationSUN397, Cars, EuroSAT, GTSRB, MNIST, DTD Seen Tasks (test)
SUN397 Accuracy0.8058
34
Image ClassificationRESISC45, SVHN Unseen Tasks (test)
RESISC45 Accuracy69.02
34
Image ClassificationVision Datasets (14 tasks) 1.0 (test)
Average Accuracy82.2
33
Image ClassificationVision Datasets 1.0 (test)
Average Accuracy86.9
33
Image ClassificationVision Datasets 20 tasks 1.0 (test)
Average Accuracy78.9
33
Image Classification8 Vision Tasks Aggregate ViT-B/32 ViT-L/14 (average)
Accuracy93.6
31
Multi-task image classification20-task Model Merging Benchmark (14-task + EMNIST, CIFAR10, Food101, FashionMNIST, RenderedSST2, KMNIST)
Avg Absolute Accuracy94.7
30
Showing 10 of 20 rows

Other info

Follow for update