Using Interleaved Ensemble Unlearning to Keep Backdoors at Bay for Finetuning Vision Transformers
Zeyu Michael Li
TL;DR
This work targets backdoor threats in Vision Transformers during finetuning and introduces Interleaved Ensemble Unlearning (IEU), a two-model defence that gates data with a shallow poisoned module $f_p$ and trains a robust module $f_r$ while adversarially unlearning poisoned samples. IEU combines logit masking and a dynamic unlearning rate $lr^{\text{ul}}$ to accumulate and erase backdoored data in an adaptive unlearn set $\mathcal{D}^{\text{ul}}$, avoiding the need for perfect isolation. Empirically, IEU substantially lowers ASR and maintains high CA across 11 attacks on CIFAR10, GTSRB, and TinyImageNet, outperforming state-of-the-art baselines like I-BAU and ABL, with results showing strong robustness and generality across ViT variants and CNNs. The approach offers a practical, model-agnostic pathway to defend ViTs during finetuning in security-sensitive contexts, and points to future improvements through better data isolation methods and handling of weak attacks. Overall, IEU advances backdoor defence by leveraging interleaved learning/unlearning and adaptive data gating to preserve clean performance while suppressing malicious triggers.
Abstract
Vision Transformers (ViTs) have become popular in computer vision tasks. Backdoor attacks, which trigger undesirable behaviours in models during inference, threaten ViTs' performance, particularly in security-sensitive tasks. Although backdoor defences have been developed for Convolutional Neural Networks (CNNs), they are less effective for ViTs, and defences tailored to ViTs are scarce. To address this, we present Interleaved Ensemble Unlearning (IEU), a method for finetuning clean ViTs on backdoored datasets. In stage 1, a shallow ViT is finetuned to have high confidence on backdoored data and low confidence on clean data. In stage 2, the shallow ViT acts as a ``gate'' to block potentially poisoned data from the defended ViT. This data is added to an unlearn set and asynchronously unlearned via gradient ascent. We demonstrate IEU's effectiveness on three datasets against 11 state-of-the-art backdoor attacks and show its versatility by applying it to different model architectures.
