ARBiBench: Benchmarking Adversarial Robustness of Binarized Neural Networks (2312.13575v1)
Abstract: Network binarization exhibits great potential for deployment on resource-constrained devices due to its low computational cost. Despite the critical importance, the security of binarized neural networks (BNNs) is rarely investigated. In this paper, we present ARBiBench, a comprehensive benchmark to evaluate the robustness of BNNs against adversarial perturbations on CIFAR-10 and ImageNet. We first evaluate the robustness of seven influential BNNs on various white-box and black-box attacks. The results reveal that 1) The adversarial robustness of BNNs exhibits a completely opposite performance on the two datasets under white-box attacks. 2) BNNs consistently exhibit better adversarial robustness under black-box attacks. 3) Different BNNs exhibit certain similarities in their robustness performance. Then, we conduct experiments to analyze the adversarial robustness of BNNs based on these insights. Our research contributes to inspiring future research on enhancing the robustness of BNNs and advancing their application in real-world scenarios.
- Square attack: A query-efficient black-box adversarial attack via random search. In European Conference on Computer Vision (ECCV), pages 484–501, 2020.
- Obfuscated gradients give a false sense of security: Circumventing defenses to adversarial examples. In International Conference on Machine Learning (ICML), pages 274–283, 2018.
- Estimating or propagating gradients through stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013.
- Decision-based adversarial attacks: Reliable attacks against black-box machine learning models. In International Conference on Learning Representations (ICLR), 2018.
- Xnor-net++: Improved binary neural networks. In British Machine Vision Conference (BMVC), page 62, 2019.
- End-to-end object detection with transformers. In European Conference on Computer Vision (ECCV), pages 213–229, 2020.
- Towards evaluating the robustness of neural networks. In IEEE Symposium on Security and Privacy, pages 39–57, 2017.
- Pact: Parameterized clipping activation for quantized neural networks. arXiv preprint arXiv:1805.06085, 2018.
- Low-bit quantization of neural networks for efficient inference. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV) Workshops, pages 3009–3018, 2019.
- Binarized neural networks: Training deep neural networks with weights and activations constrained to+ 1 or-1. arXiv preprint arXiv:1602.02830, 2016.
- Robustbench: a standardized adversarial robustness benchmark. arXiv preprint arXiv:2010.09670, 2020.
- Exploiting linear structure within convolutional networks for efficient evaluation. In Advances in neural information processing systems (NIPS), pages 1269–1277, 2014.
- Regularizing activation distribution for training binarized deep networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 11408–11417, 2019a.
- Global sparse momentum SGD for pruning very deep neural networks. In Advances in neural information processing systems (NIPS), pages 6379–6391, 2019b.
- Boosting adversarial attacks with momentum. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 9185–9193, 2018.
- Evading defenses to transferable adversarial examples by translation-invariant attacks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 4312–4321, 2019a.
- Efficient decision-based black-box adversarial attacks on face recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 7714–7722, 2019b.
- Benchmarking adversarial robustness on image classification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 318–328, 2020.
- An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations (ICLR), 2021.
- A study of the effect of jpg compression on adversarial images. arXiv preprint arXiv:1608.00853, 2016.
- Exploring the landscape of spatial robustness. In International Conference on Machine Learning (ICML), pages 1802–1811. PMLR, 2019.
- Learned step size quantization. arXiv preprint arXiv:1902.08153, 2019.
- The pascal visual object classes (VOC) challenge. International Journal of Computer Vision (IJCV), 88(2):303–338, 2010.
- Detecting adversarial samples from artifacts. arXiv preprint arXiv:1703.00410, 2017.
- Attacking binarized neural networks. In International Conference on Learning Representations (ICLR), 2018.
- Compressing deep convolutional networks using vector quantization. arXiv preprint arXiv:1412.6115, 2014.
- Explaining and harnessing adversarial examples. In International Conference on Learning Representations (ICLR), 2015.
- Improved gradient-based adversarial attacks for quantized networks. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), pages 6810–6818, 2022.
- Learning both weights and connections for efficient neural network. In Advances in neural information processing systems (NIPS), pages 1135–1143, 2015.
- Deep residual learning for image recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, 2016.
- Proxybnn: Learning binarized neural networks via proxy matrices. In European Conference on Computer Vision (ECCV), pages 223–241. Springer, 2020.
- Channel pruning for accelerating very deep neural networks. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 1398–1406, 2017.
- Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
- Binarized neural networks. In Advances in neural information processing systems (NIPS), pages 4107–4115, 2016.
- Speeding up convolutional neural networks with low rank expansions. In British Machine Vision Conference (BMVC), 2014.
- Delving into multimodal prompting for fine-grained visual classification. arXiv preprint arXiv:2309.08912, 2023.
- Combinatorial attacks on binarized neural networks. In International Conference on Learning Representations (ICLR), 2019.
- Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems (NIPS), pages 1106–1114, 2012.
- Functional adversarial attacks. Advances in neural information processing systems (NIPS), 32, 2019.
- NATTACK: learning the distributions of adversarial examples for an improved black-box attack on deep neural networks. In International Conference on Machine Learning (ICML), pages 3866–3876, 2019.
- Defensive quantization: When efficiency meets robustness. In International Conference on Learning Representations (ICLR), 2019.
- Nesterov accelerated gradient and scale invariance for adversarial attacks. In International Conference on Learning Representations (ICLR), 2020a.
- Rotated binary neural network. Advances in neural information processing systems (NIPS), 33:7474–7485, 2020b.
- Deep learning for generic object detection: A survey. International Journal of Computer Vision (IJCV), 128(2):261–318, 2020a.
- Bi-real net: Enhancing the performance of 1-bit cnns with improved representational capability and advanced training algorithm. In European Conference on Computer Vision (ECCV), pages 747–763, 2018.
- Reactnet: Towards precise binary neural network with generalized activation functions. In European Conference on Computer Vision (ECCV), pages 143–159, 2020b.
- Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 3431–3440, 2015.
- Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations (ICLR), 2018a.
- Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations (ICLR), 2018b.
- Training binary neural networks with real-to-binary convolutions. arXiv preprint, 2020.
- Deepfool: A simple and accurate method to fool deep neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2574–2582, 2016.
- Improving adversarial robustness via promoting ensemble diversity. In International Conference on Machine Learning (ICML), pages 4970–4979. PMLR, 2019.
- Forward and backward information retention for accurate binary neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2250–2259, 2020.
- Bibench: Benchmarking and analyzing network binarization. In International Conference on Machine Learning (ICML), pages 28351–28388, 2023.
- Certified defenses against adversarial examples. arXiv preprint arXiv:1801.09344, 2018.
- Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision (ECCV), pages 525–542, 2016.
- You only look once: Unified, real-time object detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 779–788, 2016.
- Adversarial attacks and defenses in deep learning. Engineering, 6(3):346–360, 2020.
- Faster R-CNN: towards real-time object detection with region proposal networks. In Advances in neural information processing systems (NIPS), pages 91–99, 2015.
- Network binarization via contrastive learning. In European Conference on Computer Vision (ECCV), pages 586–602, 2022.
- Svnet: Where so (3) equivariance meets binarization on point cloud representation. In 2022 International Conference on 3D Vision (3DV), pages 547–556. IEEE, 2022.
- Lightweight pixel difference networks for efficient visual representation learning. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 2023.
- Intriguing properties of neural networks. In International Conference on Learning Representations (ICLR), 2014.
- Robustart: Benchmarking robustness on architecture design and training techniques. arXiv preprint arXiv:2109.05211, 2021.
- Ensemble adversarial training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017.
- Adversarial risk and the dangers of evaluating against weak attacks. In International Conference on Machine Learning (ICML), pages 5032–5041, 2018.
- Breakingbed–breaking binary and efficient deep neural networks by adversarial attacks. arXiv preprint arXiv:2103.08031, 2021.
- Benchmarking adversarial robustness of compressed deep learning models. arXiv preprint arXiv:2308.08160, 2023.
- Sparsity-inducing binarized neural networks. In Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), pages 12192–12199, 2020.
- Gradient matters: Designing binarized neural networks via enhanced information-flow. IEEE Transactions on Pattern Analysis and Machine Intelligence (TPAMI), 44(11):7551–7562, 2021.
- Wasserstein adversarial examples via projected sinkhorn iterations. In International Conference on Machine Learning (ICML), pages 6808–6817. PMLR, 2019.
- Quantized convolutional neural networks for mobile devices. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 4820–4828, 2016.
- Robustmq: Benchmarking robustness of quantized models. arXiv preprint arXiv:2308.02350, 2023.
- Mitigating adversarial effects through randomization. In International Conference on Learning Representations (ICLR), 2018.
- Improving transferability of adversarial examples with input diversity. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2730–2739, 2019.
- Feature squeezing: Detecting adversarial examples in deep neural networks. arXiv preprint arXiv:1704.01155, 2017.
- Learning frequency domain approximation for binary neural networks. Advances in neural information processing systems (NIPS), 34:25553–25565, 2021a.
- Accurate and compact convolutional neural networks with trained binarization. arXiv preprint, 2019.
- Training shallow and thin networks for acceleration via knowledge distillation with conditional adversarial networks. In International Conference on Learning Representations (ICLR) Workshops, 2018.
- Recu: Reviving the dead weights in binary neural networks. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 5178–5188, 2021b.
- A gift from knowledge distillation: Fast optimization, network minimization and transfer learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 7130–7138, 2017.
- Theoretically principled trade-off between robustness and accuracy. In International Conference on Machine Learning (ICML), pages 7472–7482, 2019.
- Towards compact 1-bit cnns via bayesian learning. International Journal of Computer Vision (IJCV), pages 1–25, 2022.
- Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. arXiv preprint arXiv:1606.06160, 2016.
- Towards effective low-bitwidth convolutional neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 7920–7928, 2018.