When, Where and Why to Average Weights?

Niccolo Ajroldi, Antonio Orvieto, Jonas Geiping
2/14/2026

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Averaging checkpoints along the training trajectory is a simple yet powerful approach to improve the generalization performance of Machine Learning models and reduce training time. Motivated by these potential gains, and in an effort to fairly and thoroughly benchmark this technique, we present an extensive evaluation of averaging techniques in modern Deep Learning, which we perform using AlgoPerf \citep{dahl_benchmarking_2023}, a large-scale benchmark for optimization algorithms. We investigate whether weight averaging can reduce training time, improve generalization, and replace learning rate decay, as suggested by recent literature. Our evaluation across seven architectures and datasets reveals that averaging significantly accelerates training and yields considerable efficiency gains, at the price of a minimal implementation and memory cost, while mildly improving generalization across all considered workloads. Finally, we explore the relationship between averaging and learning rate annealing and show how to optimally combine the two to achieve the best performances.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{ajroldi2026when,
  title  = {When, Where and Why to Average Weights?},
  author = {Niccolo Ajroldi and Antonio Orvieto and Jonas Geiping},
  year   = {2026},
  eprint = {2502.06761},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2502.06761},
  journal = {ICML 2025 2025}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.06761.svg)](https://codeofpaper.com/paper/2502.06761)

Discussion