Skip to main content
QUICK REVIEW

[Paper Review] Synthesizing Programs for Images using Reinforced Adversarial Learning

Yaroslav Ganin, Tejas Kulkarni|arXiv (Cornell University)|Apr 3, 2018
Generative Adversarial Networks and Image SynthesisComputer Science112 citations
TL;DR

SPIRAL trains an adversarially reinforced agent that generates visual programs for a graphics engine to render images, using a Wasserstein GAN discriminator as the reward to guide policy learning in an unsupervised, end-to-end setup.

ABSTRACT

Advances in deep generative networks have led to impressive results in recent years. Nevertheless, such models can often waste their capacity on the minutiae of datasets, presumably due to weak inductive biases in their decoders. This is where graphics engines may come in handy since they abstract away low-level details and represent images as high-level programs. Current methods that combine deep learning and renderers are limited by hand-crafted likelihood or distance functions, a need for large amounts of supervision, or difficulties in scaling their inference algorithms to richer datasets. To mitigate these issues, we present SPIRAL, an adversarially trained agent that generates a program which is executed by a graphics engine to interpret and sample images. The goal of this agent is to fool a discriminator network that distinguishes between real and rendered data, trained with a distributed reinforcement learning setup without any supervision. A surprising finding is that using the discriminator's output as a reward signal is the key to allow the agent to make meaningful progress at matching the desired output rendering. To the best of our knowledge, this is the first demonstration of an end-to-end, unsupervised and adversarial inverse graphics agent on challenging real world (MNIST, Omniglot, CelebA) and synthetic 3D datasets.

Motivation & Objective

  • Motivate scalable inverse graphics by learning structured visual representations without labeled program-image pairs.
  • Develop a policy that outputs graphics-program fragments executed by a renderer to produce images.
  • Leverage adversarial training to align generated renders with real images using reinforcement learning without supervision.
  • Demonstrate applicability across real-world and synthetic datasets to recover interpretable scene structure.

Proposed method

  • Use a black-box rendering simulator R that converts a sequence of program commands a into an image.
  • Model p_a with a recurrent policy network π to generate command sequences.
  • Adopt a Wasserstein GAN objective with a discriminator D to distinguish real from rendered images, providing a reward to the policy.
  • Train π via policy-gradient reinforcement learning (A2C) using the discriminator score as the final reward.
  • Implement distributed learning with actors producing trajectories, a policy learner updating π, and a discriminator learner updating D.

Experimental results

Research questions

  • RQ1Can an adversarially trained reinforcement learning agent discover interpretable visual programs that render realistic images without supervision?
  • RQ2Does using the discriminator’s output as a reward improve convergence and reconstruction quality over direct pixelwise optimization?
  • RQ3How well does the approach scale to real-world datasets (MNIST, Omniglot, CelebA) and a synthetic 3D scene dataset?
  • RQ4What are the effects of conditioning the model on target images or scenes for conditional program synthesis?

Key findings

  • The SPIRAL agent can generate interpretable strokes and scene descriptions that reconstruct or sample images across MNIST, Omniglot, CelebA, and MuJoCo-based 3D scenes.
  • Training with the discriminator-based reward speeds learning and yields lower final pixel-wise errors than direct L2 minimization in many cases.
  • Conditional generation can reconstruct target images, recover underlying stroke sequences, and parse complex scenes, albeit with varying difficulty across datasets.
  • Discriminator rewards enable learning in settings where L2 rewards fail to produce reasonable reconstructions (e.g., Omniglot and CelebA).
  • A distributed IMPALA-inspired setup with asynchronous actors and replay buffer supports scalable training for non-differentiable renderers.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.