Sparse Weight Averaging with Multiple Particles for Iterative Magnitude Pruning
Moonseok Choi, Hyungi Lee, Giung Nam, Juho Lee
TL;DR
This work tackles pruning-induced performance loss in extreme sparsity by extending Iterative Magnitude Pruning (IMP) with Sparse Weight Averaging using Multiple Particles (SWAMP). SWAMP trains $N$ particles from the same matching ticket using different SGD noise and aggregates them via stochastic weight averaging to produce a single sparse mask, achieving accuracy near that of an ensemble at the same inference cost. The authors show that SWAMP preserves linear connectivity between successive IMP solutions and tends to locate flatter minima, leading to better generalization than standard IMP across image and language tasks. They also discuss practical strategies to reduce training cost through parallelization and selective multi-particle usage, and demonstrate extensions to dynamic pruning methods, highlighting SWAMP’s broad applicability and potential impact on efficient sparse modeling.
Abstract
Given the ever-increasing size of modern neural networks, the significance of sparse architectures has surged due to their accelerated inference speeds and minimal memory demands. When it comes to global pruning techniques, Iterative Magnitude Pruning (IMP) still stands as a state-of-the-art algorithm despite its simple nature, particularly in extremely sparse regimes. In light of the recent finding that the two successive matching IMP solutions are linearly connected without a loss barrier, we propose Sparse Weight Averaging with Multiple Particles (SWAMP), a straightforward modification of IMP that achieves performance comparable to an ensemble of two IMP solutions. For every iteration, we concurrently train multiple sparse models, referred to as particles, using different batch orders yet the same matching ticket, and then weight average such models to produce a single mask. We demonstrate that our method consistently outperforms existing baselines across different sparsities through extensive experiments on various data and neural network structures.
