English

Sparse Representations Improve Adversarial Robustness of Neural Network Classifiers

Machine Learning 2025-10-08 v2 Computer Vision and Pattern Recognition

Abstract

Deep neural networks perform remarkably well on image classification tasks but remain vulnerable to carefully crafted adversarial perturbations. This work revisits linear dimensionality reduction as a simple, data-adapted defense. We empirically compare standard Principal Component Analysis (PCA) with its sparse variant (SPCA) as front-end feature extractors for downstream classifiers, and we complement these experiments with a theoretical analysis. On the theory side, we derive exact robustness certificates for linear heads applied to SPCA features: for both \ell_\infty and 2\ell_2 threat models (binary and multiclass), the certified radius grows as the dual norms of WuW^\top u shrink, where WW is the projection and uu the head weights. We further show that for general (non-linear) heads, sparsity reduces operator-norm bounds through a Lipschitz composition argument, predicting lower input sensitivity. Empirically, with a small non-linear network after the projection, SPCA consistently degrades more gracefully than PCA under strong white-box and black-box attacks while maintaining competitive clean accuracy. Taken together, the theory identifies the mechanism (sparser projections reduce adversarial leverage) and the experiments verify that this benefit persists beyond the linear setting. Our code is available at https://github.com/killian31/SPCARobustness.

Keywords

Cite

@article{arxiv.2509.21130,
  title  = {Sparse Representations Improve Adversarial Robustness of Neural Network Classifiers},
  author = {Killian Steunou and Théo Druilhe and Sigurd Saue},
  journal= {arXiv preprint arXiv:2509.21130},
  year   = {2025}
}

Comments

Killian Steunou is the main contributor and corresponding author of this work

R2 v1 2026-07-01T05:56:06.241Z