Pixel2Feature Attack (P2FA): Rethinking the Perturbed Space to Enhance Adversarial Transferability

Renpu Liu, Hao Wu, Jiawei Zhang, Xin Cheng, Xiangyang Luo, Bin Ma, Jinwei Wang

Introduction

Adversarial examples pose a significant security threat to Deep Neural Networks (DNNs), particularly when they exhibit high transferability—the ability to deceive unknown, black-box models after being generated on a known surrogate model. Feature-level attacks are a prominent strategy for achieving this transferability by targeting the internal representations (features) that different DNN architectures often share.

However, recent theoretical analysis reveals a critical inefficiency in existing feature-level attacks (such as FIA or BFA). Despite performing multiple iterative perturbations in the pixel space, their impact is mathematically equivalent to making just a single-step perturbation in the feature space. This fundamental flaw limits their ability to thoroughly disrupt the critical features that models rely on for accurate classification, thereby bottlenecking their transferability.

Methodology: The Pixel2Feature Attack

To overcome this limitation, the authors propose the Pixel2Feature Attack (P2FA). Instead of tweaking pixels to indirectly alter features, P2FA shifts the perturbation process directly into the model's internal feature space. The approach consists of three main stages:

  1. Shift to Feature Space: The attack begins by identifying a critical intermediate layer within the surrogate model to serve as the target feature space.
  2. Iterative Feature Perturbation: Guided by "feature importance"—a metric identifying which internal neurons are most crucial for correct classification—P2FA directly perturbs these feature maps over multiple iterations. A momentum-based approach is employed to stabilize these updates and prevent the algorithm from getting stuck in local optima.
  3. Feature Inversion: Once the internal features are sufficiently disrupted, P2FA utilizes a feature inversion technique to map these highly perturbed representations back into the pixel space, yielding the final adversarial image.

Experimental Setup

P2FA was rigorously evaluated using the ImageNet-NIPS dataset, which contains 1,000 images from the NIPS 2017 adversarial competition. The researchers tested the attack's transferability across 17 diverse target models, categorized into:

  • Normally trained models: e.g., Inception-v3, ResNet-50, VGG16.
  • Advanced defense models: Models hardened using adversarial training, JPEG compression, or feature distillation.
  • Vision Transformers (ViTs): e.g., PiT-S, CaiT-S, DeiT-B, and Swin-B.

Key Insights and Results

A foundational insight of this work is the mathematical proof, based on the Cauchy-Schwarz inequality, demonstrating that existing multi-step pixel attacks act as inefficient "one-shot" attacks in the feature space. By bypassing the complex, non-linear mapping from pixels to features during the perturbation phase, P2FA disrupts shared features much more effectively.

Qualitatively, P2FA does not merely confuse the target model; it effectively "blinds" it to the object of interest. While previous state-of-the-art (SOTA) attacks often leave the model's attention partially focused on object-related areas, P2FA forces the model to fixate on entirely irrelevant background regions.

Visual comparison showing how P2FA shifts model focus away from the object.

Quantitatively, P2FA establishes a new state-of-the-art across all tested categories:

  • Normally Trained Models: P2FA achieved an average success rate of 95.7%, a 2.1% improvement over the best baseline (BFA). When combined with standard input transformation techniques, this success rate rose to 97.4%.
  • Defense Models: Against models specifically designed to resist adversarial examples, P2FA surpassed all baselines by over 7.0%.
  • Vision Transformers: The attack demonstrated remarkable transferability to ViTs, exceeding baseline success rates by more than 15%.
  • Ablation Studies: The authors found that the attack reaches peak effectiveness with a step size ($\lambda$) of $10^5$ and approximately 3 iterations ($T$) in the feature space.

Limitations and Future Directions

While P2FA significantly enhances adversarial transferability, its efficacy is tied to the selection of the intermediate layer ($k$) and the robustness of the feature inversion algorithm. The authors suggest that future research could explore more advanced feature importance metrics or alternative inversion techniques to further refine the attack. Additionally, optimizing the computational cost of the inversion step remains a practical area for future improvement.

Summary updated

BibTeX
@inproceedings{liu2025pixel,
  author = {Renpu Liu and Hao Wu and Jiawei Zhang and Xin Cheng and Xiangyang Luo and Bin Ma and Jinwei Wang},
  title = {{Pixel2Feature Attack (P2FA): Rethinking the Perturbed Space to Enhance Adversarial Transferability}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=bPJo5uSkOJ},
}
Figure