Rethinking Cost-Sensitive Classification in Deep Learning via Adversarial Data Augmentation

Qiyuan Chen, Raed Al Kontar, Maher Nouiehed, X. Jessie Yang, Corey A. Lester

TL;DR

This paper introduces a novel framework, Cost-Sensitive Adversarial Data Augmentation (CSADA), to address the challenge of cost-sensitive classification in over-parameterized deep neural networks (DNNs). CSADA generates targeted adversarial examples to push decision boundaries towards minimizing costly misclassifications, outperforming traditional methods in reducing overall cost.

What Problem Does This Paper Address?

In many real-world applications, the cost of misclassifying one class as another is not uniform. For instance, a medication error can have severe consequences, far exceeding the cost of a less critical mistake. Traditional classification models aim to maximize overall accuracy, treating all errors equally. However, with the rise of over-parameterized deep neural networks (DNNs), which can perfectly memorize training data, standard cost-sensitive approaches become ineffective. These models can achieve near-zero training loss and zero misclassifications on the training set, rendering cost-sensitive objectives moot when evaluated solely on this data. This paper tackles the problem of making these powerful, over-parameterized DNNs truly cost-sensitive by developing a method that goes beyond the training set to learn cost-aware decision boundaries.

Methods

The core contribution is the Cost-Sensitive Adversarial Data Augmentation (CSADA) framework. The key idea is to generate targeted adversarial examples that specifically aim to induce costly misclassifications. These adversarial examples are then used to train the model.

Here's a breakdown:

  • Targeted Adversarial Example Generation: Instead of generating examples that maximize the overall loss (as in standard adversarial training), CSADA generates examples that maximize the probability of critical misclassifications. This is achieved through a bi-level optimization process: an inner maximization step finds perturbations that push the model towards making a specific, costly error, and an outer minimization step trains the model to be robust against these targeted perturbations.
  • Cost-Aware Penalized Objective: The training objective incorporates a penalty term that specifically targets and penalizes these costly misclassifications on the generated adversarial examples.
  • Stochastic Implementation: To address the computational complexity of generating adversarial examples for every data point, a stochastic version of the algorithm is proposed. This involves sampling mini-batches and critical pairs, making the process more scalable.
  • Rejection Mechanism: The adversarial generation process includes a rejection mechanism to ensure that the generated examples are relevant and effectively push the decision boundaries in the desired cost-aware directions.

Datasets

The proposed CSADA framework was evaluated on several datasets:

  • MNIST: A widely used dataset of handwritten digits.
  • CIFAR-10: A dataset of small images in 10 classes.
  • Pharmacy Medication Image (PMI) Dataset: A newly introduced dataset consisting of pill images, designed to mimic real-world medication dispensing scenarios with imbalanced costs. This dataset was made publicly available by the authors.

Key Insights and Ideas

  • Over-parameterization is a double-edged sword for cost-sensitivity: While DNNs' ability to perfectly fit training data is powerful for generalization, it fundamentally breaks traditional cost-sensitive learning approaches that rely on training set performance.
  • Targeted adversarial examples are crucial: Simply re-weighting data or using generic adversarial examples is insufficient. The key is to generate adversarial examples that specifically exploit and highlight the costly misclassifications.
  • Cost-sensitive learning needs to look beyond the training set: The paper strongly advocates for methods that generate data or perturbations to guide the learning process, especially when dealing with over-parameterized models.
  • CSADA offers a practical solution: The framework provides a concrete method to make DNNs cost-sensitive by augmenting the training data with carefully crafted adversarial examples.

Key Results

  • Significant Cost Reduction: CSADA demonstrated a substantial reduction in overall cost and critical error rates across all tested datasets, including MNIST, CIFAR-10, and the novel PMI dataset. For instance, on the PMI dataset, CSADA halved the total cost compared to the baseline.
  • Comparable Accuracy: Despite focusing on cost reduction, CSADA achieved comparable overall accuracy to the baseline models, indicating that cost-sensitivity can be improved without sacrificing general performance.
  • Superiority over Benchmarks: CSADA outperformed existing cost-sensitive methods (like the Penalty method and CNNSOSR) in reducing costs, particularly on over-parameterized models.
  • Failure of Simple Reweighting: The paper experimentally confirmed that simple cost-reweighting techniques are ineffective for over-parameterized DNNs, as they fail to improve performance over a standard baseline.

Limitations and Future Work

  • Computational Cost: While the stochastic version of CSADA improves scalability, generating adversarial examples still adds computational overhead compared to standard training.
  • Hyperparameter Tuning: The performance of CSADA is sensitive to hyperparameters like $\lambda$ (trade-off between empirical risk and adversarial penalty) and $\epsilon$ (perturbation magnitude), requiring careful tuning. The paper shows sensitivity analysis for $\lambda$, illustrating its impact on weighted error rate.
  • Future Work: The authors suggest that their framework can be extended to other machine learning models beyond DNNs. They also imply that further research into more efficient adversarial generation techniques and automated hyperparameter optimization could enhance the practicality of CSADA.

Summary updated

BibTeX
@misc{chen2022rethinking,
  author = {Qiyuan Chen and Raed Al Kontar and Maher Nouiehed and X. Jessie Yang and Corey A. Lester},
  title = {{Rethinking Cost-Sensitive Classification in Deep Learning via Adversarial Data Augmentation}},
  year = {2022},
  eprint = {2208.11739},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.11739},
}
Figure