arXiv:2610.22871cs.AIOct 2026

Manuscript Offprint

arXiv:2610.22871

ShadowFPT: Backdooring Federated Prompt Tuning via Shadow Triggers

Kun Zhai, Teng Li, Yunhao Feng, Xingjun Ma

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Federated Prompt Tuning (FPT) adapts large vision–language models by freezing the pretrained backbone and optimizing only lightweight prompt parameters across clients. Although this design improves communication and parameter efficiency, it creates an overlooked security risk. Since the backbone is shared and frozen, a malicious client can induce backdoor behavior through the representation space while keeping its uploaded prompt updates close to benign ones. We propose ShadowFPT, a targeted backdoor attack that exploits this frozen-backbone attack surface. ShadowFPT first pretrains a learnable Shadow Trigger against the frozen CLIP visual encoder, using either auxiliary public data or the malicious client's local data, so that triggered inputs are steered toward the target class in representation space. During federated prompt tuning, the malicious client adapts the trigger under the current global prompt and then optimizes its local prompt on both clean and triggered samples. Only prompt parameters are uploaded to the server, while the trigger and frozen encoders remain local. By shifting most of the attack burden from prompt updates to trigger-induced representation steering, ShadowFPT achieves targeted misclassification while preserving prompt-space stealthiness. Across multiple datasets, aggregation rules, and non-IID federated partitions, ShadowFPT increases the attack success rate from 19.81% to 90.36% in our main setting, while maintaining clean accuracy. It remains effective across textual, visual, and joint vision–language prompt tuning. These results identify frozen backbones as stealthy and underexplored backdoor surfaces in federated prompt tuning, suggesting that defenses based only on prompt-update anomaly detection are insufficient.

1 Introduction

Large vision–language models (VLMs), such as CLIP Radford et al. [2021], learn transferable image–text representations and have become a standard foundation for multimodal recognition and adaptation. Adapting these models in distributed environments, however, remains difficult because full fine-tuning of large pretrained backbones is computationally expensive and communication-intensive. Prompt tuning addresses these limitations by keeping the pretrained backbone fixed and optimizing only a small set of learnable prompt parameters Khattak et al. [2023a]. This parameter-efficient formulation is particularly well suited to federated learning. In Federated Prompt Tuning (FPT), clients update lightweight prompts using private local data and communicate only prompt parameters to the server, while the VLM backbone remains frozen.

Backdoor attacks remain a persistent security threat in federated learning. Classical attacks, such as BadNets Gu et al. [2017] and Blended Chen et al. [2017], poison training data with attacker-designed triggers, causing the trained model to retain high clean accuracy while predicting an attacker-specified target label on triggered inputs. In federated learning, malicious clients can further inject backdoors

*Corresponding author: xingjunma@fudan.edu.cn

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

through their local model updates, making attack persistence under server aggregation a central challenge. Prior work has studied this problem in standard and personalized federated learning, including A3FL Zhang et al. [2023] and Bad-PFL Fan et al. [2025]. Backdoor risks have also been examined in vision–language models and prompt learning. For example, BadCLIP attacks multimodal contrastive learning by guiding both visual and textual embeddings Liang et al. [2024]. However, backdoor attacks against federated prompt tuning remain insufficiently understood. In particular, existing studies largely overlook the security risk that arises when the server aggregates only lightweight prompt parameters while all clients rely on a shared frozen VLM backbone.

Most federated backdoor defenses operate on the updates communicated by clients. Representative methods identify updates that are close to the client majority Blanchard et al. [2017], remove coordinate-wise outliers Yin et al. [2018], downweight clients with highly similar update directions Fung et al. [2018], calibrate client updates using trusted server data Cao et al. [2020], or combine clustering, clipping, noise injection, and certification to improve robustness Nguyen et al. [2022]. Recent work extends this update-centered view to federated prompt learning. For example, SABRE-FL detects malicious clients through anomaly analysis in embedding space Khan et al. [2025]. Despite their methodological differences, these defenses share a common assumption that backdoor behavior will manifest as detectable anomalies in uploaded updates or in representations derived from them.

This assumption becomes fragile in FPT. The server observes only low-dimensional prompt updates, while the dominant representation geometry is determined by the shared frozen VLM backbone. A malicious client can therefore shift much of the backdoor effect to the interaction between the trigger and the frozen representation space, while keeping its uploaded prompt updates close to benign ones. This creates a security gap between where the backdoor behavior is realized and what the server can observe. The same frozen backbone that enables efficient adaptation also provides a stable and underexplored attack surface for stealthy backdoor injection.

Motivated by this observation, we propose ShadowFPT, a targeted backdoor attack for federated prompt tuning that exploits the shared frozen CLIP visual encoder as a representation-level attack surface rather than relying on conspicuous prompt updates. ShadowFPT consists of two stages. First, it pretrains a learnable Shadow Trigger using either auxiliary public data or the malicious client's local data. The trigger is optimized to steer triggered images toward the target class in the frozen CLIP representation space by aligning final image embeddings with the target text anchor and intermediate visual features with target-class layer-wise prototypes. Second, during federated training, the malicious client adapts the Shadow Trigger under the current global prompt and then optimizes its local prompt on both clean and triggered samples to implant the targeted backdoor. Only prompt parameters are uploaded to the server, while the trigger and frozen encoders remain local. By shifting much of the attack effect from uploaded prompt updates to trigger-induced representation steering, ShadowFPT achieves targeted misclassification while keeping malicious prompt updates close to benign updates.

We evaluate ShadowFPT across multiple datasets, aggregation rules, and non-IID partitions. In the main setting, ShadowFPT improves attack success by 70.55 percentage points while largely preserving clean accuracy. It remains effective across textual, visual, and joint vision–language prompt tuning, and prompt-space analyses show that malicious updates stay close to benign ones. These results reveal frozen backbones as stealthy backdoor surfaces and challenge defenses based solely on prompt-update anomaly detection.

The main contributions of this paper are as follows:

• We identify a frozen-backbone backdoor surface in FPT, showing that targeted backdoor behavior can be realized through trigger-induced representation steering while malicious prompt updates remain close to benign updates.

• We propose ShadowFPT, a targeted backdoor attack that shifts the attack burden from conspicuous prompt-space poisoning to representation-level manipulation of the shared frozen backbone.

• We introduce the Shadow Trigger, a target-directed trigger learned through target-text alignment and layer-wise visual prototype alignment, enabling triggered images to move toward the target class in the frozen representation space.

• We evaluate ShadowFPT across textual, visual, and joint vision–language prompt tuning under non-IID federated settings, demonstrating high attack success, minimal clean-accuracy degradation, and strong prompt-space stealthiness.

References (37)