Manuscript Offprint

arXiv:2608.22272

GAN-Diff : Coupling Pretrained WGAN-GP Features with Conditional Diffusion U-Nets

Saif Ahmed, Ashadulla Hil Galib, S. M. Riaz Rahman Antu, Ahmed Faizul Haque Dhrubo, Souvik Pramanik, Mohammad Abdul Qayum, Mohsin Sajjad, Mohammad Ashrafuzzaman Khan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Saif Ahmed, Asadullah Hil Galib, S.M. Riaz Rahman Antu, Ahmed Faizul Haque Dhrubo*, Souvik Pramanik, Mohammad Abdul Qayum, Mohsin Sajjad, and Mohammad Ashrafuzzaman Khan

Department of Electrical and Computer Engineering

North South University, Dhaka, Bangladesh

{saif.ahmed03, asadullah.galib01, riaz.antu, ahmed.dhrubo, souvik.pramanik, mohammad.qayum, mohsin.sajjad, mohammad.khan02}@northsouth.edu

Abstract—Generative adversarial networks (GANs) can provide efficient image generation, while diffusion models offer high-quality image restoration but require iterative sampling. This paper presents a hybrid GAN-guided diffusion framework that uses a pretrained Wasserstein GAN with gradient penalty (WGAN-GP) as a feature prior for conditional diffusion-based image restoration. Intermediate features from the frozen WGAN-GP generator are incorporated into a diffusion U-Net through cross-attention and remain fixed during the DDIM sampling process. The framework is evaluated on two restoration tasks, Gaussian denoising and 2×super-resolution, using CelebA face images. During development, several sources of instability were identified and addressed, including adversarial learning-rate imbalance, inappropriate diffusion initialization, excessive corruption, and insufficient parameter averaging. The resulting framework consistently improves the quality of both degraded and low-resolution images. In particular, it improves denoising performance by 4.40 dB in PSNR and super-resolution performance by 3.70 dB over their respective input baselines. These results demonstrate the potential of a frozen GAN feature prior to guide diffusion models toward stable and effective image restoration.

Index Terms—generative adversarial networks, diffusion models, image restoration, image denoising, super-resolution, WGAN-GP, cross-attention

I. INTRODUCTION

Deep generative models have emerged as essential tools for image synthesis and recovery, and two types of such models, namely generative adversarial networks (GANs) and diffusion models, complement each other. In particular, GANs [1] generate images using only one forward pass and thus provide efficient inference. Objective functions based on Wasserstein distance with gradient penalty, for example WGAN-GP [2], also provide additional benefits in terms of stable training. On the other hand, GANs may still exhibit mode collapse, oscillations during training, and instability due to the interplay between the learning dynamics of the generator and the discriminator. Diffusion probabilistic models (DDPMs) [3], [4] serve as another method of image generation by training a model to reverse the noising process in a series of denoising steps. While diffusion models show high accuracy and high variety [5], their iterative nature of image generation requires much higher computational efforts than the one-time generation performed by GANs. Diffusion models may experience instability with poor initialization and restricted settings, whereas GANs are highly capable of modeling structural and semantic manifolds. Integrating the two approaches capitalizes on the strengths of both by allowing a pretrained GAN to serve as a supplementary feature-level prior for the diffusion model's optimization iterations without compromising its restoration procedure. With this in mind, this paper suggests a GAN-aided diffusion model for Gaussian denoising and 2×2\times super-resolution using a WGAN-GP generator that has been pretrained on CelebA faces and is subsequently frozen before being plugged into a conditional diffusion U-Net via cross-attention to provide facial structure guidance while maintaining the denoising ability. This final architecture was empirically developed based on multiple iterations—first, deciding which architecture of GAN is to be used out of DCGAN, WGAN-GP, and StyleGAN-lite (which resulted in choosing WGAN-GP for stability and quality reasons) and then resolving issues arising in training and inference due to generator-critic learning rates, DDIM initialization, corruption strength, and exponential moving average smoothing.

Figure

The main goal of this work is to examine whether a pre-trained WGAN-GP provides an adequate feature-level prior for conditional diffusion-based image restoration through the design of a hybrid approach in which intermediate spatial features of the frozen GAN generator steer the diffusion U-Net via cross-attention. The second goal is to apply this architec-ture to the tasks of Gaussian image denoising and 2×2\times super-resolution as two distinct low-level vision problems. Moreover, it is necessary to uncover and mitigate pipeline instabilities associated with the proper tuning of the adversarial learning rate ratio, diffusion initialization, corruption normalization, and exponential moving averages.

This paper proposes a novel GAN-prior guided conditional diffusion network, in which a frozen WGAN-GP generator generates the intermediate spatial features before the diffusion U-Net through cross-attention, calculated once for each sampling chain and fixed during the DDIM sampling process. For the stability of the model, this paper gives a diagnosis-driven solution to the following problems: the imbalance between the learning rate of generator and critic, DDIM initialization problem, excessive corruption intensity, and lack of EMA smoothing. We evaluate the effectiveness of our learned GAN-prior for image restoration on Gaussian denoising and 2×2\times super-resolution tasks on the CelebA dataset.

References (19)

  • Generative adversarial nets
  • Improved training of Wasserstein GANs
  • Denoising diffusion probabilistic models
  • Deep unsupervised learning using nonequilibrium thermodynamics
  • Diffusion models beat GANs on image synthesis
  • Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks
  • A style-based generator architecture for generative adversarial networks
  • Denoising diffusion implicit models
  • Improved denoising diffusion probabilistic models
  • Image super-resolution via iterative refinement
  • Palette: Image-to-image diffusion models
  • SDEdit: Guided image synthesis and editing with stochastic differential equations
  • Tackling the generative learning trilemma with denoising diffusion GANs
  • Spectral normalization for generative adversarial networks
  • The unusual effectiveness of averaging in GAN training
  • FiLM: Visual reasoning with a general conditioning layer
  • Image quality assessment: From error visibility to structural similarity
  • The unreasonable effectiveness of deep features as a perceptual metric
  • GANs trained by a two time-scale update rule converge to a local Nash equilibrium