TL;DR
This paper introduces SplitSR, a novel hybrid deep learning architecture for on-device image super-resolution (SR) that significantly boosts performance on mobile devices. By employing a new lightweight residual block (SplitSRBlock) that splits channels to reduce computation while retaining spatial information, SplitSR achieves state-of-the-art accuracy and up to 5x faster inference than previous methods, enabling real-time SR directly on smartphones.
What Problem Does This Paper Address?
Super-resolution (SR) is a powerful image processing technique that can enhance the detail in low-resolution images, making it valuable for applications ranging from camera apps to mobile health. However, existing SR methods heavily rely on deep learning models with substantial computational and memory requirements. This has historically confined them to cloud-based processing, introducing latency due to data upload/download and making them unsuitable for real-time, on-device applications where low latency is crucial. This gap prevents SR from being integrated into many mobile use cases that require immediate results, such as live camera feedback or quick image analysis in healthcare.
Methods
The core of this work is the SplitSR architecture and its novel SplitSRBlock.
- SplitSRBlock: This lightweight residual block is designed to reduce computational cost while preserving spatial information crucial for SR. It achieves this by splitting the input channels into two branches. One branch undergoes computation (using standard 2D convolutions, unlike other lightweight blocks that use depthwise/pointwise convolutions), while the other branch remains idle. The results are then concatenated. This channel-splitting approach allows for a reduction in computation without sacrificing the ability to learn rich spatial features.
- SplitSR Architecture: This is a hybrid architecture that combines standard convolutional blocks with the proposed SplitSRBlocks. This hybrid approach allows for a tunable trade-off between accuracy and latency, enabling users to optimize the model for specific computational budgets. The architecture is inspired by RCAN, a state-of-the-art SR model, and strategically replaces some standard convolutional blocks with SplitSRBlocks, primarily in the feature extraction and upsampling stages.
- Compiler Optimization: The authors leverage TVM, a deep learning compiler, to optimize the SplitSR model for efficient execution on mobile CPUs. TVM's scheduling primitives (tiling, packing, vectorization, unrolling) and graph optimization processes are crucial for achieving the reported speedups.
Datasets
The paper uses several standard datasets for evaluating SR performance:
- DIV2K: Used for training the models.
- Set5, Set14, B100, Urban100: Used for evaluating the accuracy and performance of the proposed SplitSR model and comparing it against baselines.
Key Insights and Ideas
- Channel-splitting for SR: The key insight is that channel-splitting, when combined with standard 2D convolutions (as in SplitSRBlock), can effectively reduce computational load for SR tasks without the typical loss of spatial information seen when using depthwise/pointwise convolutions in other lightweight blocks.
- Hybrid architecture for flexibility: The hybrid nature of SplitSR, mixing standard and lightweight blocks, is crucial for balancing accuracy and latency. This allows the model to be tailored to different mobile hardware constraints and application needs.
- Compiler is essential for on-device performance: The significant performance gains are not solely due to the novel architecture but also heavily rely on advanced compiler optimizations (TVM) to translate the deep learning model into highly efficient machine code for mobile CPUs.
- User perception matters: Beyond objective metrics, a user study demonstrated that people prefer the image quality produced by SplitSR over the standard bilinear interpolation, indicating a tangible improvement in user experience.
Key Results
- Speed: SplitSR achieves up to 5x faster inference on a low-end ARM CPU compared to previous approaches. The latency-focused SplitSR model achieves an average inference time of 629 ms.
- Accuracy: SplitSR demonstrates superior accuracy across multiple benchmark datasets (Set5, Set14, B100, Urban100) compared to state-of-the-art on-device SR models like MobiSR. For example, it achieves higher PSNR and SSIM scores.
- User Study: In a user study with 15 participants, SplitSR was statistically significantly preferred over bilinear interpolation for both image quality (Z=-9.270, p<0.01) and text readability (Z=-6.486, p<0.01). Participants perceived SplitSR to improve image quality in 85.3% of cases.
- First On-Device DL SR App: The paper presents ZoomSR, the first smartphone app demonstrating deep learning-based SR directly on a mobile device.
Limitations and Future Work
- Hyperparameter Tuning: While the paper explores several hyperparameters (channel split ratio, hybrid index, etc.), a full grid search across all combinations might yield even more optimal configurations. The authors suggest AutoTVM could be useful for automatic hyperparameter search.
- Deployment Platform: The evaluation was primarily conducted on an Android device (Google Pixel 4) using a specific CPU. Future work could explore deployment on other platforms (iOS, different hardware) and with different configurations.
- Zoom Level Handling: For the ZoomSR app, a compromise was made to handle different zoom levels, sometimes using a smaller model for faster processing at the cost of quality. Future work could involve running multiple models for varying zoom levels or developing better prediction mechanisms for zoom gestures to optimize latency.
- Broader Applications: The authors envision SplitSRBlock being applicable to other on-device SR tasks, such as audio SR, and encourage its integration into various hardware platforms and applications, particularly in healthcare for privacy-preserving analysis.
Summary updated