Skip to main content
QUICK REVIEW

[Paper Review] GAN Compression: Efficient Architectures for Interactive Conditional GANs

Li, Muyang, Lin, Ji|arXiv (Cornell University)|Mar 19, 2020
Generative Adversarial Networks and Image SynthesisComputer Science18 citations
TL;DR

This paper proposes GAN Compression, a general-purpose framework that reduces inference computation and model size in conditional GANs by combining knowledge distillation across intermediate features and neural architecture search with weight sharing. It achieves 9-29× computation reduction across Pix2pix, CycleGAN, GauGAN, and MUNIT without sacrificing image quality, enabling interactive deployment on edge devices.

ABSTRACT

Conditional Generative Adversarial Networks (cGANs) have enabled controllable image synthesis for many vision and graphics applications. However, recent cGANs are 1-2 orders of magnitude more compute-intensive than modern recognition CNNs. For example, GauGAN consumes 281G MACs per image, compared to 0.44G MACs for MobileNet-v3, making it difficult for interactive deployment. In this work, we propose a general-purpose compression framework for reducing the inference time and model size of the generator in cGANs. Directly applying existing compression methods yields poor performance due to the difficulty of GAN training and the differences in generator architectures. We address these challenges in two ways. First, to stabilize GAN training, we transfer knowledge of multiple intermediate representations of the original model to its compressed model and unify unpaired and paired learning. Second, instead of reusing existing CNN designs, our method finds efficient architectures via neural architecture search. To accelerate the search process, we decouple the model training and search via weight sharing. Experiments demonstrate the effectiveness of our method across different supervision settings, network architectures, and learning methods. Without losing image quality, we reduce the computation of CycleGAN by 21x, Pix2pix by 12x, MUNIT by 29x, and GauGAN by 9x, paving the way for interactive image synthesis.

Motivation & Objective

  • Address the challenge of high computational cost in conditional GANs, which limits their deployment on resource-constrained edge devices like mobile phones and VR headsets.
  • Overcome the instability of GAN training during compression, especially in unpaired settings, and the architectural differences that prevent reuse of existing CNN compression techniques.
  • Develop a general-purpose compression framework applicable to diverse conditional GAN architectures, supervision settings (paired/unpaired), and learning objectives.
  • Achieve significant reductions in MACs and model size while preserving high-fidelity image generation for interactive applications.

Proposed method

  • Apply knowledge distillation by transferring intermediate feature representations from a pre-trained teacher generator to a compressed student generator, stabilizing training and improving performance.
  • Transform unpaired learning into pseudo-paired learning by generating synthetic target images using the teacher model’s output, enabling more effective distillation in unpaired settings.
  • Use neural architecture search (NAS) with a once-for-all (OFA) training strategy to discover efficient generator architectures, where a single network contains all candidate channel configurations.
  • Decouple architecture search from training via weight sharing in the OFA framework, allowing fast evaluation of sub-network performance without retraining.
  • Integrate convolution decomposition (depthwise separable convolutions) to further reduce computation while maintaining performance.
  • Apply automated channel reduction and convolution decomposition to the search space to optimize the final compressed architecture.

Experimental results

Research questions

  • RQ1Can knowledge distillation across intermediate features stabilize training and improve performance when compressing conditional GANs?
  • RQ2Does transforming unpaired GAN training into pseudo-paired learning improve the quality of compressed models, especially for small architectures?
  • RQ3Can neural architecture search with weight sharing effectively discover efficient generator architectures that reduce MACs while preserving image fidelity?
  • RQ4How does the proposed method compare to existing distillation and compression baselines in terms of computation reduction and visual quality?
  • RQ5To what extent can the framework generalize across different conditional GAN models, architectures, and supervision settings (paired vs. unpaired)?

Key findings

  • The proposed GAN Compression method reduces inference computation by 21× for CycleGAN (from 56.8G to 2.67G MACs), 12× for Pix2pix (56.8G to 4.81G MACs), 29× for MUNIT (from 16.8G to 0.58G MACs), and 9× for GauGAN (281G to 31.7G MACs), with no loss in image quality.
  • The method achieves 5.4× computation reduction on GauGAN when applied to the COCO-Stuff dataset, demonstrating generalization beyond standard benchmarks.
  • By using pseudo-paired data generated from the teacher model, the method improves performance over naive unpaired training, especially for small models, reducing FID from 67.45 to 61.53.
  • The MobileNet-style architecture, created via convolution decomposition in ResBlocks, achieves a 50% reduction in computation cost compared to the original ResNet generator while maintaining or improving performance.
  • The intermediate feature distillation method outperforms output-only distillation and other baselines: on Cityscapes, it achieves 40.77 mIoU at 5.66G MACs, compared to 35.67 for output-only distillation and 36.69 for Yim et al. distillation.
  • The Fast GAN Compression variant reduces training time by 1.7–3.7× and search time by 3.5–12× compared to the original method, significantly improving efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.