All models

pytorch_gan_dragan_generator

Gradient penalty around real samples that curbs GAN mode collapse; the generator is what is traced here.

Diffusion and generative · 4 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 (6 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
114.1K
Operations
4
Framework
PyTorch
Recurrent
No
Published
2017
Cited by
822 (as of 22 November 2026)
Authors
Naveen Kodali, Jacob Abernethy, James Hays, Zsolt Kira
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
m8438
Graph hash
d03e024989324ef19feb244294a41c579075389d3169f97ffc608601a03ea235
Skeleton hash
e4f460821334b2948e89cb0d51e5c778d7fb7e64a85f722783428b9ff9f23fee
Architecture hash
6deec2714fa748c2069fbd1236567c58437b9c79b374453a10b0b66bc3e21110
Diagram SHA-256
a29b9c624d6529c830e30ef8cb70c76fd3cad923c9354e8dc6fca9798fc8c31c
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

DRAGAN is a gradient penalty scheme for training GANs rather than a new architecture. The name stands for Deep Regret Analytic Generative Adversarial Networks. The method is architecture-agnostic: the authors' first instruction is to pick your favourite architecture and objective for the game.

The paper reframes GAN training as regret minimization in a repeated game, rather than as steady minimization of a divergence between real and generated distributions. From that view, mode collapse is blamed on undesirable local equilibria of the non-convex game, which tend to show sharp discriminator gradients around some real data points. Unlike coupled penalties, the constraint is imposed only in local regions around real samples. The practical penalty perturbs real data points, which works as long as the perturbed points lie off the data manifold, as they do for images.

The authors report faster training, fewer mode collapses and better generators across a variety of architectures and objective functions. Their recipe: tune the hyperparameter c that sets the size of the local regions, with small values extracting more performance and larger ones giving more stability. Lambda is the usual regularization strength and k is set to 1.

Key idea. A local gradient penalty on the discriminator around real samples, motivated by a regret-minimization view of GAN training, that mitigates mode collapse.

  • DRAGAN
  • Deep Regret Analytic Generative Adversarial Networks
  • On Convergence and Stability of GANs
  • gradient penalty
  • GAN training stability
  • mode collapse
  • image generation
  • 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{kodali2017convergencestabilitygans,
      title={On Convergence and Stability of GANs}, 
      author={Naveen Kodali and Jacob Abernethy and James Hays and Zsolt Kira},
      year={2017},
      eprint={1705.07215},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/1705.07215}, 
}