Perceptual Image Enhancement for Smartphone Real-Time Applications

Marcos V. Conde, Florin Vasluianu, Javier Vazquez-Corral, Radu Timofte

TL;DR

LPIENet is a new, ultra-lightweight neural network designed to bring high-quality image enhancement to smartphones in real-time. By utilizing a novel Inverted Residual Attention (IRA) block, it achieves perceptual results competitive with state-of-the-art models while requiring 50x fewer computations, enabling 2K resolution processing in under a second on mid-range mobile devices.

What Problem Does This Paper Address?

While smartphone cameras have improved drastically, their small physical sensors and lenses still introduce significant artifacts like noise, blur, diffraction, and overexposure. Deep learning has revolutionized image restoration, but most top-tier models (like Restormer or NAFNet) are "heavyweights." They require massive amounts of memory and computational power (measured in Giga-MACs), making them impossible to run in real-time on a mobile GPU.

The authors tackle the challenge of creating a "production-ready" model: one that is robust enough to always improve the input image but efficient enough to fit within the tight resource budget of a smartphone's Image Signal Processor (ISP) pipeline.

Methods

The authors propose LPIENet, a lightweight architecture based on the classic U-Net structure (3 encoder blocks and 2 decoder blocks). The "secret sauce" lies in its building blocks:

  • Inverted Residual Attention (IRA) Blocks: These blocks combine the efficiency of Inverted Residual Blocks (common in mobile-friendly architectures like MobileNetV2) with optimized spatial and channel attention mechanisms.
  • Deployment-Aware Design: Unlike many research papers that use computationally expensive operations, the authors intentionally avoided Batch Normalization, LayerNorm, and GELU activations. These are often poorly supported or slow on current mobile hardware (TFLite).
  • Optimized Upsampling: To save memory, the model performs feature activation before upsampling, rather than after.
Figure 2. Architecture of the proposed LPIENet network and the IRA Block. Our model is designed considering current TFLITE supported operations and mobile devices limitations. The attention mechanisms [12,57] have been optimized to require less memory and computation.

Datasets

The model was trained and evaluated on several standard benchmarks to prove its versatility:

  • SIDD (Smartphone Image Denoising Dataset): Real-world noisy images from various smartphone sensors.
  • UDC SYNTH: A synthetic dataset for Under-Display Camera restoration, which the authors use as a general proxy for combined denoising, deblurring, and HDR tasks.
  • GoPro: A widely used dataset for motion deblurring.
  • Mobile Deployment Benchmark: The authors used the AI Benchmark app to measure actual execution times on commercial devices like the Samsung A50 and OnePlus 8 Pro.

Key Insights and Ideas

  • Efficiency vs. Accuracy Trade-off: The paper demonstrates that you don't need a massive model to get "good enough" results for human perception. LPIENet stays within 0.02 SSIM (Structural Similarity Index) of models that are 50-100x larger.
  • UDC as a "Grand Unified" Problem: The authors argue that Under-Display Camera (UDC) restoration is a generalization of denoising, deblurring, and HDR reconstruction. Solving for UDC effectively prepares a model for multiple types of image degradation.
  • The "Pay for Resources" Rule: For an algorithm to be embedded in a commercial camera, it must "pay" for the hardware resources it consumes by providing a significant, robust quality boost. LPIENet is designed with this economic constraint in mind.

Key Results

LPIENet's primary achievement is its extreme efficiency without a massive drop in quality.

  • Computational Cost: As shown in Figure 1, LPIENet operates at a fraction of the cost of SOTA models. While models like Restormer sit at the top right of the complexity curve, LPIENet achieves high SSIM with roughly 50x fewer MACs.
  • Mobile Speed: On a regular smartphone GPU, the model can process 2K images in 0.4s and 4K images in 1.5s.
  • Denoising Quality: In qualitative tests on the SIDD dataset (Figure 3), LPIENet successfully recovers fine details in text and textures that are completely lost in the noisy input, performing comparably to much larger models like HINet.
Figure 1. Comparison of computational cost and performance of state-of-the-art methods for image denoising (SIDD) [2,12,51,54, 62]. We can process 2K resolution images in 0.4s, and 4K images in 1.5 seconds on regular smartphone GPUs.
Figure 3. Real image denoising results of different methods on a challenging sRGB image from the SIDD dataset [2]. Our method can recover details and produce pleasant results while being 10× smaller than other methods.

Limitations and Future Work

The authors acknowledge two main hurdles:

  1. Receptive Field: The use of efficient pixel-wise convolutions in the IRA blocks limits the model's "view" of the image. This makes it harder for the network to "hallucinate" or reconstruct large missing structures in severe HDR or blur cases compared to more complex transformer-based models.
  2. Hardware Support: The self-imposed restriction to avoid operations like LayerNorm (which is essential for many SOTA models) limits the model's peak theoretical performance. As mobile hardware and TFLite support evolve, future versions could incorporate these more powerful operations.

Summary updated

Abstract

Recent advances in camera designs and imaging pipelines allow us to capture high-quality images using smartphones. However, due to the small size and lens limitations of the smartphone cameras, we commonly find artifacts or degradation in the processed images. The most common unpleasant effects are noise artifacts, diffraction artifacts, blur, and HDR overexposure. Deep learning methods for image restoration can successfully remove these artifacts. However, most approaches are not suitable for real-time applications on mobile devices due to their heavy computation and memory requirements. In this paper, we propose LPIENet, a lightweight network for perceptual image enhancement, with the focus on deploying it on smartphones. Our experiments show that, with much fewer parameters and operations, our model can deal with the mentioned artifacts and achieve competitive performance compared with state-of-the-art methods on standard benchmarks. Moreover, to prove the efficiency and reliability of our approach, we deployed the model directly on commercial smartphones and evaluated its performance. Our model can process 2K resolution images under 1 second in mid-level commercial smartphones.
BibTeX
@inproceedings{conde2023perceptual,
  author = {Marcos V. Conde and Florin Vasluianu and Javier Vazquez-Corral and Radu Timofte},
  title = {{Perceptual Image Enhancement for Smartphone Real-Time Applications}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=AQ-KflDHiRv},
}
Figure