Transfer Learning for Color Constancy via Statistic Perspective

Yuxiang Tang, Xuejing Kang, Chunxiao Li, Zhaowen Lin, Anlong Ming

Abstract

Computational Color Constancy (CCC) is hindered by a chronic shortage of labeled RAW image data and the inherent spectral sensitivity differences between camera sensors. This paper introduces the Transfer Learning for Color Constancy (TLCC) framework, which addresses these challenges by adopting a "statistic perspective." By mapping camera-specific labels into a camera-agnostic statistic form, TLCC enables models to learn from massive, unlabeled sRGB image datasets. Combined with a specialized adaptation branch to bridge the domain gap between processed sRGB and RAW data, the proposed method achieves state-of-the-art performance across major benchmarks, significantly improving robustness in ambiguous scenes.

Introduction

Computational Color Constancy (CCC) aims to eliminate the color cast caused by scene illumination, ensuring that objects appear in their true colors regardless of the light source. While deep learning has advanced this field, it faces a significant data bottleneck. High-quality RAW images with ground-truth illumination labels are expensive and difficult to collect, resulting in small datasets. Furthermore, models trained on one camera sensor often generalize poorly to others due to varying spectral sensitivities.

While millions of sRGB images are available online, they have already undergone camera pipeline processing, which strips away the original RAW information required for traditional color constancy training. TLCC overcomes this by leveraging these sRGB images through a novel transfer learning approach.

Methods

The TLCC framework introduces two primary innovations to facilitate effective transfer learning from sRGB to RAW domains.

Statistic Estimation Scheme (SE-Scheme)

Instead of predicting an RGB illumination vector tied to a specific sensor, the SE-Scheme maps labels into a camera-agnostic statistic form. By leveraging logic similar to the "Grey Edge" algorithm, the framework transforms RAW images and their labels into a shared workspace. This collapses divergent color distributions from different cameras into a single, aggregated cluster. Crucially, since sRGB images are typically color-balanced, they can be assigned "neutral" pseudo-statistic labels, allowing the model to learn diverse scene geometry from massive datasets like Places205.

Color-Guided Adaption Branch (CGA-Branch)

To bridge the visual domain gap between processed sRGB and unprocessed RAW data, a sidecar branch is utilized. This branch predicts a Color Space Transform Matrix (CSTM) from an image's color histogram. These features are then integrated into the main backbone via a Color-Guided Instance Normalization (CGIN) module, which adaptively scales and shifts features to ensure the model remains robust to different image "looks."

The TLCC architecture featuring the SE-Scheme and CGA-Branch.

Key Insights and Ideas

Sensor Independence and the "Rainbow" Effect

A core contribution of this work is the move toward sensor independence. In standard RGB space, illumination labels from different cameras appear as a scattered "rainbow" of distributions. By moving to the proposed statistic space, these labels overlap almost perfectly. This alignment simplifies multi-camera joint training and allows the model to focus on the underlying physics of light and reflectance rather than sensor-specific quirks.

Visualization of color distributions in RGB space (a) versus the aligned statistic space (b, c).

The Value of Scene Diversity

The research demonstrates that the semantic richness of millions of sRGB scenes (e.g., forests, kitchens, streets) is more valuable for model generalization than a limited amount of "perfect" RAW data. By pre-training on sRGB data, the model gains a superior understanding of scene content, which translates to better performance on RAW benchmarks.

Key Results

TLCC outperformed existing state-of-the-art (SOTA) methods on major benchmarks:

  • Color Checker (CCD) Dataset: Achieved a Mean Angular Error of 1.51°, improving upon the previous best of 1.58°.
  • NUS 8-Camera Dataset: Achieved a Mean Angular Error of 1.61°, surpassing the previous SOTA of 1.78°.
  • Robustness: The model showed significant improvements in the "Worst 25%" error metric, indicating a superior ability to handle difficult and ambiguous lighting conditions.

Conclusion and Future Work

TLCC effectively solves the data scarcity problem in color constancy by enabling the use of sRGB data through a statistic-based transfer learning framework. While currently based on the diagonal Von Kries model, future work aims to extend this to more complex illumination models, such as the diagonal-offset model, to better account for ambient light and sensor noise. Additionally, exploring more sophisticated reflectance distributions beyond basic assumptions remains a promising direction for further enhancing accuracy.

Summary updated

BibTeX
@inproceedings{tang2022transfer,
  author = {Yuxiang Tang and Xuejing Kang and Chunxiao Li and Zhaowen Lin and Anlong Ming},
  title = {{Transfer Learning for Color Constancy via Statistic Perspective}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i2.20135},
}
Figure