The Dilemma: Ensembles vs. Weight Aggregation
In deep learning, combining multiple models is a standard strategy to boost performance and robustness. However, practitioners typically face a stark choice between two extremes. On one end are ensembles, which run multiple models independently and average their outputs. While highly accurate, ensembles linearly increase memory and inference costs (e.g., doubling the cost for two models). On the other end is weight fusion (or weight aggregation), which aligns and averages the weights of two models into a single architecture. This approach is computationally efficient but often suffers from a significant "fusion barrier"—a sharp drop in accuracy because the models have learned slightly different internal representations that do not perfectly align.
This paper identifies a missing middle ground. The authors argue that across different networks, some neurons perform nearly identical roles and should be merged, while others capture unique features and should remain isolated. By allowing a network to act as a mini-ensemble for unique features while fusing redundant ones, we can achieve a flexible tradeoff between computational cost and model accuracy.
Introducing Partial Fusion
The core innovation of this work is Partial Fusion, a technique that bridges the gap between high-performance ensembles and low-cost weight aggregation. It builds upon previous Optimal Transport (OT) fusion methods but introduces a crucial tunable mechanism.
Instead of forcing every neuron in Model A to match a neuron in Model B, the algorithm utilizes Partial Optimal Transport (POT) to match only a specific fraction, $(1-\alpha)$, of the most similar neurons based on their weights or activations. The remaining $\alpha$ fraction of neurons are kept isolated.
Furthermore, the authors reframe this fusion process as a form of generalized pruning. While standard unstructured pruning simply deletes neurons, generalized pruning allows neurons to be deleted, kept isolated, or linearly combined (clustered). To ensure these combinations are coherent across the entire network, the method employs a fixed-point iteration technique for global alignment, aligning neurons consistently across the network's depth rather than just layer-by-layer.
Key Insights and Experimental Results
The authors evaluated Partial OT Fusion on standard computer vision benchmarks, including MNIST (using MLPs) and CIFAR-10 (using VGG11 and ResNet18). They also tested heterogeneous "specialist vs. generalist" splits to simulate real-world knowledge transfer scenarios.
Efficiency and Performance Tradeoffs
Partial OT Fusion successfully provides a tunable knob for efficiency. In experiments, it achieved accuracy levels close to a full ensemble while requiring only ~1.45x the parameters of a single model (compared to the 2x required for a standard two-model ensemble). Unlike some pruning methods that exhibit erratic behavior at different compression levels, Partial OT Fusion shows predictable, monotonic improvement as the allowed model size ($\alpha$) increases. When applied to a single model, this generalized pruning approach outperformed standard unstructured pruning, particularly under heavy compression.
The "Blurring" vs. "Deletion" Dynamic
The paper highlights a fundamental tradeoff in model compression: degradation occurs either by deleting a neuron (losing a processing step) or by merging two dissimilar neurons (blurring the signal). Partial fusion allows the network to optimize this tradeoff, choosing the lesser of two evils for each individual neuron.
Architectural Sensitivities
- Layer-Wise Dynamics: Not all layers benefit equally from fusion. The authors found that keeping early layers as ensembles while fusing deeper, wider layers often yields the optimal performance-to-cost ratio.
- Width as a Buffer: Wider networks are inherently easier to align. While full weight fusion works well for very wide models, partial fusion proves critical for maintaining accuracy in narrower, resource-constrained models.
- Fine-Tuning Synergy: Partially fused models serve as excellent initializations for fine-tuning. With just 1-5% of the original training data, a partially fused model can quickly recover and even surpass the performance of its parent models.
Limitations and Future Directions
While Partial OT Fusion presents a compelling new paradigm for model merging, the authors note several areas for future exploration. The current experiments focused on relatively small architectures; validating these techniques on massive models like Transformers or Large Language Models (LLMs) is a necessary next step. Additionally, the method currently relies on basic weight or activation similarity. Exploring more sophisticated metrics, such as Canonical Correlation Analysis (CCA), could yield even better neuron matching. Finally, while the study demonstrates that treating layers differently is beneficial, developing an automated policy to decide exactly which layers should be fused versus kept isolated remains an open challenge.
Summary updated