Leveraging Soft Prompts for Privacy Attacks in Federated Prompt Tuning

Quan Minh Nguyen, Min-Seon Kim, Hoang M. Ngo, Trong Nghia Hoang, Hyuk-Yoon Kwon, My T. ThaiNeurIPS 2026

TL;DR

Federated Prompt-Tuning (FPT) lets multiple clients collaboratively adapt a giant, frozen foundation model by exchanging tiny, learnable "soft prompts" instead of raw data or full model weights. While this feels like a win for efficiency and privacy, this paper reveals a glaring blind spot: a malicious server can slip "tripwire" prompts into the shared pool to snitch on whether a specific data point lives on a client’s device. Their attack, PromptMIA, hits over 90% success in a single round of communication and shrugs off standard privacy defenses.

What Problem Does This Paper Address?

Federated Learning (FL) was built on a simple promise: keep your private data local, and only share model updates with a central server. Yet, we have known for years that standard FL is vulnerable to Membership Inference Attacks (MIAs), where a nosy server analyzes weight updates or gradients to deduce if a specific record (say, a particular patient's X-ray) was in a client's training set.

Recently, full model fine-tuning has given way to Federated Prompt-Tuning (FPT). Because foundation models are massive, clients keep the core model frozen and instead collaboratively optimize a shared pool of lightweight "soft prompts"—continuous vectors prepended to inputs like helpful hints. For any given input, a client uses a query-key matching system (measuring cosine similarity) to fetch the top-$N$ most relevant prompts from the global pool, updates only those prompts locally, and sends them back.

Classical MIAs rely on full gradients or overfitting signals, which don't neatly apply when only prompts are exchanged. The authors ask: Does swapping prompts instead of weights actually protect privacy, or does the prompt selection mechanism itself open up a brand-new attack surface?

Methods

The authors introduce PromptMIA, an active membership inference attack executed by a malicious central server. Unlike older attacks that require training expensive "shadow models" or watching many rounds of updates, PromptMIA acts like a targeted tripwire in a single communication round.

Figure 1: PROMPTMIA workflow: (1) the server injects adversarial prompts designed for a target sample into the global prompt pool; (2) the modified pool is broadcast to clients; (3) each client performs query-key matching, which selects all adversarial prompts if the target sample is present; (4) selected prompts are locally updated and (5) returned to the server. By monitoring which prompts are updated, the server infers the target’s membership in client data.

Here is how the heist works:

  1. Target Query Extraction: Suppose the server wants to know if a target image $\mathcal{T}$ belongs to a client. Because the pre-trained backbone model is frozen and shared, the server knows the exact query vector $q(\mathcal{T})$ that $\mathcal{T}$ will produce.
  2. Crafting Stealthy Keys: If the server naively sets $N$ adversarial prompt keys to equal $q(\mathcal{T})$ identically, they will all be selected—but they will also clump into a single dot in embedding space, making them trivial to spot via outlier detection (and prone to false positives). Instead, PromptMIA places $N$ adversarial keys inside a carefully calculated "Goldilocks zone" of cosine similarity: just closer to $q(\mathcal{T})$ than the best benign key (by a margin $\delta_{\text{min}}$), while adding controlled geometric spread ($\Delta$) so the keys look natural and diverse.
  3. The Reveal: The server broadcasts this modified prompt pool. If the client has $\mathcal{T}$ in their batch, the selection rule mathematically guarantees that all $N$ adversarial prompts get picked, updated, and returned. The server simply checks if all $N$ tripwires were modified.
t-SNE visualization of PromptMIA injected keys blending naturally compared to naive injection

Datasets

The authors evaluate PromptMIA across three Vision Transformer backbones (ViT-B/32, DeiT-B/16, and ConViT) using four benchmarks built from seven image datasets:

  • Standard Benchmarks: CIFAR-10, CIFAR-100, and TinyImageNet.
  • Synthetic "FourDataset" Benchmark: A pooled, multi-domain benchmark created by combining MNIST-M, Fashion-MNIST, CINIC-10, and MMAFEDB to test more diverse distributions. (Note: Text and multimodal datasets are also mentioned as additional appendix experiments.)

Key Insights and Ideas

  • Training makes the model more vulnerable, not less: As normal FPT progresses, a surrogate loss pulls benign keys toward the center of query clusters. Because benign queries form tight, compact clusters around benign keys, non-target data points rarely wander into the adversary’s geometric trap. Consequently, the false positive rate drops near zero after just a few training epochs!
Benign keys acting as cluster centroids for query vectors
  • Overfitting isn't the culprit here: Most MIAs exploit the fact that neural networks memorize training data, so standard defenses focus on regularization (like Mixup, data augmentation, or gradient sparsification). Because PromptMIA exploits exact geometric routing rather than memorization, regularization defenses fail to stop it. Even when clients augment or add noise to images, an adaptive server can simply craft keys from augmented/noisy copies of the target.

Key Results

  • Dominant Attack Success: PromptMIA achieves near-100% Attack Success Rate (ASR) at small batch sizes and maintains >90% ASR even at large batch sizes (up to 256) across all models and datasets. Meanwhile, naive prompt injection collapses to ~20% advantage at batch size 256 on FourDataset.
  • Crushing SOTA Baselines: At batch size 64, when matched to PromptMIA’s false positive rate, loss-based federated MIAs (Blackbox-Loss, Loss-Series, FedMIA-I) achieve an attack Advantage of $\le$ 0.12, whereas PromptMIA hits 0.96–1.00.
  • Evading Defenses: Classical anomaly detectors (Isolation Forest, One-Class SVM, LOF, Elliptic Envelope) fail to catch the injected keys, scoring F1 values between 0.00 and 0.08. Input noise perturbation (PixelDP-style) only dents the attack when noise is cranked so high ($\epsilon=3$) that CIFAR-100 task accuracy plunges from 73.5% down to 42.5%.

Limitations and Future Work

While the authors note a dedicated limitations section in the appendix (not included in the main text), two clear boundaries emerge in the paper:

  • Server Visibility & Secure Aggregation: PromptMIA relies on observing individual client updates to link membership to a specific client. Cryptographic protocols like Secure Aggregation—or multi-party management of the prompt pool—prevent the server from seeing who updated what, downgrading the threat from client-level to group-level inference (at the cost of extra compute and communication).
  • Open Defense Challenge: The authors leave deep-learning-based anomaly detectors for future work (noting that prompt pools—often just $M=20$ prompts—may be too small for data-hungry detectors) and call for new privacy-preserving selection protocols tailored specifically to FPT.

Summary updated

Abstract

Membership inference attacks (MIAs) pose a serious privacy threat in federated learning (FL). While MIAs have been extensively studied in standard FL, the recent shift toward federated fine-tuning introduces new and largely unexplored attack surfaces. In this work, we show that federated prompt-tuning, which adapts pre-trained foundation models using lightweight input prefixes, exposes a novel and effective vector for membership inference. We propose PromptMIA, a membership inference attack tailored to federated prompt-tuning, in which a malicious server introduces adversarially crafted prompts and exploits their updates during collaborative training to determine whether a target data point belongs to a client’s private dataset. We formalize this threat via a security game and demonstrate that PromptMIA achieves consistently high attack advantage across diverse benchmark datasets, substantially outperforming current SOTA federated MIAs. We also provide a theoretical lower bound on the attack advantage that explains the observed empirical behavior. Finally, we show that existing MIA defenses are often ineffective against PromptMIA, highlighting the need for defense mechanisms specifically tailored to prompt-tuning in federated settings.
BibTeX
@inproceedings{nguyen2026leveraging,
  author = {Quan Minh Nguyen and Min-Seon Kim and Hoang M. Ngo and Trong Nghia Hoang and Hyuk-Yoon Kwon and My T. Thai},
  title = {{Leveraging Soft Prompts for Privacy Attacks in Federated Prompt Tuning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=GHEVNpALF0},
}
Figure