All models

pytorch_gan_ebgan_generator

EBGAN from PyTorch-GAN: a generator and an auto-encoder discriminator whose energy is reconstruction error.

Diffusion and generative · 12 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (17 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
ebgan
Parameters
738.4K
Operations
12
Framework
PyTorch
Recurrent
No
Published
2016
Cited by
1,135 (as of 29 November 2026)
Authors
Junbo Zhao, Michael Mathieu, Yann LeCun
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m8440
Graph hash
ade907684099f2babf7fe498113c350e29e360b87e20f5e850a10567760e02be
Skeleton hash
4d8600ed2a4f373dd4905e941fad2306ab9cd2600e3d833d8b2fc561c3f8f649
Architecture hash
b44d84df40021127a7076b82ee463b4ece3e520daa12c3c9f1e3dbb532ce1ea3
Diagram SHA-256
9e58f7701c22d7c0ad05f77bceb0cce56946c44b5034c060b83b31645675efff
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

EBGAN recasts the GAN discriminator as an energy function that attributes low energies to the regions near the data manifold and higher energies to other regions. Seen that way, the discriminator can take a wide variety of architectures and losses, not only a binary classifier with a logistic output. The instantiation the paper builds, and the one captured here, uses an auto-encoder as the discriminator with the energy being the reconstruction error.

Training uses a margin loss, and the authors prove that under a simple hinge loss the generator at convergence produces points that follow the data distribution. A 'repelling regularizer', a pulling-away term on the encoder representations, keeps the generator from producing samples clustered in only a few modes. The authors report more stable behavior than regular GANs during training. They also show a single-scale architecture generating ImageNet images at 256 by 256 pixels without a multiscale approach.

Both captured members come from the PyTorch-GAN collection, one the generator and one the auto-encoder discriminator, and its author warns that its architectures will not always mirror the ones proposed in the papers.

Key idea. An energy-based formulation of adversarial training in which the discriminator is an auto-encoder whose reconstruction error is the energy.

  • EBGAN
  • energy-based GAN
  • Energy-based Generative Adversarial Network
  • auto-encoder discriminator
  • reconstruction error energy
  • repelling regularizer
  • pulling-away term
  • GAN
  • PyTorch-GAN

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{zhao2017energybasedgenerativeadversarialnetwork,
      title={Energy-based Generative Adversarial Network}, 
      author={Junbo Zhao and Michael Mathieu and Yann LeCun},
      year={2017},
      eprint={1609.03126},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1609.03126}, 
}