mlsanityData to 7 Oct 2026

Foldable SuperNets: Scalable Merging of Transformers with Different Initializations and Tasks

arXiv 2410.01483 ↗First posted 2 Oct 2024cs.LGcited by 4

Not on the map. Why?

Abstract (arXiv)

Recent methods aim to merge neural networks (NNs) with identical architectures trained on different tasks into a single multi-task model. While most works focus on the simpler setup of merging NNs initialized from a common pre-trained network, we target the harder problem of merging large transformers trained on different tasks from distinct initializations. We show that traditional merging methods fail catastrophically in this setup, while Knowledge Distillation (KD) achieves much better results, though at a higher cost. However, KD is data-inefficient, as it does not exploit the original models' weights. To solve this, we introduce "Foldable SuperNet Merge" (FS-Merge), which trains a SuperNet containing the original models (with frozen weights) using a feature reconstruction objective. After training, the SuperNet is folded back to the size of a single original model. FS-Merge is simple, data-efficient, has a computational cost comparable to KD, and is proven to have superior expressiveness compared to traditional merging methods on MLP models. It achieves SOTA results when tested on MLPs and transformers across various sizes, tasks, modalities, and distribution shifts, especially in low-data scenarios.

Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 71 of its 88 references that are in the map. First posted on arXiv 2 Oct 2024.

Builds on

71 of 88 references.

References · 71

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  7. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  8. 2016Communication-Efficient Learning of Deep Networks from Decentralized Datacited by 7,592
  9. 2016Layer Normalizationcited by 5,579
  10. 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
  11. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  12. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
38 more
  1. 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,283
  2. 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,590
  3. 2013Describing Textures in the Wildcited by 2,110
  4. 2020Knowledge Distillation: A Surveycited by 1,578
  5. 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,488
  6. 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
  7. 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,194
  8. 2022Editing Models with Task Arithmeticcited by 1,076
  9. 2016Paying More Attention to Attention: Improving the Performance of Convolutional Neural Networks via Attention Transfercited by 1,059
  10. 2020On Layer Normalization in the Transformer Architecturecited by 906
  11. 2023TIES-Merging: Resolving Interference When Merging Modelscited by 795
  12. 2017Remote Sensing Image Scene Classification: Benchmark and State of the Artcited by 791
  13. 2019Linear Mode Connectivity and the Lottery Ticket Hypothesiscited by 627
  14. 2021Merging Models with Fisher-Weighted Averagingcited by 613
  15. 2018Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNscited by 585
  16. 2020Federated Learning with Matched Averagingcited by 564
  17. 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
  18. 2013Do Deep Nets Really Need to be Deep?cited by 466
  19. 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 460
  20. 2018Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) Networkcited by 415
  21. 2022Dataless Knowledge Fusion by Merging Weights of Language Modelscited by 384
  22. 2023LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Compositioncited by 359
  23. 2019A Comprehensive Overhaul of Feature Distillationcited by 341
  24. 2018Essentially No Barriers in Neural Network Energy Landscapecited by 328
  25. 2021The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networkscited by 285
  26. 2021Ensemble deep learning: A reviewcited by 283
  27. 2023AdaMerging: Adaptive Model Merging for Multi-Task Learningcited by 248
  28. 2018Knowledge Transfer via Distillation of Activation Boundaries Formed by Hidden Neuronscited by 235
  29. 2023Task Arithmetic in the Tangent Space: Improved Editing of Pre-Trained Modelscited by 218
  30. 2019Model Fusion via Optimal Transportcited by 217
  31. 2024Evolutionary Optimization of Model Merging Recipescited by 204
  32. 2024Arcee's MergeKit: A Toolkit for Merging Large Language Modelscited by 189
  33. 2021Does Knowledge Distillation Really Work?cited by 187
  34. 2023ZipIt! Merging Models from Different Tasks without Trainingcited by 178
  35. 2022Diverse Weight Averaging for Out-of-Distribution Generalizationcited by 148
  36. 2020Linear Mode Connectivity in Multitask and Continual Learningcited by 144
  37. 2022REPAIR: REnormalizing Permuted Activations for Interpolation Repaircited by 119
  38. 2015Path-SGD: Path-Normalized Optimization in Deep Neural Networkscited by 117

50 most cited of 71 All 71 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 1.

4 papers.