Soup-of-Experts: Pretraining Specialist Models via Parameters Averaging

Abstract

Machine learning models are routinely trained on a mixture of different data domains. Different domain weights yield very different downstream performances. We propose the Soup-of-Experts, a novel architecture that can instantiate a model at test time for any domain weights with minimal computational cost and without re-training the model. Our architecture consists of a bank of expert parameters, which are linearly combined to instantiate one model. We learn the linear combination coefficients as a function of the input domain weights. To train this architecture, we sample random domain weights, instantiate the corresponding model, and backprop through one batch of data sampled with these domain weights. We demonstrate how our approach obtains small specialized models on several language modeling tasks quickly. Soup-of-Experts are particularly appealing when one needs to ship many different specialist models quickly under a size constraint.

Cite

Text

Ablin et al. "Soup-of-Experts: Pretraining Specialist Models via Parameters Averaging." Proceedings of the 42nd International Conference on Machine Learning, 2025.

Markdown

[Ablin et al. "Soup-of-Experts: Pretraining Specialist Models via Parameters Averaging." Proceedings of the 42nd International Conference on Machine Learning, 2025.](https://mlanthology.org/icml/2025/ablin2025icml-soupofexperts/)

BibTeX

@inproceedings{ablin2025icml-soupofexperts,
  title     = {{Soup-of-Experts: Pretraining Specialist Models via Parameters Averaging}},
  author    = {Ablin, Pierre and Katharopoulos, Angelos and Seto, Skyler and Grangier, David},
  booktitle = {Proceedings of the 42nd International Conference on Machine Learning},
  year      = {2025},
  pages     = {185-203},
  volume    = {267},
  url       = {https://mlanthology.org/icml/2025/ablin2025icml-soupofexperts/}
}