All models

lightweight_gan_simple_decoder

A small convolutional decoder that reconstructs real images from GAN discriminator feature maps.

Diffusion and generative · 20 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 (29 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

Parameters
4.5M
Operations
20
Framework
PyTorch
Recurrent
No
Published
ICLR 2021
Cited by
176 (as of 19 October 2026)
Authors
Bingchen Liu, Yizhe Zhu, Kunpeng Song, Ahmed Elgammal
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
m5626
Graph hash
654c1e7ac5bda2ea1bddc7bdaea82a94e0507599fb3b29f963145d334de56859
Skeleton hash
f3acdcd7162ba8b1caa11ebaadb72831039c36909012052bd460bb7efc8fe1c6
Architecture hash
4378c6a5f3902de83022f9df8045145c122b9718729e162c6da964130b61e6b5
Diagram SHA-256
dc19705a2357333226c0e5d2979ef8a901d12aae5ebfc12e78f24c47b1075dde
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

This model is the simple decoder of the lightweight GAN, a small network that turns a feature map from the discriminator back into an image. The paper it comes from studies few-shot image synthesis with a GAN at minimum computing cost. Its two techniques are a skip-layer channel-wise excitation module and a self-supervised discriminator trained as a feature-encoder.

The decoder belongs to the second technique, in which auto-encoding training forces the discriminator D to extract image features from which the decoders can give good reconstructions. The decoders are optimized together with D on a simple reconstruction loss that is trained only on real samples. In the paper each decoder has only four conv-layers and produces images at 128×128 resolution.

The generator takes no part in this step: the auto-encoding training is only for regularizing D. Of the self-supervision strategies the authors tested for D, they report that auto-encoding works the best. The lightweight-gan PyTorch package describes the paper's main contributions as a skip-layer excitation in the generator paired with autoencoding self-supervised learning in the discriminator.

Key idea. The paper regularizes a GAN discriminator by training it as a feature-encoder with small decoders that reconstruct real images from its feature maps.

  • lightweight GAN
  • SimpleDecoder
  • FastGAN discriminator decoder
  • simple decoder
  • self-supervised discriminator
  • auto-encoding discriminator
  • discriminator decoder
  • few-shot image synthesis
  • reconstruction decoder

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

Cite the paper

@misc{liu2021fasterstabilizedgantraining,
      title={Towards Faster and Stabilized GAN Training for High-fidelity Few-shot Image Synthesis}, 
      author={Bingchen Liu and Yizhe Zhu and Kunpeng Song and Ahmed Elgammal},
      year={2021},
      eprint={2101.04775},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2101.04775}, 
}