Adversarial Learning With Cost-Sensitive Classes

Haojing Shen, Sihong Chen, Ran Wang, Xizhao Wang

In the high-stakes world of machine learning, not all mistakes are created equal. Misidentifying a $1 bill as a $100 bill is a much costlier error for a vending machine than the reverse. Yet, most adversarial defense mechanisms treat every class as equally important. A new paper by Haojing Shen and colleagues, "Adversarial Learning with Cost-Sensitive Classes," introduces a way to play favorites—specifically, how to shield "protected" classes from adversarial attacks while maintaining overall performance.

TL;DR

The authors propose a framework that combines cost-sensitive learning with adversarial training to prioritize the robustness of specific, high-value classes. They also discover the "Min-Max property"—a specific weight distribution in convolutional layers that correlates with robustness—and use it to build a defense that works even without the computational burden of adversarial training.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously "brittle." Small, human-imperceptible perturbations (adversarial examples) can easily trick a model into misclassification. While Adversarial Training (AT)—training on these "broken" examples—is a common defense, it has two major drawbacks:

  1. Computational Cost: Generating adversarial examples during every training step is incredibly slow.
  2. Uniformity: Standard AT tries to make the entire model robust. In reality, we often care more about protecting specific "target" classes that are likely to be attacked for profit (like high-denomination currency) or safety (like stop signs).

The authors set out to create a model that can distinguish between protected and unprotected classes, ensuring the "VIP" classes are significantly harder to attack.

Methods

The researchers introduced two primary approaches:

  1. Cost-Sensitive Adversarial Model (CSA): This integrates a cost matrix directly into the adversarial training objective. If the model misclassifies a "protected" class $p$, the penalty is much higher than for other classes. This forces the model to prioritize the decision boundaries surrounding the protected class during the "arms race" of adversarial training.
  2. Cost-Sensitive Adversarial Extension (CSE): This is the more novel contribution. While analyzing robust models, the authors noticed a phenomenon they call the Min-Max property: in robust convolutional layers, the absolute values of most parameters approach zero, while a few become significantly larger.
  3. The CSE model uses a "fuzziness" regularizer to force this Min-Max property onto the weights during standard training on clean data.
  4. The big win: CSE can improve adversarial robustness without actually generating adversarial examples during training, drastically reducing compute time.

Datasets

The models were evaluated on three standard computer vision benchmarks:

  • MNIST: 60,000 images of handwritten digits (0-9).
  • CIFAR-10: 60,000 color images across 10 categories (planes, cars, etc.).
  • CIFAR-100: A more complex dataset with 100 classes.

Key Insights and Ideas

  • The Min-Max Property is a Robustness Signal: The authors provide a theoretical link between weight sparsity/extremity and robustness. When weights follow a bi-nominal-like distribution (mostly 0, some large), the model becomes less sensitive to the small input variations used in gradient-based attacks.
  • Locating Critical Parameters: By using a cost matrix, the model can "locate" which specific parameters are decisive for the protected class and apply the Min-Max property more aggressively to those areas.
  • Defense Without Attack: The CSE results suggest that adversarial robustness isn't just about "seeing" bad examples; it's about the internal geometry of the weight space. By regularizing for "fuzziness," we can achieve robustness as a byproduct of the training architecture.

Key Results

The authors compared their models (CSA, CSE, and a combined CSE+ADV) against standard models (STD) across various attacks like FGSM and PGD.

  • Targeted Protection: On MNIST, when protecting the digit "1," the CSA model maintained 96.79% accuracy under attack, compared to much lower scores for standard models.
  • Efficiency: The CSE model (which uses no adversarial training) showed significantly better robustness than the standard model. On CIFAR-10 under FGSM attack, CSE achieved ~43% accuracy on protected classes, while the standard model hovered around 30%.
  • The Ultimate Combo: Combining cost-sensitivity with adversarial training (CSE+ADV) yielded the best results, often outperforming state-of-the-art defenses for the specific protected classes.

Limitations and Future Work

The primary limitation identified is network depth. While the CSE and the Min-Max property worked beautifully on shallower networks like LeNet, the authors found that the "fuzziness" regularizer struggled to control the weight distributions in very deep networks like ResNet18. On CIFAR-100, the fuzziness of the layers remained high, and the robustness gains were less pronounced.

Future Work: The authors suggest that new optimization skills or different regularization techniques are needed to successfully "force" the Min-Max property into deeper architectures, which would unlock high-efficiency adversarial defense for large-scale industrial models.

Summary updated

BibTeX
@article{shen2023adversarial,
  author = {Haojing Shen and Sihong Chen and Ran Wang and Xizhao Wang},
  title = {{Adversarial Learning With Cost-Sensitive Classes}},
  journal = {IEEE Trans. Cybernetics},
  year = {2023},
  doi = {10.1109/tcyb.2022.3146388},
}
Figure