Dr. RAW: Towards General High-Level Vision from RAW with Efficient Task Conditioning

Wenjun Huang, Ziteng Cui, Yinqiang Zheng, Yirui He, Tatsuya Harada, Mohsen ImaniNeurIPS 2025

TL;DR

Dr. RAW is a novel framework that enables computer vision models to "see" directly using raw camera data instead of processed sRGB images. By combining lightweight pre-processing with parameter-efficient tuning (updating only ~2% to 29% of the model's weights), it achieves state-of-the-art performance across tasks like object detection and segmentation—even in extreme lighting conditions where traditional methods fail.

The Challenge: Why Use RAW Data?

Most computer vision systems today operate on sRGB images—the final, processed pictures produced by a camera's internal Image Signal Processor (ISP). However, the ISP process often discards valuable physical information, such as high bit-depth and linear radiance relationships, which are crucial for visibility in the dark or under harsh glare.

While researchers have attempted to use RAW data (the "digital negative") directly, they face two major hurdles:

  1. Data Inconsistency: Every camera sensor has a unique "fingerprint" (spectral response), and lighting conditions vary wildly. A model trained on a Sony sensor might fail when processing data from a Nikon sensor.
  2. Tuning Inefficiency: Current RAW-based models usually require "full fine-tuning"—re-training the entire massive neural network for every new task or dataset. This is computationally expensive and hinders the creation of a general-purpose RAW vision backbone.

The Dr. RAW Architecture

The authors introduce Dr. RAW, a unified framework designed to be both robust to sensor variations and computationally efficient. The architecture consists of two main stages:

Dr. RAW Architecture detailing pre-processing and task-specific adaptation modules.

1. Lightweight Pre-processing

Instead of relying on a heavy, traditional ISP, Dr. RAW uses modular blocks to normalize the incoming data:

  • Sensor & Illumination Mapping: It estimates a 3x3 matrix (to handle sensor differences) and a 1x3 matrix (to handle lighting shifts) based on the image's pixel distribution.
  • Re-mosaicing Block: A U-shaped neural network utilizes a gating mechanism (splitting features and multiplying them) to clean up artifacts without the heavy computational cost of standard attention layers.

2. Task-Specific Adaptation

Rather than re-training the whole backbone (like a Swin Transformer or ViT), Dr. RAW freezes the main weights and introduces two "adapter" modules:

  • Sensor Prior Prompts (SPP): These are learnable "hints" injected into the network. They carry information about the specific sensor and lighting conditions directly into the model's self-attention mechanism.
  • Low-Rank Adaptation (LoRA): This technique adds tiny, trainable matrices to the existing layers. It allows the model to learn a new task (e.g., "detecting cars") by updating only a fraction of the total parameters.

Key Insights

  • The "Tightening" Effect: Using Principal Component Analysis (PCA), the authors demonstrate that their pre-processing blocks effectively "shrink" the massive variance of RAW data. By normalizing different sensors and lights into a tighter cluster, the downstream model has a much easier time learning.
  • RAW Pre-training is Essential: A model pre-trained on RAW data significantly outperforms the same model pre-trained on ImageNet (sRGB). The richness of the RAW signal provides a vastly superior foundation for feature extraction.
  • Efficiency Doesn't Sacrifice Accuracy: Dr. RAW proves that updating 100% of a model's weights isn't necessary for optimal results. By updating only ~29% (and sometimes much less) of the parameters, the framework actually beats fully fine-tuned models.

Key Results

The researchers evaluated Dr. RAW across nine datasets covering four high-level tasks: Object Detection, Semantic Segmentation, Instance Segmentation, and Pose Estimation.

Radar chart demonstrating Dr. RAW's state-of-the-art performance across multiple datasets and tasks.
  • Object Detection: On the LOD (Low-Light Object Detection) dataset, Dr. RAW achieved 72.1 mAP, outperforming the previous state-of-the-art by a massive +4.9% margin while using significantly fewer tunable parameters.
  • Robustness to Light: In "dark" semantic segmentation tests, Dr. RAW hit 38.46 mIoU, whereas traditional ISP-based methods plummeted to as low as 5.02 mIoU.
  • Zero-Shot Generalization: In a zero-shot test, a model trained exclusively on Nikon data was tested on iPhone and Samsung sensors. It maintained high accuracy (88.3+ mAP), proving the framework successfully handles "unseen" hardware.

Limitations and Future Work

While Dr. RAW is a massive step toward a general RAW vision system, the authors note areas for future growth. Currently, the model still requires a separate set of LoRA weights for each specific task (e.g., detection vs. segmentation).

Ultimately, the authors envision a "Foundation Model for RAW" that could handle multi-task learning simultaneously without needing any task-specific adaptation. This would serve as a true "plug-and-play" brain for any camera sensor in any environment, from autonomous drones to wildlife monitoring.

Summary updated

BibTeX
@inproceedings{huang2025dr,
  author = {Wenjun Huang and Ziteng Cui and Yinqiang Zheng and Yirui He and Tatsuya Harada and Mohsen Imani},
  title = {{Dr. RAW: Towards General High-Level Vision from RAW with Efficient Task Conditioning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=2Dwp12HmYI},
}
Figure