Abstract
Deep neural networks are vulnerable to adversarial attacks. Most $L_{0}$-norm based white-box attacks craft perturbations by the gradient of models to the input. Since the computation cost and memory limitation of calculating the Hessian matrix, the application of Hessian or approximate Hessian in white-box attacks is gradually shelved. In this work, we note that the sparsity requirement on perturbations naturally lends itself to the usage of Hessian information. We study the attack performance and computation cost of the attack method based on the Hessian with a limited number of perturbation pixels. Specifically, we propose the Limited Pixel BFGS (LP-BFGS) attack method by incorporating the perturbation pixel selection strategy and the BFGS algorithm. Pixels with top-k attribution scores calculated by the Integrated Gradient method are regarded as optimization variables of the LP-BFGS attack. Experimental results across different networks and datasets demonstrate that our approach has comparable attack ability with reasonable computation in different numbers of perturbation pixels compared with existing solutions.
Introduction
Deep Neural Networks (DNNs) have achieved remarkable success in computer vision, yet they remain notoriously fragile when faced with adversarial examples—inputs specifically crafted to induce misclassification. Among various attack paradigms, $L_0$-norm attacks are particularly significant because they prioritize sparsity, aiming to deceive a model by modifying only a tiny fraction of the total pixels.
While most white-box attacks rely on first-order gradients, second-order information—represented by the Hessian matrix—offers a more precise mapping of the loss landscape. However, the Hessian is typically computationally prohibitive; for a standard high-resolution image, storing the Hessian would require hundreds of gigabytes of memory. This research introduces the Limited Pixel BFGS (LP-BFGS) attack, which overcomes this bottleneck by restricting perturbations to a small subset of influential pixels, making second-order optimization both practical and efficient.
The LP-BFGS Methodology
The LP-BFGS framework operates through a two-stage pipeline designed to maximize attack potency while minimizing the computational footprint of the Hessian.
1. Attribution-Based Pixel Selection
Instead of treating the entire image as an optimization variable, the algorithm identifies the "top-$k$" most influential pixels. This is achieved using Integrated Gradients (IG), an attribution method that assigns a score to each pixel based on its contribution to the model's final prediction. By focusing only on pixels with high attribution scores, the attack targets the features the model relies on most heavily.
2. Quasi-Newton Optimization
Once the $k$ pixels are selected, the attack treats only these specific pixels as variables. It employs the BFGS algorithm, a quasi-Newton method that approximates the Hessian matrix. Because the number of variables is reduced from hundreds of thousands to a small constant $k$ (e.g., 20 to 1000), the approximate Hessian becomes manageable in terms of both memory and computation. To ensure the resulting pixel values remain within the valid range $[0, 1]$, the authors utilize a change-of-variables technique involving the atanh function, effectively enforcing box constraints during optimization.
Experimental Evaluation
The researchers evaluated LP-BFGS on CIFAR-10 (using ResNet-20 and NIN) and ImageNet (using VGG-19 and ResNet-34). They compared three loss functions: standard Cross-Entropy (CE), Carlini & Wagner (CW) loss, and a logarithmic variant of the CW loss.
Key Performance Metrics
- High Success Rates: On the ImageNet dataset with a ResNet-34 model, LP-BFGS using Cross-Entropy loss achieved a 47.98% attack success rate (ASR) by modifying only 100 pixels. This significantly outperformed the standard FGSM baseline, which reached only 18.44% ASR under the same constraints.
- Computational Efficiency: LP-BFGS proved to be remarkably fast, especially on high-resolution images. On ImageNet, while competing sparse attacks like SparseFool required hundreds of seconds per image, LP-BFGS variants completed the optimization in the millisecond range.
- Sparsity vs. Visibility: While the $L_0$ distance remains low, the magnitude of the changes to the selected pixels can be high, sometimes resulting in visible "salt-and-pepper" noise. However, the attack remains highly effective at bypassing model defenses.
Discussion and Insights
A critical insight from this work is that the computational "curse" of the Hessian is tied to input dimensionality. By enforcing sparsity at the start of the process via pixel selection, the Hessian transforms from a theoretical burden into a powerful optimization tool. Ablation studies confirmed that the choice of pixels is vital; using Integrated Gradients to select high-attribution pixels yielded significantly higher success rates than random or low-attribution selection.
Furthermore, the choice of loss function is context-dependent. While CW-based losses were superior for the smaller CIFAR-10 images, the standard Cross-Entropy loss proved more robust for the complex, high-dimensional features of ImageNet.
Conclusion
LP-BFGS demonstrates that second-order optimization is not only possible but highly effective for sparse adversarial attacks. By combining intelligent pixel selection with the BFGS algorithm, the method achieves high success rates with minimal $L_0$ distance and manageable computational costs. Future work may explore more sophisticated selection strategies and the transferability of these second-order perturbations to black-box settings.
Summary updated