Abstract
Nowadays, many of the images captured are ‘observed’ by machines only and not by humans, e.g., in autonomous systems. High-level machine vision models, such as object recognition or semantic segmentation, assume images are transformed into some canonical image space by the camera Image Signal Processor (ISP). However, the camera ISP is optimized for producing visually pleasing images for human observers and not for machines. Therefore, one may spare the ISP compute time and apply vision models directly to RAW images. Yet, it has been shown that training such models directly on RAW images results in a performance drop. To mitigate this drop, we use a RAW and RGB image pairs dataset, which can be easily acquired with no human labeling. We then train a model that is applied directly to the RAW data by using knowledge distillation such that the model predictions for RAW images will be aligned with the predictions of an off-the-shelf pre-trained model for processed RGB images. Our experiments show that our performance on RAW images for object classification and semantic segmentation is significantly better than models trained on labeled RAW images. It also reasonably matches the predictions of a pre-trained model on processed RGB images, while saving the ISP compute overhead.
Introduction
In modern autonomous systems like drones, self-driving cars, and robots, images are increasingly consumed by machines rather than humans. Traditionally, digital cameras use an Image Signal Processor (ISP) to convert RAW sensor data into "pretty" RGB images. This process involves complex steps—including demosaicing, white balancing, and tone mapping—that are computationally expensive and optimized for human aesthetics rather than machine logic.
Bypassing the ISP to save power and reduce latency is a desirable goal. However, training models directly on RAW data typically leads to a significant drop in accuracy. RAW data is difficult for humans to label because it appears as a dark, noisy, greenish signal, and the "canonical" normalization provided by the ISP is highly beneficial for standard neural networks. This paper introduces ISP Distillation, a method to train high-performance vision models directly on RAW data by leveraging the knowledge of existing RGB-based models.
Methodology
The core of the proposed approach is a Teacher-Student framework. The "Teacher" is an off-the-shelf, pre-trained vision model (such as ResNet or MobileNet) that operates on processed RGB images. The "Student" is a model with a similar architecture, modified to accept RAW input.
Instead of relying on human-provided "hard labels," the student is trained to mimic the teacher using a dataset of RAW-RGB pairs. During training, the RAW image is fed to the student, while its corresponding processed RGB version is fed to the teacher. The student is penalized via a Knowledge Distillation (KD) Loss if its output probability distributions (soft labels) or internal feature representations differ from the teacher's. This process effectively "distills" both the ISP's normalization logic and the teacher's semantic understanding into a single, streamlined RAW-input model.
Experimental Setup
The researchers evaluated ISP Distillation using two primary datasets:
- Synthetic RAW (ImageNet): Standard ImageNet images were "reversed" into synthetic RAW format by applying mosaicing (Bayer pattern) and Gaussian noise.
- Real RAW (HDR+ Dataset): Using the Google HDR+ dataset, the method was tested on real-world bursts of RAW images paired with high-quality processed RGB results, including challenging short-exposure, noisy scenarios.
Results and Insights
The experiments demonstrate that ISP Distillation consistently outperforms standard training on RAW data across various metrics:
- Accuracy Improvements: On noisy, mosaiced ImageNet data, a ResNet18 model's accuracy improved from 57.2% (standard training) to 62.5% using distillation.
- Real-World Alignment: On the HDR+ dataset, the distilled RAW model achieved 93.8% agreement with the RGB teacher, a significant jump from the 84.7% achieved with standard labels.
- Computational Efficiency: The distilled model provides performance comparable to a "DeepISP + Classifier" pipeline but at a fraction of the computational cost (FLOPs) by eliminating the separate ISP network.
- Implicit Denoising: Interestingly, when trained on short-exposure RAW images, the distillation process implicitly teaches the student to "denoise" the signal to match the cleaner, long-exposure RGB teacher.
Conclusion
ISP Distillation demonstrates that the ISP is often a "human-centric" bottleneck for machine vision. By bypassing it, we allow neural networks to learn "machine-native" interpretations of sensor data. While the performance is currently capped by the RGB teacher and models may be sensor-specific, this approach offers a promising path toward more efficient autonomous systems. Future work may explore extending this to tasks like object detection or developing "minimalist ISPs" that retain only the most essential data transformations for machine perception.
Summary updated