[Paper Review] Towards Compact Single Image Super-Resolution via Contrastive Self-distillation
This paper proposes a contrastive self-distillation (CSD) framework to simultaneously compress and accelerate single image super-resolution (SISR) models. By constructing a channel-splitting student network (CSSR-Net) from a teacher network and applying a novel contrastive loss for explicit knowledge transfer, CSD achieves up to 4× model compression and 1.77× inference speedup on EDSR with only 0.13 dB PSNR drop and 0.0039 SSIM loss at ×4 scale.
Convolutional neural networks (CNNs) are highly successful for super-resolution (SR) but often require sophisticated architectures with heavy memory cost and computational overhead, significantly restricts their practical deployments on resource-limited devices. In this paper, we proposed a novel contrastive self-distillation (CSD) framework to simultaneously compress and accelerate various off-the-shelf SR models. In particular, a channel-splitting super-resolution network can first be constructed from a target teacher network as a compact student network. Then, we propose a novel contrastive loss to improve the quality of SR images and PSNR/SSIM via explicit knowledge transfer. Extensive experiments demonstrate that the proposed CSD scheme effectively compresses and accelerates several standard SR models such as EDSR, RCAN and CARN. Code is available at https://github.com/Booooooooooo/CSD.
Motivation & Objective
- Address the high computational and memory cost of deep CNN-based SISR models, which limits deployment on resource-constrained devices.
- Overcome the limitations of implicit knowledge transfer in standard distillation, which leads to suboptimal performance in compressed student networks.
- Improve the quality of compressed SISR models by explicitly transferring knowledge using contrastive learning with positive and negative samples.
- Develop a universal, runtime-friendly compression and acceleration method applicable to various existing SISR architectures.
Proposed method
- Construct a channel-splitting super-resolution network (CSSR-Net) by extracting a subset of channels from a pre-trained teacher network, enabling direct model compression.
- Train the student (CSSR-Net) and teacher networks jointly using a reconstruction loss to enable implicit knowledge transfer.
- Introduce a contrastive loss based on L1-distance in the VGG feature space to explicitly transfer knowledge: pull the student's output closer to the teacher's and push it away from negative samples (e.g., blurry images).
- Use ground-truth HR images as positive samples and synthetic blurry images as negative samples to define the contrastive objective, constraining the optimization space.
- Apply a dynamic updating strategy that detaches the teacher’s gradient from the contrastive loss to prevent performance collapse and maintain teacher quality.
- Optimize the number of negative samples (set to 10) to balance performance and computational cost in training.
Experimental results
Research questions
- RQ1Can contrastive self-distillation effectively improve the performance of compressed SISR models beyond implicit distillation?
- RQ2How does the use of negative samples in contrastive learning affect the quality and sharpness of reconstructed images in compressed SISR networks?
- RQ3What is the optimal trade-off between model compression, inference speed, and image quality in SISR using self-distillation?
- RQ4Does the proposed CSD framework generalize across different SISR architectures such as EDSR, RCAN, and CARN?
- RQ5How does the choice of contrastive loss formulation (e.g., L1-based vs. InfoNCE) impact the final PSNR and SSIM performance?
Key findings
- The proposed CSD framework achieves a 4× model compression rate and 1.77× speedup on EDSR with only a 0.13 dB PSNR drop and 0.0039 SSIM loss on Urban100 at ×4 super-resolution.
- On the DIV2K dataset, CSD-based EDSR+ achieves 29.13 dB PSNR and 0.8416 SSIM, outperforming InfoNCE-based CSD (29.10 dB, 0.8402 SSIM) and J-T with perceptual loss.
- Using L1-distance in the contrastive loss yields better results than InfoNCE loss, with 0.0014 and 0.0041 SSIM gains on DIV2K and Urban100, respectively.
- CSSR-Net with self-distillation outperforms baselines that use only ground-truth HR images as positive samples, indicating that knowledge from the teacher network enhances performance.
- The CSD updating strategy (detaching teacher gradient) significantly improves performance compared to strategies that update both networks jointly or remove reconstruction loss.
- Increasing the number of negative samples improves performance up to a point, but with rising memory and training cost; 10 negative samples were found optimal for the performance-efficiency trade-off.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.