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压缩工作大多只侧重于如何压缩发电机,而没有考虑到歧视者。在这项工作中,我们重新审视GAN压缩中的歧视者的作用,并为GAN压缩设计了一个新型的发电机-差异者合作压缩计划,称为GCC。在海合会中,有选择的激活歧视者根据当地能力限制和全球协调限制自动选择和激活革命频道,这有助于在对抗性训练期间保持轻量级发电机与轻度发电机之间的纳什平衡,避免模式崩溃。原始的生成者和歧视者也从零开始优化,作为教师模式,逐步完善经操纵的发电机和选择性激活歧视者。一个新的在线合作蒸馏计划旨在充分利用教师发电机和歧视问题的中间特征,以进一步提升轻度发电机的性能。在GAN-J的生成工作中,对各种轻量级发电机进行广泛的实验,在对GAS-C的模型进行可比较性计算时,将GES的效能和常规化。