TL;DR
This paper introduces Amortized Model Ensembling (AME), a novel framework that reframes neural network weight averaging as a data-free meta-optimization problem. By treating the differences between model weights as "pseudogradients," AME allows researchers to use standard deep learning optimizers (like AdamW or Adagrad) to fuse multiple specialized models into a single, highly capable network without using any training data.
What Problem Does This Paper Address?
When multiple neural networks are trained on different, disjoint shards of data, they become "domain experts"—highly proficient in their specific training distribution but oblivious to others. Combining their knowledge into a single model typically requires traditional ensembling (e.g., voting), which incurs an $N$-fold increase in computational cost during deployment, or data-driven retraining, which might be impossible due to privacy or resource constraints.
A recent alternative, model souping, averages the weights of fine-tuned models directly in weight space. While effective, model souping has lacked a principled optimization framework and struggles when individual models are trained on highly disparate distributions. This paper addresses a fundamental question: What does it truly mean to "average" neural networks, and can we do it more effectively without accessing any underlying data?
Methods
The authors prove that standard linear model averaging (model souping) is mathematically equivalent to a single epoch of non-adaptive Gradient Descent (GD) minimizing a quadratic loss function with a harmonic learning rate decay schedule.
Building on this insight, they propose Amortized Model Ensembling (AME). Instead of simple linear interpolation, AME treats the vector difference between a running "pivot" model ($w$) and an expert model ($x_i$) as a pivoted pseudogradient:
$$g_i = \frac{\zeta_i(w - x_i)}{N}$$
By treating these weight differences as gradients, AME unlocks the entire toolbox of modern deep learning optimizers (GD, Adagrad, AdamW, Adadelta) to update the fused model's weights. The framework introduces several data-free optimization techniques:
- Adaptive Model Pivoting: Updating the pivot model at each step to reflect the latest state of the ensemble.
- Meta-Optimization Epochs: Running multiple passes over the expert models.
- Batching and Shuffling: Grouping and randomizing the order of expert models during the fusion process to act like minibatches.
Datasets
The framework was empirically validated using the following datasets:
- GLD-23K: A centralized benchmark subset of the Google Landmarks Dataset v2, featuring 23,080 images across 203 landmark labels, used to evaluate Vision Transformers (ViT-S).
- CIFAR-10: Used for extreme out-of-domain (OOD) evaluations by training models on subsets where specific classes were completely excluded (ranging from 10% to 90% OOD).
- CIFAR-100: Used for a synthetic input-synthesis experiment to demonstrate that AME captures meaningful structure in weight space.
- Synthetic Cauchy & Gaussian Distributions: Used to validate the statistical properties of AME in heavy-tailed noise regimes.
Key Insights and Ideas
- Optimizers as Statistical Estimators: The paper provides a beautiful conceptual shift: deep learning optimizers can be viewed as streaming algorithms for online statistical estimation.
- The Power of Adaptivity in Weight Space: In heavy-tailed or highly diverse model distributions (where models are trained on completely different data shards), standard linear averaging suffers from high variance. Adaptive optimizers like AdamW dynamically scale coordinate updates based on historical pseudogradients, acting with "adaptive caution" in high-variance weight dimensions.
- Zero-Data Training Effects: Remarkably, simply increasing the number of ensembling epochs, batching the models, and shuffling them yields consistent performance gains—mimicking the behavior of actual data-driven training despite being entirely data-free.
Key Results
AME consistently outperforms individual expert models, standard model soups, and greedy model soup variants, particularly in challenging out-of-distribution scenarios.
As shown in the CIFAR-10 class-exclusion experiments, when models are forced to be up to 90% out-of-domain, the AdamW-instantiated AME ensemble achieves significantly higher accuracy than its baselines:
Furthermore, the authors demonstrate that AME retains the "memory" of the expert ingredients, performing better on the training distributions of the individual experts than on unseen test data, confirming a successful "neural average":
Additionally, evaluations on the noised GLD-23K dataset revealed that AME produces well-calibrated models (where accuracy is inversely proportional to loss), mitigating a known miscalibration issue inherent to standard model soups.
Limitations and Future Work
- Hyperparameter Sensitivity: The performance of AME depends on the choice of the meta-optimizer and its hyperparameters (e.g., learning rate decay schedules).
- Unexplained Phase Transitions: The authors observed distinct "phase transitions" in test performance across different AME hyperparameter configurations during training progress, noting that a theoretical explanation for this phenomenon remains open for future research.
- Scaling to Distributed Learning: While the paper sketches out how AME can be applied to Federated Learning (introducing concepts like FedSoup and ServerStew), a comprehensive empirical evaluation of these distributed applications is left for future work.
Summary updated