what’s a GAN?
A GAN (generative adversarial network) is an architecture where two neural networks compete: a generator producing synthetic data, a discriminator trying to tell real from fake.
GANs were introduced by Ian Goodfellow and collaborators in 2014 and dominated AI image generation for roughly the next seven years. the setup is a game: a generator network takes random noise and tries to produce images that look real; a discriminator network looks at images and tries to classify them as real (from the training set) or fake (from the generator). each network's loss feeds the other's improvement.
at training equilibrium, the generator produces images the discriminator can no longer reliably tell from real data. that adversarial pressure is what made GANs so good at narrow tasks like face generation. NVIDIA's StyleGAN family (2018-2021) produced the synthetic faces of thispersondoesnotexist.com and powered the first wave of consumer-facing deepfake apps.
diffusion models have displaced GANs for general-purpose image generation. GAN training is unstable and its output diversity is narrower than diffusion on the same dataset. face-swap deepfake video in the wild still runs on GAN-derived pipelines, and dedicated face-synthesis applications ship GAN backbones for their speed and identity-fidelity tradeoffs.
for detection: GAN outputs leave characteristic frequency-domain fingerprints from their upsampling layers. checkerboard artifacts, periodic spectral peaks, and noise-residual signatures all betray a GAN at the pixel level, often after compression and re-encoding. detectors trained on these signatures still catch modern face-swap content.
most in-the-wild deepfake face-swap video still uses GAN-based pipelines, even where state-of-the-art new generators are diffusion. a detection panel that drops GAN coverage misses that category.
questions
what is a GAN?
a GAN, or generative adversarial network, runs two neural networks against each other. a generator builds synthetic images from random noise, and a discriminator tries to separate real images from fake ones. each network’s mistakes train the other. at equilibrium the generator makes images the discriminator can no longer tell apart from real data.
are GANs still used or are they obsolete?
diffusion models have taken over general-purpose image generation, since GAN training is unstable and its output variety is narrower. GANs still matter in one corner. most face-swap deepfake video in circulation runs on GAN-derived pipelines, and face-synthesis apps keep GAN backbones for their speed and identity accuracy.
what’s the difference between a GAN and a diffusion model?
both produce synthetic images through different machinery. a GAN trains two networks in one competitive game, while a diffusion model learns to reverse a step-by-step noising process. diffusion gives more varied output and now dominates new general-purpose generators, though GANs stay common in face-swap work. the two leave different detection fingerprints, so a detector built for one can miss the other.
how can you detect GAN-generated images?
GAN outputs carry frequency-domain fingerprints from their upsampling layers, including checkerboard artifacts, periodic spectral peaks, and noise-residual signatures that often survive compression and re-encoding. detectors trained on these traces still catch modern face-swap content. a detection panel that drops GAN coverage misses a category that still circulates widely.
sources.
- 01Goodfellow et al., Generative Adversarial Networks (arXiv:1406.2661)The foundational 2014 paper that introduced the architecture.
- 02Karras et al., StyleGAN — A Style-Based Generator Architecture (arXiv:1812.04948)The face-generation result that powered thispersondoesnotexist.com.
- 03
- diffusion model →the architecture that displaced GANs for general image generation. different fingerprints, different detectors.
- deepfake →most face-swap deepfakes circulating today still use GAN-based pipelines.
- model attribution →GAN outputs leave a distinct frequency-domain signature that detectors fingerprint.