# Conditional Image Synthesis With Auxiliary Classifier GANs

Auxiliary classifier GANs generate sharper 128 by 128 ImageNet samples

Augustus Odena, Christopher Olah, Jonathon Shlens · arXiv · 2016-10-30

- **Problem** Judging high-resolution GAN samples is hard, because a larger image can just be a blurred resize with no extra class information. GANs also tend to lose variety within a class when many classes are trained together.
- **Method** AC-GAN predicts class labels in the discriminator and is trained per 10-class split.
- **Results** The 128 by 128 model reaches 10.1% ± 2.0% Inception accuracy, against 5.0% ± 2.0% for samples resized to 32 by 32. Also, 84.7% of classes have samples more varied than the least varied training class.

## Why high-resolution class samples need new checks

The central question is therefore whether a 128×128 sample is more discriminable than the same sample resized to a lower resolution, and whether samples within a class stay varied.

## AC-GAN objective and the class-split training

The AC-GAN generator receives a class label c together with a noise vector z, and produces an image from both. The discriminator has two outputs: a distribution over real versus fake sources and a distribution over class labels. The label is therefore predicted by an auxiliary decoder rather than supplied as an input to the discriminator.

The source term \\(L\_S\\) is the expected log-probability of the correct source for real and generated images. The class term \\(L\_C\\) has the same form but uses the probability of the correct class c. The discriminator is updated to maximize \\(L\_S + L\_C\\), while the generator is updated to maximize \\(L\_C - L\_S\\). Because the label is supplied explicitly, the noise vector z is meant to learn a representation that does not depend on the class, which later lets the authors hold z fixed while changing only the label.

Early experiments showed that adding classes to a fixed model reduced sample quality, so the final ImageNet system splits the classes across an ensemble of 100 AC-GANs, each trained on a 10-class split. Each model was trained for 50000 mini-batches of size 100. The generator is a series of deconvolution layers, and the discriminator is a deep convolutional network with a Leaky ReLU nonlinearity; separate variants generate 128×128 and 64×64 images.

## Does higher resolution add discriminable class information?

Each synthesized image is first downsized with bilinear interpolation and then restored to its original size, after which a pre-trained Inception network labels it. Inception accuracy is the fraction of samples that receive the correct label, so it measures whether a class-conditional model produces images of the intended class.

The 128×128 model reached 10.1% ± 2.0% Inception accuracy, against 7.0% ± 2.0% for samples resized to 64×64 and 5.0% ± 2.0% for samples resized to 32×32. Relative to the 128×128 result, downsizing to 32×32 and to 64×64 reduces visual discriminability by 50% and 38% respectively. At the level of individual classes, 84.4% of ImageNet classes have higher accuracy at 128×128 than at 32×32.

The 64×64 model is less discriminable than the 128×128 model at 64 spatial resolution, and its accuracy levels off at its own output resolution.

The authors use accuracy rather than the Inception score because accuracy is easier to read, can be assessed per class, and checks whether samples come from the intended class. Real training images reach 81% at 128×128, and the authors treat this curve as an upper bound on discriminability.

## Within-class diversity and generator collapse

Inception accuracy cannot show that a generator has collapsed, since a model that memorized one example per class would score well on it. Diversity is therefore measured with MS-SSIM over 100 randomly chosen pairs of images from the same class; a lower mean means the samples are more varied.

The training images give a range of mean MS-SSIM values across classes, and the highest class mean for training data is 0.25, which serves as the reference line. Across all classes the mean MS-SSIM is 0.05 for the training data and 0.18 for the AC-GAN samples. Of the 1000 classes, 847 have sample means below the training maximum, so 84.7% of classes have samples more varied than the least varied training class.

The same measure is tracked during training, so a class that collapses shows a rising mean MS-SSIM curve.

The authors concede that MS-SSIM was built to compare a compressed image with its original, and they use it on unrelated images. They defend the use by pointing out that comparisons stay within one class label, that the metric is not saturated, and that the training data score as more varied, as expected. The authors also say MS-SSIM is meant as a measure of perceptual diversity, not as an estimate of the entropy of the generator distribution in pixel space.

## Discriminability and diversity together

Among low-diversity classes, defined as MS-SSIM ≥ 0.25, 74% have Inception accuracy at or below 1%. Among high-diversity classes, defined as MS-SSIM \< 0.25, 78% exceed 1%.

For reference, Inception-v3 averages 78.8% accuracy over the 1000 classes, and only some AC-GAN classes reach that level. The authors suggest that GANs that drop modes are the ones most likely to produce low-quality images, which runs against the common view that GANs trade variety for sample quality.

## CIFAR-10 comparison and memorization checks

On CIFAR-10 at 32×32, the authors computed the Inception score for 50000 samples in 10 groups, and for 25000 extra samples in 5 groups. After a grid search over 27 hyperparameter configurations, the model reached 8.25 ± 0.07, compared with 8.09 ± 0.07 for the prior state of the art. In a side-by-side view, the AC-GAN samples look more globally coherent than those from the earlier model.

To check for memorization, each generated sample was matched to its nearest training image under L1 distance in pixel space. The nearest training images do not resemble the samples, which the authors take as evidence that the model is not merely memorizing its training data. Interpolating in latent space shows no discrete jumps or holes, and fixing z while changing the class keeps the global layout, which the authors also read as evidence against overfitting.

## Limitations

The 128×128 model's average Inception accuracy is 10.1% ± 2.0%, far below the 81% of real training images, and the authors state that visual discriminability of the 128×128 model still needs much work. A single model covering all 1000 classes was not built; the study uses 100 class-split models, and building one model for all classes is left as a future step.

A standard GAN could not be trained to converge reliably even on a split of one class.

MS-SSIM is applied outside the compression setting it was designed for, and it measures perceptual diversity rather than generator entropy.

## Paper info

- **Authors**: Augustus Odena, Christopher Olah, Jonathon Shlens
- **Venue**: arXiv · Preprint
- **First published**: 2016-10-30
- **Added**: 2026-11-12
- **Updated**: 2017-7-20
- **Version**: v4
- **arXiv**: 1610.09585
- **Category**: stat.ML · cs.CV
- **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/1610.09585v4) · [PDF ↗](https://arxiv.org/pdf/1610.09585v4)

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

Augustus Odena, Christopher Olah, Jonathon Shlens (2016). Conditional Image Synthesis With Auxiliary Classifier GANs. arXiv:1610.09585v4. https://arxiv.org/abs/1610.09585v4

**BibTeX**

```
@misc{odena2016conditional,
  title = {{Conditional Image Synthesis With Auxiliary Classifier GANs}},
  author = {Augustus Odena and Christopher Olah and Jonathon Shlens},
  year = {2016},
  eprint = {1610.09585},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1610.09585v4}
}
```

## Other paper commentary

- [StackGAN: Text to Photo-realistic Image Synthesis with Stacked Generative Adversarial Networks](https://refivu.com/en/papers/5f81473c-85d8-4d1a-acd2-1cc917ea3535-stackgan-text-to-photo-realistic-image-synthesis-with.md)
- [Boosting Adversarial Attacks with Momentum](https://refivu.com/en/papers/b89dce42-c994-4509-9776-b934fb9a9d13-boosting-adversarial-attacks-with-momentum.md)
- [InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets](https://refivu.com/en/papers/9891b5b5-2ddd-42e7-a5df-4b7e02d593dc-infogan-interpretable-representation-learning-by-information.md)
- [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)
- [RepVGG: Making VGG-style ConvNets Great Again](https://refivu.com/en/papers/b7578ec8-e378-4286-b3a9-984d13d073c3-repvgg-making-vgg-style-convnets-great-again.md)
- [Estimating Continuous Distributions in Bayesian Classifiers](https://refivu.com/en/papers/318decb8-43d0-4596-b25f-944ca636af13-estimating-continuous-distributions-in-bayesian-classifiers.md)
- [Loss Functions for Neural Networks for Image Processing](https://refivu.com/en/papers/e37574f3-bd03-49a6-929a-ac77f4fc8959-loss-functions-for-neural-networks-for-image-processing.md)
- [Supervised learning with quantum enhanced feature spaces](https://refivu.com/en/papers/3f9e8d98-c1b3-4fa7-89e8-2599add8f4d9-supervised-learning-with-quantum-enhanced-feature-spaces.md)
- [The No-U-Turn Sampler: Adaptively Setting Path Lengths in Hamiltonian Monte Carlo](https://refivu.com/en/papers/e0f0ea3e-b264-41df-ace0-6689f5d123b5-the-no-u-turn-sampler-adaptively-setting-path.md)
- [Albumentations: fast and flexible image augmentations](https://refivu.com/en/papers/b1ebb278-fa95-4faa-a782-1d7360e37984-albumentations-fast-and-flexible-image-augmentations.md)

## Terms in this paper

- [CIFAR-10](https://refivu.com/en/terms/19035a518d0a-cifar-10)
- [inception score](https://refivu.com/en/terms/25dbfbd4fd96-inception-score)
- [log-likelihood](https://refivu.com/en/terms/1b600a4b0bbc-log-likelihood)
- [image synthesis](https://refivu.com/en/terms/2f9fefe564b4-image-synthesis)
- [MS-SSIM](https://refivu.com/en/terms/006f0087afa4-ms-ssim)
- [auxiliary decoder](https://refivu.com/en/terms/6be982e89181-auxiliary-decoder)
- [L1 distance](https://refivu.com/en/terms/45715de5f125-l1-distance)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/cbb27823-75f1-4fb6-b4c8-dcc645b1f162-conditional-image-synthesis-with-auxiliary-classifier-gans)
