# ShadowFPT: Backdooring Federated Prompt Tuning via Shadow Triggers

*Kun Zhai, Teng Li, Yunhao Feng, Xingjun Ma*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153368) · [Open on the map](../papers.html#p153368)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Backdoor Attacks and Defenses](../pgroup/167.md) · Type: new method · Keywords: federated learning security, backdoor attacks, prompt tuning, representation steering, frozen backbone vulnerability

Areas: [Safety & Security](../areas/safety.md) › Adversarial Security › Federated Learning Security; [Privacy & Federated Learning](../areas/privacy-federated.md) › Federated Privacy Methods › Backdoor and Poisoning Attacks

## Summary
ShadowFPT is a targeted backdoor attack for federated prompt tuning that uses a learnable shadow trigger to steer representations and achieve high attack success while keeping prompt updates stealthy.

## Explained to a 5-year-old
In a group of computers that share a big picture model, only a small part is changed. A bad person can hide a secret picture that tricks the model into thinking something else, while the changes they send look normal. This secret picture works inside the model’s hidden part, so nobody notices. It helps the bad person make the model say wrong things without being caught. This shows that just checking the small changes is not enough to keep the model safe.

## Explained to a 5-year-old, longer
Imagine many computers work together to use a huge picture-thinking machine, but they only change a tiny piece of it called a prompt. One of the computers is not nice and wants the machine to make a mistake. To do this, the bad computer creates a hidden picture that looks like nothing special, but when the machine sees it, it gets nudged to think of a different thing. This hidden picture is trained against the machine’s frozen part, so it can steer the machine’s thoughts without changing the prompt that is sent to the others. While the normal prompts are being updated, the bad computer also tweaks this hidden picture and uses both clean and tricked examples to learn how to make the machine say the wrong answer. Because only the prompts are sent over the network, the bad computer’s actions look normal, and the machine’s hidden part does the heavy lifting of the attack. This trick works for pictures, words, and even when the machine handles both pictures and words together. The results show that this kind of attack can be very successful, raising the chance of a wrong answer from about 20% to over 90%, while the machine still works correctly for normal tasks. This discovery tells us that just watching the prompts is not enough to keep these shared models safe; we also need to protect the frozen parts of the model.

## For a technical reader
The work shows that federated prompt tuning, which freezes the backbone and updates only prompts, can be subverted by a malicious client that introduces a learnable trigger. The trigger is pre-trained against the frozen visual encoder to steer representations toward a target class, then adapted during training while only the prompt parameters are uploaded. This shifts the attack burden from the uploaded prompts to the local representation space, achieving high attack success without raising anomalies in the prompt updates. Evaluations across multiple datasets and federated settings confirm the attack’s effectiveness for textual, visual, and joint vision-language tuning, highlighting the need for defenses that also monitor frozen backbones.

## Problem
Federated prompt tuning freezes the model backbone and only updates lightweight prompts, which can be exploited by malicious clients to embed backdoors through the frozen representation space while keeping prompt updates benign. This creates a stealthy attack surface that is not addressed by existing defenses.

## Method
The approach pretrains a learnable trigger against the frozen visual encoder to steer representations toward a target class, then adapts the trigger during federated prompt tuning while optimizing local prompts on both clean and triggered samples, uploading only the prompt parameters to keep the attack stealthy.

## Results
The approach increases attack success rate from 19.81% to 90.36% across multiple datasets and federated partitions while maintaining clean accuracy, and it works for textual, visual, and joint vision-language prompt tuning.

## Contributions
The paper identifies a stealthy backdoor attack surface in federated prompt tuning caused by frozen backbones and proposes a method that shifts attack burden to representation steering, achieving high attack success while evading prompt-update detection. It also highlights the insufficiency of existing defenses that focus solely on prompt updates.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/153368)
