Abstract
Increasing the model capacity is a known approach to enhance the adversarial robustness of deep learning networks. On the other hand, various model compression techniques, including pruning and quantization, can reduce the size of the network while preserving its accuracy. Several recent studies have addressed the relationship between model compression and adversarial robustness, while some experiments have reported contradictory results. This work summarizes available evidence and discusses possible explanations for the observed effects.
Introduction
Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial attacks—tiny, human-imperceptible perturbations that trick models into making high-confidence errors. Historically, the primary defense against these attacks has been to increase model capacity and employ Adversarial Training (AT). However, the rise of "edge AI" requires models to run on resource-constrained devices like smartphones and autonomous vehicles, necessitating model compression.
This creates a "trilateral trade-off" between model size, predictive accuracy, and adversarial robustness. Early research into this relationship yielded contradictory results, with some studies suggesting compression destroys robustness while others claimed it could enhance it. This review synthesizes current evidence to resolve these contradictions and provide a clear picture of the state of the art.
Methodologies in Model Compression
Research in this field generally focuses on two primary technological pillars: pruning and quantization. These techniques are evaluated either for their intrinsic relationship with robustness (how compression affects a standard model) or their combined effects when paired with Adversarial Training.
Pruning
Pruning involves removing "insignificant" weights or entire neurons/filters to create a sparser, smaller network. As shown in the literature summary below, various strategies—from magnitude-based pruning to more complex methods like HYDRA—have been tested across diverse architectures and datasets.
Quantization
Quantization reduces the precision of model weights and activations, such as moving from 32-bit floats to 8-bit integers or even binary values. This method is often combined with defensive strategies to mitigate the accuracy loss typically associated with low-bit representations.
Key Insights and Analysis
The Critical Compression Ratio
A recurring finding across studies is the existence of a "critical compression ratio." As a model is compressed, its adversarial robustness typically begins to degrade before its clean accuracy does. There is often a "sweet spot" where size can be significantly reduced without penalty, but once a specific threshold is crossed, the model's "defense budget" is the first to be depleted.
Retraining and Sparsity
Naive compression—applying compression to a pre-trained model without further adjustment—almost always hurts robustness. However, if the model is retrained or fine-tuned with adversarial examples during or after the compression process, it can often match or exceed the robustness of the original dense model. Furthermore, some evidence suggests that sparse nonlinear DNNs can be more robust than their dense counterparts, supporting the "Lottery Ticket Hypothesis": within a large, vulnerable network, there may exist a smaller "winning" sub-network that is inherently more robust.
Comparative Results
- Quantization + AT: Studies by Rakin et al. and Lin et al. found that defensive quantization, particularly when applied to activations, can increase robustness against PGD and FGSM attacks compared to full-precision counterparts.
- Pruning Efficiency: In experiments with Wide ResNets, moderately pruned models (removing <50% of parameters) were sometimes found to be more robust than the original unpruned models when both were adversarially trained.
- Transfer Attack Resistance: Pruned models often exhibit better resistance to "transfer attacks" (adversarial examples generated on a different model) than dense models of comparable size.
Conclusion and Future Directions
While significant progress has been made, several challenges remain. The authors note that comparing early research is difficult due to inconsistent evaluation metrics; many early papers did not use the now-standard Projected Gradient Descent (PGD) attack, which is a much stronger benchmark than older methods like FGSM.
Additionally, a measurable performance gap persists between "naturally" small models and large models that have been pruned down to the same size. Finally, most current evidence is limited to image classification. Future research must expand into more complex tasks like semantic segmentation and object detection to fully understand the interplay between compression and robustness in real-world applications.
Summary updated