Pre-trained Adversarial Perturbations

Yuanhao Ban, Yinpeng Dong

TL;DR

Researchers have developed a way to create "universal" adversarial attacks for pre-trained models that remain effective even after those models are fine-tuned for completely different tasks. By targeting the stable, low-level layers of a neural network and using a novel noise-augmentation strategy, their Low-Level Layer Lifting Attack (L4A) can successfully "blind" downstream models without any knowledge of the final task or dataset.

The Vulnerability of "Pre-train Then Fine-tune"

The current AI landscape relies heavily on the "pre-train then fine-tune" paradigm. Large-scale foundation models (like ResNet or Vision Transformers) are trained on massive datasets and released publicly. Developers then download these models and fine-tune them on specific, smaller datasets for tasks ranging from medical imaging to autonomous driving.

While we know these models are vulnerable to adversarial examples—tiny, invisible changes to an image that cause a misclassification—most attacks are designed for a specific, finished model. This paper asks a more chilling question: Can an attacker create a single, universal perturbation based only on the public pre-trained weights that will successfully attack any future model derived from it?

The challenge here is "cross-finetuning transferability." During fine-tuning, a model's parameters change as it learns new classes. An attack designed for the pre-trained version often "washes out" once the model is specialized for a new task.

Overview of the Low-Level Layer Lifting Attack (L4A) pipeline.

Methods: How L4A Works

The authors propose the Low-Level Layer Lifting Attack (L4A) to overcome this washout effect. It relies on two key technical innovations:

1. Low-Level Layer Lifting

The authors observed that during fine-tuning, the deeper layers of a network change significantly to learn task-specific features. However, the early, low-level layers—which act as basic edge and texture detectors—remain remarkably stable.

Relative changing rate of layers during fine-tuning across different architectures. Early layers remain highly stable.

L4A works by "lifting" (maximizing) the activations of these early layers. By flooding these stable layers with high-energy noise, the attack effectively "drowns out" the useful features before they even reach the specialized deeper layers. Because traditional attacks try to push an image across a specific decision boundary (e.g., make a "cat" look like a "dog"), they fail when labels change. L4A doesn't know what the future labels will be; it instead aims to destroy the model's ability to see any features, effectively blinding it regardless of the task.

2. Uniform Gaussian Sampling (UGS)

Different downstream datasets have different statistical properties (mean and variance). To make the attack robust against these shifts, the authors introduced UGS. Instead of training the attack on a fixed dataset, they sample Gaussian noise with a wide range of means and deviations. This prevents the adversarial perturbation from "overfitting" to the pre-training data and helps it generalize to the unknown statistics of future downstream tasks.

Key Results and Insights

The researchers used ImageNet as the source for generating the pre-trained adversarial perturbations (PAPs) and tested their transferability across ten diverse downstream tasks, including fine-grained classification (e.g., Stanford Cars), general classification (e.g., CIFAR-10), and specialized texture datasets.

The L4A method significantly outperformed existing universal adversarial attacks across the board:

  • ResNet101: On average across 10 tasks, L4A achieved an Attack Success Rate (ASR) of 72.20%, compared to just 43.86% for standard Universal Adversarial Perturbations.
  • Vision Transformers (ViT-16): The results were even more dramatic. L4A achieved a staggering 95.30% average ASR. This suggests that the "foundation" of ViTs is particularly susceptible to this kind of feature-level disruption.
  • Robustness to Training: The attack remains effective even as the model is fine-tuned over many epochs. In tests on the STL-10 dataset, while the model's clean accuracy improved with training, the attack's effectiveness remained high, highlighting a persistent security flaw in the transfer learning process.

Limitations and Future Work

Interestingly, L4A actually performs worse than some baselines on the original pre-training dataset (ImageNet). Its strength lies specifically in its ability to transfer to new tasks, not its raw power on the source task.

Currently, the attack assumes the attacker knows the architecture of the pre-trained model (a white-box assumption for the foundation model, though black-box for the downstream task). Exploring how these perturbations transfer across different architectures (e.g., a PAP generated on ResNet attacking a ViT) is a logical next step.

Ultimately, this paper exposes a critical vulnerability in the modern AI pipeline. It leaves the development of robust "adversarial fine-tuning" methods that can specifically resist PAPs as an open and urgent challenge for the community.

Summary updated

BibTeX
@inproceedings{ban2022pre,
  author = {Yuanhao Ban and Yinpeng Dong},
  title = {{Pre-trained Adversarial Perturbations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=O86MTEobXL},
}
Figure