Knowledge Distillation with Multi-granularity Mixture of Priors for Image Super-Resolution

Simiao Li, Yun Zhang, Wei Li, Hanting Chen, Wenjia Wang, Bingyi Jing, Shaohui Lin, Jie Hu

TL;DR

MiPKD (Multi-granularity Mixture of Priors Knowledge Distillation) is a novel framework designed to make image super-resolution models smaller and faster without sacrificing image quality. By stochastically mixing teacher and student representations at both the feature and network-block levels, MiPKD overcomes the rigidity of previous distillation methods. It functions universally across diverse architectures, including both Convolutional Neural Networks (CNNs) and Transformers.

The Challenge of Super-Resolution Compression

Single Image Super-Resolution (SISR) aims to reconstruct high-resolution images from low-resolution inputs. While state-of-the-art models like RCAN or SwinIR achieve incredible visual results, they are computationally heavy. This makes them difficult to deploy on resource-constrained platforms like mobile phones or edge devices.

To bridge this gap, researchers often employ Knowledge Distillation (KD), a technique where a large, robust "teacher" model trains a compact, efficient "student" model. However, existing KD methods for super-resolution suffer from brittleness. A method designed to make a network shallower (depth compression) often fails when trying to make it thinner (width compression). Furthermore, almost all existing methods struggle with "compounded compression"—making a network both shallower and thinner simultaneously. The core issue is a fundamental capacity disparity: the compact student simply lacks the architectural "brainpower" to directly mimic the teacher's complex feature distributions.

The MiPKD Framework

To address these limitations, the authors introduce MiPKD, which shifts the paradigm from rigid feature alignment to a "mixture of priors" approach. The framework operates at two distinct granularities:

Feature Prior Mixer Architecture
  1. Feature Prior Mixer (FPM): Inspired by Masked Autoencoders (MAE), this module maps both teacher and student features into a unified latent space. It uses complementary random 3D masks to "stitch" pieces of the teacher's knowledge directly into the student's feature map. A decoder then attempts to reconstruct the full, teacher-quality feature from this fused mixture. This forces the student to learn the underlying data distribution rather than just memorizing and copying pixels.
  2. Block Prior Mixer (BPM): At a coarser architectural level, the framework randomly routes the training data through either a student block or a teacher block. This stochastic path-switching encourages the student blocks to become functionally interchangeable with the teacher's blocks, effectively allowing the student to inherit complex transformation patterns during the forward pass.

Training is stabilized by an auxiliary auto-encoder loss, ensuring the latent space remains meaningful, alongside a total loss function that balances reconstruction, logits, and these multi-granularity priors.

Core Innovations

  • The Latent Space Bridge: Instead of forcing the student to match the teacher in the raw feature space—where their capacities naturally clash—MiPKD aligns them in a compressed latent space. This acts as a common language that mitigates the capacity gap.
  • Stochasticity as a Teacher: By randomly masking features and switching blocks, the framework prevents the student from overfitting to the teacher's specific outputs. It forces the student to learn the actual process of super-resolution.
  • Universality: Unlike previous methods (such as FAKD or CSD) that are tied to specific CNN architectures, MiPKD is designed to be plug-and-play. The authors demonstrated this by successfully applying it to SwinIR, a Transformer-based model, yielding significant performance boosts.

Performance Highlights

The models were trained on the DIV2K dataset and evaluated on standard benchmarks (Set5, Set14, BSD100, and Urban100).

Performance comparison across compression types
  • Superior Accuracy: On the notoriously difficult Urban100 dataset (x2 scale), MiPKD outperformed the "train from scratch" baseline by 0.6 dB in PSNR. It consistently beat other state-of-the-art distillation methods across all scaling factors.
  • Handling Compounded Compression: In rigorous scenarios where the model was compressed in both width and depth, MiPKD was often the only method that provided a significant performance boost. Competing methods sometimes performed worse than applying no distillation at all.
  • Efficiency: While the training logic introduces complexity, the actual training time increase is marginal (roughly 0.38s per step more than basic Logits-KD), making it highly practical for real-world development pipelines.
  • Visual Fidelity: Qualitative assessments reveal that MiPKD-trained models produce sharper edges and fewer blurring artifacts in repetitive textures compared to alternative KD methods.

Limitations and Future Directions

  • Initial Training Fluctuation: The Block Prior Mixer (BPM) can cause slight instability in the early stages of training due to random path-switching. While mitigated with specific loss weighting, a curriculum-based approach to switching could offer smoother convergence.
  • Perceptual vs. PSNR Optimization: The paper focuses heavily on mathematical pixel accuracy (PSNR/SSIM). Future work could explore how this multi-granularity approach interacts with GAN-based super-resolution for extreme perceptual quality.
  • Hardware-Specific Tuning: While MiPKD successfully yields smaller models, further research into hardware-level optimizations (like NPU-specific kernels) will be the next step for maximizing deployment efficiency on edge devices.

Summary updated

BibTeX
@inproceedings{li2025knowledge,
  author = {Simiao Li and Yun Zhang and Wei Li and Hanting Chen and Wenjia Wang and Bingyi Jing and Shaohui Lin and Jie Hu},
  title = {{Knowledge Distillation with Multi-granularity Mixture of Priors for Image Super-Resolution}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=cWHonXThtM},
}
Figure