MIM-Based Generative Adversarial Networks and Its Application on Anomaly Detection

Rui She, Pingyi Fan

TL;DR

This paper introduces MIM-based GANs, a novel generative adversarial network architecture that replaces the traditional logarithmic information measure with an exponential one (Message Importance Measure - MIM). This modification significantly improves the training stability and, crucially, enhances the generation of rare events, leading to state-of-the-art performance in anomaly detection tasks.

What Problem Does This Paper Address?

Generative Adversarial Networks (GANs) are powerful tools for generating realistic data, but they face challenges, particularly when dealing with "rare events" – data points that occur with very low probability. The original GAN's reliance on Kullback-Leibler (KL) divergence as its information metric struggles with efficiently generating these rare events and can also suffer from training instability. This limitation is critical for applications like anomaly detection, where identifying these infrequent but important events is the primary goal. The paper aims to address these shortcomings by proposing a new information metric that better captures and amplifies the importance of rare events during GAN training.

Methods

The core innovation of this work is the replacement of the logarithmic function in the GAN's objective function with an exponential function, specifically the Message Importance Measure (MIM). This change leads to a modified objective function, denoted as $L_{MIM}(D, G)$, for the discriminator ($D$) and generator ($G$). The authors theoretically analyze the properties of this MIM-based GAN, including the optimal discriminator and generator gradients. They demonstrate that the exponential form inherently amplifies the contribution of rare events to the overall objective function, leading to improved generation of such data. This theoretical foundation is then applied to anomaly detection, where the GAN's ability to distinguish between normal and anomalous (rare) events is leveraged.

Datasets

The paper evaluates its proposed MIM-based GAN on both artificial and real-world datasets:

  • Artificial Gaussian Distribution Data: Used for initial training performance experiments, generated from $N(\mu=4, \sigma=1.25)$.
  • MNIST: A standard dataset for image recognition, adapted for anomaly detection by designating one digit class (e.g., "0") as rare events (10% of the data) and the rest as normal.
  • Outlier Detection Dataset (ODDS): A collection of real-world anomaly detection datasets, including:
  • Cardiotocography: Contains 21 features, with 9.6% of samples classified as anomalous.
  • Thyroid: Contains 6 attributes, with 2.5% of samples classified as anomalous.
  • Musk: Contains 166 features, with 3.2% of samples classified as anomalous.

Key Insights and Ideas

  • Exponential vs. Logarithmic Metrics: The paper highlights that an exponential information measure (MIM) inherently gives more weight to rare events compared to the logarithmic measure (KL divergence) used in standard GANs. This is a fundamental shift in how the GAN prioritizes data generation.
  • Improved Rare Event Generation: By amplifying the importance of rare events in the objective function, MIM-based GANs are theoretically and empirically shown to generate these events more effectively than traditional GANs.
  • Enhanced Anomaly Detection: The improved rare event generation directly translates to better performance in anomaly detection tasks, as the model becomes more adept at identifying and distinguishing infrequent, anomalous data points.
  • Training Stability: The proposed MIM-based GAN also demonstrates improved convergence and stability during the training process compared to the original GAN.

Key Results

  • Training Performance: Experiments on artificial Gaussian data show that MIM-based GAN, LSGAN, and WGAN all outperform the original GAN in terms of convergence and stability. The MIM-based GAN exhibits superior convergence for the generator's objective function and better stability when a discriminator is provided.
  • Anomaly Detection (MNIST): MIM-based GAN achieved better performance across ROC curve, AUC, and F1-score metrics compared to KL-based GAN (original GAN), LSGAN, and WGAN.
  • Anomaly Detection (ODDS Datasets): Across the Cardiotocography, Thyroid, and Musk datasets, MIM-based GAN consistently outperformed other GAN variants. The ROC curves for MIM-based GAN were closer to the ideal, and box-plots for AUC and F1-score showed superior median and mean values. For instance, on the Cardiotocography dataset, the MIM-based GAN achieved a median AUC of 0.72 and a median F1-score of 0.38, outperforming other methods.

Limitations and Future Work

  • Theoretical Focus: While the paper provides theoretical analysis, the practical implementation and extensive empirical validation are crucial for broader adoption.
  • Hyperparameter Tuning: Although the paper mentions improved stability, the optimal choice of hyperparameters for the MIM-based GAN, especially for the exponential function's parameters, might still require careful tuning for specific datasets.
  • Future Work: The authors suggest that the MIM-based GAN's superiority in anomaly detection makes it a promising direction for practical applications. Further research could explore its application to more complex anomaly detection scenarios and investigate its performance on even larger and more diverse datasets. The paper also hints at further theoretical explorations of the information divergence measures and their impact on GAN training.

Summary updated

Abstract

In terms of Generative Adversarial Networks (GANs), the information metric to discriminate the generative data from the real data, lies in the key point of generation efficiency, which plays an important role in GAN-based applications, especially in anomaly detection. As for the original GAN, there exist drawbacks for its hidden information measure based on KL divergence on rare events generation and training performance for adversarial networks. Therefore, it is significant to investigate the metrics used in GANs to improve the generation ability as well as bring gains in the training process. In this paper, we adopt the exponential form, referred from the information measure, i.e. MIM, to replace the logarithm form of the original GAN. This approach is called MIM-based GAN, has better performance on networks training and rare events generation. Specifically, we first discuss the characteristics of training process in this approach. Moreover, we also analyze its advantages on generating rare events in theory. In addition, we do simulations on the datasets of MNIST and ODDS to see that the MIM-based GAN achieves state-of-the-art performance on anomaly detection compared with some classical GANs.
BibTeX
@misc{she2020mim,
  author = {Rui She and Pingyi Fan},
  title = {{MIM-Based Generative Adversarial Networks and Its Application on Anomaly Detection}},
  year = {2020},
  eprint = {2003.11285},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.11285},
}
Figure