Abstract: Backdoor attacks inject poisoning samples during training, with the goal of forcing a machine learning model to output an attacker-chosen class when presented a specific trigger at test time. Although backdoor attacks have been demonstrated in a variety of settings and against different models, the factors affecting their effectiveness are still not well understood. In this work, we provide a unifying framework to study the process of backdoor learning under the lens of incremental learning and influence functions. We show that the effectiveness of backdoor attacks depends on: (i) the complexity of the learning algorithm, controlled by its hyperparameters; (ii) the fraction of backdoor samples injected into the training set; and (iii) the size and visibility of the backdoor trigger. These factors affect how fast a model learns to correlate the presence of the backdoor trigger with the target class. Our analysis unveils the intriguing existence of a region in the hyperparameter space in which the accuracy on clean test samples is still high while backdoor attacks are ineffective, thereby suggesting novel criteria to improve existing defenses.
Introduction
Backdoor attacks represent a significant security threat to machine learning systems. By injecting a small number of poisoned samples containing a specific trigger (e.g., a small pixel pattern) into the training set, an attacker can manipulate a model to behave normally on clean data while misclassifying any input containing the trigger into a target class.
While the empirical success of these attacks is well-documented, the underlying mechanics of how a model prioritizes learning a malicious backdoor over its legitimate task remain poorly understood. This paper introduces Backdoor Learning Curves (BLC), a framework designed to visualize and quantify the dynamic process of backdoor infection during training.
The Backdoor Learning Framework
To analyze the learning process, the authors propose two primary metrics:
- Backdoor Learning Curves (BLC): By introducing a hyperparameter $\beta$ that controls the weight of backdoor samples in the loss function, the authors sweep $\beta$ from 0 (no poisoning) to 1 (full poisoning). Plotting the model's loss on backdoor samples against $\beta$ reveals how quickly the model incorporates the trigger.
- Backdoor Learning Slope (BLS): This is the gradient of the BLC at $\beta = 0$. It quantifies the "velocity" of infection; a high slope indicates a model that is highly vulnerable and learns the backdoor almost immediately.
For deep neural networks, where analytical gradients can be unstable, the authors utilize a finite difference approximation to estimate the slope. They also track Empirical Parameter Deviation, measuring shifts in weight magnitude ($\rho$) and orientation ($\nu$) as the model succumbs to the backdoor.
The Role of Regularization and Model Complexity
A key finding of this work is that model capacity and regularization are the primary gatekeepers of vulnerability. Models with low regularization or those trained for excessive epochs are sufficiently flexible to fit backdoor noise without sacrificing clean accuracy.
As illustrated in Figure 1, strong regularization (left) acts as a shield, significantly slowing the backdoor learning process. In this regime, the model is "stiff" enough to treat the backdoor trigger as an outlier. Conversely, weak regularization (right) allows the model to rapidly adapt its decision boundary to accommodate the poisoned samples, as evidenced by the sharp drop in the loss curve.
Experimental Results
The framework was evaluated across standard benchmarks including MNIST, CIFAR10, and Imagenette, using architectures ranging from linear classifiers to ResNet50.
- The "Sweet Spot" for Defense: The analysis identifies a specific region in the hyperparameter space where clean accuracy remains high while backdoor effectiveness stays near zero. This suggests that standard hyperparameter tuning can be a potent first line of defense.
- Deep Learning Stability: In ResNet models, increasing training duration (e.g., from 10 to 50 epochs) significantly increased the backdoor learning slope, confirming that over-training exacerbates susceptibility to poisoning.
- Trigger Visibility: Larger or more visible triggers result in steeper learning slopes. While more effective for the attacker, these triggers are also more likely to be detected by automated filters or human inspection.
Limitations and Future Work
While the BLC framework provides deep insights, some challenges remain. The "Parameter Deviation" metrics are currently most effective for convex learners like SVMs; measuring weight shifts in deep, non-convex networks is more complex due to their layered architecture. Additionally, the computational cost of finite difference approximations for the slope in very deep networks is high. Future research will explore the impact of data dimensionality and the behavior of more sophisticated, "invisible" triggers under this framework.
Summary updated