Cross-attention scaling reveals consistent differences enabling better backdoor detection
SET can detect backdoor inputs in text-to-image diffusion models more accurately than existing input-level defenses
AI/ML arXiv 14 Apr 2026 Defense Prototype evidence
Published as “Scaling Exposes the Trigger: Input-Level Backdoor Detection in Text-to-Image Diffusion Models via Cross-Attention Scaling”
Why it matters
Enables practical, deployment-time detection of stealthy backdoors in popular text-to-image diffusion models without requiring model retraining or attack knowledge.
Summary
SET achieves up to 95.1% AUROC (average 9.1% higher than the best baseline) and 84.8% ACC, showing that controlled cross-attention scaling exposes stable, trigger-agnostic differences between benign and backdoored inputs. The claim is backed by experiments on five representative backdoor attacks using Stable Diffusion v1.4 and 1,000 MS-COCO prompts, but the evaluation is limited to a single model and dataset.
What they found 2
- SET improves detection metrics over the best prior baseline.
“Overall, SET improves AUROC by 9.1% and ACC by 6.5% over the best baseline”
- SET attains the highest average AUROC across five attacks.
“SET achieves the best average detection performance across five representative T2I backdoor attacks.”
Caveats 5
- Using all cross-attention layers drops AUROC to 64.7% (vs 95.1% with the default up/down layers).
- Restricting scaling factors to only below-1 (F1) or only above-1 (F2) reduces AUROC to 57.9% and 34.3% respectively.
- Increasing benign training samples to 1,200 or 1,500 decreases AUROC to 77.6% and 42.6% (vs 95.1% with 1,000 samples).
- The trend is not monotonic. With too few benign samples, the normal response space is not characterized well enough. Adding more clean samples does not always help, and can instead enlarge the benign region by introducing intra-class variability.
- Probing overly early steps is still suboptimal, however, because the extracted features are less stable and therefore less transferable across different backdoor attacks.
What’s new here 4
- Identifies the Cross-Attention Scaling Response Divergence (CSRD) phenomenon.
- Applies controlled scaling to cross-attention scores as an active probing mechanism.
- Learns a compact benign response space from a small clean set via a soft-boundary one-class objective.
- Detects backdoors without any knowledge of the attack or access to model training data.