# InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets

InfoGAN learns interpretable codes by maximizing mutual information in a GAN

Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, Pieter Abbeel · arXiv · 2016-6-12

- **Problem** A plain GAN gives its generator unstructured noise, so nothing ties the input dimensions to meaningful factors of the data. Earlier methods that find such factors need labels or grouped training data.
- **Method** InfoGAN adds structured latent codes and maximizes the mutual information between those codes and the generated samples. It optimizes a variational lower bound with an auxiliary network Q that shares convolutional layers with the discriminator.
- **Results** On MNIST, the lower bound reaches about 2.30 and a categorical code gives 5% error.

## Why unsupervised disentangling is hard

A common hope is that a model able to synthesize data also learns representations whose coordinates mean something. The paper's framing is that this hope is not guaranteed, since a generative model can produce good samples while its representation is arbitrary. In a plain GAN the noise input is a simple factored continuous vector with no restriction on how the generator uses it, so its dimensions can be mixed together in a tangled way.

Earlier methods that recover disentangled factors usually depend on labels. Some train part of the representation to match supplied labels, while others group training pairs that share all but one factor. Weakly supervised variants replace explicit labels with grouping or temporal continuity between frames, but they still depend on a supervised grouping of the data.

The authors identify hossRBM as the only other unsupervised method known to them for this goal, and note that it handles only discrete factors and that its computation cost grows exponentially with the number of factors.

## Adding a mutual information term to the GAN

The input noise is split into two parts. The noise z is treated as incompressible source of randomness, and the structured latent code c targets the salient semantic features, so the generator becomes \\(G(z,c)\\). The structured variables are given a factored prior, so that \\( P(c\_1,\\dots,c\_L)=\\prod\_{i=1}^{L}P(c\_i) \\), and the code c is the concatenation of the individual codes.

Without a further constraint, the generator can ignore c and still match the data distribution, so the codes may carry nothing. To prevent this, the method requires high mutual information between the codes and the generated samples. Mutual information \\(I(X;Y)\\) measures the reduction in uncertainty about X once Y is observed and can be written as \\( I(X;Y)=H(X)-H(X\|Y)=H(Y)-H(Y\|X) \\).

Maximizing \\(I(c;G(z,c))\\) is encoded as a penalty in the game, \\\[ \\min\_G \\max\_D V\_I(D,G)=V(D,G)-\\lambda I(c;G(z,c)) \\\], where the generator minimizes the negated term and so increases the mutual information. If c is independent of the generated sample, the mutual information is zero. If the code is recoverable from the sample through a deterministic and invertible map, the mutual information reaches its maximum.

## Bounding the mutual information

Maximizing the mutual information directly requires the posterior P(c\|x), which is hard to compute. The method introduces an auxiliary distribution Q(c\|x) that approximates the posterior. Writing the mutual information through the entropy of c, the difference between the true posterior and Q appears as a KL divergence that is non-negative.

Dropping it leaves a lower bound that depends only on Q and on H(c). The entropy H(c) is kept fixed rather than optimized, which keeps the bound simple to use.

The bound still needs samples from the posterior inside its expectation. A lemma rewrites an expectation over the posterior as one over an extra draw of the input given the code, so the posterior does not have to be sampled. The resulting variational lower bound is \\\[ L\_I(G,Q)=\\mathbb{E}\_{c\\sim P(c),\\,x\\sim G(z,c)}\[\\log Q(c\|x)\]+H(c)\\le I(c;G(z,c)) \\\].

The bound can be estimated with Monte Carlo samples, is maximized with respect to Q directly, and is maximized with respect to G through the reparametrization trick.

The bound becomes tight as Q approaches the true posterior, which means the expected KL divergence between them tends to zero. For discrete codes, the bound reaches H(c) when it is maximal, and then the maximal mutual information is attained. The full training objective is \\\[ \\min\_{G,Q}\\max\_D V\_{InfoGAN}(D,G,Q)=V(D,G)-\\lambda L\_I(G,Q) \\\], with λ as a hyperparameter.

## Cost of the extra term during training

In most experiments Q and D share all convolutional layers, and a single final fully connected layer outputs the parameters of Q(c\|x). Because of this sharing, the extra computation over a GAN is negligible, and the authors observed that the lower bound converged faster than the normal GAN objectives.

A discrete code is handled with a softmax over the corresponding outputs. A continuous code is treated as a factored Gaussian. Training follows the DC-GAN techniques, which the authors found sufficient to stabilize InfoGAN without new tricks.

## Does the bound reach its maximum on MNIST?

InfoGAN was trained on MNIST with a uniform categorical code of K = 10 and p = 0.1. Across the plotted 1000 training iterations, the lower bound rises quickly to about H(c) ≈ 2.30, which the authors read as tightness of the bound and attainment of the maximal mutual information.

The baseline is a regular GAN that also has an auxiliary distribution Q but is not encouraged to maximize mutual information. The authors reason that since Q is an expressive network, Q approximates the true posterior well, so the regular GAN carries little mutual information between codes and images. They note that a different network architecture might give higher mutual information in a regular GAN, though they did not observe this in their experiments.

The comparison shows only that a regular GAN offers no guarantee that its generator uses the codes.

## What the codes control on MNIST

The categorical code c1 (K = 10, p = 0.1) and two uniform continuous codes c2 and c3 drawn from Unif(−1, 1) model the digits. Changing c1 switches between digits most of the time.

Even without any labels, the categories of c1 were matched to digit types, and the resulting classifier reached a 5% error rate on MNIST digits. A digit 7 is classified as a 9 in one of the rows shown.

The continuous code c2 models the rotation of digits, and c3 controls the width. When c1 is varied on a GAN trained without the information regularizer, the variations are non-interpretable.

## 3D Faces, 3D Chairs, SVHN and CelebA

On 3D Faces, InfoGAN uses five continuous codes drawn from Unif(−1, 1). DC-IGN learns azimuth, elevation and lighting only with supervision. InfoGAN recovers azimuth, elevation and lighting, and one code moves a face from wide to narrow, a factor that the authors say was not labeled or generated in prior work. The displayed representation for each factor was chosen from 5 random runs to resemble the prior supervised results.

On 3D Chairs, the model uses four categorical codes with K = 20 and p = 0.05, plus one continuous code drawn from Unif(−1, 1). A continuous code captures the rotation of the chair while keeping its shape, and another continuous code captures chair width and interpolates smoothly between chair types. As on the faces, the displayed representation was chosen from 5 random runs.

One continuous code captures lighting, even though each digit appears under only one lighting condition in the dataset. One categorical code controls the context of the central digit, for example whether a partial digit appears on the right, which the authors read as separation of the central digit from its context.

On CelebA, which has 200, 000 celebrity images with large pose variation and background clutter, the model uses 10 uniform categorical variables, each of dimension 10.

## What the evidence does not establish

The main evidence on the richer datasets is visual, shown as latent manipulation grids with captions, and the only numeric result given in the experiments is the 5% MNIST error rate and the value of the lower bound. The comparisons with DC-IGN are presented as chosen representations from 5 random runs rather than as a quantitative benchmark.

The units give λ = 1 for discrete codes and say only that a smaller λ is typically used for continuous codes, so no single value for continuous codes is stated. The regular GAN baseline depends on the architecture of Q, and the authors note that another architecture might change its mutual information. The claim that hossRBM cannot disentangle continuous factors and that its cost grows exponentially is the authors' description of prior work, and the paper does not test hossRBM itself.

## Paper info

- **Authors**: Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, Pieter Abbeel
- **Venue**: arXiv · Preprint
- **First published**: 2016-6-12
- **Added**: 2026-11-12
- **Updated**: 2016-6-12
- **Version**: v1
- **arXiv**: 1606.03657
- **Category**: cs.LG · stat.ML
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1606.03657v1) · [PDF ↗](https://arxiv.org/pdf/1606.03657v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, Pieter Abbeel (2016). InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets. arXiv:1606.03657v1. https://arxiv.org/abs/1606.03657v1

**BibTeX**

```
@misc{chen2016infogan,
  title = {{InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets}},
  author = {Xi Chen and Yan Duan and Rein Houthooft and John Schulman and Ilya Sutskever and Pieter Abbeel},
  year = {2016},
  eprint = {1606.03657},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1606.03657v1}
}
```

## Other paper commentary

- [Self-Attention Generative Adversarial Networks](https://refivu.com/en/papers/819d5b11-1213-4c83-93af-58db3c44b12f-self-attention-generative-adversarial-networks.md)
- [GLIDE: Towards Photorealistic Image Generation and Editing with Text-Guided Diffusion Models](https://refivu.com/en/papers/85a30c3b-b6e0-4eaf-8fb4-fe6a473a1c05-glide-towards-photorealistic-image-generation-and-editing.md)
- [Variational Quantum Algorithms](https://refivu.com/en/papers/6d58f3e0-2a35-428c-950f-93a8daccb221-variational-quantum-algorithms.md)
- [StarGAN: Unified Generative Adversarial Networks for Multi-Domain Image-to-Image Translation](https://refivu.com/en/papers/b61e89a8-05ef-4482-bc67-b5bed59283d8-stargan-unified-generative-adversarial-networks-for-multi.md)
- [Variational Graph Auto-Encoders](https://refivu.com/en/papers/68c3cbf9-0251-40aa-bdb7-85593b91a6b5-variational-graph-auto-encoders.md)
- [Variational Inference: A Review for Statisticians](https://refivu.com/en/papers/9499b5e2-6ec4-4fcc-8d8e-4709801c41a4-variational-inference-a-review-for-statisticians.md)
- [RandAugment: Practical automated data augmentation with a reduced search space](https://refivu.com/en/papers/8b56147c-5b9a-4e55-85b2-0f0992053956-randaugment-practical-automated-data-augmentation-with-a.md)
- [MnasNet: Platform-Aware Neural Architecture Search for Mobile](https://refivu.com/en/papers/9898212b-ee8e-448d-817e-c0047d43e15a-mnasnet-platform-aware-neural-architecture-search-for-mobile.md)
- [Robust Recovery of Subspace Structures by Low-Rank Representation](https://refivu.com/en/papers/14c27646-6e22-4f5b-b820-67e75508bf84-robust-recovery-of-subspace-structures-by-low-rank.md)
- [What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?](https://refivu.com/en/papers/6f981a48-48a7-46de-b89d-79c37884de4f-what-uncertainties-do-we-need-in-bayesian-deep.md)
- [MiniGPT-4: Enhancing Vision-Language Understanding with Advanced Large Language Models](https://refivu.com/en/papers/f07e6e3f-3ab5-42dc-98c8-a32fe7d8820d-minigpt-4-enhancing-vision-language-understanding-with.md)
- [Multi-view Convolutional Neural Networks for 3D Shape Recognition](https://refivu.com/en/papers/80b8aedd-6f52-4a73-bc81-a80322e5e37c-multi-view-convolutional-neural-networks-for-3d-shape.md)

## Terms in this paper

- [MNIST](https://refivu.com/en/terms/28b9bb66d1c6-mnist)
- [Generative adversarial networks](https://refivu.com/en/terms/889f2a50b737-generative-adversarial-networks)
- [SVHN](https://refivu.com/en/terms/c24d35c2e4d0-svhn)
- [generator](https://refivu.com/en/terms/2935313c9c21-generator)
- [discriminator](https://refivu.com/en/terms/4e47ae7741de-discriminator)
- [mutual information](https://refivu.com/en/terms/31de24f17a5e-mutual-information)
- [CelebA](https://refivu.com/en/terms/37ef27628b05-celeba)
- [variational lower bound](https://refivu.com/en/terms/49024a039d18-variational-lower-bound)
- [InfoGAN](https://refivu.com/en/terms/207b9e4c1fbe-infogan)
- [representation learning](https://refivu.com/en/terms/897b5b9d997e-representation-learning)
- [Wake-Sleep algorithm](https://refivu.com/en/terms/0081e50e3b87-wake-sleep-algorithm)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/9891b5b5-2ddd-42e7-a5df-4b7e02d593dc-infogan-interpretable-representation-learning-by-information)
