Beyond Image Super-Resolution for Image Recognition with Task-Driven Perceptual Loss

Jaeha Kim, Junghun Oh, Kyoung Mu LeeCVPR 2024

Abstract

In real-world scenarios, image recognition tasks, such as semantic segmentation and object detection, often pose greater challenges due to the lack of information available within low-resolution (LR) content. Image super-resolution (SR) is one of the promising solutions for addressing the challenges. However, due to the ill-posed property of SR, it is challenging for typical SR methods to restore task-relevant high-frequency contents, which may dilute the advantage of utilizing the SR method. Therefore, in this paper, we propose Super-Resolution for Image Recognition (SR4IR) that effectively guides the generation of SR images beneficial to achieving satisfactory image recognition performance when processing LR images. The critical component of our SR4IR is the task-driven perceptual (TDP) loss that enables the SR network to acquire task-specific knowledge from a network tailored for a specific task. Moreover, we propose a cross-quality patch mix and an alternate training framework that significantly enhances the efficacy of the TDP loss by addressing potential problems when employing the TDP loss. Through extensive experiments, we demonstrate that our SR4IR achieves outstanding task performance by generating SR images useful for a specific image recognition task, including semantic segmentation, object detection, and image classification.

Introduction

In the real world, AI models often process low-resolution (LR) inputs from sources like surveillance cameras or medical scans. While Super-Resolution (SR) aims to upscale these images, traditional methods often optimize for pixel-perfect reconstruction (PSNR) or generic human aesthetics. However, an image that looks sharp to a human might still lack the subtle textures or edge details a neural network needs for accurate recognition.

SR4IR (Super-Resolution for Image Recognition) addresses this by optimizing image upscaling specifically for machine performance. By prioritizing task-relevant high-frequency content, the framework ensures that downstream models—like object detectors and segmenters—receive the specific information they need to function effectively.

Methodology

The SR4IR framework harmonizes the SR model and the task-specific model through three key innovations:

  1. Task-Driven Perceptual (TDP) Loss: Instead of using a generic pre-trained network (like VGG) for perceptual similarity, SR4IR uses the feature space of the actual task network (e.g., a DeepLabV3 model for segmentation). This forces the SR model to prioritize features that the task network finds important.
  2. Cross-Quality Patch Mix (CQMix): This data augmentation technique creates "Frankenstein" images by mixing patches of SR and HR content. It prevents the task network from relying on easy shortcuts and forces it to learn robust high-frequency cues from both sources.
  3. Alternate Training Framework: To bridge the "domain gap" between high-resolution (HR) and SR features, the authors use a two-phase approach. The SR network is updated while the task network is frozen, followed by training the task network on a mix of SR, HR, and CQMix images while the SR network is frozen.

Key Results and Insights

Experiments across semantic segmentation, object detection, and image classification (using datasets like PASCAL VOC 2012 and Stanford Cars) demonstrate that SR4IR consistently outperforms standard SR baselines:

  • Segmentation: On a 4x upscale, SR4IR boosted the mean Intersection over Union (mIoU) by +3.6 over a bilinear baseline.
  • Object Detection: For 8x upscaling, SR4IR improved the mAP by +8.9 compared to the baseline.
  • Classification: On the Stanford Cars dataset (8x scale), the framework achieved a +12.9% accuracy improvement.
Qualitative example of SR4IR showing the original image with a focus on high-frequency details (headlight) and the resulting segmentation mask.

A critical insight from this research is that "looking good" does not equal "recognizing well." SR4IR often produces lower PSNR than standard methods but significantly higher recognition accuracy because it focuses on the features that matter for the task at hand.

Limitations and Future Work

While effective, SR4IR increases total inference time and memory usage due to the additional SR pre-processing network. The alternate training schedule is also more complex than standard sequential training. Future research may explore "blind" super-resolution to handle unknown types of image blur or noise in real-world deployments.

Summary updated

BibTeX
@inproceedings{kim2024beyond,
  author = {Jaeha Kim and Junghun Oh and Kyoung Mu Lee},
  title = {{Beyond Image Super-Resolution for Image Recognition with Task-Driven Perceptual Loss}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=Jd2jPncIsH},
}
Figure