[Paper Review] Combinatorial Attacks on Binarized Neural Networks
This paper proposes a novel combinatorial attack method, IProp, for binarized neural networks (BNNs) using integer programming and iterative target propagation. It outperforms standard gradient-based attacks like FGSM in generating stronger adversarial examples, especially on MNIST and Fashion-MNIST, while scaling beyond the limits of exact MILP solving.
Binarized Neural Networks (BNNs) have recently attracted significant interest due to their computational efficiency. Concurrently, it has been shown that neural networks may be overly sensitive to "attacks" - tiny adversarial changes in the input - which may be detrimental to their use in safety-critical domains. Designing attack algorithms that effectively fool trained models is a key step towards learning robust neural networks. The discrete, non-differentiable nature of BNNs, which distinguishes them from their full-precision counterparts, poses a challenge to gradient-based attacks. In this work, we study the problem of attacking a BNN through the lens of combinatorial and integer optimization. We propose a Mixed Integer Linear Programming (MILP) formulation of the problem. While exact and flexible, the MILP quickly becomes intractable as the network and perturbation space grow. To address this issue, we propose IProp, a decomposition-based algorithm that solves a sequence of much smaller MILP problems. Experimentally, we evaluate both proposed methods against the standard gradient-based attack (FGSM) on MNIST and Fashion-MNIST, and show that IProp performs favorably compared to FGSM, while scaling beyond the limits of the MILP.
Motivation & Objective
- Address the challenge of generating effective adversarial examples for BNNs, which are non-differentiable and thus resistant to gradient-based attacks.
- Overcome the scalability limitations of exact Mixed Integer Linear Programming (MILP) formulations for adversarial attacks on BNNs.
- Develop a scalable, combinatorial attack algorithm that exploits the discrete structure of BNNs to generate stronger perturbations than gradient-based methods.
- Enable better adversarial training for BNNs by generating high-quality adversarial examples that improve model robustness.
Proposed method
- Formulate the adversarial attack problem as a Mixed Integer Linear Program (MILP), leveraging the piecewise constant nature of BNNs and the sign function activation.
- Use a decomposition-based iterative algorithm, IProp, which performs target propagation by tuning perturbations layer-by-layer through successive MILP subproblems.
- Apply an adaptive step size strategy in IProp that starts at 5% of the network width and halves every 5 iterations if no improvement is found.
- Enable warm-starting IProp with perturbations generated by FGSM to improve initial solution quality and accelerate convergence.
- Use a flexible MILP formulation that supports both targeted and untargeted attacks, as well as constraints on perturbation size and sparsity.
- Leverage the discrete, non-differentiable structure of BNNs to design a combinatorial optimization approach that avoids reliance on gradients.
Experimental results
Research questions
- RQ1Can a Mixed Integer Linear Programming (MILP) formulation generate globally optimal adversarial examples for small BNNs?
- RQ2How does the performance of gradient-based attacks like FGSM compare to exact MILP-based attacks in terms of adversarial success rate and perturbation quality?
- RQ3Can an iterative, decomposition-based algorithm like IProp scale beyond the computational limits of MILP while maintaining or improving attack strength?
- RQ4Does the use of adaptive step size and warm-starting improve the efficiency and effectiveness of IProp in generating adversarial examples?
- RQ5To what extent can combinatorial optimization methods outperform gradient-based attacks in attacking BNNs due to their discrete, non-differentiable nature?
Key findings
- The MILP formulation successfully computes globally optimal adversarial perturbations for small BNNs, revealing a significant performance gap between MILP and FGSM.
- IProp consistently outperforms FGSM in generating adversarial examples, achieving higher success rates in flipping predictions to the target class.
- IProp scales effectively beyond the limits of MILP solving, enabling attacks on larger networks and higher perturbation budgets.
- The adaptive step size strategy in IProp achieves performance comparable to or better than fixed step sizes across different network sizes and perturbation budgets.
- Warm-starting IProp with FGSM-generated perturbations significantly improves attack success rates, demonstrating the value of high-quality initial solutions.
- The iterative nature of IProp allows for continuous improvement in attack strength, with performance surpassing FGSM after only a few seconds of runtime.
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.