TL;DR
This paper systematically evaluates how popular neural network compression techniques—pruning, knowledge distillation, and binarization—impact adversarial robustness. The authors reveal a fascinating trade-off: while pruning generally degrades a model's defense, binarization and knowledge distillation offer surprising resilience against both white-box and black-box attacks.
What Problem Does This Paper Address?
Deploying deep convolutional neural networks (CNNs) on resource-constrained edge devices (like autonomous vehicles or robotics) requires aggressive compression to reduce memory and compute demands. While the trade-offs between compression rate and task accuracy are well-studied, a critical third dimension is often ignored: robustness.
In safety-critical applications, networks must withstand adversarial attacks—subtle, engineered perturbations to inputs that fool a model into making catastrophic misclassifications. This paper addresses the gap in understanding how different network compression strategies alter a model's vulnerability to these malicious manipulations.
Methods
The authors benchmark three primary compression paradigms:
- Knowledge Distillation (KD): Training a smaller student network using the soft probability outputs of a larger teacher network.
- Pruning: Eliminating redundant parameters. The authors test filter-wise, channel-wise, kernel-wise, and weight-wise pruning using a reinforcement learning agent (AMC-AutoML).
- Binarization: The most aggressive form of quantization, constraining weights and activations to $\pm1$ values (specifically evaluating XNOR-Net and ABC-Net).
These compressed models are subjected to a battery of white-box attacks (FGSM, PGD, C&W, DeepFool) and black-box attacks (LocalSearch, GenAttack).
The "Stress-Strain" Framework
To fairly compare models with wildly different baseline accuracies, the authors introduce a novel evaluation metric inspired by mechanical engineering. They define Attack Stress ($\sigma$) as the intensity of the attack (e.g., perturbation amplitude or iterations) and Strain ($\varepsilon$) as the relative accuracy degradation:
$$\varepsilon = \frac{A - A^*}{A}$$
Where $A$ is the clean accuracy and $A^*$ is the deteriorated accuracy under attack. This allows them to classify networks like materials:
- Strong: Sustains high stress before breaking.
- Ductile: Gradually degrades as stress increases.
- Brittle: Fails abruptly with minimal stress.
They also leverage Class Activation Mapping (CAM) to visualize how attacks shift the network's spatial focus.
Datasets
The frameworks were trained and evaluated on two standard computer vision benchmarks:
- CIFAR-10: Evaluated using ResNet20 and ResNet56 variants.
- ImageNet: Evaluated using ResNet18 and ResNet50 variants to test scalability on larger image sizes and higher model complexities.
Key Insights and Ideas
- Pruning Weakens Security: Across the board, pruning harms adversarial robustness. Pruned models converge to higher loss levels and break much faster than their uncompressed counterparts.
- The Binarization Defense Bonus: Binary Neural Networks (BNNs), particularly XNOR-Net, show remarkable resilience. Because BNNs discretize weights and activations, they inherently disrupt the gradient signals that white-box attacks rely on to generate perturbations (a phenomenon akin to gradient masking).
- Concentrated Attention: Class Activation Mapping (CAM) revealed that BNNs naturally possess smaller, more concentrated Regions of Interest (RoIs) on clean images. This concentrated focus makes it significantly harder for an attacker to find and perturb critical pixels.
- Distillation Holds the Line (Mostly): Distilled models leverage "soft labels," which saturate gradients during adversarial generation. This makes them highly ductile against most white-box attacks, though they remain brittle to optimization-heavy attacks like Carlini & Wagner (C&W).
Key Results
The paper presents a detailed breakdown of the compute, memory, and baseline accuracy profiles for each model variant:
- PGD Attack Resilience: On CIFAR-10, vanilla and pruned ResNet20 models completely broke (dropping below random guessing, or 10% accuracy) within 5 attack iterations. In contrast, the ResNet56 XNOR-Net variant never fully broke, maintaining around 14% accuracy across 100 iterations.
- ImageNet Defenses: Under a PGD attack ($\epsilon=0.1, i=5$), the binarized ResNet18-ABC($3\times3$) model retained 15.07% accuracy, notably outperforming the much larger, full-precision ResNet50 model, which plummeted to 5.91%.
- The Ultimate Equalizer: The C&W attack proved to be the most devastating scheme, rendering every single compressed and uncompressed network completely "brittle" under minimal stress.
Limitations and Future Work
The primary limitation of the most robust compressed variants—BNNs—is their accuracy tax on clean data. For instance, on ImageNet, full-precision ResNet18 achieves 69.00% accuracy, while ResNet18-XNOR drops to 49.10%.
Furthermore, because standard pruning techniques severely degrade robustness, the authors note that future edge-deployment workflows cannot treat compression and security as isolated steps. Instead, adversarial defense objectives must be integrated directly into the pruning and fine-tuning loops.
Summary updated