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

Exposing Functional Fusion: A New Class of Strategic Backdoor in Dynamic Prompt Architectures

Zeyao Liu, Zhendong Zhao, Xiaojun Chen, Xin Zhao, Yuexin Xuan, Xiaoshuang Ji

TL;DR

This paper introduces VIPER, a stealthy backdoor attack targeting dynamic prompt architectures in Vision Transformers (ViTs). By exploiting a newly discovered phenomenon called Functional Fusion, VIPER embeds malicious logic and benign utility into the exact same sparse parameter core. This creates a "hostage dilemma" for defenders: any attempt to prune away the backdoor inevitably destroys the model's performance on clean data.

What Problem Does This Paper Address?

Backdoor attacks manipulate machine learning models to output a specific target label whenever a hidden trigger is present in the input, while behaving normally on clean data. Traditional backdoor attacks on Vision Transformers (ViTs) overwrite the model's backbone weights via full fine-tuning. However, this approach is computationally expensive and severely degrades the model's accuracy on clean samples.

To avoid this, attackers have shifted toward Parameter-Efficient Fine-Tuning (PEFT) solutions like LoRA (adapters) or Visual Prompt Tuning (VPT). Yet, static PEFT methods suffer from Functional Conflict—the fixed parameters struggle to balance the competing objectives of benign accuracy and malicious trigger activation, making them highly vulnerable to standard defenses like parameter pruning.

This paper explores the security risks of the next logical evolution in vision models: dynamic, context-aware prompt architectures. While these dynamic modules unlock superior performance for benign tasks, the authors reveal that they also introduce a far more dangerous and resilient class of strategic backdoors.

Methods

The authors propose VIPER (Visual Prompt Generator-based attack framework), which utilizes a lightweight, dynamic Visual Prompt Generator (VPG) module implemented as a two-layer fully-connected network.

Instead of using static, input-agnostic tokens, VIPER acts as a conditional router:

  1. Feature Monitoring: The VPG monitors intermediate hidden states from specific layers of a frozen ViT backbone.
  2. Dynamic Prompting: On clean images, it generates benign prompts that preserve or enhance classification accuracy. When it detects a co-optimized, imperceptible trigger ($\delta$), it injects malicious prompts into the feature stream to hijack the model and force a target label.
  3. Joint Optimization: The VPG parameters ($\phi$) and the trigger ($\delta$) are trained jointly using an alternating optimization strategy that balances utility preservation ($L_{clean}$) and attack effectiveness ($L_{attack}$).
VIPER Mechanism at Inference

Datasets

The VIPER framework was comprehensively evaluated across six diverse image datasets spanning multiple domains:

  • Generic Object Classification: ImageNet100, Caltech101
  • Specialized Visual Recognition: OxfordPets, Food101, DTD (Describable Textures Dataset)
  • Fine-Grained Action Recognition: UCF101

Key Insights and Ideas

  • Functional Fusion & The Hostage Dilemma: Under capacity constraints and joint optimization, the VPG naturally learns to reuse parameters rather than creating separate subnetworks. This consolidates the benign utility boost and the malicious trigger logic into a single, tiny computational core (comprising just 0.27% of total parameters). Because the two functions are computationally inseparable, pruning the backdoor "hostage" automatically destroys benign performance.
  • Intrinsic Sparsity: The optimization process naturally drives the VPG to be highly sparse, with 94.49% of its weights remaining near-zero, concentrating its functional power into a high-magnitude parameter core.
Figure 2. Weight distribution of the trained VPG, showing intrin- sic sparsity (94.49% near-zero weights).
  • Subverting Anomaly Detection: Rather than forming an isolated, easily identifiable cluster of poisoned representations in the feature space, VIPER's dynamic prompts seamlessly merge poisoned features into the legitimate feature manifold of the target class, evading feature-space anomaly detectors.

Key Results

  • Superior Clean Accuracy & Near-100% ASR: VIPER achieves state-of-the-art clean-data accuracy across all six benchmarks (e.g., 82.37% on UCF101, a +22.63% improvement over backbone-overwriting methods like TrojViT) while maintaining a near-perfect Attack Success Rate (ASR).
  • Extreme Pruning Resilience: Due to Functional Fusion, VIPER maintains near-100% ASR even under aggressive 90% parameter pruning. In contrast, static LoRA-based attacks completely collapse after 60% pruning.
  • Minimal Overhead: VIPER introduces only 2.3M trainable parameters (a 92.6% reduction compared to heavyweight alternatives like Block Expansion) and adds a negligible 0.06ms (1.16%) of inference latency overhead.
Computational Comparison of PEFT Attack Modules
  • Defense Evasion: VIPER successfully bypasses trigger-reversal defenses like Neural Cleanse, which fails to identify the true target class and instead erroneously flags benign classes.

Limitations and Future Work

The paper operates under a training-time supply-chain threat model, assuming that developers download and integrate an unverified, third-party VPG module disguised as a legitimate "accuracy booster" plugin. If a developer strictly trains their own PEFT modules from scratch on trusted data, this specific attack vector is mitigated.

To counter the threat of Functional Fusion, the authors advocate for a shift away from static parameter defenses toward dynamic defense paradigms, suggesting that future research focus on inference-time feature denoising or dynamic routing inspection to detect anomalous prompt generation on the fly.

Summary updated

BibTeX
@inproceedings{liu2026exposing,
  author = {Zeyao Liu and Zhendong Zhao and Xiaojun Chen and Xin Zhao and Yuexin Xuan and Xiaoshuang Ji},
  title = {{Exposing Functional Fusion: A New Class of Strategic Backdoor in Dynamic Prompt Architectures}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=ALLrxu9wMI},
}
Figure