NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Adversarial Attack Based on Prediction-Correction

Chen Wan, Fangjun HuangarXiv 2023

Abstract

Deep neural networks (DNNs) are vulnerable to adversarial examples obtained by adding small perturbations to original examples. The added perturbations in existing attacks are mainly determined by the gradient of the loss function with respect to the inputs. In this paper, the close relationship between gradient-based attacks and the numerical methods for solving ordinary differential equation (ODE) is studied for the first time. Inspired by the numerical solution of ODE, a new prediction-correction (PC) based adversarial attack is proposed. In our proposed PC-based attack, some existing attack can be selected to produce a predicted example first, and then the predicted example and the current example are combined together to determine the added perturbations. The proposed method possesses good extensibility and can be applied to all available gradient-based attacks easily. Extensive experiments demonstrate that compared with the state-of-the-art gradient-based adversarial attacks, our proposed PC-based attacks have higher attack success rates, and exhibit better transferability.

Introduction

Deep Neural Networks (DNNs) are notoriously fragile; adding a tiny, invisible amount of "noise" (perturbations) to an image can cause a model to confidently misclassify it. While many "adversarial attacks" exist, they often struggle with transferability—an attack designed to fool Model A might fail completely against Model B.

The authors identify a fundamental limitation in current gradient-based attacks like the Fast Gradient Sign Method (FGSM). These methods essentially take a single "step" in the direction that increases the model's error. In mathematical terms, this is equivalent to the Euler method for solving ODEs, which is known in numerical analysis for having a high approximation error. The most profound insight of this work is reframing adversarial generation as a problem of solving ODEs, allowing classical numerical analysis techniques to be applied to AI security.

Prediction-Correction Framework

The core innovation is the Prediction-Correction (PC) framework. Instead of just taking one step based on the current gradient, the PC method works in two stages:

  1. Prediction: It uses a standard attack (like FGSM) to generate a "predicted" adversarial example. This is essentially a "look-ahead" to see where the perturbation might lead.
  2. Correction: It calculates the gradient at this new "predicted" location. It then combines this "future" gradient with the original gradient to find a more accurate, "corrected" direction for the final perturbation.
The relationship between standard gradient-based attacks and their PC-based counterparts.

This approach is highly extensible. The authors demonstrate PC-versions of several industry standards, including PC-FGSM and PC-I-FGSM. By reducing the "approximation error" in the perturbation, the resulting adversarial examples capture more general vulnerabilities, making them much more likely to fool models they weren't specifically designed for.

Experimental Evaluation

The researchers evaluated their methods using a subset of 10,000 images from the ImageNet validation set against 14 different models, including normally trained architectures (Inception-v3, v4, ResNet-v2-152) and ten advanced defense models.

The PC-based attacks consistently outperformed their baseline counterparts:

  • Success Rate: PC-FGSM achieved success rates 22% to 35% higher than standard FGSM in white-box settings.
  • Transferability: In black-box tests, PC-FGSM was 13% to 27% more effective than the baseline.
  • Defense Robustness: Against advanced defense models (e.g., Feature Denoising), PC-based attacks improved success rates by up to 15% over state-of-the-art iterative baselines.
Attack success rates vs. the number of predictions (K) for various models.

As shown in the figure above, the number of predictions ($K$) influences the attack success rate. While the method introduces some computational overhead due to extra gradient calculations, it generally achieves higher success rates than standard iterative methods even when keeping the total number of calculations comparable.

Conclusion

By bridging the gap between numerical ODE solvers and adversarial machine learning, the PC framework provides a robust and extensible method for generating highly transferable adversarial examples. Future work may explore higher-order numerical methods, such as Runge-Kutta, to further refine perturbation accuracy.

Summary updated

BibTeX
@misc{wan2023adversarial,
  author = {Chen Wan and Fangjun Huang},
  title = {{Adversarial Attack Based on Prediction-Correction}},
  year = {2023},
  eprint = {2306.01809},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.01809},
}
Figure