Generating images with recurrent adversarial networks

Daniel Jiwoong Im, Chris Dongjoo Kim, Hui Jiang, Roland MemisevicarXiv 2016 · OpenReview

Abstract

Gatys et al. (2015) showed that optimizing pixels to match features in a convolutional network with respect to reference image features is a way to render images of high visual quality. We show that unrolling this gradient-based optimization yields a recurrent computation that creates images by incrementally adding onto a visual "canvas". We propose a recurrent generative model inspired by this view, and show that it can be trained using adversarial training to generate very good image samples. We also propose a way to quantitatively compare adversarial networks by having the generators and discriminators of these networks compete against each other.

Introduction

In the early development of Generative Adversarial Networks (GANs), researchers faced two significant hurdles: the complexity of generating high-resolution, realistic images in a single forward pass, and the lack of objective, scalable evaluation metrics. Standard GANs often struggled to maintain global structure while capturing fine details. Drawing inspiration from sequential models like DRAW and optimization-based methods like Style Transfer, this paper introduces Generative Recurrent Adversarial Networks (GRAN). By building images incrementally on a virtual canvas, GRAN learns complex data distributions more effectively than traditional "single-shot" models.

The GRAN Architecture

The core innovation of this work is a recurrent generator that maintains a canvas $C$. Instead of producing a final image directly, the generator produces a series of updates $\Delta C_t$ over $T$ time steps. The final image is obtained by applying a sigmoid function to the sum of all updates: $x = \sigma(\sum_{t=1}^T \Delta C_t)$.

The GRAN architecture generates images by incrementally adding updates to a canvas.

As illustrated in the figure above, the model utilizes a feedback loop. At each step $t$, an encoder function $g(\cdot)$ processes the previous update $\Delta C_{t-1}$ into a hidden state. This state, combined with a noise vector $z$, is fed into a decoder function $f(\cdot)$ to produce the next update $\Delta C_t$. Unlike previous hierarchical models that enforced a strict coarse-to-fine progression, GRAN is free to learn its own optimal generation strategy.

Evaluation: The Generative Adversarial Metric (GAM)

To address the subjective nature of GAN evaluation, we propose the Generative Adversarial Metric (GAM). This metric facilitates a quantitative "battle" between two models, $M_1$ and $M_2$, to determine which produces more "data-like" samples.

The GAM "Battle Phase" where two models compete to evaluate quality.

The evaluation consists of a training phase followed by a test (or "battle") phase. In the test phase, the generator of the first model ($G_1$) attempts to fool the discriminator of the second model ($D_2$), and vice versa. By comparing the ratios of their classification error rates on each other's samples versus their own training data, we can objectively rank models based on their generalization capabilities.

Experiments and Results

We evaluated GRAN and GAM across several benchmarks, including MNIST, CIFAR-10, LSUN (Churches and Living Rooms), and a downsampled ImageNet.

  • Benefits of Recurrence: According to the GAM metric, GRAN models with 3 or 5 time steps (GRAN3/5) consistently outperformed single-step versions. Incremental refinement allows the model to establish basic shapes early on and add fine-grained textures in later steps.
  • Comparison with VAEs: When compared to non-adversarial models like DRAW and Denoising VAEs on MNIST, GRAN discriminators easily identified non-adversarial samples as "fake," indicating that the adversarial objective captures sharper image statistics.
  • Qualitative Quality: The model produced high-quality samples on LSUN datasets. While ImageNet samples were more "artistic" than perfectly realistic due to the high diversity of 1,000 classes, they lacked the blurriness typical of non-adversarial approaches.

Conclusion

GRAN demonstrates that recurrent, incremental generation is a powerful paradigm for learning complex image distributions. Furthermore, the GAM metric provides a robust, objective way to rank adversarial models. Future work may involve incorporating attention mechanisms to further improve high-resolution generation and exploring more stable ways to inject noise at each time step to increase sample diversity.

Summary updated

Abstract

Gatys et al. (2015) showed that optimizing pixels to match features in a convolutional network with respect reference image features is a way to render images of high visual quality. We show that unrolling this gradient-based optimization yields a recurrent computation that creates images by incrementally adding onto a visual "canvas". We propose a recurrent generative model inspired by this view, and show that it can be trained using adversarial training to generate very good image samples. We also propose a way to quantitatively compare adversarial networks by having the generators and discriminators of these networks compete against each other.
BibTeX
@misc{im2016generating,
  author = {Daniel Jiwoong Im and Chris Dongjoo Kim and Hui Jiang and Roland Memisevic},
  title = {{Generating images with recurrent adversarial networks}},
  year = {2016},
  eprint = {1602.05110},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1602.05110},
}
Figure