mlsanityData to 14 Oct 2026

Transformer Fusion with Optimal Transport

arXiv 2310.05719 ↗First posted 9 Oct 2023cs.LG stat.MLcited by 36

Not on the map. Why?

Abstract (arXiv)

Fusion is a technique for merging multiple independently-trained neural networks in order to combine their capabilities. Past attempts have been restricted to the case of fully-connected, convolutional, and residual networks. This paper presents a systematic approach for fusing two or more transformer-based networks exploiting Optimal Transport to (soft-)align the various architectural components. We flesh out an abstraction for layer alignment, that can generalize to arbitrary architectures - in principle - and we apply this to the key ingredients of Transformers such as multi-head self-attention, layer-normalization, and residual connections, and we discuss how to handle them via various ablation studies. Furthermore, our method allows the fusion of models of different sizes (heterogeneous fusion), providing a new and efficient way to compress Transformers. The proposed approach is evaluated on both image classification tasks via Vision Transformer and natural language modeling tasks using BERT. Our approach consistently outperforms vanilla fusion, and, after a surprisingly short finetuning, also outperforms the individual converged parent models. In our analysis, we uncover intriguing insights about the significant role of soft alignment in the case of Transformers. Our results showcase the potential of fusing multiple Transformers, thus compounding their expertise, in the budding paradigm of model fusion and recombination. Code is available at https://github.com/graldij/transformer-fusion.

Key facts. Cited by 36 papers in the map (data through 14 Oct 2026). Builds on 26 of its 42 references that are in the map. First posted on arXiv 9 Oct 2023.

Builds on

26 of 42 references.

References · 26

  1. 2017Attention Is All You Needcited by 60,361
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2020Scaling Laws for Neural Language Modelscited by 6,586
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  6. 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
  7. 2022Training Compute-Optimal Large Language Modelscited by 3,019
  8. 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,316
  9. 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,396
  10. 2021Scaling Vision Transformerscited by 999
  11. 2021Merging Models with Fisher-Weighted Averagingcited by 621
  12. 2018Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNscited by 588
14 more
  1. 2020Federated Learning with Matched Averagingcited by 564
  2. 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 471
  3. 2021The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networkscited by 291
  4. 2019Model Fusion via Optimal Transportcited by 219
  5. 2023ZipIt! Merging Models from Different Tasks without Trainingcited by 179
  6. 2020Optimizing Mode Connectivity via Neuron Alignmentcited by 86
  7. 2022On the Symmetries of Deep Learning Models and their Internal Representationscited by 64
  8. 2022Linear Connectivity Reveals Generalization Strategiescited by 56
  9. 2021Co-Transport for Class-Incremental Learningcited by 38
  10. 2023Scaling MLPs: A Tale of Inductive Biascited by 37
  11. 2023PopulAtion Parameter Averaging (PAPA)cited by 23
  12. 2022Wasserstein Barycenter-based Model Fusion and Linear Mode Connectivity of Neural Networkscited by 15
  13. 2023Git-Theta: A Git Extension for Collaborative Development of Machine Learning Modelscited by 15
  14. 2021On Cross-Layer Alignment for Model Fusion of Heterogeneous Neural Networkscited by 9

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 11; 2025: 13; 2026: 12.

36 papers.

Sort:

By area:

  1. 2024Model Merging in LLMs, MLLMs, and Beyond: Methods, Theories, Applications and Opportunitiescited by 254
  2. 2024The Empirical Impact of Neural Parameter Symmetries, or Lack Thereofcited by 21
  3. 2025Update Your Transformer to the Latest Release: Re-Basin of Task Vectorscited by 17
  4. 2025Beyond the Permutation Symmetry of Transformers: The Role of Rotation for Model Fusioncited by 16
  5. 2025FlexiDiT: Your Diffusion Transformer Can Easily Generate High-Quality Samples with Less Computecited by 12
  6. 2024Model-GLUE: Democratized LLM Scaling for A Large Model Zoo in the Wildcited by 9
  7. 2024Improving Model Fusion by Training-time Neuron Alignment with Fixed Neuron Anchorscited by 7
  8. 2024Unconstrained Model Merging for Enhanced LLM Reasoningcited by 7
  9. 2026Transport and Merge: Cross-Architecture Merging for Large Language Modelscited by 7
  10. 2024Training-free Heterogeneous Model Mergingcited by 6
  11. 2026Transporting Task Vectors across Different Architectures without Trainingcited by 6
  12. 2026LoopQ: Quantization for Looped Language Modelscited by 6
24 more
  1. 2024Vanishing Feature: Diagnosing Model Merging and Beyondcited by 5
  2. 2024Model Fusion through Bayesian Optimization in Language Model Fine-Tuningcited by 5
  3. 2024Foldable SuperNets: Scalable Merging of Transformers with Different Initializations and Taskscited by 4
  4. 2025Gradient-Sign Masking for Task Vector Transport Across Pre-Trained Modelscited by 4
  5. 2025Assembly of Experts: Linear-time construction of the Chimera LLM variants with emergent and adaptable behaviorscited by 3
  6. 2026A Unified Foundation Model for All-in-One Multi-Modal Remote Sensing Image Restoration and Fusion with Language Promptingcited by 3
  7. 2024A Lipschitz spaces view of infinitely wide shallow neural networkscited by 2
  8. 2025Model Assembly Learning with Heterogeneous Layer Weight Mergingcited by 2
  9. 2025Navigating the Accuracy-Size Trade-Off with Flexible Model Mergingcited by 2
  10. 2026Preference-Aligned LoRA Merging: Preserving Subspace Coverage and Addressing Directional Anisotropycited by 2
  11. 2025DOTResize: Reducing LLM Width via Discrete Optimal Transport-based Neuron Mergingcited by 1
  12. 2025Symphony-MoE: Harmonizing Disparate Pre-trained Models into a Coherent Mixture-of-Expertscited by 1
  13. 2026Partial Fusion of Neural Networks: Efficient Tradeoffs Between Ensembles and Weight Aggregationcited by 1
  14. 2026Signed-Permutation Coordinate Transport for RMSNorm Transformerscited by 1
  15. 2024Deep Model Merging: The Sister of Neural Network Interpretability -- A Surveycited by 0
  16. 2025Mean and Variance Estimation Complexity in Arbitrary Distributions via Wasserstein Minimizationcited by 0
  17. 2025Fusion of Graph Neural Networks via Optimal Transportcited by 0
  18. 2025Embedding Empirical Distributions for Computing Optimal Transport Mapscited by 0
  19. 2025Model Fusion via Retrofittingcited by 0
  20. 2026The Mean is the Mirage: Entropy-Adaptive Model Merging under Heterogeneous Domain Shifts in Medical Imagingcited by 0
  21. 2026Optimizer-Induced Mode Connectivity: From AdamW to Muoncited by 0
  22. 2026Beyond Structural Symmetries: Linear Mode Connectivity via Neuron Identifiabilitycited by 0
  23. 2026Understanding Knowledge Transfer Mechanism in Heterogeneous MLLM Fusion: A Simple Linear Approachcited by 0
  24. 2026SuperAI: Merging Capabilities Across Heterogeneous Foundation Modelscited by 0