All models

msg_gan_discriminator

The MSG-GAN discriminator, which judges images while receiving the generator's output at every resolution.

Diffusion and generative · 81 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 (37 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
MSG-GAN
Parameters
18.7M
Operations
81
Framework
PyTorch
Recurrent
No
Published
CVPR 2020
Cited by
263 (as of 22 October 2026)
Authors
Animesh Karnewar, Oliver Wang
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
m7509
Graph hash
206810799a9c0a86424a87e63674c3eaa770c0a997569f9d45427913ba1850d4
Skeleton hash
253079512790b744f25677ba1f2291b30c317b7e20ac3aa52798402f2516bed9
Architecture hash
d737aafd795b4a4d55637742264c52ac4e93fa48ef222e48a28d39be5ca82ccd
Diagram SHA-256
e9f461c800148728cd49ba45f9ec948bfc2dfc8feaaeb71d854aacba9e77fa1f
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 discriminator of MSG-GAN (Multi-Scale Gradient Generative Adversarial Network), a technique that lets gradients flow from the discriminator to the generator at multiple scales. The problem it addresses is training instability: the paper notes that gradients passed from the discriminator to the generator become uninformative when the real and generated distributions do not overlap enough.

Where an ordinary discriminator sees only the final image, this one also looks at the outputs of the generator's intermediate layers. At each scale the incoming image is concatenated with the activations arriving from the discriminator's main path of convolutional layers, and a combine function follows. The paper experimented with three variants of this combine function, built from simple channelwise concatenation and a 1x1 convolution. The paper also adds a MinBatchStdDev layer at the beginning of each block in the discriminator, which gives it batch statistics of the generated samples at each scale.

The authors present the technique as an alternative to progressive growing for high resolution image synthesis. They applied it to two base architectures, ProGANs and StyleGAN, and call the results MSG-ProGAN and MSG-StyleGAN.

Key idea. MSG-GAN connects the generator's intermediate outputs to matching layers of a single discriminator, so gradients reach the generator at every scale without progressive growing.

  • MSG-GAN
  • Multi-Scale Gradient GAN
  • BMSG-GAN
  • MSG-ProGAN
  • MSG-StyleGAN
  • GAN discriminator
  • multi-scale gradients
  • image synthesis
  • stable GAN training

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

Cite the paper

@misc{karnewar2020msgganmultiscalegradientsgenerative,
      title={MSG-GAN: Multi-Scale Gradients for Generative Adversarial Networks}, 
      author={Animesh Karnewar and Oliver Wang},
      year={2020},
      eprint={1903.06048},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1903.06048}, 
}