Beyond Learned Metadata-Based Raw Image Reconstruction

Yufei Wang, Yi Yu, Wenhan Yang, Lanqing Guo, Lap-Pui Chau, Alex C. Kot, Bihan Wen

TL;DR

This paper introduces a novel end-to-end framework for raw image reconstruction that learns a compact latent representation (metadata) from sRGB images. By intelligently allocating bits to different image regions and leveraging sRGB information, it achieves superior reconstruction quality with significantly smaller metadata sizes compared to existing state-of-the-art methods.

What Problem Does This Paper Address?

Raw images offer rich information but are too large for widespread adoption. Reconstructing a raw image from a compressed sRGB representation is crucial for applications like computer vision. Existing methods either rely on hand-crafted sampling strategies or learn to sample raw pixels directly, which can be inefficient and lead to precision redundancy. The challenge is to create a compact metadata representation that allows for high-fidelity raw image reconstruction while minimizing storage requirements, especially considering the non-uniform information loss introduced by the Image Signal Processing (ISP) pipeline.

Methods

The core of the proposed method is an end-to-end learned framework that operates in the latent space, unlike previous approaches that sample in the raw pixel space. Key innovations include:

  • Latent Space Sampling: Instead of sampling raw pixels, the method learns to sample in a compact latent space, guided by the sRGB image.
  • sRGB-Guided Context Model: This model leverages the sRGB image and already processed latent features to predict the distribution of upcoming latent features, improving coding efficiency. It also incorporates learned order masks for more effective encoding/decoding.
  • Asymmetric Hybrid Backbone: A novel backbone design is proposed that balances the need for high spatial resolution in the decoder with efficient encoding, reducing the gap between training and evaluation.
  • Adaptive Quantization Precision: The method dynamically assigns varying levels of quantization precision to different regions of the latent features, allocating more bits to areas that require higher fidelity (e.g., highlights).
  • Variable Bit Rate Strategy: A single model can achieve a continuous range of bit rates by adjusting quantization precision and selectively dropping features, allowing for flexible trade-offs between compression and quality.
  • Hybrid Quantization Approximation: A combination of uniform noise relaxation and straight-through gradients is used to handle the non-differentiable quantization step during training.

Datasets

  • NUS dataset: Used for evaluation.
  • AdobeFiveK dataset: Used for training and evaluation.

Key Insights and Ideas

  • Latent space is more efficient: Sampling and compressing in the latent space, guided by sRGB, is more effective than directly sampling raw pixels, which contain significant redundancy.
  • sRGB is a powerful guide: Leveraging the sRGB image as side information is critical for accurate and efficient raw image reconstruction.
  • Adaptive bit allocation is key: The non-uniform nature of information loss in the ISP pipeline necessitates adaptive bit allocation to different image regions for optimal rate-distortion performance.
  • End-to-end learning is crucial: Unifying sampling and reconstruction in an end-to-end framework allows for optimal learning of the entire process.

Key Results

  • Superior Rate-Distortion Performance: The proposed method achieves significantly better reconstruction quality (higher PSNR and SSIM) with substantially lower bit rates (metadata size) compared to state-of-the-art methods like SAM [1] and Nam et al. [2]. For example, on the NUS dataset, the proposed method achieves a PSNR of 56.74 with a bpp of 0.3763, outperforming Nam et al. [2] which achieves 48.08 PSNR with a bpp of 0.8438 (16-bit).
  • Improved Visual Quality: Qualitative results show better preservation of details, especially in challenging shadow and highlight areas, compared to existing methods.
  • Faster Encoding: The proposed method offers faster encoding speeds compared to some existing methods, particularly the online fine-tuning versions.

Limitations and Future Work

  • Computational Cost: While improved, the computational cost, especially for decoding, can still be significant for high-resolution images. The authors mention that arithmetic coding can be accelerated with GPU implementations.
  • Dataset Specificity: The performance is evaluated on specific datasets; generalization to a wider variety of camera sensors and ISPs might require further investigation.
  • Future Work: The paper suggests exploring more advanced context models and backbone designs for further improvements. The variable bit rate strategy could be further refined for even finer control. The authors also mention the potential for further acceleration of the decoding process.

Summary updated

BibTeX
@article{wang2023beyond,
  author = {Yufei Wang and Yi Yu and Wenhan Yang and Lanqing Guo and Lap-Pui Chau and Alex C. Kot and Bihan Wen},
  title = {{Beyond Learned Metadata-Based Raw Image Reconstruction}},
  journal = {Int. J. Comput. Vis.},
  year = {2023},
}
Figure