Self-Supervised Reversed Image Signal Processing via Reference-Guided Dynamic Parameter Selection

Junji Otsuka, Masakazu Yoshimura, Takeshi OhashiarXiv 2023 · DOI

Abstract

Standard RGB (sRGB) images are the byproduct of complex, non-linear Image Signal Processors (ISPs) that discard the linear radiometric information present in RAW sensor data. This "baking" process limits the effectiveness of sRGB data for downstream tasks like low-light enhancement and object detection. We present SRISP, a self-supervised framework for reversed ISP that reconstructs RAW-like data from sRGB images without requiring camera metadata or paired training samples. By employing a reference-guided Dynamic Parameter Selector (DPS) and a self-supervised training regime using pseudo-pairs, SRISP achieves state-of-the-art reconstruction accuracy and demonstrates significant performance gains in RAW-domain object detection.

Introduction

The vast majority of computer vision datasets consist of standard RGB (sRGB) images. While convenient, these images have undergone extensive processing by a camera's Image Signal Processor (ISP), which applies non-linear transformations, compression, and white balancing. This process discards the original, linear relationship between light and sensor voltage found in RAW images—data that is highly valuable for tasks like low-light enhancement due to its simpler noise characteristics and higher dynamic range.

Existing "reversed ISP" methods, which attempt to map sRGB back to RAW, face two primary challenges: a dependency on specific camera metadata (often unavailable for internet-sourced images) and a requirement for large-scale paired RGB/RAW training data. This paper introduces SRISP, a self-supervised method that "un-processes" sRGB images using a single reference RAW image to guide the reconstruction, eliminating the need for metadata or paired ground truth.

Methodology

Reference-Guided Architecture

SRISP models the reversed ISP as a sequence of interpretable, invertible blocks: Global Gain, White Balance, Color Correction, Gamma Correction, and Dynamic Tone Mapping. Unlike traditional model-based approaches that use static parameters, SRISP utilizes a Reference-Guided Dynamic Parameter Selection (DPS) mechanism.

Overview of the SRISP architecture featuring the Dynamic Parameter Selector (DPS) and the sequence of ISP blocks.

As shown in Figure 1, the model extracts 1D global features from both the input RGB image and a reference RAW image. The DPS then calculates selection weights to interpolate parameters from a learnable dictionary for each ISP block. This allows the model to adapt to the specific sensor characteristics of the reference image without explicit metadata.

Self-Supervised Training via Pseudo-Pairs

To overcome the lack of paired training data, the authors employ two self-supervised strategies:

  1. $PP_{rand}$: A real RAW image is processed through a randomized "fake" ISP to create a pseudo-RGB image. The model is then trained to reverse this process and reconstruct the original RAW.
  2. $PP_{MT}$ (Mean Teacher): To leverage "in-the-wild" RGB data (e.g., COCO), a Mean Teacher framework is used. A "Teacher" model—an exponential moving average of the "Student"—generates pseudo-labels for real-world RGB images, enabling the student to learn from unlabelled data.
The Mean Teacher ($PP_{MT}$) training strategy for learning from unpaired real-world RGB images.

Experimental Results

The model was evaluated on standard benchmarks including MIT-Adobe FiveK and SIDD. SRISP demonstrated superior reconstruction accuracy, particularly in color fidelity. On Nikon D700 and Canon EOS 5D datasets, it achieved significantly lower Angular Error (AE) compared to state-of-the-art methods like CycleISP.

Beyond reconstruction metrics, the utility of SRISP was proven through downstream tasks. A detector trained on "RAW-ified" COCO images and tested on real low-light RAW data (LOD dataset) saw its mean Average Precision (mAP) increase from 41.60 to 47.17. This indicates that the generated RAW data effectively preserves the linear characteristics necessary for robust performance in challenging lighting conditions.

Conclusion

SRISP provides a flexible, self-supervised solution for bridging the gap between sRGB and RAW domains. By combining a model-based pipeline with dynamic neural parameter selection, it achieves high-fidelity reconstruction without metadata. While challenges remain in recovering details from clipped highlights in sRGB images, SRISP represents a significant step toward making large-scale sRGB datasets useful for RAW-domain computer vision research.

Summary updated

BibTeX
@misc{otsuka2023self,
  author = {Junji Otsuka and Masakazu Yoshimura and Takeshi Ohashi},
  title = {{Self-Supervised Reversed Image Signal Processing via Reference-Guided Dynamic Parameter Selection}},
  year = {2023},
  eprint = {2303.13916},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.13916},
}
Figure