Manuscript Offprint

arXiv:2611.02995

ILLRAW: Illumination-Aware RAW Object Detection

Xinzhe Wang, Xiao Liang, Xiaoli Zhang, Kang Ma

Xinzhe Wang 1∗^{1*}, Xiao Liang 1∗^{1*}, Xiaoli Zhang 3^{3}, and Kang Ma 1,2†^{1,2\dagger}

1^{1} Beijing Institute of Technology

2^{2} State Key Laboratory of CNS/ATM, Beijing Institute of Technology

3^{3} Independent Researcher

1^{1}xinzwang123@gmail.com, 1^{1}{liangxiao,makang}@bit.edu.cn

3^{3}z.xiaolilili@gmail.com

Abstract. Existing RAW-based detectors typically introduce learnable ISP modules to convert RAW inputs into sRGB-like formats to fit off-the-shelf detectors. However, this RAW-to-sRGB paradigm decouples representation learning from the downstream detection task. Crucially, it forces the network to inherit human-centric visual priors while discarding intrinsic RAW advantages, such as linear sensor responses and high-bit-depth, minimally processed scene cues. In this paper, we propose ILLRAW, an ILLumination-aware end-to-end RAW object detection framework. Instead of reconstructing visually plausible sRGB images, ILLRAW directly learns detection-oriented RAW features through a lightweight feature adapter inserted at the input stage of existing detectors. ILLRAW estimates an illumination mask and introduces channel-sensitive embeddings to model Bayer-channel responses. These features are fused by an illumination attention fusion module. Experiments show clear improvements on the diverse AODRaw benchmark and competitive performance on LOD and PascalRAW, with particularly strong results under dark exposure.

Keywords: RAW object detection · Illumination-aware Feature Adaptation · end-to-end RAW detection

1 Introduction

Object detection is a crucial and fundamental task in computer vision and has achieved significant progress [30, 40–42, 58]. However, most existing object detection methods are developed on sRGB images, whose robustness under challenging imaging conditions is often overlooked [27, 53]. RAW images are the direct outputs of camera sensors [3], and their pixel values are linearly related to incident light intensity and preserve high-bit-depth radiometric information together with unprocessed sensor noise [7, 60]. Such sensor-level light measurements provide richer illumination cues than sRGB images, especially in dark

∗^{*} Equal contribution.

†^{\dagger} Corresponding author.

X. Wang et al.

regions, high-dynamic-range scenes, and areas close to saturation. By directly preserving sensor measurements and richer radiometric cues, RAW images provide a promising input space for robust object detection [7,21,27,47,53] under challenging real-world conditions, such as high dynamic range scenes [7,53], low-light environments [21,47], and adverse weather [27].

In modern camera systems, RAW images are processed by the ISP and converted into sRGB images for human viewing. A typical ISP pipeline includes denoising, demosaicking, white balancing, gamma correction, and compression [14, 60]. Although these operations improve visual quality, they inevitably reshape the original light distribution and may discard task-relevant details. For example, denoising suppresses sensor noise but can also remove fine structures [1], particularly in dark areas and near overexposed regions.

To improve detection on RAW images, previous methods often couple object detectors with imaging systems by tuning the hyperparameters of the ISP or the camera pipeline [33, 51, 54]. Although these methods can be regarded as RAW-aware detection approaches, they still heavily rely on ISP processing and do not achieve fully end-to-end RAW object detection. A straightforward alternative is to directly train existing sRGB-based detectors on RAW images. However, this usually leads to degraded performance [7, 27, 53], mainly for two reasons. First, conventional detectors are designed for sRGB images and are not tailored to the unique characteristics of RAW data. Second, most detectors benefit from ImageNet-pretrained weights [10], while transferring sRGB-pretrained models to RAW inputs introduces a clear domain gap. To mitigate these issues, recent methods commonly introduce learnable ISPs that convert RAW data into sRGB-like images by mimicking human visual priors, such as denoising, gamma correction, and white balance [7, 36, 53]. Although effective, this RAW-to-sRGB paradigm optimizes RAW representation learning toward image reconstruction rather than the detection objective. As a result, it may introduce information bottlenecks and inherit human-centric priors that are not necessarily optimal for machine vision models.

Instead of reconstructing visually plausible sRGB images, we argue that RAW images should be directly adapted to detection-oriented feature learning. From the perspective of detector architectures, most modern detectors consist of a backbone network for feature extraction [20, 31], followed by necks, detection heads, or Transformer encoder-decoder modules for object localization and classification [17, 58]. These downstream components are largely designed for high-level semantic reasoning and should not be heavily modified merely to accommodate RAW inputs. Notably, within the backbone, the first convolutional layer directly interacts with image measurements. This observation motivates us to design a lightweight RAW feature adapter at the input stage, which addresses the unique characteristics of RAW data while preserving the general architecture of existing detectors.

We further analyze the inherent illumination characteristics of RAW images. As shown in Figure 1(a), the intensity distribution of RAW images is often highly concentrated within a narrow range, especially under low-light conditions.

Figure

(a) Histogram of pixel values

sRGBRAW
Red1.0010.788
Green1.0321.257
Blue0.9670.955

(b) Normalized channel intensity

Figure

sRGB

RAW-Red

RAW-Green

RAW-Blue

(c) Visualization of different channels in RAW images

Fig. 1: Comparison of sRGB and RAW images. (a) RAW pixel values are concentrated within a small range. (b) RAW images exhibit significant channel differences. (c) In the example scene, the green channel is brighter, while the red channel is darker.

In contrast, sRGB images benefit from ISP operations such as gamma correction and tone mapping, which redistribute the dynamic range and produce a more balanced brightness distribution, thereby improving detection performance [26]. However, the concentrated RAW intensity distribution does not indicate the absence of useful information. Instead, RAW pixels preserve a linear response to incident light intensity, making their brightness values closely related to the physical illumination of the scene. Therefore, the key challenge is how to effectively perceive and exploit spatial brightness variations in RAW images. To this end, we introduce an illumination mask to identify regions with different brightness levels and use it to guide feature extraction under varying lighting conditions.

In addition to spatial brightness variation, RAW images also exhibit distinct channel-dependent light sensitivity. As shown in Figure 1(b), the green channel typically has higher average intensity values, suggesting that it preserves more information in darker regions. In contrast, the red and blue channels are more responsive in brighter regions that are close to saturation. This phenomenon is further illustrated in Figure 1(c), where the red channel clearly delineates object boundaries in bright areas where the green channel tends to become saturated. Based on these observations, we propose an illumination-aware end-to-end RAW object detection method, termed ILLRAW. Unlike previous approaches that rely on learnable ISPs to bridge RAW and sRGB domains, ILLRAW directly integrates with existing detectors through a lightweight feature adapter. Specifically, we first introduce an illumination mask estimation module to capture spatial light intensity distributions. Then, a channel-sensitive embedding module is designed to extract features with different light sensitivities under the guidance of

X. Wang et al.

the green and red/blue channels. To effectively integrate these complementary representations, we propose an illumination attention fusion mechanism that adaptively aggregates features according to the estimated illumination mask. Moreover, re-parameterization techniques are employed to minimize inference overhead. The proposed method can effectively process RAW data with low computational cost and good compatibility across different detection architectures. Extensive experiments on three RAW object detection datasets demonstrate that ILLRAW achieves state-of-the-art performance, validating its effectiveness and generalizability.

In summary, our main contributions are as follows:

  • We propose ILLRAW, an illumination-aware RAW object detection framework that leverages spatial and channel-wise illumination differences to enhance semantic understanding of RAW images.
  • We design an illumination estimation module to extract spatial illumination cues, and a channel-sensitive embedding module to decouple features with different light sensitivities under channel-specific guidance.
  • We introduce an illumination attention fusion mechanism, which utilizes the estimated illumination mask to adaptively fuse features from regions with varying brightness levels.

References (60)

  • Unprocessing images for learned raw denoising
  • Cascade r-cnn: Delving into high quality object detection
  • Learning to see in the dark
  • Mmdetection: Open mmlab detection toolbox and benchmark (opens arXiv in a new tab)
  • Recaptured raw screen image and video demoireing via channel and spatial modulations
  • Bswr: Improving blind raw image super-resolution
  • Raw-adapter: Adapting pre-trained visual model to camera raw images
  • Multitask aet with orthogonal tangent regularity for dark object detection
  • Histograms of oriented gradients for human detection
  • Imagenet: A large-scale hierarchical image database
  • Dirty pixels: Towards end-to-end image processing and perception
  • Learning a deep convolutional network for image super-resolution
  • Centernet: Keypoint triplets for object detection
  • Joint demosaicking and denoising by fine-tuning of bursts of raw images
  • The pascal visual object classes challenge: A retrospective
  • Object detection with discriminatively trained part-based models
  • Yolox: Exceeding yolo series in 2021 (opens arXiv in a new tab)
  • Fast r-cnn
  • Single image haze removal using dark channel prior
  • Deep residual learning for image recognition
  • Crafting object detection in very low light
  • Towards low light enhancement with raw images
  • Dnf: Decouple and feedback network for seeing in the dark
  • A software platform for manipulating the camera imaging pipeline
  • Unified hdr reconstruction from raw cfa data
  • Efficient visual computing with camera raw snapshots
  • Towards raw object detection in diverse conditions (opens arXiv in a new tab)
  • Feature pyramid networks for object detection
  • Focal loss for dense object detection
  • Microsoft coco: Common objects in context
  • Swin transformer: Hierarchical vision transformer using shifted windows
  • Getting to know low-light images with the exclusively dark dataset
  • Hardware-in-the-loop end-to-end optimization of camera image processing pipelines
  • Automatic isp image quality tuning using nonlinear optimization
  • Pascalraw: raw image database for object detection
  • Neural auto-exposure for high-dynamic range object detection
  • Deep hdr reconstruction of dynamic scenes
  • Color image processing pipeline
  • You only look once: Unified, real-time object detection
  • Yolov3: An incremental improvement (opens arXiv in a new tab)
  • Faster r-cnn: Towards real-time object detection with region proposal networks
  • Objects365: A large-scale, high-quality dataset for object detection
  • Towards real-world hdr video reconstruction: A large-scale benchmark dataset and a two-stage alignment network
  • Hyperparameter optimization in black-box image processing using differentiable proxies
  • Rapid object detection using a boosted cascade of simple features
  • Yolov10: Real-time end-to-end object detection
  • Multi-object tracking in the dark
  • Adaptiveisp: Learning an adaptive image signal processor for object detection
  • Deep retinex decomposition for low-light enhancement (opens arXiv in a new tab)
  • A physics-based noise formation model for extreme low-light raw denoising
  • Visionisp: Repurposing the image signal processor for computer vision applications
  • Invertible image signal processing
  • Toward raw object detection: A new benchmark and a new model
  • Dynamicisp: dynamically controlled image signal processor for image recognition
  • Restormer: Efficient transformer for high-resolution image restoration
  • Dino: Detr with improved denoising anchor boxes for end-to-end object detection (opens arXiv in a new tab)
  • Deblurring by realistic blurring
  • Deformable DETR: Deformable Transformers for End-to-End Object Detection
  • Detrs with collaborative hybrid assignments training
  • Rawhdr: High dynamic range image reconstruction from a single raw image