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

Assessing Neural Network Robustness via Adversarial Pivotal Tuning

Peter Ebert Christensen, Vésteinn Snæbjarnarson, Andrea Dittadi, Serge J. Belongie, Sagie Benaim · DOI

TL;DR

This paper introduces Adversarial Pivotal Tuning (APT), a novel method that leverages the full expressive power of generative models (like StyleGAN-XL) to create highly detailed, class-preserving semantic image manipulations. These manipulations are designed to fool image classifiers, revealing vulnerabilities in current robustness benchmarks and leading to a new way to test and improve classifier resilience.

What Problem Does This Paper Address?

Deploying AI models in the real world requires them to be robust to various image corruptions and manipulations. While traditional adversarial attacks focus on subtle pixel-level changes, these often don't reflect real-world scenarios. More recent approaches use generative models to create "semantic" manipulations (e.g., changing style or color). However, these methods are often limited in scope and don't fully utilize the generative model's potential for creating diverse and detailed changes. This paper addresses the gap of creating more general, highly detailed, and photorealistic semantic image manipulations that can effectively challenge and assess the robustness of image classifiers, going beyond existing methods.

Methods

The core of the paper is the Adversarial Pivotal Tuning (APT) framework. It operates in two main steps:

  1. Latent Optimization (Pivot Finding): Given an input image and a pretrained generator (e.g., StyleGAN-XL), APT first finds a "pivot" latent code. This latent code, when fed into the generator, produces an image that is a close, though not perfect, reconstruction of the original input. This step uses standard GAN inversion techniques.
  2. Generator Weight Fine-tuning: In this crucial step, APT fine-tunes the weights of the generator itself. This is done with a multi-objective loss function:
  3. Reconstruction Loss: Ensures the generated image remains similar to the original input.
  4. Fooling Objective (LCE): Maximizes the cross-entropy loss for the target classifier, aiming to make it misclassify the manipulated image. This is achieved by targeting an incorrect class.
  5. Realism Objective (LPG): Uses the generator's own discriminator to ensure the manipulated image still appears realistic and within the data manifold.

By fine-tuning the generator's weights, APT can create more profound and semantic changes than methods that only manipulate latent codes. The method also incorporates regularization to keep changes localized and a perceptual distance constraint to ensure class preservation.

Datasets

  • ImageNet-1K: Used as the primary dataset for training the generative models and for evaluating classifier robustness.
  • ImageNet validation set: Used for generating adversarial samples and for user studies.
  • ImageNet training set: Used for fine-tuning classifiers to improve robustness.

No new datasets were introduced; instead, the paper focuses on generating novel adversarial manipulations on existing datasets.

Key Insights and Ideas

  • Generative Models as Robustness Testers: The paper highlights that powerful generative models, when creatively employed, can create more realistic and challenging adversarial examples than traditional pixel-based attacks.
  • Fine-tuning Generators for Attacks: The key innovation is fine-tuning the generator's weights during the adversarial attack generation process. This allows for a much richer and more semantic manipulation space than solely optimizing latent codes.
  • APT Reveals Hidden Vulnerabilities: Classifiers that are robust to standard benchmarks (like PGD) are shown to be vulnerable to APT manipulations, indicating that current robustness evaluations might be incomplete.
  • Class Preservation is Key: APT successfully generates manipulations that are visually diverse and fool classifiers, yet crucially, they preserve the original class label, making them more realistic and challenging.
  • APT as a Dual-Use Tool: The framework can be used both to attack classifiers and, by using the generated adversarial examples as training data, to improve classifier robustness.

Key Results

  • Significant Accuracy Drop: APT manipulations cause a substantial drop in classifier accuracy, sometimes comparable to performance on corrupted datasets like ImageNet-C (e.g., a drop of 19.4% for PRIME-ResNet50).
  • Transferability: APT-generated adversarial examples are transferable, meaning they can fool classifiers other than the one they were specifically trained to fool.
  • Class Preservation Success: User studies indicated that APT manipulations are perceived as class-preserving in 90% of cases, while other methods ([25]-L/P) showed significant loss of class identity.
  • Improved Robustness: Fine-tuning classifiers on APT-generated samples leads to improved accuracy against APT attacks, demonstrating the effectiveness of the proposed training regime.
  • Qualitative Diversity: Visual examples show APT can perform complex semantic edits like changing object types (e.g., race car), removing elements (e.g., ropes, text), or altering attributes (e.g., crab tail color) while maintaining class.

Limitations and Future Work

  • Computational Cost: APT is computationally more expensive than simple noise-based attacks, taking around 5 minutes per image, bottlenecked by GAN synthesis.
  • Trade-off in Distance: There's a trade-off between the distance parameter d (controlling manipulation severity) and class preservation. Higher d allows for more diverse manipulations but can sometimes lead to poorer reconstruction or class changes.
  • Future Work: The authors suggest exploring APT with other generative models (like diffusion models, as shown in Fig. 1) and applying it to different domains beyond ImageNet. They also implicitly suggest that APT provides a new standard for evaluating classifier robustness.

Summary updated

BibTeX
@inproceedings{christensen2024assessing,
  author = {Peter Ebert Christensen and Vésteinn Snæbjarnarson and Andrea Dittadi and Serge J. Belongie and Sagie Benaim},
  title = {{Assessing Neural Network Robustness via Adversarial Pivotal Tuning}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2024},
  doi = {10.1109/wacv57701.2024.00293},
}
Figure