Transformer Fusion with Optimal Transport
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
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2021On the Opportunities and Risks of Foundation Modelscited by 4,033
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,316
- 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,396
- 2021Scaling Vision Transformerscited by 999
- 2021Merging Models with Fisher-Weighted Averagingcited by 621
- 2018Loss Surfaces, Mode Connectivity, and Fast Ensembling of DNNscited by 588
14 more
- 2020Federated Learning with Matched Averagingcited by 564
- 2022Git Re-Basin: Merging Models modulo Permutation Symmetriescited by 471
- 2021The Role of Permutation Invariance in Linear Mode Connectivity of Neural Networkscited by 291
- 2019Model Fusion via Optimal Transportcited by 219
- 2023ZipIt! Merging Models from Different Tasks without Trainingcited by 179
- 2020Optimizing Mode Connectivity via Neuron Alignmentcited by 86
- 2022On the Symmetries of Deep Learning Models and their Internal Representationscited by 64
- 2022Linear Connectivity Reveals Generalization Strategiescited by 56
- 2021Co-Transport for Class-Incremental Learningcited by 38
- 2023Scaling MLPs: A Tale of Inductive Biascited by 37
- 2023PopulAtion Parameter Averaging (PAPA)cited by 23
- 2022Wasserstein Barycenter-based Model Fusion and Linear Mode Connectivity of Neural Networkscited by 15
- 2023Git-Theta: A Git Extension for Collaborative Development of Machine Learning Modelscited by 15
- 2021On Cross-Layer Alignment for Model Fusion of Heterogeneous Neural Networkscited by 9
Built on by
Citing papers per year: 2024: 11; 2025: 13; 2026: 12.
36 papers.
Sort:
By area:
- 2024Model Merging in LLMs, MLLMs, and Beyond: Methods, Theories, Applications and Opportunitiescited by 254
- 2024The Empirical Impact of Neural Parameter Symmetries, or Lack Thereofcited by 21
- 2025Update Your Transformer to the Latest Release: Re-Basin of Task Vectorscited by 17
- 2025Beyond the Permutation Symmetry of Transformers: The Role of Rotation for Model Fusioncited by 16
- 2025FlexiDiT: Your Diffusion Transformer Can Easily Generate High-Quality Samples with Less Computecited by 12
- 2024Model-GLUE: Democratized LLM Scaling for A Large Model Zoo in the Wildcited by 9
- 2024Improving Model Fusion by Training-time Neuron Alignment with Fixed Neuron Anchorscited by 7
- 2024Unconstrained Model Merging for Enhanced LLM Reasoningcited by 7
- 2026Transport and Merge: Cross-Architecture Merging for Large Language Modelscited by 7
- 2024Training-free Heterogeneous Model Mergingcited by 6
- 2026Transporting Task Vectors across Different Architectures without Trainingcited by 6
- 2026LoopQ: Quantization for Looped Language Modelscited by 6
24 more
- 2024Vanishing Feature: Diagnosing Model Merging and Beyondcited by 5
- 2024Model Fusion through Bayesian Optimization in Language Model Fine-Tuningcited by 5
- 2024Foldable SuperNets: Scalable Merging of Transformers with Different Initializations and Taskscited by 4
- 2025Gradient-Sign Masking for Task Vector Transport Across Pre-Trained Modelscited by 4
- 2025Assembly of Experts: Linear-time construction of the Chimera LLM variants with emergent and adaptable behaviorscited by 3
- 2026A Unified Foundation Model for All-in-One Multi-Modal Remote Sensing Image Restoration and Fusion with Language Promptingcited by 3
- 2024A Lipschitz spaces view of infinitely wide shallow neural networkscited by 2
- 2025Model Assembly Learning with Heterogeneous Layer Weight Mergingcited by 2
- 2025Navigating the Accuracy-Size Trade-Off with Flexible Model Mergingcited by 2
- 2026Preference-Aligned LoRA Merging: Preserving Subspace Coverage and Addressing Directional Anisotropycited by 2
- 2025DOTResize: Reducing LLM Width via Discrete Optimal Transport-based Neuron Mergingcited by 1
- 2025Symphony-MoE: Harmonizing Disparate Pre-trained Models into a Coherent Mixture-of-Expertscited by 1
- 2026Partial Fusion of Neural Networks: Efficient Tradeoffs Between Ensembles and Weight Aggregationcited by 1
- 2026Signed-Permutation Coordinate Transport for RMSNorm Transformerscited by 1
- 2024Deep Model Merging: The Sister of Neural Network Interpretability -- A Surveycited by 0
- 2025Mean and Variance Estimation Complexity in Arbitrary Distributions via Wasserstein Minimizationcited by 0
- 2025Fusion of Graph Neural Networks via Optimal Transportcited by 0
- 2025Embedding Empirical Distributions for Computing Optimal Transport Mapscited by 0
- 2025Model Fusion via Retrofittingcited by 0
- 2026The Mean is the Mirage: Entropy-Adaptive Model Merging under Heterogeneous Domain Shifts in Medical Imagingcited by 0
- 2026Optimizer-Induced Mode Connectivity: From AdamW to Muoncited by 0
- 2026Beyond Structural Symmetries: Linear Mode Connectivity via Neuron Identifiabilitycited by 0
- 2026Understanding Knowledge Transfer Mechanism in Heterogeneous MLLM Fusion: A Simple Linear Approachcited by 0
- 2026SuperAI: Merging Capabilities Across Heterogeneous Foundation Modelscited by 0
- 2026SuperAI: Merging Capabilities Across Heterogeneous Foundation Models11 Oct 2026
- 2026Understanding Knowledge Transfer Mechanism in Heterogeneous MLLM Fusion: A Simple Linear Approach29 Jul 2026
- 2026Signed-Permutation Coordinate Transport for RMSNorm Transformers30 Jun 2026
- 2026Beyond Structural Symmetries: Linear Mode Connectivity via Neuron Identifiability3 Jun 2026
- 2026Partial Fusion of Neural Networks: Efficient Tradeoffs Between Ensembles and Weight Aggregation21 May 2026
- 2026Optimizer-Induced Mode Connectivity: From AdamW to Muon11 May 2026
- 2026LoopQ: Quantization for Looped Language Models8 May 2026
- 2026A Unified Foundation Model for All-in-One Multi-Modal Remote Sensing Image Restoration and Fusion with Language Prompting7 Apr 2026
- 2026Preference-Aligned LoRA Merging: Preserving Subspace Coverage and Addressing Directional Anisotropy27 Mar 2026
- 2026The Mean is the Mirage: Entropy-Adaptive Model Merging under Heterogeneous Domain Shifts in Medical Imaging24 Feb 2026
- 2026Transporting Task Vectors across Different Architectures without Training13 Feb 2026
- 2026Transport and Merge: Cross-Architecture Merging for Large Language Models5 Feb 2026
24 more
- 2025Gradient-Sign Masking for Task Vector Transport Across Pre-Trained Models7 Oct 2025
- 2025Symphony-MoE: Harmonizing Disparate Pre-trained Models into a Coherent Mixture-of-Experts23 Sep 2025
- 2025DOTResize: Reducing LLM Width via Discrete Optimal Transport-based Neuron Merging6 Jul 2025
- 2025Model Fusion via Retrofitting18 Jun 2025
- 2025Assembly of Experts: Linear-time construction of the Chimera LLM variants with emergent and adaptable behaviors31 May 2025
- 2025Navigating the Accuracy-Size Trade-Off with Flexible Model Merging29 May 2025
- 2025Update Your Transformer to the Latest Release: Re-Basin of Task Vectors28 May 2025
- 2025Embedding Empirical Distributions for Computing Optimal Transport Maps24 Apr 2025
- 2025Model Assembly Learning with Heterogeneous Layer Weight Merging27 Mar 2025
- 2025Fusion of Graph Neural Networks via Optimal Transport27 Mar 2025
- 2025FlexiDiT: Your Diffusion Transformer Can Easily Generate High-Quality Samples with Less Compute27 Feb 2025
- 2025Beyond the Permutation Symmetry of Transformers: The Role of Rotation for Model Fusion1 Feb 2025
- 2025Mean and Variance Estimation Complexity in Arbitrary Distributions via Wasserstein Minimization17 Jan 2025
- 2024Training-free Heterogeneous Model Merging29 Dec 2024
- 2024Model Fusion through Bayesian Optimization in Language Model Fine-Tuning11 Nov 2024
- 2024A Lipschitz spaces view of infinitely wide shallow neural networks18 Oct 2024
- 2024Unconstrained Model Merging for Enhanced LLM Reasoning17 Oct 2024
- 2024Deep Model Merging: The Sister of Neural Network Interpretability -- A Survey16 Oct 2024
- 2024Model-GLUE: Democratized LLM Scaling for A Large Model Zoo in the Wild7 Oct 2024
- 2024Foldable SuperNets: Scalable Merging of Transformers with Different Initializations and Tasks2 Oct 2024
- 2024Model Merging in LLMs, MLLMs, and Beyond: Methods, Theories, Applications and Opportunities14 Aug 2024
- 2024The Empirical Impact of Neural Parameter Symmetries, or Lack Thereof30 May 2024
- 2024Vanishing Feature: Diagnosing Model Merging and Beyond5 Feb 2024
- 2024Improving Model Fusion by Training-time Neuron Alignment with Fixed Neuron Anchors2 Feb 2024
- 2024Unconstrained Model Merging for Enhanced LLM Reasoningcited by 7
- 2024Unconstrained Model Merging for Enhanced LLM Reasoning17 Oct 2024
- 2024Model Merging in LLMs, MLLMs, and Beyond: Methods, Theories, Applications and Opportunitiescited by 254
- 2024The Empirical Impact of Neural Parameter Symmetries, or Lack Thereofcited by 21
- 2025Update Your Transformer to the Latest Release: Re-Basin of Task Vectorscited by 17
- 2025Beyond the Permutation Symmetry of Transformers: The Role of Rotation for Model Fusioncited by 16
- 2024Model-GLUE: Democratized LLM Scaling for A Large Model Zoo in the Wildcited by 9
- 2024Improving Model Fusion by Training-time Neuron Alignment with Fixed Neuron Anchorscited by 7
- 2026Transport and Merge: Cross-Architecture Merging for Large Language Modelscited by 7
- 2024Training-free Heterogeneous Model Mergingcited by 6
- 2026Transporting Task Vectors across Different Architectures without Trainingcited by 6
- 2026LoopQ: Quantization for Looped Language Modelscited by 6
- 2024Vanishing Feature: Diagnosing Model Merging and Beyondcited by 5
- 2024Model Fusion through Bayesian Optimization in Language Model Fine-Tuningcited by 5
12 most cited of 31 All 31 (JSON)
- 2026SuperAI: Merging Capabilities Across Heterogeneous Foundation Models11 Oct 2026
- 2026Beyond Structural Symmetries: Linear Mode Connectivity via Neuron Identifiability3 Jun 2026
- 2026Partial Fusion of Neural Networks: Efficient Tradeoffs Between Ensembles and Weight Aggregation21 May 2026
- 2026Optimizer-Induced Mode Connectivity: From AdamW to Muon11 May 2026
- 2026LoopQ: Quantization for Looped Language Models8 May 2026
- 2026A Unified Foundation Model for All-in-One Multi-Modal Remote Sensing Image Restoration and Fusion with Language Prompting7 Apr 2026
- 2026Preference-Aligned LoRA Merging: Preserving Subspace Coverage and Addressing Directional Anisotropy27 Mar 2026
- 2026The Mean is the Mirage: Entropy-Adaptive Model Merging under Heterogeneous Domain Shifts in Medical Imaging24 Feb 2026
- 2026Transporting Task Vectors across Different Architectures without Training13 Feb 2026
- 2026Transport and Merge: Cross-Architecture Merging for Large Language Models5 Feb 2026
- 2025Gradient-Sign Masking for Task Vector Transport Across Pre-Trained Models7 Oct 2025
- 2025DOTResize: Reducing LLM Width via Discrete Optimal Transport-based Neuron Merging6 Jul 2025
12 newest of 31 All 31 (JSON)