Merging Vision Transformers from Different Tasks and Domains
Not on the map. Why?
Abstract (arXiv)
This work targets to merge various Vision Transformers (ViTs) trained on different tasks (i.e., datasets with different object categories) or domains (i.e., datasets with the same categories but different environments) into one unified model, yielding still good performance on each task or domain. Previous model merging works focus on either CNNs or NLP models, leaving the ViTs merging research untouched. To fill this gap, we first explore and find that existing model merging methods cannot well handle the merging of the whole ViT models and still have improvement space. To enable the merging of the whole ViT, we propose a simple-but-effective gating network that can both merge all kinds of layers (e.g., Embedding, Norm, Attention, and MLP) and select the suitable classifier. Specifically, the gating network is trained by unlabeled datasets from all the tasks (domains), and predicts the probability of which task (domain) the input belongs to for merging the models during inference. To further boost the performance of the merged model, especially when the difficulty of merging tasks increases, we design a novel metric of model weight similarity, and utilize it to realize controllable and combined weight merging. Comprehensive experiments on kinds of newly established benchmarks, validate the superiority of the proposed ViT merging framework for different tasks and domains. Our method can even merge beyond 10 ViT models from different vision tasks with a negligible effect on the performance of each task.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 30 of its 44 references that are in the map. First posted on arXiv 25 Dec 2023.
Builds on
30 of 44 references.
References · 30
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2016Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localizationcited by 6,690
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,773
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
- 2017Deep Hashing Network for Unsupervised Domain Adaptationcited by 1,181
- 2022Editing Models with Task Arithmeticcited by 1,076
- 2020In Search of Lost Domain Generalizationcited by 1,042
- 2017Deeper, Broader and Artier Domain Generalizationcited by 983
18 more
- 2017A Survey on Multi-Task Learningcited by 838
- 2021Domain Generalization: A Surveycited by 760
- 2021Merging Models with Fisher-Weighted Averagingcited by 613
- 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 460
- 2022Dataless Knowledge Fusion by Merging Weights of Language Modelscited by 384
- 2021ResNet strikes back: An improved training procedure in timmcited by 365
- 2023ZipIt! Merging Models from Different Tasks without Trainingcited by 178
- 2022Diverse Weight Averaging for Out-of-Distribution Generalizationcited by 148
- 2022Model Ratatouille: Recycling Diverse Models for Out-of-Distribution Generalizationcited by 97
- 2021Exponential Moving Average Normalization for Self-supervised and Semi-supervised Learningcited by 78
- 2022Safe Self-Refinement for Transformer-based Domain Adaptationcited by 61
- 2023An Empirical Study of Multimodal Model Mergingcited by 52
- 2023Uni3D: A Unified Baseline for Multi-dataset 3D Object Detectioncited by 39
- 2023Bi3D: Bi-domain Active Learning for Cross-domain 3D Object Detectioncited by 21
- 2023DART: Diversify-Aggregate-Repeat Training Improves Generalization of Neural Networkscited by 20
- 2018Using Mode Connectivity for Loss Landscape Analysiscited by 19
- 2022MangoLeafBD: A Comprehensive Image Dataset to Classify Diseased and Healthy Mango Leavescited by 13
- 2023ReSimAD: Zero-Shot 3D Domain Transfer for Autonomous Driving with Source Reconstruction and Target Simulationcited by 13
Built on by
Citing papers per year: 2024: 9; 2025: 5; 2026: 3.
17 papers.
Sort:
By area:
- 2024Model Merging in LLMs, MLLMs, and Beyond: Methods, Theories, Applications and Opportunitiescited by 247
- 2024EMR-Merging: Tuning-Free High-Performance Model Mergingcited by 108
- 2024MetaGPT: Merging Large Language Models Using Model Exclusive Task Arithmeticcited by 53
- 2024A Survey on Model MoErging: Recycling and Routing Among Specialized Experts for Collaborative Learningcited by 52
- 2024What Matters for Model Merging at Scale?cited by 52
- 2024UNIC: Universal Classification Models via Multi-teacher Distillationcited by 24
- 2024Efficient and Effective Weight-Ensembling Mixture of Experts for Multi-Task Model Mergingcited by 22
- 2025Exact Unlearning of Finetuning Data via Model Merging at Scalecited by 14
- 2024Realistic Evaluation of Model Merging for Compositional Generalizationcited by 12
- 2024TransAgent: Transfer Vision-Language Foundation Models with Heterogeneous Agent Collaborationcited by 5
- 2025Model Assembly Learning with Heterogeneous Layer Weight Mergingcited by 2
- 2025Stay Unique, Stay Efficient: Preserving Model Personality in Multi-Task Mergingcited by 2
5 more
- 2025StatsMerging: Statistics-Guided Model Merging via Task-Specific Teacher Distillationcited by 1
- 2026Unlocking the Potential of Continual Model Merging: An ODE Perspectivecited by 1
- 2025MIN-Merging: Merge the Important Neurons for Model Mergingcited by 0
- 2026LARV: Data-Free Layer-wise Adaptive Rescaling Veneer for Model Mergingcited by 0
- 2026The Mean is the Mirage: Entropy-Adaptive Model Merging under Heterogeneous Domain Shifts in Medical Imagingcited by 0
- 2026Unlocking the Potential of Continual Model Merging: An ODE Perspective19 May 2026
- 2026The Mean is the Mirage: Entropy-Adaptive Model Merging under Heterogeneous Domain Shifts in Medical Imaging24 Feb 2026
- 2026LARV: Data-Free Layer-wise Adaptive Rescaling Veneer for Model Merging10 Feb 2026
- 2025Stay Unique, Stay Efficient: Preserving Model Personality in Multi-Task Merging1 Dec 2025
- 2025MIN-Merging: Merge the Important Neurons for Model Merging18 Oct 2025
- 2025StatsMerging: Statistics-Guided Model Merging via Task-Specific Teacher Distillation5 Jun 2025
- 2025Exact Unlearning of Finetuning Data via Model Merging at Scale6 Apr 2025
- 2025Model Assembly Learning with Heterogeneous Layer Weight Merging27 Mar 2025
- 2024Efficient and Effective Weight-Ensembling Mixture of Experts for Multi-Task Model Merging29 Oct 2024
- 2024TransAgent: Transfer Vision-Language Foundation Models with Heterogeneous Agent Collaboration16 Oct 2024
- 2024What Matters for Model Merging at Scale?4 Oct 2024
- 2024Realistic Evaluation of Model Merging for Compositional Generalization26 Sep 2024
5 more
- 2024Model Merging in LLMs, MLLMs, and Beyond: Methods, Theories, Applications and Opportunities14 Aug 2024
- 2024A Survey on Model MoErging: Recycling and Routing Among Specialized Experts for Collaborative Learning13 Aug 2024
- 2024UNIC: Universal Classification Models via Multi-teacher Distillation9 Aug 2024
- 2024MetaGPT: Merging Large Language Models Using Model Exclusive Task Arithmetic17 Jun 2024
- 2024EMR-Merging: Tuning-Free High-Performance Model Merging23 May 2024
- 2024Model Merging in LLMs, MLLMs, and Beyond: Methods, Theories, Applications and Opportunitiescited by 247
- 2024EMR-Merging: Tuning-Free High-Performance Model Mergingcited by 108
- 2024MetaGPT: Merging Large Language Models Using Model Exclusive Task Arithmeticcited by 53
- 2024A Survey on Model MoErging: Recycling and Routing Among Specialized Experts for Collaborative Learningcited by 52
- 2024What Matters for Model Merging at Scale?cited by 52
- 2024UNIC: Universal Classification Models via Multi-teacher Distillationcited by 24
- 2024Realistic Evaluation of Model Merging for Compositional Generalizationcited by 12
- 2025Model Assembly Learning with Heterogeneous Layer Weight Mergingcited by 2
- 2025Stay Unique, Stay Efficient: Preserving Model Personality in Multi-Task Mergingcited by 2
- 2025StatsMerging: Statistics-Guided Model Merging via Task-Specific Teacher Distillationcited by 1
- 2026Unlocking the Potential of Continual Model Merging: An ODE Perspectivecited by 1
- 2025MIN-Merging: Merge the Important Neurons for Model Mergingcited by 0
12 most cited of 14 All 14 (JSON)
- 2026Unlocking the Potential of Continual Model Merging: An ODE Perspective19 May 2026
- 2026The Mean is the Mirage: Entropy-Adaptive Model Merging under Heterogeneous Domain Shifts in Medical Imaging24 Feb 2026
- 2026LARV: Data-Free Layer-wise Adaptive Rescaling Veneer for Model Merging10 Feb 2026
- 2025Stay Unique, Stay Efficient: Preserving Model Personality in Multi-Task Merging1 Dec 2025
- 2025MIN-Merging: Merge the Important Neurons for Model Merging18 Oct 2025
- 2025StatsMerging: Statistics-Guided Model Merging via Task-Specific Teacher Distillation5 Jun 2025
- 2025Model Assembly Learning with Heterogeneous Layer Weight Merging27 Mar 2025
- 2024What Matters for Model Merging at Scale?4 Oct 2024
- 2024Realistic Evaluation of Model Merging for Compositional Generalization26 Sep 2024
- 2024Model Merging in LLMs, MLLMs, and Beyond: Methods, Theories, Applications and Opportunities14 Aug 2024
- 2024A Survey on Model MoErging: Recycling and Routing Among Specialized Experts for Collaborative Learning13 Aug 2024
- 2024UNIC: Universal Classification Models via Multi-teacher Distillation9 Aug 2024
12 newest of 14 All 14 (JSON)