On Defining Neural Averaging
Su Hyeong Lee, Richard Ngo
TL;DR
This work tackles how to define a principled neural average when training data is unavailable, proposing Amortized Model Ensembling (AME) as a data-free meta-optimization in weight space. AME treats differences between pretrained ingredients as pseudogradients and uses adaptive optimization to fuse them, recovering model soup as a special case while enabling more expressive ensembling. Empirically, AME improves out-of-distribution generalization over individual experts and soups, and reveals zero-data training-like benefits across vision transformers and synthetic CIFAR-100 experiments. The framework connects optimization dynamics with weight-space aggregation, offering a versatile tool for federated, privacy-preserving, and domain-heterogeneous settings where data access is restricted.
Abstract
What does it even mean to average neural networks? We investigate the problem of synthesizing a single neural network from a collection of pretrained models, each trained on disjoint data shards, using only their final weights and no access to training data. In forming a definition of neural averaging, we take insight from model soup, which appears to aggregate multiple models into a singular model while enhancing generalization performance. In this work, we reinterpret model souping as a special case of a broader framework: Amortized Model Ensembling (AME) for neural averaging, a data-free meta-optimization approach that treats model differences as pseudogradients to guide neural weight updates. We show that this perspective not only recovers model soup but enables more expressive and adaptive ensembling strategies. Empirically, AME produces averaged neural solutions that outperform both individual experts and model soup baselines, especially in out-of-distribution settings. Our results suggest a principled and generalizable notion of data-free model weight aggregation and defines, in one sense, how to perform neural averaging.
