On the Interaction of Compressibility and Adversarial Robustness

Melih Barsbey, Antônio H. Ribeiro, Umut Simsekli, Tolga Birdal

Modern machine learning deployments face two critical, yet often competing, demands: models must be computationally efficient (compressible for storage and inference) and reliable against malicious inputs (adversarially robust). Historically, the relationship between these two properties has been murky, with conflicting reports on whether compressing a model helps or hurts its robustness.

This paper provides a unified theoretical and empirical framework to address this gap. The authors investigate exactly how structured compressibility—such as dropping whole neurons (row sparsity) or reducing matrix rank (spectral compressibility)—affects a network's vulnerability to adversarial perturbations, uncovering a fundamental tension between efficiency and safety.

The Core Mechanism: Vulnerable "Super-Highways"

The central finding of this research is that structured compression techniques inadvertently create "super-highways" that adversaries can easily exploit. By forcing a model to concentrate its energy into a few dominant parameters (e.g., a few highly active neurons or singular values), compression creates highly sensitive directions in the representation space.

Conceptual overview of how structured compression amplifies adversarial perturbations, leading to decreased robust accuracy.

Adversarial attacks naturally align with these exact directions. As an input passes through the compressed layers, tiny adversarial perturbations are amplified into massive latent disruptions, ultimately breaking the model's predictions. Crucially, these vulnerabilities arise regardless of how the compressibility is achieved—whether through explicit regularization (like group lasso), architectural bias, or implicit learning dynamics.

Theoretical Framework and Methodology

To formalize this vulnerability, the authors introduce a scale-invariant mathematical definition called $(q, k, \epsilon)$-compressibility. This metric quantifies how well a model's parameters can be approximated by just their top-$k$ elements.

Using this definition, they derive mathematical upper bounds on a network's Lipschitz constant (a measure of how much the output can change given a small change in the input) and its operator norms ($\ell_\infty$ and $\ell_2$).

To test their theory, the researchers applied various compressibility-inducing regularizations to models during training. They then evaluated these models using standard adversarial attacks (like PGD, AutoAttack, and FGSM) across standard vision benchmarks (MNIST, SVHN, CIFAR-10/100, ImageNet-1k) to observe how compression affects robustness under standard training, adversarial training, and transfer learning regimes.

Key Results and Implications

The empirical results strongly validate the theoretical warnings, revealing several critical insights for model deployment:

  • Drastic Drops in Robust Accuracy: Across various architectures (FCNs, ResNets, VGGs, and Vision Transformers), increasing structured compressibility drastically reduces adversarial accuracy. For instance, on a CIFAR-10 ResNet18, increasing row sparsity regularization caused robust accuracy to plummet from approximately 45% to near 0%, even while standard accuracy remained relatively stable.
  • Adversarial Training is Not a Silver Bullet: Even when models are trained end-to-end with adversarial examples, the relative negative effect of compressibility persists. Highly compressible, adversarially trained models still suffer significant robustness gaps compared to their uncompressed baselines.
  • Vulnerabilities Transfer: Fine-tuning a compressed pre-trained model (like CLIP or ViT) on a downstream task bakes the vulnerability into the learned representations, resulting in poor robust accuracy on the new task.
  • Emergence of Universal Adversarial Examples (UAEs): Because compression creates global, dominant vulnerable directions across the dataset, highly compressible models become uniquely susceptible to UAEs—single, static perturbations that can fool the model on almost any input image.

A Path Forward: Robust Compression

By understanding the mathematics behind these vulnerabilities, the authors suggest potential mitigations. For example, controlling the "spread" (variance) of the dominant filters, or regularizing how much these vulnerable directions align between consecutive layers, can significantly improve a compressed model's robustness. Using these insights, they designed a modified pruning strategy that targets specific $\epsilon$ levels and controls dominant filter spread, retaining significantly more robust accuracy at high pruning ratios (e.g., 80%) compared to standard pruning methods.

Limitations and Future Work

While this framework provides a significant step forward, the authors note a few limitations. The theoretical bounds rely on global Lipschitz constants, which are notoriously loose for deep neural networks; future work should incorporate local Lipschitz estimation for tighter bounds. Additionally, the current scope focuses heavily on neuron-level and spectral compressibility. Extending this analysis to other modern compression types—like attention head pruning in Transformers or quantization—and investigating interactions with other distribution shifts (like natural corruptions or label noise) remain promising avenues for future research.

Summary updated

BibTeX
@inproceedings{barsbey2026interaction,
  author = {Melih Barsbey and Antônio H. Ribeiro and Umut Simsekli 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