Abstract
Single Image Super-Resolution (SISR) is computationally intensive, often applying uniform processing across all image regions regardless of complexity. We present Adaptive Patch Exiting (APE), a framework that allows image patches to exit a neural network early once they are sufficiently restored. By utilizing a lightweight regressor to predict the incremental capacity of additional layers, APE achieves significant practical speedups on GPUs with negligible loss in image quality. This method enables high-performance SR models to scale efficiently across a wide range of hardware, from mobile devices to high-end desktops.
Introduction
Deep networks such as RCAN and EDSR have set benchmarks in SISR by reconstructing high-resolution images from low-resolution inputs. However, these models apply the same heavy computation to every pixel, ignoring the inherent variance in image complexity. For instance, a smooth sky requires far less processing than a detailed texture like a rose petal.
Previous attempts to address this efficiency gap, such as pixel-wise sparse convolutions, often fail to deliver real-world speedups on GPU hardware due to their irregular memory access patterns. Other methods involving patch classification require maintaining multiple models, which is impractical for memory-constrained environments. APE addresses these challenges by treating a standard SR network as a multi-exit architecture that processes patches in parallel, aligning with modern hardware capabilities.
Methodology
APE transforms a standard SR backbone into a dynamic, multi-exit system through four key components:
- Patch-Based Processing: The input image is partitioned into small, manageable patches (e.g., 48x48).
- Incremental Capacity Regressor: A tiny, shared regressor is inserted after specific blocks. It predicts the "incremental capacity"—the expected improvement in quality if the patch continues to the next layer.
- Early Exiting: If the predicted improvement falls below a predefined threshold, the patch exits the main body and proceeds directly to the upsampling "tail."
- Joint Training: The system is trained using a multi-exit loss strategy, followed by joint optimization of the regressor and the SR backbone to ensure accurate exit predictions.
Crucially, the exit threshold is a runtime scalar. This allows a single trained model to be scaled dynamically: a low threshold for maximum quality or a high threshold for rapid inference on mobile hardware.
Key Insights: Patch Behavior
The authors identified three distinct behaviors among image patches during the restoration process, which justify the use of early exiting:
- Bottleneck Patches: These reach peak quality very early in the network; further processing yields diminishing returns.
- Growing Patches: These show steady improvement as they pass through more layers, requiring deeper processing.
- Overfitting Patches: Surprisingly, some patches exhibit a drop in PSNR if processed through too many layers. APE can actually improve final quality by exiting these patches before they "overfit."
Experimental Results
APE was evaluated using standard benchmarks (DIV2K and DIV8K) across several backbones, including RCAN and EDSR. Key findings include:
- Computational Efficiency: For RCAN at x2 scaling, APE required only 24% of the original FLOPs to maintain baseline performance.
- Hardware Speedup: On an NVIDIA 2080Ti, RCAN-APE reduced inference time for a 2K image from 2323ms to 974ms, a 2.3x practical speedup.
- Quality Preservation: In several instances, APE-enabled models achieved higher PSNR/SSIM scores than full-depth models by avoiding the overfitting dip in specific patches.
- Scalability: The method demonstrated a smooth trade-off curve between speed and quality, controlled by a single threshold parameter.
Limitations and Future Work
While APE offers significant gains, some challenges remain. The current use of overlapping patches to prevent stitching artifacts introduces redundant computation. Future research could explore non-overlapping strategies or content-aware splitting to further optimize the grid. Additionally, the "incremental capacity" logic holds promise for other low-level vision tasks, such as denoising and deblurring, which could benefit from similar adaptive processing.
Summary updated