LocalSR: Image Super-Resolution in Local Region

Bo Ji, Angela YaoarXiv 2024 · DOI

Introduction

Single-Image Super-Resolution (SISR) has traditionally been approached as a global task, where an entire low-resolution (LR) image is processed to produce a high-resolution (HR) output. However, in many practical applications—such as surveillance, medical imaging, or mobile photography—users are often only interested in a specific Region of Interest (ROI).

Standard methods present a dilemma: "pre-cropping" the ROI loses vital spatial context, leading to poor restoration, while "post-cropping" (processing the whole image) is computationally prohibitive for high-resolution feeds. LocalSR introduces a novel framework, Context-based Local Super-Resolution (CLSR), designed to bridge this gap. By utilizing the surrounding LR image as a reference, CLSR achieves the high-quality results of global processing at a fraction of the computational cost.

A complex scene where only specific regions, such as faces or text, may require high-resolution restoration.

Methodology: Context-based Local Super-Resolution (CLSR)

The core innovation of LocalSR is the CLSR architecture, which integrates global and local context into the super-resolution process through three parallel branches:

  1. Base Module: A standard SR backbone (e.g., SwinIR or RCAN) that focuses on the primary ROI.
  2. Global Context Module (GCM): Employs a cross-attention mechanism to allow the ROI to "query" the entire LR image. This enables the model to identify similar textures or structural patterns elsewhere in the frame, effectively treating the full image as a reference.
  3. Proximity Integration Module (PIM): A lightweight version of the SR backbone that processes the immediate neighborhood of the ROI to capture local spatial dependencies and blur characteristics.

To ensure training stability, the authors utilize a "Zero Convolution" technique inspired by ControlNet. By initializing context-processing layers with zeros and adding their output to a bilinear upsampling baseline, the model can safely learn to incorporate complex contextual features without diverging during early training phases.

Key Insights: The Role of Context

A critical finding of this research is the relationship between context size and restoration quality. The authors observed that providing more surrounding information improves PSNR, but this benefit follows a law of diminishing returns.

PSNR performance as a function of input context size, illustrating the efficiency-quality trade-off across different backbones.

As shown in the figure above, performance stabilizes when the context area reaches approximately six times the size of the ROI. This "6x Rule" provides a practical heuristic for balancing computational efficiency with visual fidelity. Furthermore, the global context helps the model distinguish between different types of degradation (e.g., depth-of-field blur vs. motion blur) that might appear identical when viewed through a narrow crop.

Experimental Results

The CLSR framework was evaluated across multiple standard benchmarks, including DIV2K, BSD100, and Urban100.

  • Efficiency: The method requires only 0.1% to 1.9% of the FLOPs compared to full-image processing, making it highly suitable for resource-constrained mobile devices.
  • Performance: CLSR consistently outperforms isolated ROI restoration ("pre-cropping") by 0.2 to 0.6 dB in PSNR.
  • Versatility: The architecture is backbone-agnostic, showing significant gains when applied to both CNN-based (CARN, RCAN) and Transformer-based (SwinIR) models.

Conclusion

LocalSR redefines the super-resolution task for practical, ROI-focused applications. By treating the surrounding image as a low-resolution reference, the CLSR framework recovers fine details and maintains structural consistency that isolated cropping cannot achieve. Future work will look toward supporting arbitrary ROI shapes and improving the extraction of long-range global dependencies.

Summary updated

Abstract

Standard single-image super-resolution (SR) upsamples and restores entire images. Yet several real-world applications require higher resolutions only in specific regions, such as license plates or faces, making the super-resolution of the entire image, along with the associated memory and computational cost, unnecessary. We propose a novel task, called LocalSR, to restore only local regions of the low-resolution image. For this problem setting, we propose a context-based local super-resolution (CLSR) to super-resolve only specified regions of interest (ROI) while leveraging the entire image as context. Our method uses three parallel processing modules: a base module for super-resolving the ROI, a global context module for gathering helpful features from across the image, and a proximity integration module for concentrating on areas surrounding the ROI, progressively propagating features from distant pixels to the target region. Experimental results indicate that our approach, with its reduced low complexity, outperforms variants that focus exclusively on the ROI.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Manga109CLSR (context-based local super-resolution)PSNR0.24dBSuper Resolution · resolution=48x48 · scale=×4 · context=original LR image · roi-size=48×48
Source quote
L278: The maximum performance gain is 0.24dB on Manga109.
LocalSR proposed-module ablation (dataset not specified)CLSR with lightweight SwinIR, PIM and GCM enabledPSNR37.99Super Resolution · GCM=enabled · PIM=enabled · backbone=lightweight SwinIR · training-iterations=200k
Source quote
L297: \ding{51} │ \ding{51} │ 37.99 │ 0.9929
LocalSR proposed-module ablation (dataset not specified)Lightweight SwinIR base variant, PIM and GCM disabledPSNR37.64Super Resolution · GCM=disabled · PIM=disabled · backbone=lightweight SwinIR · training-iterations=200k
Source quote
L294: \ding{55} │ \ding{55} │ 37.64 │ 0.9927
BibTeX
@misc{ji2024localsr,
  author = {Bo Ji and Angela Yao},
  title = {{LocalSR: Image Super-Resolution in Local Region}},
  year = {2024},
  eprint = {2412.04314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.04314},
}
Figure