[Paper Review] Protecting Neural Networks with Hierarchical Random Switching: Towards Better Robustness-Accuracy Trade-off for Stochastic Defenses
This paper proposes Hierarchical Random Switching (HRS), a novel stochastic defense that improves the robustness-accuracy trade-off in neural networks by using randomly switching channels across hierarchical blocks. HRS achieves significantly higher defense efficiency scores (DES) than existing methods, outperforming stochastic defenses and adversarial training in resisting white-box and adaptive attacks, while also being the first effective defense against adversarial reprogramming.
Despite achieving remarkable success in various domains, recent studies have uncovered the vulnerability of deep neural networks to adversarial perturbations, creating concerns on model generalizability and new threats such as prediction-evasive misclassification or stealthy reprogramming. Among different defense proposals, stochastic network defenses such as random neuron activation pruning or random perturbation to layer inputs are shown to be promising for attack mitigation. However, one critical drawback of current defenses is that the robustness enhancement is at the cost of noticeable performance degradation on legitimate data, e.g., large drop in test accuracy. This paper is motivated by pursuing for a better trade-off between adversarial robustness and test accuracy for stochastic network defenses. We propose Defense Efficiency Score (DES), a comprehensive metric that measures the gain in unsuccessful attack attempts at the cost of drop in test accuracy of any defense. To achieve a better DES, we propose hierarchical random switching (HRS), which protects neural networks through a novel randomization scheme. A HRS-protected model contains several blocks of randomly switching channels to prevent adversaries from exploiting fixed model structures and parameters for their malicious purposes. Extensive experiments show that HRS is superior in defending against state-of-the-art white-box and adaptive adversarial misclassification attacks. We also demonstrate the effectiveness of HRS in defending adversarial reprogramming, which is the first defense against adversarial programs. Moreover, in most settings the average DES of HRS is at least 5X higher than current stochastic network defenses, validating its significantly improved robustness-accuracy trade-off.
Motivation & Objective
- To address the critical trade-off between adversarial robustness and test accuracy in stochastic defenses.
- To develop a defense mechanism that maintains high test accuracy while significantly reducing adversarial attack success rates.
- To propose a new metric, Defense Efficiency Score (DES), for standardized evaluation of robustness-accuracy trade-offs.
- To enable effective defense against adaptive and white-box attacks, including novel threats like adversarial reprogramming.
Proposed method
- HRS introduces a hierarchical structure of random switching blocks, each containing parallel channels with distinct weights and a dynamic switcher selecting active channels at inference time.
- Each block uses decentralized randomization, where only one channel is active per forward pass, preventing adversaries from exploiting fixed model structures.
- A novel bottom-up training algorithm with linear time complexity is developed to efficiently train HRS-protected models.
- The defense is attack-independent and compatible with standard neural network training pipelines, requiring only a single base architecture.
- HRS is applied to both standard adversarial misclassification and adversarial reprogramming tasks, demonstrating broad applicability.
- The Defense Efficiency Score (DES) is computed as the ratio of attack success rate reduction to test accuracy drop, enabling quantitative comparison across defenses.
Experimental results
Research questions
- RQ1How can the robustness-accuracy trade-off in stochastic defenses be systematically measured and improved?
- RQ2Can a defense mechanism maintain high test accuracy while effectively resisting strong white-box and adaptive adversarial attacks?
- RQ3Does hierarchical random switching provide stronger robustness than existing stochastic defenses like SAP, defensive dropout, and Gaussian noise?
- RQ4Can HRS defend against the emerging threat of adversarial reprogramming, where models are covertly reprogrammed to misbehave?
- RQ5Is the robustness of HRS due to gradient obfuscation or genuine resilience to adversarial examples?
Key findings
- On CIFAR-10, HRS achieves a mean Defense Efficiency Score (DES) of 35.55 under CW-PGD attacks, outperforming all other defenses by at least 3×.
- With only a 0.48% drop in test accuracy, HRS maintains 48.9% and 45.5% attack success rate reduction on PGD and CW-PGD attacks at ℓ∞ = 8/255, respectively.
- HRS remains effective under adaptive attacks using Expectation of Transforms (EOT), while other defenses like SAP and dropout are significantly weakened.
- The fixed-randomness adaptive attack performs worse on HRS than standard white-box attacks, confirming its decentralized randomization resists exploitation.
- HRS reduces adversarial reprogramming success to below 20% on CIFAR-10, while unprotected models achieve up to 95.07% accuracy after reprogramming.
- HRS with more channels or blocks further reduces attack success rates, indicating scalability and configurability for stronger defense.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.