Deep Model Fusion: A Survey
Introduction
In the current era of Large Language Models (LLMs) and foundation models, researchers face a significant efficiency paradox. While "ensembling"—the process of running multiple models and averaging their outputs—consistently yields performance gains, the computational and storage costs of maintaining several massive models simultaneously are often prohibitive.
The solution lies in Model Fusion: the process of merging the parameters of multiple independently trained models into a single set of weights. This approach aims to preserve the individual "talents" of each model without the linear scaling of inference costs. However, simple parameter averaging is rarely effective due to "permutation symmetry." Because neural networks are invariant to neuron ordering, two models might learn identical functions but store them in different weight indices. Blindly averaging these weights leads to "signal interference," typically resulting in a fused model that performs worse than random initialization.
The Four Pillars of Model Fusion
To navigate the complex landscape of fusion techniques, this survey categorizes the field into four strategic pillars: Mode Connectivity, Alignment, Weight Averaging, and Ensemble Learning.
- Mode Connectivity: This area explores the "geography" of the loss landscape. Research indicates that different models often reside in the same "valley" of low loss, connected by paths or "tunnels." Identifying these linear or non-linear paths allows for the discovery of optimal starting points for fusion.
- Alignment (The "Re-basin" approach): Alignment is the critical prerequisite for weight-space fusion. It involves matching neurons between different networks before merging. By permuting the neurons of one model to match the internal structure of another, models can be brought into the same "basin," enabling successful direct averaging.
- Weight Averaging (WA): Once models are aligned, they can be merged. This includes techniques like Stochastic Weight Averaging (SWA), Model Soups (averaging models fine-tuned with different hyperparameters), and Task Arithmetic, which treats model weights as vectors that can be added or subtracted to edit specific behaviors.
- Ensemble Learning: The traditional method of combining model outputs (logits/predictions). While computationally expensive at inference, it remains the gold standard for robustness and a vital baseline for weight-fusion research.
Technical Foundations: Alignment and Connectivity
The success of model fusion hinges on overcoming the barriers in the weight space. As illustrated below, alignment techniques like "Re-basin" use permutations to map weights from one basin to another, while mode connectivity identifies the paths between these optima.
Key Insights
- The "Flat Region" Hypothesis: Optimization typically lands models near the boundaries of wide, flat regions in the loss landscape. Fusion essentially "pushes" the model toward the center of these regions, which generally improves generalization.
- Task Arithmetic as Model Editing: A breakthrough in the field is the use of "task vectors"—the difference between a fine-tuned model and its pre-trained base. These vectors can be subtracted to remove unwanted behaviors (e.g., toxicity) or added to inject new capabilities without retraining.
Landmark Results and Performance
The survey highlights several significant achievements that demonstrate the power of these techniques:
- Model Soups: This method achieved 90.94% accuracy on ImageNet-1K, outperforming the state-of-the-art CoAtNet-7 while maintaining the inference efficiency of a single model.
- Task Arithmetic: Researchers demonstrated the ability to reduce toxic generations in GPT-2 from 4.8% to 0.8% through simple weight vector manipulation.
- Alignment Success: Techniques like REPAIR have successfully eliminated the "90% error barrier" that previously hindered the merging of independently trained ResNet models.
Limitations and Future Directions
Despite rapid progress, several bottlenecks remain. High-quality alignment, such as graph matching, is computationally expensive for models with hundreds of billions of parameters. Furthermore, merging models with heterogeneous architectures (e.g., a ResNet with a Vision Transformer) remains an open challenge.
Future research is expected to focus on "fusion-friendly" initializations, exploring the loss landscapes of multi-modal models, and developing efficient combinatorial optimization algorithms for real-time merging in Federated Learning environments.
Summary updated