Skip to main navigation Skip to search Skip to main content

Exploring Guided Sampling of Conditional GANs

  • Yifei Zhang
  • , Mengfei Xia
  • , Yujun Shen
  • , Jiapeng Zhu
  • , Ceyuan Yang
  • , Kecheng Zheng
  • , Lianghua Huang
  • , Yu Liu
  • , Fan Cheng*
  • *Corresponding author for this work
  • Shanghai Jiao Tong University
  • Tsinghua University
  • Ant Group
  • Hong Kong University of Science and Technology
  • Shanghai AI Laboratory
  • Alibaba Group Holding Ltd.

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

Abstract

Guided sampling serves as a widely used inference technique in diffusion models to trade off sample fidelity and diversity. In this work, we confirm that generative adversarial networks (GANs) can also benefit from guided sampling, not even requiring to pre-prepare a classifier (i.e., classifier guidance) or learn an unconditional counterpart (i.e., classifier-free guidance) as in diffusion models. Inspired by the organized latent space in GANs, we manage to estimate the data-condition joint distribution from a well-learned conditional generator simply through vector arithmetic. With such an easy implementation, our approach, termed GANdance, improves the FID score of a state-of-the-art GAN model pre-trained on ImageNet 64×64 from 8.87 to 6.06, barely increasing the inference time. We then propose a learning-based variant of our framework to better approximate the distribution of the entire dataset, further improving the FID score to 4.37. It is noteworthy that our sampling strategy sufficiently closes the gap between GANs and one-step diffusion models (i.e., with FID 4.02) under comparable model size. Code is available at https://github.com/zyf0619sjtu/GANdance.

Original languageEnglish
Title of host publicationComputer Vision – ECCV 2024 - 18th European Conference, Proceedings
EditorsAleš Leonardis, Elisa Ricci, Stefan Roth, Olga Russakovsky, Torsten Sattler, Gül Varol
PublisherSpringer Science and Business Media Deutschland GmbH
Pages36-53
Number of pages18
ISBN (Print)9783031733468
DOIs
StatePublished - 2025
Externally publishedYes
Event18th European Conference on Computer Vision, ECCV 2024 - Milan, Italy
Duration: 29 Sep 2024 → 4 Oct 2024

Publication series

NameLecture Notes in Computer Science
Volume15084 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference18th European Conference on Computer Vision, ECCV 2024
Country/TerritoryItaly
CityMilan
Period29/09/24 → 4/10/24

Keywords

  • Conditional generation
  • Generative adversarial networks
  • Guided sampling

Fingerprint

Dive into the research topics of 'Exploring Guided Sampling of Conditional GANs'. Together they form a unique fingerprint.

Cite this