arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2108.13996cs.AIcs.LG
收藏

生成对抗网络的有效推理的Quantization方法研究

Quantization of Generative Adversarial Networks for Efficient Inference: a Methodological Study

Higher School of Economics(高等经济学院);Skolkovo Institute of Science and Technology(斯科尔科沃科学技术学院);Samsung AI Center Moscow(三星莫斯科人工智能中心);Yandex;Samsung-HSE Laboratory(三星-高等经济学院实验室)

Pavel Andreev, Alexander Fritzler, Dmitry Vetrov

摘要:

生成对抗网络(GANs)对数字内容创作具有巨大的潜在影响,例如,逼真的数字化身、语义内容编辑以及语音和图像的质量增强。然而,现代GANs的性能与推理过程中执行的大量计算和高能耗结合在一起。这使得它们在边缘设备上的部署变得复杂,甚至不可能。这个问题可以通过量化来解决--量化是一种神经网络压缩技术,通过用低位整数计算代替浮点计算来促进硬件友好的推理。虽然量化对于判别模型来说已经很成熟,但现代量化技术在应用于GANs时的性能仍然不清楚。GANs生成的内容结构比判别模型更复杂,因此GANs的量化更具挑战性。为了解决这个问题,我们在三种不同的GAN架构上对最先进的量化技术进行了广泛的实验研究,即StyleGAN,Self-Attention GAN和CycleGAN。因此,我们发现了实用的方法,使我们能够成功地将这些模型用于4/8位权重和8位激活的推理,同时保持原始全精度模型的质量。

英文摘要:

Generative adversarial networks (GANs) have an enormous potential impact on digital content creation, e.g., photo-realistic digital avatars, semantic content editing, and quality enhancement of speech and images. However, the performance of modern GANs comes together with massive amounts of computations performed during the inference and high energy consumption. That complicates, or even makes impossible, their deployment on edge devices. The problem can be reduced with quantization -- a neural network compression technique that facilitates hardware-friendly inference by replacing floating-point computations with low-bit integer ones. While quantization is well established for discriminative models, the performance of modern quantization techniques in application to GANs remains unclear. GANs generate content of a more complex structure than discriminative models, and thus quantization of GANs is significantly more challenging. To tackle this problem, we perform an extensive experimental study of state-of-art quantization techniques on three diverse GAN architectures, namely StyleGAN, Self-Attention GAN, and CycleGAN. As a result, we discovered practical recipes that allowed us to successfully quantize these models for inference with 4/8-bit weights and 8-bit activations while preserving the quality of the original full-precision models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑