Improving the Sensitivity of Backdoor Detectors via Class Subspace Orthogonalization

Guangmingmei Yang, David J. Miller, George Kesidis

TL;DR

Post-training backdoor detectors often miss subtle attacks or falsely flag clean classes that naturally look like statistical outliers. This paper introduces Class Subspace Orthogonalization (CSO), a plug-and-play defense framework that suppresses a class's normal, intrinsic features during detector optimization, forcing the system to isolate hidden backdoor triggers in orthogonal feature directions.

What Problem Does This Paper Address?

Deep learning models are notoriously vulnerable to backdoor attacks. An attacker poisons a small fraction of the training data so that the model behaves normally on clean inputs but reliably misclassifies any input containing a specific "trigger" pattern to a target class.

Defenders often operate in a post-training setting, meaning they only have access to the final trained model and a tiny set of clean data—no training logs, no original training set. Existing post-training detectors try to reverse-engineer the trigger by looking for statistical outliers. However, these methods frequently fail in two major scenarios:

  1. Subtle Backdoors: When the poisoning rate is very low, the trigger's signal is too weak to stand out as an outlier.
  2. Strong Intrinsic Features: When a clean class naturally possesses highly unique or dominant features, it can trick the detector into generating an outlier statistic, leading to a false positive.

Methods

The authors make a key observation: a backdoored target class's detection statistic is driven by a combination of the backdoor trigger and its intrinsic features. In contrast, a non-target class's statistic is driven solely by its intrinsic features.

To exploit this, they propose Class Subspace Orthogonalization (CSO), which operates in two steps:

  1. Identify Intrinsic Features: Using a handful of clean examples, CSO learns a class-specific soft mask to map out the feature subspace responsible for normal class discrimination.
  2. Orthogonalize the Search: CSO introduces a novel penalty term (based on rectified cosine similarity) into the detector’s loss function. This penalty discourages the detector from looking at the class's intrinsic feature directions, forcing it to search exclusively in orthogonal subspaces where a backdoor trigger is likely to hide.

Because CSO only modifies the loss objective rather than the underlying detection mechanism, it is entirely detector-agnostic. The authors successfully integrated it into several prominent defenses, creating variants like NC-CSO (Neural Cleanse), PT-RED-CSO, and MMBD-CSO.

Additionally, the paper introduces a novel Mixed-Label (ML) Attack. Traditional attacks cause "collateral damage" by accidentally misclassifying non-targeted classes when the trigger is present. The ML attack eliminates this by clean-label poisoning non-source classes, making the backdoor incredibly surgical and significantly harder for standard defenses to detect.

Datasets

The authors evaluated their approach across three widely used image classification benchmarks:

  • CIFAR-10
  • GTSRB (German Traffic Sign Recognition Benchmark)
  • A 40-class subset of TinyImageNet

To keep the defense realistic, the authors used a very limited data budget: only 10 clean images per class were provided to train the CSO masks.

Key Insights and Ideas

  • Orthogonality as a Noise Filter: Instead of trying to design a better trigger-inversion algorithm, CSO acts as a geometric filter. By zeroing out the "noise" of normal class features, it ensures that if a class's statistic remains high after orthogonalization, it must be due to an anomalous backdoor trigger.
  • The Stealth of Surgical Attacks: The newly proposed Mixed-Label attack demonstrates that when an attacker cleans up the "collateral damage" of a backdoor, standard outlier-based detectors completely lose their edge. This sets a more challenging benchmark for evaluating future backdoor defenses.

Key Results

Across all datasets and attack types, plugging CSO into baseline detectors yielded substantial performance leaps, frequently resulting in a greater than 20% relative improvement in Detection Accuracy (DA).

  • High Accuracy & Low False Positives: On CIFAR-10 under all-to-one attacks, MMBD-CSO achieved a 96% accuracy on clean models (indicating very low false positives) while maintaining dominant detection rates against sophisticated attacks like WaNet and Blended attacks.
Table 1: Detection accuracies for CIFAR-10 based on 10 clean models (for false-positive performance) and 10 attacked models for 9 different all-to-one backdoors. Highlighted cells indicate ≥20% relative improvement of CSO over its baseline. Bold indicates best detector for a given attack.
  • Defeating the Mixed-Label Threat: While the stealthy Mixed-Label (ML) attacks caused baseline detectors to plummet in accuracy, the CSO-enhanced versions remained highly robust. For instance, standard MMBD's detection accuracy dropped significantly against ML-BadNet on CIFAR-10, whereas MMBD-CSO maintained strong performance.
Table 2: CIFAR-10 detection accuracy under 11 one-to-one backdoors. Dirty-label and mixed-label (ML) settings are reported.
  • Consistency Across Domains: The benefits held true on more complex datasets like GTSRB, where MMBD-CSO consistently outperformed the rest of the field.
Detection accuracies for GTSRB on clean and attacked models

Limitations and Future Work

While CSO requires very few clean samples (only 10 per class), it still relies on the assumption that the defender can obtain a completely clean validation subset from the same domain. If these samples are unavailable or heavily mislabeled, the intrinsic subspace estimation could degrade.

For future work, the authors suggest exploring whether class subspace orthogonalization can be adapted from backdoor detection to backdoor mitigation—potentially allowing defenders to actively purge backdoor weights from a network without damaging its benign performance.

Summary updated

Abstract

Most post-training backdoor detection methods rely on attacked models exhibiting extreme outlier detection statistics for the target class of an attack, compared to non-target classes. However, these approaches may fail: (1) when some (non-target) classes are easily discriminable from all others, in which case they may naturally achieve extreme detection statistics (e.g., decision confidence); and (2) when the backdoor is subtle, i.e., with its features weak relative to intrinsic class-discriminative features. A key observation is that the backdoor target class has contributions to its detection statistic from both the backdoor trigger and from its intrinsic features, whereas non-target classes only have contributions from their intrinsic features. To achieve more sensitive detectors, we thus propose to suppress intrinsic features while optimizing the detection statistic for a given class. For non-target classes, such suppression will drastically reduce the achievable statistic, whereas for the target class the (significant) contribution from the backdoor trigger remains. In practice, we formulate a constrained optimization problem, leveraging a small set of clean examples from a given class, and optimizing the detection statistic while orthogonalizing with respect to the class's intrinsic features. We dub this plug-and-play approach Class Subspace Orthogonalization (CSO) and assess it against challenging mixed-label and adaptive attacks.
BibTeX
@inproceedings{yang2026improving,
  author = {Guangmingmei Yang and David J. Miller and George Kesidis},
  title = {{Improving the Sensitivity of Backdoor Detectors via Class Subspace Orthogonalization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=lK1El77o4Q},
}
Figure