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.
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:
- Base Module: A standard SR backbone (e.g., SwinIR or RCAN) that focuses on the primary ROI.
- 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.
- 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.
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