MIM-Based GAN: Information Metric to Amplify Small Probability Events Importance in Generative Adversarial Networks

Rui She, Pingyi Fan · DOI

Abstract

In Generative Adversarial Networks (GANs), the information metric used to discriminate between generative and real data is a critical factor in generation efficiency, particularly for applications like anomaly detection. Traditional GANs suffer from limitations in rare event generation and training stability due to their reliance on Kullback-Leibler (KL) divergence, which utilizes logarithmic loss functions. This paper introduces the MIM-based GAN, which replaces the standard logarithmic form with an exponential form derived from the Message Importance Measure (MIM). We demonstrate that this approach enhances training performance and significantly improves the generation of rare events. Theoretical analysis reveals that the MIM-based GAN amplifies the importance of small-probability events during the adversarial process. Experimental results on MNIST and ODDS datasets show that the MIM-based GAN achieves state-of-the-art performance in anomaly detection compared to classical GAN variants.

Introduction

Generative Adversarial Networks (GANs) have revolutionized generative modeling, yet they remain notoriously difficult to train. A primary challenge is the "majority bias": because standard GAN objective functions are based on KL divergence, they prioritize high-probability data points. In contexts such as fraud detection, medical diagnosis, or system failure analysis, the most critical data points are often "anomalies"—rare events with very small probabilities.

When a GAN ignores these rare events, it fails to accurately model the boundary between normal and abnormal distributions. To address this, we propose a shift in the fundamental information metric used to measure the divergence between real and synthetic data distributions, moving from a logarithmic scale to an exponential one.

The MIM-Based GAN Framework

From Logarithms to Exponentials

The core innovation of this research is the replacement of the traditional GAN objective function with one based on the Message Importance Measure (MIM). While the original GAN uses a $\log$ function, the MIM-based GAN employs an exponential ($\exp$) form.

The objective function for the discriminator $D$ and generator $G$ is defined as:

$$L_{MIM}(D, G) = \mathbb{E}_{x \sim \mathbb{P}}[\exp(1 - D(x))] + \mathbb{E}_{z \sim \mathbb{P}_z}[\exp(D(G(z)))]$$

Theoretical Advantages

Theoretical analysis confirms that while the equilibrium point (where the generator perfectly replicates the real data distribution) remains consistent with standard GANs, the optimization path is fundamentally different. By deriving the optimal discriminator for this setup, we show that the MIM-based GAN relates more closely to Renyi divergence than the standard Jensen-Shannon divergence.

Crucially, the exponential function grows much faster than a logarithm. This mathematical property ensures that when the probability of an event is small, the MIM-based loss assigns it a disproportionately higher weight. Through Taylor expansion analysis (Proposition 4), we prove that the proportion of rare events in the MIM objective function is strictly higher than in the original GAN, effectively "amplifying" the signal of anomalies during training.

Experimental Evaluation

Training Stability and Convergence

Using artificial Gaussian data ($\mu=4, \sigma=1.25$), we compared the convergence of the MIM-based GAN against the original KL-based GAN. The MIM-based approach reached a stable equilibrium significantly faster and exhibited fewer oscillations, suggesting that the exponential gradient provides a more consistent and robust signal to the generator, even when the discriminator is imperfect.

Anomaly Detection on MNIST and ODDS

To test the model's efficacy in identifying rare events, we utilized the MNIST handwritten digits dataset and the Outlier Detection DataSets (ODDS).

  1. MNIST: By treating a specific digit (e.g., "0") as a rare event (10% of the sample) and others as normal, the MIM-based GAN demonstrated a superior ability to capture the features of the minority class.
  2. ODDS Benchmarks: We tested the model on three real-world datasets:
  3. Cardiotocography: Fetal heart rate features (9.6% anomalies).
  4. Thyroid: Health attributes (2.5% anomalies).
  5. Musk: Chemical features (3.2% anomalies).

Key Results

The MIM-based GAN consistently outperformed original GANs, Least Squares GANs (LSGANs), and Wasserstein GANs (WGANs) across all benchmarks:

  • Thyroid Dataset: The MIM-based GAN achieved a median Area Under the Curve (AUC) of approximately 0.86, compared to ~0.72 for the KL-based method.
  • Musk Dataset: The model achieved a near-perfect median AUC of 0.99, while competing methods showed significantly higher volatility and lower average scores.
  • F1-Scores: The model maintained higher precision and recall balances (F1-scores) across all tested datasets, proving it is not only better at finding anomalies but also more accurate in distinguishing them from noise.

Conclusion

The MIM-based GAN represents a significant step forward in making generative models more sensitive to the "long tails" of data distributions. By replacing logarithmic metrics with exponential ones, we can mathematically amplify the importance of rare events, leading to more stable training and superior performance in anomaly detection. Future work will explore the application of this exponential metric to other domains, such as natural language processing, where modeling rare word distributions remains a persistent challenge.

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 GAN: Information Metric to Amplify Small Probability Events Importance in Generative Adversarial Networks}},
  year = {2020},
  eprint = {2003.11285},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.11285},
}

Loading related content...

Figure