Paper commentary
Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
Convolutional GANs learn reusable image features without labels
- Problem GAN training is unstable, and the generators often produce nonsensical outputs. Little work had shown what the intermediate layers of multi-layer GANs learn.
- Method DCGAN is a class of CNNs that keeps a standard convolutional stack but replaces pooling with strided convolutions. Instead of pooling, it removes fully connected hidden layers and reuses the discriminator as a feature extractor.
- Results A linear L2-SVM on DCGAN discriminator features reached 82.8% on CIFAR-10, compared to 80.6% for single-layer K-means.
Why GANs were hard to use for features
Generative adversarial networks train a generator and a discriminator against each other, and the authors wanted to reuse parts of both networks for supervised tasks. The trouble is that this training is unstable, and the generators often produce nonsensical outputs. Earlier attempts to scale GANs with CNNs had failed, which led the LAPGAN authors to upscale low-resolution images one step at a time.
Other generative approaches made progress on natural images, but each left a gap. Variational samples were often blurry, and Laplacian pyramid GANs gave higher quality images with wobbly objects. Recurrent and deconvolution generators also worked to some degree, but they were never used for supervised tasks. Meanwhile very little had been published on what the intermediate layers of multi-layer GANs learn.
Architectural changes to the CNN
The key idea is to keep a standard convolutional stack and remove the choices that made GAN training fragile. Pooling layers are replaced with strided convolutions, so the discriminator learns its own downsampling and the generator learns its own upsampling. Fully connected hidden layers are removed in deeper architectures, and the highest convolutional features connect directly to the input and output.
Global average pooling made training more stable but converged more slowly, so the authors chose this middle ground instead.
The generator's first layer takes a 100 dimensional uniform noise vector Z and multiplies it by a matrix. Four fractionally-strided convolutions then turn this representation into a 64×64 pixel image for LSUN scene modeling. In the discriminator, the last convolutional layer is flattened and passed to a single sigmoid output.
Batch Normalization normalizes each unit's input to zero mean and unit variance, which helps with poor initialization and gradient flow in deeper models. It was critical for getting deep generators to learn at all, because without it the generator tended to collapse every sample to one point.
The generator uses ReLU in its layers and Tanh at the output, and the bounded output let the model cover the color space of the training data more quickly. The discriminator uses LeakyReLU with a slope of 0.2 in every layer. The authors found this leaky activation worked well, especially at higher resolution, unlike the maxout activation of the original GAN paper.
Training settings and datasets
Images are scaled to the range [-1, 1], the range of the tanh activation, and no other preprocessing is applied. The authors use the Adam optimizer instead of plain momentum, and they lower the suggested learning rate of 0.001 to 0.0002. They also cut the momentum term β1 from the suggested 0.9 to 0.5, because 0.9 caused training oscillation.
LSUN bedrooms contain a little over 3 million training examples, which the authors used to test scaling to larger data and higher resolution. Near-duplicate images were removed with a de-noising dropout autoencoder of size 3072-128-3072, which found about 275,000 near duplicates. The estimated false positive rate of the hash collisions is less than 1 in 100.
The Faces set started from 3M images of 10K people and was cut to approximately 350,000 face boxes with an OpenCV face detector. For Imagenet-1k, training uses 32×32 min-resized center crops with no data augmentation.
Features on CIFAR-10
The authors train DCGAN on Imagenet-1k and never on CIFAR-10, then classify CIFAR-10 with a linear model on the discriminator's features. Each layer's features are max-pooled to a 4×4 grid, and all layers are concatenated into a 28672 dimensional vector. A regularized linear L2-SVM on this vector reached 82.8% accuracy. That beats the 82.0% of the multi-layer K-means extension and the 80.6% of single-layer K-means.
The top layer has 512 feature maps, against 4800 for single-layer K-means, although the concatenated vector ends up larger. With 400 labels per class, the same pipeline reached 73.8% (±0.4%), compared to 63.7% (±0.7%) for single-layer K-means. Exemplar CNNs remain ahead at 84.3%, and the authors leave fine-tuning the discriminator's representations to future work.
The authors read the CIFAR-10 result as evidence of domain robustness, since the features never saw CIFAR-10 during training.
Features on SVHN with 1000 labels
With the same L2-SVM pipeline, DCGAN features reached 22.48% test error, compared to 23.56% for the SWW AE with dropout. The authors report this as state of the art for 1000 labels, improving on an earlier CNN method that uses unlabeled data (Zhao et al., 2015).
The authors also trained a purely supervised CNN with the same architecture and tuned it with 64 hyperparameter trials. That supervised model reached 28.87% validation error, which the authors use to argue the architecture alone isn't the main source of the gain. The two numbers come from different splits, since 22.48% is a test error and 28.87% is a validation error.
What the discriminator and generator encode
Guided backpropagation traces the maximal responses of the discriminator's top-layer features back to input pixels. A minority of the first 6 features respond to beds, the central object of LSUN bedrooms, while the random filter baseline shows little structure. The authors note that supervised CNNs also learn object detectors, and they show the same kind of hierarchy emerging in an unsupervised discriminator.
To test whether generator units store window appearance, the authors drew 52 window bounding boxes on 150 samples. They fit a logistic regression on the second highest convolution layer and dropped the 200 feature maps with weights greater than zero. The generator then mostly stopped drawing windows in bedrooms and drew other objects in their place, such as doors and mirrors.
Visual quality dropped, but the overall scene composition stayed similar, which the authors take as a sign that scene and object representations are separated.
Walking through 9 random points in Z gives smooth transitions, and each sample looks like a plausible bedroom. Z vectors of three exemplars are averaged per concept, and arithmetic on those means produces a new vector. Arithmetic on single samples was unstable, while the three-sample means gave generations that followed the arithmetic. Face pose also changes linearly in Z, which the authors show with a turn direction.
Limits and open questions
Longer training sometimes collapses a subset of filters to a single oscillating mode. The authors say further work is needed on this form of instability. On CIFAR-10 the features remain behind Exemplar CNNs, at 82.8% against 84.3%.
The authors argue that memorization is experimentally unlikely here, given the small learning rate and mini-batch SGD. After five epochs, the samples show repeated noise textures, which the authors read as visual underfitting. Log-likelihood was not used to assess the model, because the authors regard it as a poor metric. The window and vector arithmetic results are inspected visually, with no metric attached.
Paper info
- Authors
- Alec Radford, Luke Metz, Soumith Chintala
- Venue
- arXiv · Preprint
- First published
- 2015-11-19
- Added
- 2026-11-6
- Updated
- 2016-1-7
- Version
- v2
- arXiv
- 1511.06434
- Category
- cs.LG · cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
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
Alec Radford, Luke Metz, Soumith Chintala (2015). Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks. arXiv:1511.06434v2. https://arxiv.org/abs/1511.06434v2
BibTeX
@misc{radford2015unsupervised,
title = {{Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks}},
author = {Alec Radford and Luke Metz and Soumith Chintala},
year = {2015},
eprint = {1511.06434},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1511.06434v2}
}