[论文解读] Revisiting Discriminator in GAN Compression: A Generator-discriminator Cooperative Compression Scheme
本文提出GCC,一种生成器-判别器协同压缩方案,通过联合优化生成器与选择性激活判别器,在对抗训练过程中维持纳什均衡。通过引入一种新颖的在线协同蒸馏方法,利用来自教师生成器和判别器的中间特征,GCC在保持性能的同时将计算成本降低80%,并消除了图像翻译任务中的模式崩溃现象。
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.
研究动机与目标
- 为解决轻量级生成器与全容量判别器之间不平衡导致的GAN压缩中的模式崩溃问题。
- 重新审视判别器在GAN压缩中的作用,超越仅压缩生成器的策略。
- 通过协同设计生成器与判别器的压缩,维持对抗训练过程中的纳什均衡。
- 通过一种新颖的在线协同蒸馏方法,利用来自教师生成器和判别器的中间特征,提升压缩GAN的性能。
提出的方法
- 提出一种选择性激活判别器,根据局部容量与全局协调约束动态选择并激活卷积通道。
- 提出一种生成器-判别器协同压缩方案(GCC),其中剪枝后的生成器与选择性判别器与原始模型联合训练。
- 采用一种新颖的在线协同蒸馏方法,在训练过程中同时将来自教师生成器和判别器的中间特征蒸馏至轻量级生成器。
- 采用两阶段训练流程:首先,原始生成器与判别器从头开始训练作为教师模型;其次,通过蒸馏对剪枝后的生成器与选择性判别器进行微调。
- 在蒸馏过程中应用MSE损失与纹理损失,以增强特征对齐与图像质量。
- 使用可微分门控机制优化选择性激活机制,基于输入依赖的重要性平衡通道激活。
实验结果
研究问题
- RQ1一种联合优化生成器与判别器的协同压缩策略,能否在GAN压缩过程中防止模式崩溃?
- RQ2判别器中的选择性激活机制如何与轻量级生成器协同维持纳什均衡?
- RQ3在在线蒸馏中使用来自生成器与判别器的中间特征,对压缩GAN性能有何影响?
- RQ4在线协同蒸馏与传统两阶段蒸馏相比,在性能与效率方面表现如何?
- RQ5当生成器被压缩时,判别器的最佳通道配置是什么?该配置能否自动确定?
主要发现
- GCC在图像翻译任务中将计算成本降低80%,同时保持相当的性能,CPU与GPU上的推理速度分别提升4.07倍与1.18倍。
- 选择性激活判别器有效平衡了对抗训练,缩小了生成器与判别器之间的损失差距,防止了模式崩溃。
- 结合生成器与判别器特征的在线协同蒸馏相比仅使用单一教师网络的蒸馏,mIOU提升3.71分。
- 消融实验证实,在蒸馏中结合MSE与纹理损失可获得最佳性能,且在线蒸馏优于离线方法。
- GCC在多种基于GAN的任务中达到SOTA性能,涵盖SAGAN、Pix2Pix、CycleGAN与SRGAN,在CelebA、Cityscapes以及BSD100/Urban100等多样化数据集上表现优异。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。