An Intermediate-Level Attack Framework on the Basis of Linear Regression

Yiwen Guo, Qizhang Li, Wangmeng Zuo, Hao Chen

TL;DR

Researchers have developed a new framework, ILA++, that significantly boosts the "transferability" of adversarial attacks—making an attack crafted for one AI model much more likely to fool others. By using linear regression to map internal feature changes to final prediction errors, they've set new state-of-the-art benchmarks for black-box adversarial success.

What Problem Does This Paper Address?

Adversarial examples—images subtly tweaked to make a neural network misclassify them—are a major security concern. However, these attacks often suffer from a "transferability" gap: an image that fools a ResNet-50 model might be perfectly fine when processed by a VGG-19 or Inception model. This happens because the attack "overfits" to the specific quirks of the source model.

To create truly dangerous (and thus scientifically interesting) attacks, researchers want to find "universal" adversarial features. The challenge is identifying which internal layers of a deep neural network (DNN) contain features shared across different architectures, and how to perturb them in a way that consistently breaks the final classification, regardless of the specific model being used.

Methods

The authors propose an Intermediate-level Attack (ILA) framework based on Linear Regression. Instead of just looking at the final output of a network, they look at the "middle" layers.

  1. Linearization: They replace the complex, non-linear "head" of the neural network (the layers after the feature extractor) with a simple linear mapping.
  2. Regression Models: They use standard regression techniques—Ridge Regression (RR), ElasticNet, and Support Vector Regression (SVR)—to establish a relationship between changes in intermediate features and the resulting classification loss.
  3. The ILA++ Objective: They maximize the projection of feature discrepancies onto a "directional guide" derived from the regression. Essentially, they find the direction in the high-dimensional feature space that most efficiently increases the error.
  4. Data Diversity: To make the linear model robust, they don't just use one baseline attack. They run multiple iterations of a baseline attack (like PGD) with random initializations to collect a diverse set of "feature-to-loss" data points to train their linear mapping.

Datasets

The study primarily uses the ImageNet (ILSVRC 2012) dataset, a standard benchmark for image classification.

  • Evaluation Set: 5,000 images sampled from 500 classes.
  • Source Model: ResNet-50.
  • Victim Models (Black-box): A wide array of architectures including VGG-19, ResNet-152, Inception v3, DenseNet, MobileNet v2, SENet, ResNeXt, Wide ResNet (WRN), PNASNet, and MNASNet.

Key Insights and Ideas

  • Linearity is a Feature, Not a Bug: The authors found that substituting the original non-linear classifier with a linear one actually improves transferability. Linear models are less likely to capture the "overfit" noise of the source model, focusing instead on broader directional trends that exist across many models.
  • Magnitude vs. Direction: Both matter. You can't just change the features by a huge amount; you have to change them in the right direction. When the authors "normalized" the attacks (removing the magnitude incentive), success rates plummeted, proving that the scale of the feature disruption is a critical component of a successful transfer attack.
  • The Power of Randomness: By running the baseline attack multiple times with random starts, the researchers provided the regression model with a much richer "map" of the feature space. This led to a significantly more accurate directional guide for the final attack.

Key Results

The ILA++ framework achieved massive improvements over standard baseline attacks like I-FGSM:

  • Success Rate Jump: In an $\ell_\infty$ attack setting (with a perturbation limit of 16/255), the baseline I-FGSM had an average transfer success rate of 48.35%. The ILA++ (using Ridge Regression) boosted this to 88.57%.
  • New State-of-the-Art: When combined with more advanced baseline methods like LinBP, the success rate climbed as high as 93.94% across a diverse set of victim models.
  • Robustness across Constraints: The method proved effective for both $\ell_\infty$ (maximum change per pixel) and $\ell_2$ (total Euclidean distance) attack constraints.

Limitations and Future Work

  • Hyperparameter Tuning: While the framework is powerful, it introduces new hyperparameters (like $\lambda$ in Ridge Regression or $C$ in SVR). The authors noted that while there is a "sweet spot" for these values, performance can be sensitive if they are set too low.
  • Computational Overhead: Performing multiple runs of a baseline attack to gather data for the regression model increases the time and computational cost required to generate each adversarial image.
  • Layer Selection: The choice of which intermediate layer to target is currently a hyperparameter. While they found success with specific blocks in ResNet-50, a more automated way to find the "most transferable layer" remains an open question.

Summary updated

BibTeX
@article{guo2023intermediate,
  author = {Yiwen Guo and Qizhang Li and Wangmeng Zuo and Hao Chen},
  title = {{An Intermediate-Level Attack Framework on the Basis of Linear Regression}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  doi = {10.1109/tpami.2022.3188044},
}
Figure