Abstract
Backdoor attacks facilitate unauthorized control in the testing stage by carefully injecting harmful triggers during the training phase of deep neural networks. Previous works have focused on improving the stealthiness of the trigger while randomly selecting samples to attack. However, we find that random selection harms the stealthiness of the model. In this paper, we identify significant pitfalls of random sampling, which make the attacks more detectable and easier to defend against. To improve the stealthiness of existing attacks, we introduce a method of strategically poisoning samples near the model's decision boundary, aiming to minimally alter the model's behavior (decision boundary) before and after backdooring. Our main insight for detecting boundary samples is exploiting the confidence scores as a metric for being near the decision boundary and selecting those to poison (inject) the attack. The proposed approach makes it significantly harder for defenders to identify the attacks. Our method is versatile and independent of any specific trigger design. We provide theoretical insights and conduct extensive experiments to demonstrate the effectiveness of the proposed method.
Introduction
Deep Neural Networks (DNNs) are increasingly vulnerable to backdoor attacks, where an adversary injects a hidden trigger into the training set. The model learns to associate this trigger with a target label while maintaining normal behavior on clean inputs. While significant research has focused on making the triggers themselves "invisible" (e.g., through blending or warping), the strategy for selecting which samples to poison has remained largely primitive, typically relying on random sampling.
This paper demonstrates that random sampling is a critical weakness. By poisoning samples that are representative of their original class, attackers inadvertently create distinct outliers in the model's latent space. These outliers are easily detected by modern defense mechanisms. We propose Confidence-driven Boundary Sampling (CBS) to mitigate this vulnerability and enhance the stealthiness of backdoor attacks.
The Outlier Trap in Random Sampling
When a model is forced to classify a "typical" member of Class A (e.g., a dog) as Class B (e.g., a cat) due to a trigger, the resulting latent representation often fails to align with the distribution of Class B. Instead, it forms a separate cluster. Defense algorithms like Spectral Signature exploit this by performing singular value decomposition on the covariance matrix of latent features; the poisoned samples, acting as outliers, significantly influence the primary singular vector.
As illustrated in Figure 3, random sampling (top row) creates glaringly obvious clusters of poisoned samples (red) in the latent space. In contrast, our proposed boundary sampling (bottom row) allows the poisoned samples to blend seamlessly into the clean data distribution (blue), effectively bypassing outlier-based detection.
Methodology: Confidence-driven Boundary Sampling (CBS)
The goal of CBS is to select samples that are already near the decision boundary between the source class and the target class. These samples require less "effort" from the model to reclassify, resulting in minimal distortion of the latent space.
The CBS process involves three main steps:
- Surrogate Model Training: The attacker trains a surrogate model on a subset of clean data to estimate the decision boundaries of the target architecture.
- Confidence Scoring: For each candidate sample $x$, we calculate the confidence score $C(x, y)$ for its true label $y$ and $C(x, y')$ for the target label $y'$.
- Boundary Selection: We select samples where the difference $|C(x, y) - C(x, y')|$ is minimized. These "confused" samples are the most effective candidates for stealthy poisoning.
Experimental Evaluation
We evaluated CBS across multiple datasets, including CIFAR-10, CIFAR-100, Tiny-ImageNet, ImageNet-1k, and GTSRB. The method was tested against several state-of-the-art defenses, including Spectral Signature (SS), STRIP, and Activation Clustering (AC).
Key Results
Our experiments show that CBS significantly improves attack survival rates. For instance, on CIFAR-10 with a BadNet attack, the Spectral Signature defense reduced the Attack Success Rate (ASR) of random sampling to just 0.5%. Under the same conditions, CBS maintained an ASR of 20.2%.
Furthermore, CBS demonstrated high transferability. Poisoned samples selected using a ResNet-18 surrogate model remained stealthy and effective when the victim trained a VGG-16 or DenseNet model. This suggests that decision boundaries for these tasks are relatively consistent across architectures, making CBS a robust tool for attackers.
Conclusion
Confidence-driven Boundary Sampling represents a shift in backdoor attack strategy from trigger design to sample selection. By exploiting samples near the decision boundary, attackers can bypass sophisticated latent-space defenses that rely on outlier detection. This work highlights a significant blind spot in current defense methodologies and underscores the need for more robust detection techniques that go beyond simple outlier analysis.
Summary updated