Stochastic Weight Averaging Boosts Data Augmentation Performance

Longde Huang, Axel Flinth, Jan E. Gerken· August 17, 2026 View original

Key takeaways

  • Data augmentation incorporates task symmetries into neural networks.
  • Stochastic Weight Averaging (SWA) is a cost-effective ensembling alternative.
  • SWA significantly boosts the equivariance benefits of data augmentation.
  • This combination improves model generalization across various tasks.

Who benefits

AI/ML DevelopmentComputer VisionData ScienceRoboticsAutonomous Vehicles

Summary

This research shows that Stochastic Weight Averaging (SWA) significantly enhances the equivariance boost from data augmentation in deep neural networks, especially in the infinite-width limit. It offers a cost-effective alternative to training large ensembles for improved symmetry.

Data augmentation is a widely used and effective technique for incorporating symmetries of a learning task into generic neural networks, thereby improving their generalization capabilities. While infinitely large deep ensembles are known to exhibit perfect symmetry when trained with augmented data, the computational cost of training multiple ensembles is prohibitive. This paper investigates Stochastic Weight Averaging (SWA) as a more efficient alternative to traditional ensembling. SWA involves averaging the model weights over the latter part of the training trajectory, effectively creating an ensemble without multiple training runs. The researchers analyze SWA by approximating the stochastic training trajectory with an Ornstein-Uhlenbeck process in the infinite-width limit. Their findings demonstrate that SWA, when applied with augmented data, provides an equivariance boost that surpasses the performance increase attributable to SWA alone. This suggests a synergistic effect between SWA and data augmentation. Extensive numerical experiments across various models in computer vision and graph classification, involving both discrete and continuous symmetries, verify these theoretical results.

Why it matters

Professionals can achieve better model performance and generalization with data augmentation more efficiently by integrating Stochastic Weight Averaging, reducing the need for costly ensemble training.

How to implement this in your domain

  1. 1Integrate Stochastic Weight Averaging (SWA) into your deep learning training pipelines.
  2. 2Combine SWA with existing data augmentation strategies for improved model robustness.
  3. 3Experiment with SWA across different model architectures and datasets in computer vision and graph classification.
  4. 4Evaluate the computational savings and performance gains of SWA compared to traditional ensembling.

Original post by Longde Huang, Axel Flinth, Jan E. Gerken

"arXiv:2608.14373v1 Announce Type: new Abstract: The symmetries of a learning task have become an important factor in designing modern deep learning solutions. Data augmentation is a straightforward and effective way of incorporating symmetries into a generic neural network. Recen…"

View on X

Originally posted by Longde Huang, Axel Flinth, Jan E. Gerken on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses