RPP: A Certified Poisoned-Sample Detection Framework for Backdoor Attacks under Dataset Imbalance
Miao Lin, Feng Yu, Rui Ning, Lusi Li, Jiawei Chen, Qian Lou, Mengxin Zheng, Chunsheng Xin, Hongyi Wu
TL;DR
This work addresses the heightened vulnerability of deep neural networks to backdoor attacks in imbalanced datasets, showing that majority-class bias increases attack success and degrades existing defenses. It introduces Randomized Probability Perturbation (RPP), a certified poisoned-sample detector that operates on per-sample prediction stability under random perturbations and uses conformal prediction to calibrate decision thresholds in a black-box setting. Theoretical guarantees provide a detectable trigger-size bound and false-positive control, while extensive experiments on five benchmarks and ten attack types demonstrate strong detection and certification performance, especially under imbalance. The approach offers a practical, principled foundation for defending against backdoor threats in real-world, skewed data environments, with resilience to adaptive attacks and varying noise conditions.
Abstract
Deep neural networks are highly susceptible to backdoor attacks, yet most defense methods to date rely on balanced data, overlooking the pervasive class imbalance in real-world scenarios that can amplify backdoor threats. This paper presents the first in-depth investigation of how the dataset imbalance amplifies backdoor vulnerability, showing that (i) the imbalance induces a majority-class bias that increases susceptibility and (ii) conventional defenses degrade significantly as the imbalance grows. To address this, we propose Randomized Probability Perturbation (RPP), a certified poisoned-sample detection framework that operates in a black-box setting using only model output probabilities. For any inspected sample, RPP determines whether the input has been backdoor-manipulated, while offering provable within-domain detectability guarantees and a probabilistic upper bound on the false positive rate. Extensive experiments on five benchmarks (MNIST, SVHN, CIFAR-10, TinyImageNet and ImageNet10) covering 10 backdoor attacks and 12 baseline defenses show that RPP achieves significantly higher detection accuracy than state-of-the-art defenses, particularly under dataset imbalance. RPP establishes a theoretical and practical foundation for defending against backdoor attacks in real-world environments with imbalanced data.
