Label-Smoothed Backdoor Attack

Minlong Peng, Zidi Xiong, Mingming Sun, Ping Li

Abstract

By injecting a small number of poisoned samples into the training set, backdoor attacks aim to make the victim model produce designed outputs on any input injected with pre-designed backdoors. In order to achieve a high attack success rate using as few poisoned training samples as possible, most existing attack methods change the labels of the poisoned samples to the target class. This practice often results in severe over-fitting of the victim model over the backdoors, making the attack quite effective in output control but easier to be identified by human inspection or automatic defense algorithms. In this work, we proposed a label-smoothing strategy to overcome the over-fitting problem of these attack methods, obtaining a Label-Smoothed Backdoor Attack (LSBA). In the LSBA, the label of the poisoned sample $x$ will be changed to the target class with a probability of $p_n(x)$ instead of 100%, and the value of $p_n(x)$ is specifically designed to make the prediction probability the target class be only slightly greater than those of the other classes. Empirical studies on several existing backdoor attacks show that our strategy can considerably improve the stealthiness of these attacks and, at the same time, achieve a high attack success rate. In addition, our strategy makes it able to manually control the prediction probability of the design output through manipulating the applied and activated number of LSBAs.

Introduction

Backdoor (or Trojan) attacks represent a significant security threat in machine learning. In a typical "dirty-label" attack, an adversary poisons a small portion of the training data by injecting a "trigger"—such as a specific pixel pattern—and forcing the model to associate this trigger with a target class. While effective, these traditional attacks suffer from a critical vulnerability: over-confidence. By forcing a 100% association between the trigger and the target label, the model becomes unnaturally certain when the trigger is present. This "peculiar" behavior is precisely what state-of-the-art defenses like STRIP or Fine-Pruning exploit to identify poisoned models.

To address this, we introduce the Label-Smoothed Backdoor Attack (LSBA). By intentionally making the backdoor "under-confident," we can bypass standard security audits while maintaining high effectiveness at inference time.

Methodology: The "Just Enough" Principle

The core of LSBA is a data-level smoothing strategy that avoids the over-fitting typical of traditional attacks. Instead of a binary label flip, we employ a probabilistic approach.

Instance-Specific Labeling and Calibrated Confidence

For any poisoned input $x$, the label is changed to the target class with a probability $p_t(x)$, rather than 100%. To determine the optimal $p_t(x)$, we first estimate the natural probability of the target class for that specific input using a "clean" model. We then set a target confidence—just high enough to ensure the target class is the top prediction—and calculate the flipping probability required to reach that threshold.

Backdoor Stacking

To ensure the attack remains potent despite lower individual trigger confidence, we introduce "backdoor stacking." We apply $k$ different triggers to distinct subsets of the training data. At inference time, activating multiple triggers simultaneously boosts the prediction probability of the target class. This allows for "tunable lethality": a single trigger might be subtle and hard to detect, while activating all triggers guarantees a successful attack.

Prediction probability vs. number of activated triggers across different datasets.

Experimental Evaluation

We evaluated LSBA across four benchmark datasets: MNIST, CIFAR-10, GTSRB, and CelebA. Our strategy was applied to three popular attack types: BadNet, SIG, and WaNet.

Attack Success Rate (ASR)

The "under-confidence" strategy proved remarkably effective. When all stacked triggers are activated, LSBA achieves over 90% ASR across all datasets, matching the performance of traditional "hard" attacks.

Attack Success Rate (ASR) vs. number of activated triggers.

Stealth and Resilience

LSBA demonstrated superior stealth against six major defense algorithms, including STRIP and Fine-Pruning.

  • STRIP Defense: Traditional attacks are often caught by STRIP (False Acceptance Rate near 0%). In contrast, LSBA achieved nearly 100% FAR on MNIST and CelebA, rendering the defense ineffective.
  • Fine-Pruning: LSBA maintained significantly higher ASRs after model pruning compared to traditional methods, particularly on complex datasets like CIFAR-10 and CelebA.

Conclusion

LSBA shifts the backdoor attack paradigm from maximizing confidence to achieving "just enough" certainty. By breaking the assumption of over-confidence that many defenses rely on, LSBA provides a more stealthy and robust method for model poisoning. The introduction of backdoor stacking further provides attackers with a mechanism to manually control the attack's intensity at inference time, making it a versatile and dangerous new frontier in adversarial machine learning.

Summary updated

Abstract

By injecting a small number of poisoned samples into the training set, backdoor attacks aim to make the victim model produce designed outputs on any input injected with pre-designed backdoors. In order to achieve a high attack success rate using as few poisoned training samples as possible, most existing attack methods change the labels of the poisoned samples to the target class. This practice often results in severe over-fitting of the victim model over the backdoors, making the attack quite effective in output control but easier to be identified by human inspection or automatic defense algorithms. In this work, we proposed a label-smoothing strategy to overcome the over-fitting problem of these attack methods, obtaining a \textit{Label-Smoothed Backdoor Attack} (LSBA). In the LSBA, the label of the poisoned sample $\bm{x}$ will be changed to the target class with a probability of $p_n(\bm{x})$ instead of 100\%, and the value of $p_n(\bm{x})$ is specifically designed to make the prediction probability the target class be only slightly greater than those of the other classes. Empirical studies on several existing backdoor attacks show that our strategy can considerably improve the stealthiness of these attacks and, at the same time, achieve a high attack success rate. In addition, our strategy makes it able to manually control the prediction probability of the design output through manipulating the applied and activated number of LSBAs\footnote{Source code will be published at \url{https://github.com/v-mipeng/LabelSmoothedAttack.git}}.
BibTeX
@misc{peng2022label,
  author = {Minlong Peng and Zidi Xiong and Mingming Sun and Ping Li},
  title = {{Label-Smoothed Backdoor Attack}},
  year = {2022},
  eprint = {2202.11203},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.11203},
}
Figure