DF-LoGiT: Data-Free Logic-Gated Backdoor Attacks in Vision Transformers
Xiaozuo Shen, Yifei Cai, Rui Ning, Chunsheng Xin, Hongyi Wu
TL;DR
DF-LoGiT tackles supply-chain risk in Vision Transformers by delivering a truly data-free backdoor via weight rewriting, avoiding data, training, or architectural changes. It constructs a logic-gated, multi-head trigger that injects an internal CLS-state and preserves it through depth using a residual CLS highway before a last-block gated payload activates the target class. The approach comes with theoretical guarantees of stable trigger evidence and state preservation, and empirical results show near-100% attack success with minimal benign utility loss across multiple ViT backbones, while remaining robust to deployment-time defenses. This work highlights a new data-free threat surface for ViTs and motivates auditing and defense strategies that test co-occurrence triggers and internal CLS-state integrity. The method leverages $m$-of-$n$ gating across heads and a calibrated last-block injection to realize precise, stealthy backdoors that are difficult to detect or remove in practice.
Abstract
The widespread adoption of Vision Transformers (ViTs) elevates supply-chain risk on third-party model hubs, where an adversary can implant backdoors into released checkpoints. Existing ViT backdoor attacks largely rely on poisoned-data training, while prior data-free attempts typically require synthetic-data fine-tuning or extra model components. This paper introduces Data-Free Logic-Gated Backdoor Attacks (DF-LoGiT), a truly data-free backdoor attack on ViTs via direct weight editing. DF-LoGiT exploits ViT's native multi-head architecture to realize a logic-gated compositional trigger, enabling a stealthy and effective backdoor. We validate its effectiveness through theoretical analysis and extensive experiments, showing that DF-LoGiT achieves near-100% attack success with negligible degradation in benign accuracy and remains robust against representative classical and ViT-specific defenses.
