Trainable Weight Averaging: Accelerating Training and Improving Generalization
Not on the map. Why?
Abstract (arXiv)
Weight averaging is a widely used technique for accelerating training and improving the generalization of deep neural networks (DNNs). While existing approaches like stochastic weight averaging (SWA) rely on pre-set weighting schemes, they can be suboptimal when handling diverse weights. We introduce Trainable Weight Averaging (TWA), a novel optimization method that operates within a reduced subspace spanned by candidate weights and learns optimal weighting coefficients through optimization. TWA offers greater flexibility and can be applied to different training scenarios. For large-scale applications, we develop a distributed training framework that combines parallel computation with low-bit compression for the projection matrix, effectively managing memory and computational demands. TWA can be implemented using either training data (TWA-t) or validation data (TWA-v), with the latter providing more effective averaging. Extensive experiments showcase TWA's advantages: (i) it consistently outperforms SWA in generalization performance and flexibility, (ii) when applied during early training, it reduces training time by over 40% on CIFAR datasets and 30% on ImageNet while maintaining comparable performance, and (iii) during fine-tuning, it significantly enhances generalization by weighted averaging of model checkpoints. In summary, we present an efficient and effective framework for trainable weight averaging. The code is available at https://github.com/nblt/TWA.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). First posted on arXiv 26 May 2022.
Builds on
0 of 0 references.
No references here yet.
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Adaptive Stochastic Weight Averaging
- 2026Improving Neural Network Training by Decoupling the Magnitude and Direction of Weight Vectors
- 2022Improving Ensemble Distillation With Weight Averaging and Diversifying Perturbation
- 2026Understanding the Weight Averaging Mechanism in LLM Training for Post-Training Quantization
- 2024Custom Gradient Estimators are Straight-Through Estimators in Disguise
- 2023Probabilistic Weight Fixing: Large-scale training of neural network weight uncertainties for quantization
- 2026Spectral Weight Decay: Inducing Low-Rank Structure in Neural Network Weights
- 2025Starting Positions Matter: A Study on Better Weight Initialization for Neural Network Quantization