Skip to main content
QUICK REVIEW

[Paper Review] GANS for Sequences of Discrete Elements with the Gumbel-softmax Distribution

Matt J. Kusner, José Miguel Hernández-Lobato|arXiv (Cornell University)|Nov 12, 2016
Generative Adversarial Networks and Image SynthesisComputer Science11 references207 citations
TL;DR

The paper proposes GANs with Gumbel-softmax outputs to generate sequences of discrete tokens using LSTMs, enabling differentiable training for discrete sequence data. It demonstrates learning a CFG-generated text task and analyzes training dynamics with temperature annealing.

ABSTRACT

Generative Adversarial Networks (GAN) have limitations when the goal is to generate sequences of discrete elements. The reason for this is that samples from a distribution on discrete objects such as the multinomial are not differentiable with respect to the distribution parameters. This problem can be avoided by using the Gumbel-softmax distribution, which is a continuous approximation to a multinomial distribution parameterized in terms of the softmax function. In this work, we evaluate the performance of GANs based on recurrent neural networks with Gumbel-softmax output distributions in the task of generating sequences of discrete elements.

Motivation & Objective

  • Motivate Generative Adversarial Networks for generating discrete sequences where backpropagation is not straightforward.
  • Introduce the Gumbel-softmax distribution to obtain differentiable samples from discrete token spaces.
  • Build and train an LSTM-based GAN to generate discrete sequences such as text tokens.
  • Evaluate the approach on a CFG-generated sequence task and analyze training dynamics and hyperparameters.

Proposed method

  • Use Gumbel-softmax (equation 4) to create differentiable samples from a discrete output distribution.
  • Represent generator and discriminator as LSTMs with trainable parameters to model sequences.
  • Train GANs via adversarial objective by alternating updates to G and D as in Algorithm 1.
  • Anneal the Gumbel-softmax temperature tau from 5 to 1 during training to transition from soft to harder samples.
  • Provide a controlled CFG-based sequence generation task (maximum length 12; 5000 samples) for evaluation.
  • Apply ADAM optimization with fixed learning rate 0.001 and mini-batch size 200.

Experimental results

Research questions

  • RQ1Can Gumbel-softmax enable differentiable training of GANs on sequences of discrete elements?
  • RQ2How does temperature annealing affect the quality and learning dynamics of discrete-sequence GANs?
  • RQ3What is the ability of GANS with Gumbel-softmax to learn a CFG-generated discrete sequence task?
  • RQ4How do generator and discriminator interact during training when both are LSTMs on discrete data?

Key findings

  • GANs with Gumbel-softmax can generate discrete sequences that resemble training data patterns, such as alternating x sequences.
  • Training on a CFG-based discrete sequence task with 5000 samples shows the approach learns to generate realistic sequences (e.g., x+x−x/x and x−x*x*x*x).
  • Annealing the Gumbel-softmax temperature from 5 to 1 during training improves differentiability and model performance over time.
  • Increasing generated sample size to 1000 during training can influence optimization dynamics and results.
  • The method is demonstrated with 20,000 mini-batch iterations and ADAM optimization, showing promising proof-of-concept results for discrete sequence generation.
  • The authors note potential improvements via alternative GAN training approaches like variational divergence minimization or density ratio estimation.

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.