Double InfoGAN for Contrastive Analysis

Florence Carton, Robin Louiset, Pietro Gori

Introduction

Contrastive Analysis (CA) is a critical task in data science and medical imaging, aimed at identifying "salient" features that distinguish a target dataset from a background control. For instance, in neuroimaging, researchers seek to isolate pathological features like tumors from the common anatomical structures shared across all patients. Historically, Contrastive Variational Autoencoders (CA-VAEs) have been the standard. However, VAEs often produce blurry images and suffer from "feature leakage," where background variations are incorrectly attributed to salient factors.

Double InfoGAN addresses these limitations by combining the high-fidelity generation of Generative Adversarial Networks (GANs) with the information-theoretic disentanglement of InfoGAN. This framework achieves superior image quality and more precise separation of common and salient latent factors.

Architecture and Methodology

The core innovation of Double InfoGAN lies in its split latent space, consisting of common factors ($z \in \mathbb{R}^L$) and salient factors ($s \in \mathbb{R}^M$).

The Double InfoGAN architecture features a Generator (G), a Discriminator (D), a Domain Classifier (C), and an auxiliary Encoder (Q) to maximize mutual information.

Key components of the architecture include:

  • Domain-Specific Latent Constraints: For background images ($X$), the salient factor $s$ is fixed to zero. For target images ($Y$), $s$ is learned. This constraint forces the model to encode all shared variability into $z$.
  • Multi-Module Discriminator: The discriminator performs two tasks: standard real/fake detection ($D$) and domain classification ($C$) to identify if an image belongs to the background or target set.
  • Information and Reconstruction Losses: An auxiliary encoder $Q$ maximizes the mutual information between latent codes and generated images. Additionally, an $L1$ reconstruction loss is employed to stabilize training and ensure accurate mapping of real images to the latent space.

Experimental Evaluation

The model was benchmarked against state-of-the-art CA-VAEs using four datasets:

  1. CelebA: Background faces vs. faces with salient attributes (hats/glasses).
  2. Cifar-10-MNIST: CIFAR-10 objects (background) vs. CIFAR-10 with overlaid MNIST digits (target).
  3. dSprites-MNIST: MNIST digits (background) vs. digits with dSprites shapes (target).
  4. BraTS: MRI scans of healthy brains (control) vs. brains with tumors (target).

Results and Discussion

Double InfoGAN consistently outperformed baseline models in both quantitative metrics and qualitative interpretability. On the CelebA dataset, salient factors ($s$) achieved a 95% classification accuracy for attributes, significantly higher than the ~82% achieved by CA-VAEs. Furthermore, the model produced images with lower Fréchet Inception Distance (FID), indicating higher visual fidelity.

Comparison of image reconstruction and salient feature swapping on the Cifar-10-MNIST dataset. Double InfoGAN provides significantly sharper results and better factor separation than the MM-cVAE baseline.

A key advantage is the ability to perform "salient feature swapping." By combining the common factors ($z$) of a background image with the salient factors ($s$) of a target image, the model can synthesize realistic counterfactuals—such as adding a specific tumor to a healthy brain scan. This capability is vital for clinical interpretability, where sharpness and detail are paramount.

Conclusion and Future Work

Double InfoGAN represents a significant advancement in Contrastive Analysis, offering a stable GAN-based alternative to VAEs. While highly effective, the model's performance remains subject to dataset biases and lacks theoretical guarantees of physical factor identifiability. Future research may explore integrating more advanced architectures like StyleGAN or Diffusion models to further enhance resolution and generative diversity.

Summary updated

BibTeX
@inproceedings{carton2024double,
  author = {Florence Carton and Robin Louiset and Pietro Gori},
  title = {{Double InfoGAN for Contrastive Analysis}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2024},
}
Figure