On the Interaction of Compressibility and Adversarial Robustness

Melih Barsbey, Antônio H. Ribeiro, Umut Şimşekli, Tolga Birdal

TL;DR

This paper uncovers a fundamental tension between making neural networks computationally efficient (compressible) and keeping them safe from adversarial attacks. The authors prove theoretically and demonstrate empirically that structured compression concentrates a network's sensitivity into a few dominant latent directions, creating a structural vulnerability that adversaries can easily exploit.

What Problem Does This Paper Address?

Modern deep learning demands models that satisfy multiple, often conflicting, criteria: they must be highly accurate, generalize well, remain efficient in storage and inference (via compression techniques like pruning), and resist adversarial perturbations. While model compression and adversarial robustness have both been studied extensively in isolation, their interaction has remained poorly understood and highly debated.

This paper addresses this gap by providing a unified, principled framework to explain exactly how and why structured compressibility—such as neuron-level sparsity or low-rank spectral compression—degrades a model's adversarial robustness.

Methods

The authors tackle the problem by combining mathematical analysis with extensive empirical validation:

  • Formalizing Compressibility: They introduce a scale-independent definition of $(q, k, \epsilon)$-compressibility to mathematically unify different compression types (neuron-level row sparsity and spectral/low-rank compression).
  • Robustness Bounds: They derive new norm-based adversarial robustness bounds that link structured compression directly to the network's operator norms ($\ell_\infty$ and $\ell_2$) and Lipschitz constants.
  • Interlayer Alignment: They introduce "interlayer alignment terms" to model how sensitive directions align across consecutive layers through ReLU non-linearities.
  • Targeted Mitigation: Inspired by their theoretical bounds, they propose a training intervention that regularizes the variance of the top filter norms. This controls the "spread" ($\beta$) of dominant terms, preventing extreme energy concentration without sacrificing prunability.

Datasets

The authors validate their framework across a diverse suite of datasets:

  • Standard Vision Benchmarks: MNIST, CIFAR-10, CIFAR-100, and SVHN.
  • Multimodal & Large-Scale Tasks: Flickr30k (used for fine-tuning CLIP) and ImageNet-1k (used for zero-shot adversarial evaluation).

Key Insights and Ideas

  • Energy Concentration Creates Vulnerability: Compressing a model forces its parameter energy onto a few dominant rows, filters, or singular values. As illustrated in the visual preview below, this process creates a small number of highly sensitive directions in the latent space that dramatically amplify input perturbations.
Figure 1: A visual preview of our findings. (Left) Sparsification expedites compression but creates sensitive latent directions. (Center) Adversaries exploit these sensitive directions to increase their potency. (Right) This leads to decreased adversarial robustness.
  • Mechanism-Agnostic Fragility: This drop in robustness occurs regardless of how the compression is achieved—whether via explicit regularization (like group lasso), architectural constraints (low-rank factorization), or implicit optimization dynamics (such as high learning rates).
  • Decision Boundary Contraction: In the representation space, the decision boundaries of compressed models contract significantly along these dominant axes, making it much easier for a minuscule adversarial perturbation to push an image across the boundary.
Comparison of decision boundaries in a baseline vs. a compressed model under attack.
  • Vulnerabilities are "Baked In": The structural weaknesses introduced by compression are deeply embedded within the learned representations. They persist even under adversarial training and transfer learning to downstream tasks.
  • Susceptibility to Universal Attacks: Because compression creates global, low-dimensional vulnerable directions, it uniquely increases a model's susceptibility to universal adversarial perturbations (UAEs).

Key Results

  • Tight Theoretical Correlation: The derived theoretical bound shows an exceptionally close correlation ($\rho = 0.947$) with the empirical robustness gap measured in practice.
Plot showing the close correlation between the theoretical bound and the empirical robustness gap across different layer ranks.
  • Widespread Performance Drop: Across multiple architectures—including Fully Connected Networks (FCNs), CNNs (ResNet18, VGG16, WideResNet), and Transformers (ViT, Swin, and CLIP)—increasing structured compressibility consistently led to a sharp decline in robust accuracy.
  • Effective Mitigation: The authors' variance regularization strategy successfully mitigated performance drop-offs during layerwise filter pruning, demonstrating a practical path toward reconciling efficiency and safety.

Limitations and Future Work

  • Reliance on Global Metrics: The theoretical framework relies heavily on global Lipschitz constants to bound network performance. The authors note that future work should focus on providing a more localized sensitivity analysis within the input space.
  • Exploring Hybrid Compression: While the simple interventions suggested by the theory provide cost-effective improvements, the authors emphasize that these insights should be combined with alternative compression paradigms (such as combining pruning with quantization or knowledge distillation) to design models that are both efficient and safe.

Summary updated

BibTeX
@inproceedings{barsbey2026interaction,
  author = {Melih Barsbey and Antônio H. Ribeiro and Umut Şimşekli and Tolga Birdal},
  title = {{On the Interaction of Compressibility and Adversarial Robustness}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=zSsNzxjWP4},
}
Figure