HSIC-InfoGAN: Learning Unsupervised Disentangled Representations by Maximising Approximated Mutual Information

Xiao Liu, Spyridon Thermos, Pedro Sanchez, Alison Q. O'Neil, Sotirios A. Tsaftaris

TL;DR

HSIC-InfoGAN simplifies the popular InfoGAN framework by replacing the secondary "auxiliary" network with a kernel-based mathematical criterion called HSIC. This approach achieves unsupervised disentanglement—separating factors like rotation and thickness in images—while reducing model complexity and memory overhead.

What Problem Does This Paper Address?

In the world of Generative Adversarial Networks (GANs), disentanglement is the "holy grail." It’s the ability of a model to learn that one specific part of its input controls the rotation of a digit, while another controls its thickness, without being explicitly told so.

The original InfoGAN achieves this by maximizing the Mutual Information (MI) between the latent codes (the "instructions") and the generated images. However, calculating MI is notoriously difficult. InfoGAN gets around this by adding an extra "auxiliary" neural network to estimate a lower bound of MI. This adds extra parameters to train, increases memory usage, and can complicate the training process. The authors of this paper ask: Can we maximize mutual information directly without needing that extra network?

Methods

The authors introduce HSIC-InfoGAN. Instead of the standard InfoGAN approach, they use the Hilbert-Schmidt Independence Criterion (HSIC) as a proxy for Mutual Information.

  • The Core Idea: HSIC is a kernel-based method used to measure the statistical dependence between two variables (in this case, the latent code $c$ and the generated image $X$).
  • No Extra Weights: Because HSIC is a mathematical calculation performed on the data samples within a batch, it doesn't require a neural network to estimate it. This removes the need for the "Q-network" found in standard InfoGAN.
  • Kernel Trick: By using Gaussian kernels, HSIC can compare inputs of completely different dimensions—like a 1D vector of codes and a 3D tensor of image pixels—directly in a high-dimensional "feature space."
  • The Objective: The model minimizes the standard GAN loss while maximizing the HSIC between the latent codes and the output images (effectively forcing the images to "depend" on the codes).

Datasets

The study uses the MNIST dataset, a benchmark consisting of 60,000 handwritten digits (0-9) at 28x28 resolution.

  • The latent space was configured with 62 dimensions of noise ($z$), one 10-dimensional categorical code (representing the digit identity), and two continuous codes ($c_1, c_2$) intended to capture styles like rotation and width.

Key Insights and Ideas

  • Architectural Efficiency: By eliminating the auxiliary network, the authors reduce the memory footprint for saving model weights and potentially stabilize training by removing the need to share weights between a discriminator and a regressor.
  • Direct Optimization: HSIC allows for a more direct "geometric" way to enforce dependence between the latent space and the image space compared to the "probabilistic" estimation used in standard InfoGAN.
  • Hyperparameter Hierarchy: The authors found that the kernel variance ($\sigma$) is a more sensitive "knob" than the loss weight ($\lambda$). They suggest a specific tuning strategy: find a functional $\sigma$ first (searching between 2 and 10), then fine-tune the weight $\lambda$.

Key Results

  • Qualitative Disentanglement: HSIC-InfoGAN successfully learned to separate factors of variation. For example, varying $c_1$ clearly controlled the rotation of the digits, while $c_2$ captured thickness.
  • Performance Comparison: The authors noted that HSIC-InfoGAN actually learned the rotation factor ($c_1$) better than the original InfoGAN. However, it showed some "mixing" in the thickness factor ($c_2$), occasionally confusing similar-looking digits like 0 and 8 or 3 and 5.
  • Feasibility: The paper demonstrates that HSIC is a viable, lower-complexity alternative to the traditional latent regression used in InfoGAN-style models.

Limitations and Future Work

  • Scale of Evaluation: This is an exploratory paper focused on MNIST. The authors haven't yet tested the approach on more complex datasets like CelebA or high-resolution natural images.
  • Quantitative Metrics: The results are primarily qualitative (visual). Future work would benefit from standard disentanglement metrics (like the DCI or MIG scores) to provide a more rigorous comparison.
  • Medical Applications: The authors suggest this method is particularly promising for medical imaging (e.g., separating "anatomy" from "modality style"), where labeled data is scarce and saving memory on large 3D volumes is critical.
  • Broader Generative Models: They envision applying the HSIC loss to other architectures like Normalizing Flows or Denoising Diffusion models.

Summary updated

BibTeX
@inproceedings{liu2022hsic,
  author = {Xiao Liu and Spyridon Thermos and Pedro Sanchez and Alison Q. O'Neil and Sotirios A. Tsaftaris},
  title = {{HSIC-InfoGAN: Learning Unsupervised Disentangled Representations by Maximising Approximated Mutual Information}},
  booktitle = {MAD @ MICCAI},
  year = {2022},
  doi = {10.1007/978-3-031-25046-0\_2},
}

Loading related content...

Figure