Skip to main content
QUICK REVIEW

[Paper Review] GAN Slimming: All-in-One GAN Compression by A Unified Optimization Framework

Haotao Wang, Shupeng Gui|arXiv (Cornell University)|Aug 25, 2020
Generative Adversarial Networks and Image SynthesisComputer Science65 references8 citations
TL;DR

This paper proposes GAN Slimming (GS), the first unified optimization framework for end-to-end compression of generative adversarial networks (GANs) by jointly optimizing model distillation, channel pruning, and quantization within a single minimax objective. It achieves up to 47× compression of CartoonGAN with minimal quality degradation, outperforming state-of-the-art methods that use isolated compression techniques.

ABSTRACT

Generative adversarial networks (GANs) have gained increasing popularity in various computer vision applications, and recently start to be deployed to resource-constrained mobile devices. Similar to other deep models, state-of-the-art GANs suffer from high parameter complexities. That has recently motivated the exploration of compressing GANs (usually generators). Compared to the vast literature and prevailing success in compressing deep classifiers, the study of GAN compression remains in its infancy, so far leveraging individual compression techniques instead of more sophisticated combinations. We observe that due to the notorious instability of training GANs, heuristically stacking different compression techniques will result in unsatisfactory results. To this end, we propose the first unified optimization framework combining multiple compression means for GAN compression, dubbed GAN Slimming (GS). GS seamlessly integrates three mainstream compression techniques: model distillation, channel pruning and quantization, together with the GAN minimax objective, into one unified optimization form, that can be efficiently optimized from end to end. Without bells and whistles, GS largely outperforms existing options in compressing image-to-image translation GANs. Specifically, we apply GS to compress CartoonGAN, a state-of-the-art style transfer network, by up to 47 times, with minimal visual quality degradation. Codes and pre-trained models can be found at https://github.com/TAMU-VITA/GAN-Slimming.

Motivation & Objective

  • To address the challenge of deploying parameter-heavy GANs on resource-constrained mobile devices.
  • To overcome the instability of training GANs when combining multiple compression techniques, which often leads to performance collapse.
  • To develop a unified optimization framework that jointly optimizes multiple compression methods—distillation, pruning, and quantization—for GANs.
  • To demonstrate that joint optimization significantly outperforms heuristic stacking of individual compression techniques in GAN compression.
  • To enable practical deployment of high-quality GANs on mobile devices through efficient, end-to-end compression.

Proposed method

  • Integrates model distillation, channel pruning, and quantization into a single unified optimization objective that is jointly trained with the GAN minimax loss.
  • Uses a unified differentiable objective that enables end-to-end optimization of the student generator across all compression techniques.
  • Applies structured sparsity constraints for channel pruning and incorporates quantization-aware training to maintain performance during weight binarization.
  • Leverages knowledge distillation by training the student generator to mimic the feature maps and output distributions of the teacher network.
  • Employs a minimax training objective that preserves the adversarial training dynamics essential for GAN performance.
  • Uses perceptual loss as a supervisory signal in the distillation process to preserve high-level semantic content.

Experimental results

Research questions

  • RQ1Can multiple compression techniques be effectively combined in a single framework for GAN compression without destabilizing training?
  • RQ2Does a unified optimization approach significantly outperform sequential or heuristic stacking of compression methods in GANs?
  • RQ3How does the integration of the minimax objective affect the performance of compressed GANs?
  • RQ4To what extent can joint optimization of distillation, pruning, and quantization reduce FLOPs and model size while preserving image quality?
  • RQ5Is the proposed framework generalizable to non-cycle-consistent GANs, such as encoder-decoder style transfer networks?

Key findings

  • GAN Slimming achieves up to 47× compression in FLOPs and 235× reduction in model size for CartoonGAN, with minimal visual quality degradation.
  • GS-8 achieves a 47× FLOP reduction (from 56.46 GFLOPs to 1.20 GFLOPs) and 235× model size reduction (from 42.34 MB to 0.18 MB), maintaining high-quality cartoonization.
  • GS-32 achieves 42× FLOP compression (1.34 GFLOPs) with only 0.80 MB model size, outperforming the hand-crafted student network in GD by a significant margin in FID and visual quality.
  • Naively stacking compression techniques like distillation followed by pruning (D+CP) or post-quantization (postQ) leads to catastrophic performance degradation, validating the need for joint optimization.
  • Replacing perceptual loss with MSE loss in distillation results in poor image quality, confirming the importance of high-level semantic supervision.
  • Incorporating the minimax objective into the compression framework significantly improves results compared to methods like CEC, which do not use adversarial training.

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.