Skip to main content
QUICK REVIEW

[Paper Review] Training Generative Adversarial Networks with Binary Neurons by End-to-end Backpropagation

Hao‐Wen Dong, Yi‐Hsuan Yang|arXiv (Cornell University)|Oct 10, 2018
Generative Adversarial Networks and Image SynthesisComputer Science6 references8 citations
TL;DR

This paper proposes BinaryGAN, a generative adversarial network that uses binary neurons at the generator's output layer to directly generate binary-valued outputs. By employing sigmoid-adjusted straight-through gradient estimators, the model enables end-to-end backpropagation, demonstrating that GANs can be trained with discrete activations while maintaining performance on binarized MNIST digits.

ABSTRACT

We propose the BinaryGAN, a novel generative adversarial network (GAN) that uses binary neurons at the output layer of the generator. We employ the sigmoid-adjusted straight-through estimators to estimate the gradients for the binary neurons and train the whole network by end-to-end backpropogation. The proposed model is able to directly generate binary-valued predictions at test time. We implement such a model to generate binarized MNIST digits and experimentally compare the performance for different types of binary neurons, GAN objectives and network architectures. Although the results are still preliminary, we show that it is possible to train a GAN that has binary neurons and that the use of gradient estimators can be a promising direction for modeling discrete distributions with GANs. For reproducibility, the source code is available at https://github.com/salu133445/binarygan .

Motivation & Objective

  • To enable end-to-end training of GANs with binary neurons in the generator, avoiding post-processing steps.
  • To investigate whether gradient estimators can effectively optimize discrete distributions in GANs.
  • To compare different binary neuron types (deterministic vs. stochastic), GAN objectives (GAN, WGAN, WGAN-GP), and architectures (MLP vs. CNN) for discrete generation.
  • To evaluate the feasibility of generating binarized data directly from a GAN without continuous relaxations or two-stage training.

Proposed method

  • Uses binary neurons at the generator’s output layer to produce discrete, binary-valued predictions at test time.
  • Employs sigmoid-adjusted straight-through estimators to approximate gradients through the non-differentiable binarization operation during backpropagation.
  • Trains the full model end-to-end using standard backpropagation with gradient estimators for discrete outputs.
  • Compares three GAN objectives: standard GAN, WGAN (with weight clipping), and WGAN-GP (with gradient penalty) for training stability and sample quality.
  • Evaluates both multilayer perceptrons (MLPs) and convolutional neural networks (CNNs) as generator and discriminator architectures.
  • Applies two binarization strategies: hard thresholding at 0.5 and stochastic Bernoulli sampling to the generator’s raw outputs.

Experimental results

Research questions

  • RQ1Can a GAN with binary neurons in the generator be trained end-to-end using gradient estimators without post-processing?
  • RQ2How do different GAN objectives (GAN, WGAN, WGAN-GP) affect the quality and stability of generated binarized digits?
  • RQ3What is the impact of using deterministic vs. stochastic binary neurons on the generated sample diversity and fidelity?
  • RQ4How do MLP and CNN architectures compare in generating high-quality binarized MNIST digits with binary neurons?
  • RQ5Does including the binarization operation in the forward pass and its gradient estimation during training improve model performance?

Key findings

  • The proposed BinaryGAN successfully generates binarized MNIST digits directly at inference time without post-processing, achieving visually plausible samples.
  • The WGAN-GP objective outperforms both standard GAN and WGAN (with weight clipping), producing more diverse and higher-quality samples with less mode collapse.
  • CNN-based architectures generate sharper and more structured digits with fewer artifacts compared to MLPs, despite having more parameters.
  • Binarization via hard thresholding (0.5) produces more consistent and visually coherent digits than stochastic Bernoulli sampling.
  • The use of gradient estimators enables stable training of the binary generator, confirming their viability for discrete distribution modeling in GANs.
  • The model demonstrates that end-to-end training with binary neurons is feasible and effective for discrete data generation, especially when combined with WGAN-GP and CNNs.

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.