Quasi-Unsupervised Color Constancy

Simone Bianco, Claudio CusanoCVPR 2019

Abstract

This paper introduces a "quasi-unsupervised" approach to color constancy, training a deep neural network on millions of standard web images without needing explicit ground truth labels for the light source. By teaching the network to identify achromatic (gray) pixels from grayscale inputs, the model achieves state-of-the-art performance among unsupervised methods and rivals top-tier supervised models when fine-tuned. The approach leverages the semantic understanding of scenes to generalize across different camera hardware.

Introduction

Color constancy is the ability of a vision system to perceive the "true" colors of objects regardless of the light source (illuminant) color—much like how a white piece of paper appears white under both a yellow sunset and blueish fluorescent light. For computers, this is a longstanding challenge. While deep learning has revolutionized computer vision, it struggles with color constancy due to data scarcity (high-quality datasets with ground truth illuminants are tiny), overfitting to specific camera sensors, and the impracticality of collecting labeled data at scale.

Proposed Method: Quasi-Unsupervised Learning

The authors propose a framework that is "quasi-unsupervised," based on the clever assumption that most images on the web (e.g., ImageNet) have already been color-corrected by photographers or automatic phone pipelines.

The Core Pipeline

As illustrated in the pipeline below, the network is fed a grayscale version of an image. This forces the model to ignore actual pixel colors and focus on semantic cues like shapes, textures, and context.

The quasi-unsupervised training pipeline: grayscale input is processed to find achromatic weights, which are then used to estimate the illuminant and calculate loss.
  1. Achromatic Pixel Detection: A U-Net style encoder-decoder learns to produce a weight map ($w$). It identifies pixels likely to be achromatic (naturally gray or white, such as concrete, white shirts, or specular highlights).
  2. Achromatic Loss ($L_A$): During training, the model calculates an illuminant estimate ($I$) by taking a weighted average of the original image's pixels based on the weight map. The loss is defined by how far this estimate deviates from the neutral gray axis. Since training images are assumed to be balanced, the "correct" illuminant should be gray.
  3. Inference: To correct a new image, the network identifies gray-like pixels. Their color reveals the light source color, allowing for correction using the standard von Kries model.

Experimental Results

The authors utilized massive datasets like ILSVRC12 (ImageNet), Places365, and Flickr100k for unsupervised training. Evaluation was performed on standard benchmarks like the Color Checker (CC) and NUS Dataset.

Qualitative results on web datasets showing the input image, the learned weight map (yellow indicates high achromatic probability), and the resulting corrected image.

Key Insights

  • Semantic Cues: By using grayscale inputs, the network learns that certain objects—like the sky, lamps, or windows—are reliable indicators of light color. It understands the scene rather than just pixel statistics.
  • Robustness to Noise: Even though not every web image is perfectly balanced (e.g., sunsets), training on millions of "mostly balanced" images allows the network to model the average neutral state effectively, treating outliers as noise.
  • Performance: The proposed method outperformed all other purely unsupervised methods by a significant margin. On the Color Checker dataset, it reduced the median angular error by 37.9% compared to the previous state-of-the-art, achieving a median error of 2.23°.

Conclusion

By shifting the focus from pixel-level statistics to semantic scene understanding via grayscale inputs, this quasi-unsupervised method bridges the gap between small, labeled datasets and the vast amount of unlabeled data available online. It provides a robust, camera-agnostic solution that rivals supervised methods while requiring significantly less manual labeling effort.

Summary updated

BibTeX
@inproceedings{bianco2019quasi,
  author = {Simone Bianco and Claudio Cusano},
  title = {{Quasi-Unsupervised Color Constancy}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.01249},
}
Figure