Adversarial Classifier for Imbalanced Problems

Ehsan Montahaei, Mahsa Ghorbani, Mahdieh Soleymani Baghshah, Hamid R. RabieearXiv 2018

Abstract

Adversarial approach has been widely used for data generation in the last few years. However, this approach has not been extensively utilized for classifier training. In this paper, we propose an adversarial framework for classifier training that can also handle imbalanced data. Indeed, a network is trained via an adversarial approach to give weights to samples of the majority class such that the obtained classification problem becomes more challenging for the discriminator and thus boosts its classification capability. In addition to the general imbalanced classification problems, the proposed method can also be used for problems such as graph representation learning in which it is desired to discriminate similar nodes from dissimilar nodes. Experimental results on imbalanced data classification and on the tasks like graph link prediction show the superiority of the proposed method compared to the state-of-the-art methods.

Introduction

Machine learning models often struggle when one class significantly outnumbers another, a common scenario in critical applications like fraud detection, rare disease diagnosis, or link prediction in social networks. Standard algorithms tend to develop an "inductive bias" toward the majority class, leading to high overall accuracy but poor performance on the minority class—the one we usually care about most.

Existing solutions like re-sampling (randomly adding or removing data) can be problematic: over-sampling can lead to overfitting, while random under-sampling might discard "informative" samples near the decision boundary. This research introduces ARIC (Adversarially Re-weighting for Imbalanced Classification), a novel framework that moves beyond random sampling by intelligently selecting which majority-class samples are most useful for training a powerful classifier.

Methodology

The ARIC framework adapts the architecture of Generative Adversarial Networks (GANs) for classification rather than data generation. It consists of two competing networks:

  1. The Generator ($G$): Instead of creating fake data, $G$ learns a probability distribution over the existing majority-class samples. Its goal is to assign higher weights to "hard" samples—those most similar to the minority class—to make the classification task more difficult for the discriminator.
  2. The Discriminator ($D$): This serves as the actual classifier, attempting to distinguish between the minority class and the weighted majority class samples.
The ARIC framework: The generator (G) weights majority class samples to challenge the discriminator (D), which acts as the classifier.

To prevent the generator from collapsing onto a few extreme outliers, a negative entropy term is included in the objective function, ensuring a diverse distribution of samples. The networks are trained alternatively: $D$ minimizes classification error, while $G$ maximizes it.

Experimental Setup

The researchers evaluated ARIC across three distinct domains:

  • Standard Imbalanced Benchmarks: Five datasets including pen_digits, letter_img, webpage, mammography, and protein_homo.
  • Graph Link Prediction: Two citation networks, arXiv-AstroPh and arXiv-GrQc.
  • Multi-label Node Classification: Two social/informational networks, BlogCatalog and Wikipedia.

Results and Discussion

ARIC consistently outperformed traditional methods like SMOTE (Synthetic Minority Over-sampling Technique) and ADASYN across several metrics.

Performance comparison of ARIC against state-of-the-art imbalanced classification methods across various datasets.

Key findings include:

  • Imbalanced Classification: On the pen_digits dataset, ARIC achieved an AUC of 0.9722, significantly outperforming Instance Hardness Thresholding (0.8894).
  • Link Prediction: In the arXiv-AstroPh task, ARIC reached an accuracy of 0.9190, a substantial improvement over established baselines like DeepWalk (0.8252) and GraphGAN (0.8186).
  • Versatility: The framework's ability to handle both tabular data and graph representation learning demonstrates its broad applicability.

The "harder is better" philosophy—intentionally making the training task more difficult for the discriminator—forces the model to learn more nuanced boundaries, leading to better generalization.

Conclusion

ARIC demonstrates that re-weighting existing majority samples via an adversarial process is a powerful alternative to synthetic data generation. While effective, future work could explore dual generators for both classes to further refine decision boundaries. Additionally, investigating the sensitivity of the model to the entropy hyperparameter ($\lambda$) remains an important area for exploration.

Summary updated

BibTeX
@misc{montahaei2018adversarial,
  author = {Ehsan Montahaei and Mahsa Ghorbani and Mahdieh Soleymani Baghshah and Hamid R. Rabiee},
  title = {{Adversarial Classifier for Imbalanced Problems}},
  year = {2018},
  eprint = {1811.08812},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1811.08812},
}
Figure