cs.LGAug 14, 2026

Boosting Data Augmentation with Stochastic Weight Averaging

Authors: Longde Huang, Axel Flinth, Jan E. Gerken

Organizations: Department of Mathematical Sciences, Chalmers University of Technology and the University of Gothenburg, SE-412 96 Gothenburg, Sweden. · Department of Mathematics and Mathematical Statistics, Umeå University, Linnéus väg 49, 901 87 Umeå, Sweden.

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. Recent results show that infinitely large deep ensembles show perfect symmetry when trained on augmented data. However, since training ensembles requires repeating the training process many times, this method is costly. In this work, we study stochastic weight averaging (SWA) applied to classification as an alternative ensembling technique that does not require repeated training runs. We analyze SWA by approximating the stochastic training trajectory at the end of training with an Ornstein--Uhlenbeck process. We show that in the infinite-width limit, SWA on augmented data provides an equivariance boost that goes beyond what could be expected from the performance increase due to SWA alone. We verify our results with extensive numerical experiments on numerous models spanning image and graph classification with both discrete and continuous symmetries.

Explore similar work

CardsList
  1. Data Augmentation: A Fourier Analysis Perspective

    Jun 23, 2026Behrooz Tahmasebi, Melanie Weber, Stefanie JegelkaData AugmentationStatistical Learning Theory

  2. Equivariance and Augmentation for Bayesian Neural Networks

    Jun 24, 2026Miaowen Dong, Axel Flinth, Jan E. GerkenBayesian Neural NetworksData Augmentation

  3. Measuring Learned Equivariance: An Information Theoretic Approach

    Oct 12, 2026Claire Schlesinger, Wolfgang Gatterbauer, Robin WaltersEquivariant Representation Learning