Exploring Content Relationships for Distilling Efficient GANs

Lizhou You, Mingbao Lin, Tie Hu, Fei Chao, Rongrong JiarXiv 2022 · DOI

Introduction

Generative Adversarial Networks (GANs) have set new standards in image synthesis and translation, enabling high-fidelity transformations like turning horses into zebras or changing seasons in landscapes. However, their high computational cost and large parameter counts make them difficult to deploy on mobile and embedded devices. Knowledge Distillation (KD) is a common strategy for model compression, but standard approaches often fail to capture the fine-grained structural details essential for high-quality image generation.

This paper introduces Content Relationship Distillation (CRD), a method that focuses on the internal geometry of images. By teaching a student model to understand the relationships between different parts of an image—rather than just matching final pixels—the researchers achieved significant compression with improved visual quality.

Methodology

The CRD framework is built on two primary pillars: multi-granularity relationship modeling and an online teacher discriminator.

Multi-Granularity Content Relationships

To capture both global structure and local texture, the teacher's output is sliced into three granularities:

  1. Row and Column Strips: These capture long-range dependencies and global structural information across the image.
  2. Image Patches: These focus on local details and fine-grained textures.

Instead of direct point-to-point feature matching, CRD models the relationships between these slices using pairwise distances and triplet-wise angles. This ensures the student learns the underlying spatial logic and geometric consistency of the teacher's generations. For example, the triplet-wise angle loss helps the student understand the relative orientation of features, which is crucial for maintaining correct perspective.

Overview of the CRD framework, illustrating the online teacher-student architecture and the use of multi-granularity content relationships (strips and patches) for distillation.

Online Teacher Discriminator

To maintain training stability, the authors use an "online" discriminator. In traditional distillation, a pre-trained discriminator can be "too strong" for a nascent student model, breaking the Nash equilibrium necessary for stable GAN training. The proposed online discriminator updates its weights when training with the teacher but remains frozen when training with the student. This prevents the discriminator from overwhelming the smaller model, preserving a fair adversarial balance.

Experiments and Results

The method was evaluated on benchmark tasks including horse2zebra, summer2winter, and edges2shoes.

Quantitative Analysis

CRD demonstrates superior performance across multiple efficiency and quality metrics:

  • Massive Compression: For CycleGAN, CRD achieved a 40.3x reduction in MACs (computational operations) and an 82.5x reduction in parameters.
  • Improved Fidelity: On the horse2zebra task, CRD achieved an FID of 46.61, a significant improvement over the previous state-of-the-art (OMGD, FID 51.92).
  • Efficiency in Paired Tasks: On Pix2Pix (edges2shoes), MACs were reduced by 15.3x while improving the FID score by nearly 10 points compared to the original uncompressed model.

Qualitative Analysis

Visual results confirm that CRD preserves high-frequency details and structural consistency better than competing methods. For instance, it avoids the "muddy" or brownish textures often seen in other compressed models, maintaining sharp black-and-white contrasts and realistic patterns in zebra stripes.

Qualitative comparison of CRD with state-of-the-art compression methods on the horse2zebra dataset, highlighting superior texture and structural fidelity.

Conclusion

Content Relationship Distillation offers a powerful new paradigm for GAN compression. By prioritizing internal structural relationships over raw pixel values, it enables the creation of highly efficient models that do not sacrifice the visual excellence of their larger counterparts. While minor issues like background color shift remain a challenge for future work, CRD represents a major step toward deploying high-performance generative AI on edge devices.

Reference: You, L., Lin, M., Hu, T., Chao, F., & Ji, R. (2022). Exploring Content Relationships for Distilling Efficient GANs. arXiv:2212.11091v1 [cs.CV].

Summary updated

BibTeX
@misc{you2022exploring,
  author = {Lizhou You and Mingbao Lin and Tie Hu and Fei Chao and Rongrong Ji},
  title = {{Exploring Content Relationships for Distilling Efficient GANs}},
  year = {2022},
  eprint = {2212.11091},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.11091},
}
Figure