SWAP: Sparse Entropic Wasserstein Regression for Robust Network Pruning
Lei You, Hei Victor Cheng
TL;DR
SWAP reframes network pruning under noisy gradients as Sparse Entropic Wasserstein regression (EWR), leveraging entropically regularized optimal transport to interpolate among gradient neighborhoods. By minimizing the Wasserstein distance between projected gradients before and after pruning, plus a sparsity constraint and a small quadratic penalty, SWAP achieves robustness to noise while preserving useful covariance information. Theoretical results (via convex hull and neighborhood interpolation) and entropic regularization improve sample efficiency and stabilize pruning decisions; empirically, SWAP matches or surpasses SoTA pruning methods, with pronounced gains at high sparsity and in the presence of gradient noise, as demonstrated on MLPNet, ResNet, and MobileNetV1 across multiple datasets. The approach offers a scalable, robust alternative for large-scale model compression, with practical impact for deploying efficient, resilient neural networks in resource-constrained environments.
Abstract
This study addresses the challenge of inaccurate gradients in computing the empirical Fisher Information Matrix during neural network pruning. We introduce SWAP, a formulation of Entropic Wasserstein regression (EWR) for pruning, capitalizing on the geometric properties of the optimal transport problem. The ``swap'' of the commonly used linear regression with the EWR in optimization is analytically demonstrated to offer noise mitigation effects by incorporating neighborhood interpolation across data points with only marginal additional computational cost. The unique strength of SWAP is its intrinsic ability to balance noise reduction and covariance information preservation effectively. Extensive experiments performed on various networks and datasets show comparable performance of SWAP with state-of-the-art (SoTA) network pruning algorithms. Our proposed method outperforms the SoTA when the network size or the target sparsity is large, the gain is even larger with the existence of noisy gradients, possibly from noisy data, analog memory, or adversarial attacks. Notably, our proposed method achieves a gain of 6% improvement in accuracy and 8% improvement in testing loss for MobileNetV1 with less than one-fourth of the network parameters remaining.
