Self-Distilling Generative Adversarial Networks

Antoni Nowinowski, Krzysztof KrawiecNeurIPS 2026

TL;DR

Training Generative Adversarial Networks (GANs) is famously unstable—like two players endlessly chasing each other in circles rather than settling on an optimal solution. While modern GANs secretly maintain a smoothed, "averaged" copy of the generator on the sidelines because it produces much better images at deployment, this paper asks a simple question: what happens if we bring that averaged model off the bench to coach the active network during training? Doing so acts like shock absorbers on a bumpy road, turning endless oscillatory loops into stable convergence and yielding cleaner, more realistic images in a fraction of the training steps.

What Problem Does This Paper Address?

GANs pit a Generator ($G$, creating fake data) against a Discriminator ($D$, spotting the fakes) in a minimax game. Because both networks constantly react to one another, standard gradient descent often fails to converge; instead, the parameters get trapped orbiting the optimal equilibrium in perpetual limit cycles.

To cope with the resulting visual artifacts, engineers long ago adopted a clever heuristic: maintaining an Exponential Moving Average (EMA) of the generator's weights ($G_{EMA}$). Because $G_{EMA}$ averages out wild parameter swings, it sits much closer to the equilibrium and produces vastly superior images. Yet, in nearly every state-of-the-art GAN, $G_{EMA}$ is completely passive—it sits on the sidelines during training and is only used at the very end for inference. Meanwhile, the active generator $G$ continues stumbling blindly around the loss landscape without benefiting from its wiser, averaged shadow.

Methods

The authors introduce Self-Distilled GAN (SD-GAN), turning passive weight averaging into active student-teacher self-distillation.

Figure 1: Overview of the SD-GAN framework. The training is guided by both the conventional GAN loss and the self-distillation loss. Dotted lines indicate gradient flow; gradients from the perceptual loss do not propagate through GEMA.

While maintaining $G_{EMA}$ via standard exponential moving average updates is standard practice, SD-GAN's novelty lies in feeding $G_{EMA}$'s knowledge back into the training loop:

  1. Both the active student ($G$) and the historical teacher ($G_{EMA}$) are fed the exact same random latent vector $z$.
  2. Both generated images undergo identical, random spatial augmentations.
  3. The images are compared using a self-distillation loss ($\mathcal{L}_{SD}$)—primarily LPIPS (a perceptual similarity metric using deep features), though simpler pixel-wise $L_1$ loss and discriminator-feature losses are also explored.
  4. Gradients from this weighted distillation loss flow only back into $G$, anchoring it to its historical trajectory, while $G_{EMA}$ continues updating strictly via EMA.

Datasets

No new benchmarks were introduced; the authors evaluated SD-GAN on standard, widely used image generation datasets:

  • FFHQ (human faces) at $128^2$, $256^2$, and $1024^2$ resolutions.
  • LSUN Church (outdoor church scenes) at $256^2$ resolution.
  • ImageNet (diverse object classes) at $64^2$ resolution.
  • CelebA-HQ (celebrity faces) at $256^2$ resolution, used specifically to test cross-dataset fine-tuning.

Key Insights and Ideas

  • Turning orbits into spirals: Using a simplified analytical 1D model (Dirac-GAN), the authors mathematically prove local asymptotic convergence. Standard GANs orbit the Nash equilibrium endlessly, and passive EMA merely shrinks that orbit. Adding self-distillation introduces a mathematical damping force that collapses the circular orbit into a contracting spiral, pulling both networks straight to the exact equilibrium.
Figure 2: Parameter trajectories of the active generator (θ), EMA generator (θEMA) and discriminator (ψ) in the Dirac-GAN. (a) Standard GAN forms cycles orbiting the Nash equilibrium. (b) Self- distillation dampens these cycles into a contracting spiral. The arrows visualize the gradient vector field (b) for the final θEMA.
  • Complementary division of labor: Visualizing what each loss cares about reveals a neat synergy. The discriminator ($D$) pushes for sharp, photorealistic textures, whereas the EMA teacher ($\mathcal{L}_{SD}$) penalizes structural chaos, complex background hallucinations, and high-frequency artifacts, enforcing clean global compositions.
  • Temporal identity preservation: If you track a single latent vector across training checkpoints in a standard GAN, the generated face or building morphs wildly into completely different identities. With SD-GAN, the generated subject stays remarkably consistent throughout training.
  • Zero-external-network distillation: Worried that using an ImageNet-pretrained LPIPS network leaks external features into your GAN? The authors show you can compute perceptual distance using the discriminator's own intermediate layers ($\text{SD}_{disc}$), matching LPIPS image quality without any outside models.

Key Results

Evaluated across four architectures (StyleGAN2-ADA, ProjectedGAN, StyleNAT, and StyleGAN-XL) using Fréchet Inception Distance (FID, lower is better) and random-FID (rFID, which uses an untrained network to check for ImageNet bias):

Figure 3: FID scores (log scale) during training on the FFHQ and LSUN Church datasets across three baseline architectures. Following [23], we allowed StyleNAT to learn much longer than the remaining architectures. Horizontal dashed lines indicate the best FID score.
  • Better quality, much faster: On FFHQ ($256^2$), ProjectedGAN+SD drops FID from 3.90 to 3.15 (and down to 2.74 with light hyperparameter tuning), reaching the baseline's best score in just ~32% of the training steps (~39% on LSUN Church).
  • Massive rFID improvements: ProjectedGAN's rFID on FFHQ plummets from 79.3 to 14.1, proving the quality gains aren't just gaming the Inception network.
  • Effective fine-tuning: Fine-tuning an already-converged megapixel ($1024^2$) StyleGAN2 checkpoint with SD-GAN immediately pushes FID lower, whereas standard adversarial fine-tuning flatlines.
  • Architecture caveat: While convolutional GANs universally improved, the transformer-based StyleNAT saw a slight final FID regression (2.17 to 2.27) after learning-rate decay kicked in, despite strong early-stage gains.

Limitations and Future Work

  • Training overhead: Querying $G_{EMA}$ and running LPIPS isn't cheap—it increases training time by 51–59% and GPU memory by 26–61% on convolutional baselines. However, swapping LPIPS for a simple pixel-wise $L_1$ loss cuts that time overhead to 12–18% while keeping most of the quality boost, and using SD-GAN strictly for short fine-tuning runs dodges the cost almost entirely.
  • Theoretical vs. practical gap: The mathematical proof applies to linearized, continuous-time Dirac-GANs, leaving formal guarantees for stochastic, high-dimensional nonlinear networks open.
  • Future directions: Because modern image generation relies heavily on distilling slow diffusion models into fast, single-step GANs, the authors highlight diffusion-to-GAN distillation and fine-tuning as a prime target for SD-GAN.

Summary updated

Abstract

In modern GANs, maintaining an Exponential Moving Average (EMA) of the generator's weights is a standard practice, as such an averaged model consistently outperforms the actively trained generator. However, the EMA generator is used for final deployment only and does not influence the training process. To address this missed opportunity, we introduce Self-Distilled GAN (SD-GAN) that employs the EMA generator as a teacher to guide the active generator (student) via perceptual loss. We prove the local asymptotic stability of SD-GAN in the simplified continuous-time Dirac-GAN setting and show that it dampens the parasitic cycling behavior that plagues conventional GANs. Empirical evaluations across established architectures and datasets demonstrate that SD-GAN improves the final image quality on several metrics (FID and random-FID in particular), stabilizes the optimization trajectory and provides additional learning guidance that is not trivially correlated with the conventional adversarial loss. It also proves effective for fine-tuning pretrained GAN models.
BibTeX
@inproceedings{nowinowski2026self,
  author = {Antoni Nowinowski and Krzysztof Krawiec},
  title = {{Self-Distilling Generative Adversarial Networks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=dM03KyhkmA},
}
Figure