mlsanityData to 13 Oct 2026

A Unified Analysis for Finite Weight Averaging

arXiv 2411.13169 ↗First posted 20 Nov 2024cs.LG math.OC stat.MLcited by 3

Not on the map. Why?

Abstract (arXiv)

Averaging iterations of Stochastic Gradient Descent (SGD) have achieved empirical success in training deep learning models, such as Stochastic Weight Averaging (SWA), Exponential Moving Average (EMA), and LAtest Weight Averaging (LAWA). Especially, with a finite weight averaging method, LAWA can attain faster convergence and better generalization. However, its theoretical explanation is still less explored since there are fundamental differences between finite and infinite settings. In this work, we first generalize SGD and LAWA as Finite Weight Averaging (FWA) and explain their advantages compared to SGD from the perspective of optimization and generalization. A key challenge is the inapplicability of traditional methods in the sense of expectation or optimal values for infinite-dimensional settings in analyzing FWA's convergence. Second, the cumulative gradients introduced by FWA introduce additional confusion to the generalization analysis, especially making it more difficult to discuss them under different assumptions. Extending the final iteration convergence analysis to the FWA, this paper, under a convexity assumption, establishes a convergence bound O(logleft(fracTkright)/√T), where k∈[1, T/2] is a constant representing the last k iterations. Compared to SGD with O(log(T)/√T), we prove theoretically that FWA has a faster convergence rate and explain the effect of the number of average points. In the generalization analysis, we find a recursive representation for bounding the cumulative gradient using mathematical induction. We provide bounds for constant and decay learning rates and the convex and non-convex cases to show the good generalization performance of FWA. Finally, experimental results on several benchmarks verify our theoretical results.

Key facts. Cited by 3 papers in the map (data through 13 Oct 2026). Builds on 6 of its 45 references that are in the map. First posted on arXiv 20 Nov 2024.

Builds on

6 of 45 references.

References · 6

  1. 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,202
  2. 2022Stop Wasting My Time! Saving Days of ImageNet and BERT Training with Latest Weight Averagingcited by 54
  3. 2017A Markov Chain Theory Approach to Characterizing the Minimax Optimality of Stochastic Gradient Descent (for Least Squares)cited by 26
  4. 2023Understanding How Consistency Works in Federated Learning via Stage-wise Relaxed Initializationcited by 21
  5. 2018Generalization Error Bounds with Probabilistic Guarantee for SGD in Nonconvex Optimizationcited by 14
  6. 2023Towards Understanding Generalization and Stability Gaps between Centralized and Decentralized Federated Learningcited by 3

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2025: 2; 2026: 1.

3 papers.