Metraipolis › archive › dc_93ba01c1f96a

TokenScanner: Detecting Backdoors and Discovering Triggers in Text-to-Image LoRAs via Full Vocabulary Scanning — arXiv:2609.31878

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.31878
License (as archived)
CC0-1.0
Archived
2026-10-07T22:34:30.610Z
SHA-256 of the archived text
6623f8fd7b924650fb3806f6e0834c4f81fd3dcee63df129bf60823ccb47bd65
Stable URL of this page
https://metraipolis.com/documento/dc_93ba01c1f96a

How to cite

TokenScanner: Detecting Backdoors and Discovering Triggers in Text-to-Image LoRAs via Full Vocabulary Scanning — arXiv:2609.31878 — arXiv (en), https://arxiv.org/abs/2609.31878 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_93ba01c1f96a (Metraipolis archive dc_93ba01c1f96a, sha256 6623f8fd7b924650fb3806f6e0834c4f81fd3dcee63df129bf60823ccb47bd65)
BibTeX
@misc{dc93ba01c1f96a,
  title = {TokenScanner: Detecting Backdoors and Discovering Triggers in Text-to-Image LoRAs via Full Vocabulary Scanning — arXiv:2609.31878},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.31878},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_93ba01c1f96a; sha256 6623f8fd7b924650fb3806f6e0834c4f81fd3dcee63df129bf60823ccb47bd65},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.31878. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

LoRAs are widely studied for adapting base text-to-image diffusion models. However, a backdoored LoRA can hide a backdoor: it behaves normally in most cases, but produces attacker-specified content (the backdoor target) when a hidden backdoor trigger appears in the input prompt. Detecting such backdoors before using an untrusted LoRA is important for the safety of LoRA adaptation. We present TokenScanner, a model-level vocabulary scanner for backdoor detection within a LoRA fine-tuned text-to-image diffusion model, aiming to discover the malicious trigger for trustworthy LoRA adaptation. The key observation is that backdoor trigger tokens that appear in a larger proportion of training prompts tend to induce more prominent token-specific LoRA responses than those induced by unrelated tokens. TokenScanner therefore scans the tokenizer vocabulary and measures token-wise LoRA responses in the U-Net and the text encoder. It uses these responses to detect backdoored LoRAs and rank candidate trigger tokens for subsequent testing of backdoor activation. Experiments on seven backdoor settings, comprising 840 backdoored LoRAs and 840 real-world benign test LoRAs, show that TokenScanner achieves 95.96% AUC and 96.55% TPR at an FPR of 10.95%. It also achieves 89.40% Hit@1 and 99.40% Hit@5 for trigger discovery across all seven settings.

Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-09-29 in cs.CR).
Categorie arXiv: Cryptography and Security (cs.CR).
Pagina del lavoro: https://arxiv.org/abs/2609.31878 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-07T22:13:03.651Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-09-29?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).