Wavelet Knowledge Distillation: Towards Efficient Image-to-Image Translation

Linfeng Zhang, Xin Chen, Xiaobing Tu, Pengfei Wan, Ning Xu, Kaisheng Ma

Abstract

Generative Adversarial Networks (GANs) are computationally intensive, hindering their deployment on mobile and edge devices. This paper introduces Wavelet Knowledge Distillation (WKD), a frequency-aware compression technique for Image-to-Image (I2I) translation. By leveraging Discrete Wavelet Transformation (DWT), WKD focuses the distillation process on high-frequency details—textures and edges—where small "student" models typically underperform. Experimental results demonstrate that WKD can achieve up to 7x parameter compression and 7x inference acceleration with minimal loss in image quality, outperforming existing distillation methods across multiple benchmarks.

Introduction

Image-to-image (I2I) translation tasks, such as converting sketches to photos or mapping semantic labels to urban scenes, are dominated by Generative Adversarial Networks (GANs). Despite their success, state-of-the-art GANs are characterized by massive parameter counts and high computational costs. While Knowledge Distillation (KD) is a standard approach for model compression, applying it to GANs is notoriously difficult. Traditional pixel-wise distillation often results in a loss of fine-grained detail, as the student model struggles to replicate the complex outputs of the teacher.

The Frequency Gap in GAN Compression

The authors identify a critical insight: the performance gap between large and small GANs is not uniform across the image. Small "student" models are generally capable of capturing the low-frequency global structure of an image. However, they fail significantly when it comes to high-frequency information, such as intricate textures and sharp edges.

Standard KD methods typically treat all pixels equally. This overwhelms the student model, forcing it to spend its limited capacity on global structures it could already learn through standard adversarial training. This observation led to the development of a frequency-aware distillation strategy.

Methodology: Wavelet Knowledge Distillation

Discrete Wavelet Transformation (DWT)

To isolate the specific areas where the student model fails, the researchers employ Discrete Wavelet Transformation (DWT). DWT decomposes the generated images from both the teacher and student into four distinct frequency bands:

  • Low-Low (LL): Represents the global structure and coarse features.
  • Low-High (LH), High-Low (HL), and High-High (HH): Represent horizontal, vertical, and diagonal high-frequency details.

Targeted High-Frequency Distillation

Instead of distilling the entire image, WKD focuses exclusively on the high-frequency bands (LH, HL, and HH). By forcing the student to mimic the teacher's high-frequency output, the distillation loss provides a much stronger and more specific signal for the "hard" parts of the image. The student is left to learn the low-frequency components through the standard GAN objective, optimizing its limited parameters for maximum detail retention.

Maintaining Adversarial Balance

A significant contribution of this work is the discovery that generator compression cannot happen in a vacuum. The authors found that if the Generator is compressed while the Discriminator remains large and powerful, the Discriminator easily "wins" the adversarial game, preventing the student Generator from learning effectively. To maintain a productive competitive environment, the authors propose compressing the Discriminator in tandem with the Generator.

Experimental Evaluation

The WKD method was evaluated across several rigorous I2I benchmarks, including:

  • Paired Tasks: Edges→Shoes and Cityscapes (using Pix2Pix and Pix2PixHD).
  • Unpaired Tasks: Horse→Zebra and Zebra→Horse (using CycleGAN).
  • Qualitative Tasks: Winter↔Summer, Photo→Monet, and others.

Key Performance Metrics

The results highlight a significant leap in efficiency without sacrificing visual fidelity:

  • Efficiency: On the CycleGAN architecture, WKD achieved 7.08× parameter compression and 6.80× inference acceleration.
  • Quality: On the Horse→Zebra benchmark, the WKD-trained student achieved an FID score of 61.65, remarkably close to the teacher's score of 61.34. In contrast, a student trained with standard KD only achieved an FID of 70.54.
  • Robustness: WKD consistently outperformed other state-of-the-art distillation baselines, proving that frequency-aware signals are superior for generative tasks.

Conclusion

Wavelet Knowledge Distillation provides a robust framework for deploying high-quality GANs on edge devices. By recognizing that the primary weakness of small generative models lies in high-frequency detail, WKD offers a targeted solution that maximizes the efficiency of the student model. Furthermore, the emphasis on maintaining adversarial balance between the generator and discriminator provides a new blueprint for future research in GAN compression and architecture search.

Summary updated

BibTeX
@inproceedings{zhang2022wavelet,
  author = {Linfeng Zhang and Xin Chen and Xiaobing Tu and Pengfei Wan and Ning Xu and Kaisheng Ma},
  title = {{Wavelet Knowledge Distillation: Towards Efficient Image-to-Image Translation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
}
Figure