All models

erik_ebgan

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

Diffusion and generative · 15 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 (23 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
1.1M
Operations
15
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
m4676
Graph hash
c4ae2d447f3d6efb4a5698e556fdcc40e89091ae30436bdf3b05b291cd827890
Skeleton hash
b5eebce797b8b446f8c640d472b278c2dadcb043199de3e6cd78e99227beb9a3
Architecture hash
1cf766b4cb00dff07b6c7bcbe78e398502e26b405facb1e39cb305ad5ccbe1fc
Diagram SHA-256
82d247823cf7447bc374db9bea9a8e0425c14abd84b04838de78e37417d5da0d
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}, 
}