Cost-Sensitive Deep Learning with Layer-Wise Cost Estimation

Yu-An Chung, Hsuan-Tien LinTAAI 2016

TL;DR

This paper introduces "Auxiliary Cost-Sensitive Targets" (AuxCST), a novel framework that enables deep neural networks (DNNs) of any architecture to perform cost-sensitive classification. By adding auxiliary cost-estimation neurons to each hidden layer, AuxCST allows DNNs to learn cost-aware representations, leading to improved performance over existing methods while maintaining flexibility and end-to-end training capabilities.

What Problem Does This Paper Address?

Traditional deep learning models excel at tasks where misclassifying any class carries an equal penalty, often optimizing for accuracy. However, many real-world applications, such as medical diagnosis or fraud detection, have significantly different costs associated with various types of errors. For instance, misclassifying a malignant tumor as benign is far more costly than the reverse. Existing cost-sensitive deep learning models often rely on specific network architectures (e.g., fully-connected layers) and can struggle with deeper networks due to issues like vanishing gradients. This paper aims to bridge this gap by proposing a flexible and generalizable framework that can be applied to modern, complex DNN architectures to effectively handle cost-sensitive classification.

Methods

The core innovation of AuxCST is the integration of layer-wise cost estimation into any DNN. Instead of relying on a separate pre-training step like previous methods (e.g., CSDNN), AuxCST augments each hidden layer of the target DNN with K additional auxiliary neurons. These neurons are trained to estimate the cost associated with misclassifications at that specific layer. The overall loss function for training the DNN becomes a weighted sum of the main cost-estimation loss at the output layer and the auxiliary cost-estimation losses from each hidden layer. This approach allows the network to learn cost-aware representations throughout its depth. The framework is designed to be compatible with various activation functions (including ReLU) and network structures (like convolutional and pooling layers), overcoming limitations of prior work.

Datasets

The experiments were conducted on the following benchmark datasets:

  • MNIST: Handwritten digit recognition.
  • CIFAR-10: Image classification with 10 classes.
  • CIFAR-100: Image classification with 100 classes.
  • Caltech-256: Object recognition with 256 classes.

To evaluate performance on imbalanced datasets, the authors also created imbalanced variants of MNIST, CIFAR-10, and CIFAR-100 (denoted as MNISTimb, CIFAR-10imb, and CIFAR-100imb) by randomly selecting a subset of classes and removing a significant portion of their examples. For Caltech-256, a unique cost structure based on category closeness within a hierarchical tree was used, simulating a more realistic cost scenario.

Key Insights and Ideas

  • Layer-wise cost awareness: By adding auxiliary cost estimators to each hidden layer, the network learns to be cost-aware at multiple levels of abstraction, not just at the final output. This is a key departure from previous methods that focused cost estimation primarily at the output layer or through separate pre-training.
  • Generality and flexibility: AuxCST is designed to be architecture-agnostic. It can be readily applied to modern DNNs using ReLU activations and complex structures like convolutional and pooling layers, making it a more practical solution than methods tied to older architectures.
  • End-to-end training: The framework supports direct end-to-end training, eliminating the need for separate, multi-stage pre-training processes, which simplifies the training pipeline.
  • Balancing auxiliary and main losses: The experimental results highlight the importance of the weighting coefficients ($\alpha$) for the auxiliary losses. An optimal range (around 0.2-0.5) was found to best balance the contributions of different layers, leading to improved performance.

Key Results

  • Outperforms state-of-the-art: AuxCST consistently outperformed the existing state-of-the-art cost-sensitive deep learning model (CSDNN) across various datasets and cost settings.
  • Improved performance with depth: While CSDNN struggled with deeper networks due to vanishing gradients (a consequence of using sigmoid activations), AuxCST showed improved performance as the number of hidden layers increased up to a certain point, demonstrating its robustness.
  • Effective on imbalanced data: The framework showed strong performance on imbalanced datasets, a common challenge in real-world cost-sensitive applications.
  • Successful application to AlexNet: AuxCST was successfully applied to a modern convolutional neural network (AlexNet) for the Caltech-256 dataset with category-closeness costs, demonstrating its applicability to complex, pre-trained models.

Limitations and Future Work

  • Overfitting with very deep networks: The experiments suggest that for datasets with limited training examples, networks with more than three hidden layers can still suffer from overfitting, even with AuxCST.
  • Hyperparameter tuning: The selection of balancing coefficients ($\alpha$) for the auxiliary losses is crucial for optimal performance, indicating a need for careful tuning.

The authors suggest future work includes applying the AuxCST framework to even deeper networks, such as those used for ImageNet classification, to further validate its scalability and effectiveness.

Summary updated

BibTeX
@inproceedings{chung2016cost,
  author = {Yu-An Chung and Hsuan-Tien Lin},
  title = {{Cost-Sensitive Deep Learning with Layer-Wise Cost Estimation}},
  booktitle = {TAAI},
  year = {2016},
  url = {https://openreview.net/forum?id=LVJak0c7feG},
}
Figure