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

TARP-VP: Towards Evaluation of Transferred Adversarial Robustness and Privacy on Label Mapping Visual Prompting Models

Zhen Chen, Yi Zhang, Fu Wang, Xingyu Zhao, Xiaowei Huang, Wenjie RuanNeurIPS 2024

Introduction

In the realm of AI security, deep learning models face a persistent "negative trade-off" between security and privacy. To make a model robust against adversarial attacks—maliciously crafted inputs designed to fool the AI—engineers typically employ Adversarial Training (AT). However, while AT successfully hardens the model against these attacks, it often causes the model to overfit to its training data. This overfitting makes the model highly vulnerable to Membership Inference Attacks (MIAs), which allow attackers to determine if a specific individual's data was used to train the model.

The Robustness-Privacy Trade-off

Comparison of Test Accuracy and MIA Success Rate between Standard and Adversarial Training.

As illustrated above, standard adversarial training—the gold standard for securing normal models—can severely degrade privacy. While adversarial test accuracy improves, the MIA success rate climbs significantly, highlighting the inherent tension between defending against adversarial examples and protecting training data privacy.

This paper investigates whether this same trade-off exists for a newer, highly efficient technique called Visual Prompting (VP). VP is a form of "model reprogramming" where a large, pre-trained backbone (like one trained on ImageNet) is kept entirely frozen. Only a small set of pixels (a "prompt") and a label mapping layer are trained to adapt the model to a new task. Because the core of the model is frozen, researchers hypothesized that the standard robustness-privacy trade-off might not apply.

Methodology: Label-Mapping Visual Prompting and Transfer AT

The authors focus on Label-Mapping Visual Prompting (LM-VP), which consists of three components:

  1. A Frozen Backbone: A heavy-duty pre-trained model (e.g., ViT, Swin Transformer, or ConvNext).
  2. The Prompt: A learnable border of noise added to the input images.
  3. Label Mapping: A trainable layer that maps the backbone's original classes to the new target classes.

The researchers discovered that applying standard AT directly to LM-VP models fails miserably, often tanking the model's accuracy due to the massive domain shift between the source data (ImageNet) and the target tasks.

To resolve this, they propose Transfer Adversarial Training (Transfer AT). Instead of generating adversarial examples from the LM-VP model itself during training, they use a separate "threat model" (such as a ResNet18) to generate the attacks. The LM-VP model is then trained to maintain its accuracy when faced with these transferred attacks.

Experimental Setup

The study utilized several standard benchmarks to test the limits of LM-VP:

  • Source Models: Pre-trained on ImageNet (224x224 resolution).
  • Target Datasets: CIFAR-10 and Tiny-ImageNet were used to evaluate reprogramming performance.
  • Backbones: A wide variety of architectures were tested, including ResNet50, ResNet152, WideResNet, ViT, Swin Transformer, ConvNext, and EVA.

Key Findings and Results

  • The Frozen Backbone is the Anchor: The white-box robustness of an LM-VP model is almost entirely dictated by its frozen backbone. If the backbone is inherently fragile, prompting alone cannot make it robust to direct, white-box attacks.
  • A Rare "Free Lunch" for Privacy: Unlike general models, LM-VP models trained with Transfer AT actually see an improvement in privacy. While standard models see MIA success rates climb during adversarial training, LM-VP models saw these rates drop to approximately 50% (the equivalent of a random coin flip), effectively neutralizing the privacy risk.
  • Robustness Gains: Transfer AT improved "transferred adversarial robustness" by 20-35% for smaller backbones and 3-6% for larger, already-strong backbones.
  • Data Efficiency and Speed: LM-VP models are incredibly efficient. They achieve high accuracy and robustness even when trained on tiny subsets of data (e.g., just 1,000 samples), converging rapidly in just about 10 epochs.

Conclusion and Future Work

The introduction of Transfer AT for LM-VP models achieves a rare "win-win" in AI security, breaking the traditional negative trade-off by simultaneously improving transferred adversarial robustness and resisting privacy leaks.

However, limitations remain. Because the backbone is frozen, white-box robustness—where the attacker has full access to the specific LM-VP model—cannot be easily fixed through prompting alone. Future research directions include developing theoretical frameworks to explain exactly why this privacy-robustness trade-off is inverted in VP models, exploring ways to improve white-box robustness without unfreezing the backbone, and testing these findings on larger-scale generative or text-to-image systems.

Summary updated

BibTeX
@inproceedings{chen2024tarp,
  author = {Zhen Chen and Yi Zhang and Fu Wang and Xingyu Zhao and Xiaowei Huang and Wenjie Ruan},
  title = {{TARP-VP: Towards Evaluation of Transferred Adversarial Robustness and Privacy on Label Mapping Visual Prompting Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=2mu3cGuuaR},
}
Figure