[Paper Review] UNICORN: A Unified Backdoor Trigger Inversion Framework
UNICORN proposes a unified backdoor trigger inversion framework that generalizes across diverse trigger types by modeling triggers as perturbations in various input spaces via invertible transformations. It outperforms prior methods on eight backdoor attack types across CIFAR-10 and ImageNet, achieving over 95% attack success rate in inversion and demonstrating effectiveness on self-supervised models.
The backdoor attack, where the adversary uses inputs stamped with triggers (e.g., a patch) to activate pre-planted malicious behaviors, is a severe threat to Deep Neural Network (DNN) models. Trigger inversion is an effective way of identifying backdoor models and understanding embedded adversarial behaviors. A challenge of trigger inversion is that there are many ways of constructing the trigger. Existing methods cannot generalize to various types of triggers by making certain assumptions or attack-specific constraints. The fundamental reason is that existing work does not consider the trigger's design space in their formulation of the inversion problem. This work formally defines and analyzes the triggers injected in different spaces and the inversion problem. Then, it proposes a unified framework to invert backdoor triggers based on the formalization of triggers and the identified inner behaviors of backdoor models from our analysis. Our prototype UNICORN is general and effective in inverting backdoor triggers in DNNs. The code can be found at https://github.com/RU-System-Software-and-Security/UNICORN.
Motivation & Objective
- To address the limitation of existing trigger inversion methods that assume static pixel-space triggers and fail to generalize to complex triggers like filters or warping effects.
- To formally define backdoor triggers as perturbations in different input spaces using invertible transformations, enabling a unified formulation of the inversion problem.
- To identify and exploit the disentanglement of benign and compromised activation vectors in backdoored models as a key behavioral signature for inversion.
- To develop a general-purpose framework that inverts triggers across various attack types, including data-poisoning and supply-chain attacks, without relying on attack-specific assumptions.
- To extend the applicability of trigger inversion to self-supervised learning models by inverting triggers in pre-trained encoders.
Proposed method
- Formalizes a backdoor trigger as a perturbation in a transformed input space: $\tilde{\bm{x}} = \phi^{-1}\left((1-\bm{m})\odot\phi(\bm{x}) + \bm{m}\odot\bm{t}\right)$, where $\phi$ is an invertible transformation function.
- Introduces a constrained optimization problem that jointly searches for the input space transformation $\phi$, mask $\bm{m}$, and trigger pattern $\bm{t}$ to reconstruct the backdoor.
- Leverages the observation that compromised activation vectors in intermediate layers are disentangled from benign ones, enabling reliable detection of backdoor behavior.
- Employs a PyTorch-based prototype, UNICORN, to solve the optimization problem using gradient-based search with regularization to ensure small, imperceptible triggers.
- Adapts the framework for self-supervised models by maximizing similarity between inverted trigger embeddings and reference sample embeddings, bypassing classification loss.
- Uses a reference sample-based evaluation strategy for self-supervised models, where attack success rate is measured via fine-tuned downstream classifiers.
Experimental results
Research questions
- RQ1Can a unified trigger inversion framework generalize across diverse trigger types, including filters, warping effects, and patch-based triggers, without relying on attack-specific assumptions?
- RQ2How does modeling triggers in different input spaces via invertible transformations improve the generalization and robustness of trigger inversion?
- RQ3To what extent do disentangled activation patterns in backdoored models enable reliable detection and inversion of triggers across different architectures and datasets?
- RQ4Can the proposed framework effectively invert triggers in self-supervised learning models, particularly in pre-trained encoders?
- RQ5How does the performance of UNICORN compare to prior state-of-the-art methods across multiple datasets and backdoor attack types?
Key findings
- UNICORN achieves an average attack success rate (ASR) of 95.89% across eight different backdoor attacks on CIFAR-10 and ImageNet, significantly outperforming prior methods that assume static pixel-space triggers.
- On the Patch attack, UNICORN achieves 98.95% ASR, surpassing the next best method by over 10 percentage points, demonstrating superior inversion accuracy.
- For the WaNet attack, which uses a complex warping effect, UNICORN achieves 91.41% ASR, showing effectiveness even on non-traditional, spatially transformed triggers.
- In self-supervised learning, UNICORN inverts triggers in pre-trained encoders with an average ASR of 97.01%, closely matching the injected trigger's success rate (97.87% on average).
- The framework successfully inverts a white square patch trigger in Badencoder, visualizing the inverted trigger at the same spatial location as the original, confirming spatial fidelity.
- UNICORN's inversion performance is robust across diverse models, including ResNet, DenseNet, and Vision Transformers, indicating strong generalization beyond specific architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.