Learning Enriched Illuminants for Cross and Single Sensor Color Constancy

Xiaodong Cun, Zhendong Wang, Chi-Man Pun, Jianzhuang Liu, Wengang Zhou, Xu Jia, Houqiang LiarXiv 2022 · DOI

Abstract

Computational color constancy (CC) is often limited by the "sensor gap," where models trained on specific camera hardware fail to generalize to others. This paper introduces a self-supervised training strategy using "sensor-free" white-balanced images to bridge this gap. We propose a compact, cascaded network architecture that utilizes a shared backbone and Iteration-Specific Attention Modules (ISAM) to achieve high efficiency. Our approach achieves state-of-the-art performance on standard benchmarks with only 0.8M parameters—roughly 16% of previous leading models—and maintains real-time speeds of 36 FPS.

Introduction

Color constancy is the digital equivalent of the human ability to perceive the "true" color of an object regardless of the illuminant. In digital photography, this is known as Automatic White Balance (AWB). Current deep-learning approaches face two primary hurdles: the Sensor Gap, where unique Camera Spectral Sensitivities (CSS) prevent cross-camera generalization, and Data Scarcity, as RAW datasets with ground-truth labels are typically small and lack diversity.

Methods

The proposed solution involves a novel training pipeline and a highly efficient model architecture designed for cross-sensor robustness.

Self-Supervised Cross-Sensor Training

To overcome sensor dependency, the authors create "sensor-free" agents through two processes:

  1. Unprocessing sRGB (UIP): Millions of high-quality sRGB images (e.g., from the COCO dataset) are "unprocessed" back into a pseudo-RAW domain by reversing tone mapping and gamma correction.
  2. Sensor Alignment Fine-tuning (SAF): Existing RAW datasets are perfectly white-balanced using ground-truth labels and then "relit" with randomly sampled artificial illuminants. This forces the model to learn the relationship between the illuminant and the scene geometry rather than memorizing sensor-specific biases.
Overview of the proposed cross-sensor training pipeline using unprocessing and sensor alignment.

Compact Cascaded Network

While previous state-of-the-art (SOTA) models used heavy cascaded architectures with independent networks, this work optimizes the structure for efficiency:

  • Shared Backbone: A single SqueezeNet backbone is shared across all stages of the cascade.
  • Iteration-Specific Attention Module (ISAM): Since the backbone is shared, ISAM helps the network focus on specific color channel differences relevant to each refinement stage.
  • Lightweight Head: A dual-branch structure replaces heavy fully-connected heads. One branch uses Non-Local Blocks to capture long-range spatial dependencies (e.g., finding "white patches"), while the other extracts global statistics.
The proposed cascaded architecture featuring a shared backbone, lightweight heads, and iteration-specific attention modules.

Results

The model was evaluated on industry-standard benchmarks including Gehler-Shi, NUS 8-Camera, and INTEL-TAU.

  • Efficiency: The model uses only 0.8M parameters, a significant reduction from the 5.1M used by C4 and 1.7M by FC4.
  • Performance: On the Gehler-Shi dataset, it achieved a Mean Angular Error (MAE) of 1.27°, outperforming the previous best (C4) at 1.35°.
  • Generalization: In cross-sensor tests (training on one set and testing on novel sensors), the method outperformed previous SOTA by a large margin (e.g., 1.75° vs 2.10° on Cube-Challenge).
  • Speed: The system runs at 36 FPS on standard hardware, making it suitable for mobile ISP integration.

Conclusion

By rethinking training data as "sensor-free" and optimizing cascaded architectures through parameter sharing and attention, this work provides a robust solution for cross-sensor color constancy. While the model currently assumes a uniform illuminant, future work will explore multi-illuminant estimation and deeper integration into mobile image signal processing pipelines.

Summary updated

BibTeX
@misc{cun2022learning,
  author = {Xiaodong Cun and Zhendong Wang and Chi-Man Pun and Jianzhuang Liu and Wengang Zhou and Xu Jia and Houqiang Li},
  title = {{Learning Enriched Illuminants for Cross and Single Sensor Color Constancy}},
  year = {2022},
  eprint = {2203.11068},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.11068},
}
Figure