[Paper Review] Revisiting Discriminator in GAN Compression: A Generator-discriminator Cooperative Compression Scheme
This paper proposes GCC, a generator-discriminator cooperative compression scheme for GANs that jointly optimizes the generator and a selective activation discriminator to maintain Nash equilibrium during adversarial training. By introducing a novel online collaborative distillation using intermediate features from both teacher generator and discriminator, GCC reduces computational costs by 80% while preserving performance and eliminating mode collapse in image translation tasks.
Recently, a series of algorithms have been explored for GAN compression, which aims to reduce tremendous computational overhead and memory usages when deploying GANs on resource-constrained edge devices. However, most of the existing GAN compression work only focuses on how to compress the generator, while fails to take the discriminator into account. In this work, we revisit the role of discriminator in GAN compression and design a novel generator-discriminator cooperative compression scheme for GAN compression, termed GCC. Within GCC, a selective activation discriminator automatically selects and activates convolutional channels according to a local capacity constraint and a global coordination constraint, which help maintain the Nash equilibrium with the lightweight generator during the adversarial training and avoid mode collapse. The original generator and discriminator are also optimized from scratch, to play as a teacher model to progressively refine the pruned generator and the selective activation discriminator. A novel online collaborative distillation scheme is designed to take full advantage of the intermediate feature of the teacher generator and discriminator to further boost the performance of the lightweight generator. Extensive experiments on various GAN-based generation tasks demonstrate the effectiveness and generalization of GCC. Among them, GCC contributes to reducing 80% computational costs while maintains comparable performance in image translation tasks. Our code and models are available at https://github.com/SJLeo/GCC.
Motivation & Objective
- To address the issue of mode collapse in GAN compression caused by imbalance between lightweight generators and full-capacity discriminators.
- To revisit the role of the discriminator in GAN compression, moving beyond generator-only compression strategies.
- To maintain Nash equilibrium during adversarial training by co-designing generator and discriminator compression.
- To improve performance of compressed GANs through a novel online collaborative distillation that leverages intermediate features from both teacher generator and discriminator.
Proposed method
- Proposes a selective activation discriminator that dynamically selects and activates convolutional channels based on local capacity and global coordination constraints.
- Introduces a generator-discriminator cooperative compression scheme (GCC) where both the pruned generator and selective discriminator are trained jointly with the original models.
- Employs a novel online collaborative distillation that simultaneously distills intermediate features from both the teacher generator and discriminator to the lightweight generator during training.
- Uses a two-stage training process: first, the original generator and discriminator are trained from scratch as teachers; second, the pruned generator and selective discriminator are refined via distillation.
- Applies MSE and texture losses in the distillation process to enhance feature alignment and image quality.
- Optimizes the selective activation mechanism using a differentiable gating mechanism that balances channel activation based on input-dependent importance.
Experimental results
Research questions
- RQ1Can a cooperative compression strategy that jointly optimizes generator and discriminator prevent mode collapse during GAN compression?
- RQ2How does the selective activation mechanism in the discriminator maintain Nash equilibrium with a lightweight generator?
- RQ3What is the impact of using intermediate features from both generator and discriminator in online distillation on compressed GAN performance?
- RQ4How does online collaborative distillation compare to traditional two-stage distillation in terms of performance and efficiency?
- RQ5What is the optimal channel configuration for the discriminator when the generator is compressed, and can it be automatically determined?
Key findings
- GCC reduces computational costs by 80% while maintaining comparable performance in image translation tasks, achieving 4.07× and 1.18× inference speedup on CPU and GPU, respectively.
- The selective activation discriminator effectively balances the adversarial training, reducing the loss gap between generator and discriminator and preventing mode collapse.
- Online collaborative distillation with both generator and discriminator features improves mIOU by 3.71 points compared to distillation using only one teacher network.
- The ablation study confirms that combining MSE and texture losses in distillation yields the best performance, with online distillation outperforming offline counterparts.
- GCC achieves state-of-the-art performance on multiple GAN-based tasks, including SAGAN, Pix2Pix, CycleGAN, and SRGAN, across diverse datasets like CelebA, Cityscapes, and BSD100/Urban100.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.