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

Exploring the Benefits of Visual Prompting in Differential Privacy

Yizhe Li, Yu-Lin Tsai, Chia-Mu Yu, Pin-Yu Chen, Xuebin Ren

Abstract

Training deep neural networks under Differential Privacy (DP) often involves a significant trade-off between privacy guarantees and model utility. This paper introduces Prom-PATE, a framework that integrates Visual Prompting (VP) with the Private Aggregation of Teacher Ensembles (PATE). By training only a small visual prompt on a frozen, pre-trained backbone, Prom-PATE achieves state-of-the-art accuracy across diverse image classification tasks while maintaining strict privacy budgets. Notably, the method achieves over 97% accuracy on CIFAR-10 with $\epsilon \approx 1$, demonstrating that visual prompting can effectively bypass the traditional "dilemma of scale" in private machine learning.

Introduction

Differential Privacy (DP) has become the gold standard for protecting individual data points in machine learning. However, standard techniques like DP-SGD (Differentially Private Stochastic Gradient Descent) struggle with large-scale models. As models grow, the noise required to protect thousands or millions of gradients often destroys the model's utility. This creates a "dilemma of scale": larger models are more capable but harder to train privately.

Existing DP frameworks face three primary hurdles:

  1. Data Insufficiency: PATE-based methods require partitioning private data among many "teacher" models. Small partitions often lead to weak individual teachers.
  2. Inefficient Public Data Use: Many methods fail to fully leverage the rich representations of models pre-trained on large public datasets.
  3. Domain Gaps: DP models often fail when the private target data (e.g., medical imaging) differs significantly from the public source data (e.g., ImageNet).

The Prom-PATE Framework

Prom-PATE addresses these challenges by combining the sample efficiency of Visual Prompting (VP) with the privacy-preserving aggregation of PATE. Instead of fine-tuning the entire model, Prom-PATE "reprograms" a frozen source model to perform a new task.

Methodology

The Prom-PATE workflow consists of five key stages:

  1. Frozen Backbone: The system utilizes a powerful, non-private pre-trained model (the source model) and keeps its weights entirely frozen to preserve the integrity of the learned features.
  2. Visual Prompting: Rather than updating model weights, the system trains a "re-teacher" model. This involves a trainable input perturbation (a frame of pixels added to the input image) and a label mapping that links source classes to target classes.
  3. Teacher Ensemble: The private dataset is partitioned into subsets. A separate visual prompt is trained for each subset, creating an ensemble of teachers. Because VP requires very few parameters, teachers remain accurate even with minimal data.
  4. Private Aggregation: A student model is trained on unlabeled public data. To obtain labels, the student queries the teacher ensemble. The ensemble's votes are aggregated using the Confident-GNMax mechanism, which adds noise to ensure DP compliance.
  5. Double-Dipping Public Knowledge: Prom-PATE leverages public pre-trained models twice: first as the backbone for the teachers and second to initialize the student model, maximizing the utility of non-private information.

Experimental Results

The authors evaluated Prom-PATE across natural, medical, and high-resolution facial datasets to test its robustness and versatility.

State-of-the-Art Performance

Prom-PATE established new benchmarks for differentially private image classification:

  • CIFAR-10: Achieved 97.07% accuracy at a strict privacy budget of $\epsilon = 1.019$, outperforming previous SOTA methods that typically reached 94-96% at higher privacy costs.
  • CIFAR-100: Reached 91.47% accuracy at $\epsilon \approx 8$, a significant improvement over existing DP classifiers.
  • High-Resolution Faces: The framework performed exceptionally well on CelebA and FFHQ-Gender datasets, proving its efficacy on complex, high-dimensional data.

Cross-Domain Utility

One of the most striking findings was Prom-PATE's ability to bridge domain gaps. On the Blood-MNIST medical dataset, Prom-PATE achieved 69.93% accuracy, outperforming standard transfer learning (Transfer-PATE) by approximately 8%. This suggests that visual prompting can effectively repurpose features learned from natural images (like ImageNet) for highly specialized domains.

Discussion and Insights

VP as a Privacy Shortcut

The success of Prom-PATE stems from the fact that visual prompting only requires training a tiny fraction of the parameters compared to full fine-tuning. This sample efficiency is the perfect match for PATE, which traditionally struggles when private data is split too thinly. By keeping the massive backbone frozen, the "heavy lifting" of feature extraction is done without consuming the privacy budget.

Universality of Pre-trained Features

The results indicate that pre-trained features are more universal than previously assumed in the context of DP. Even when the source and target domains are vastly different, the input-level perturbation (the prompt) can successfully align the target data with the source model's latent space.

Conclusion and Future Work

Prom-PATE demonstrates that Visual Prompting is a powerful tool for private machine learning, offering a path to high-accuracy models without the computational and privacy costs of full-parameter fine-tuning. Future research may explore "deep prompting"—injecting tokens into various layers of transformers—or more sophisticated label-mapping strategies to further enhance performance on complex, multi-class datasets. As it stands, Prom-PATE provides a robust, simple, and highly effective framework for state-of-the-art private image classification.

Summary updated

BibTeX
@inproceedings{li2023exploring,
  author = {Yizhe Li and Yu-Lin Tsai and Chia-Mu Yu and Pin-Yu Chen and Xuebin Ren},
  title = {{Exploring the Benefits of Visual Prompting in Differential Privacy}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure