Abstract
Color constancy is the fundamental computer vision task of recovering true surface colors by discounting the effects of ambient illumination. While most existing algorithms operate under the simplifying assumption of a single, global light source, real-world environments often feature complex, mixed-lighting conditions. This paper introduces a novel approach that frames color constancy as an image-to-image translation task. By leveraging Generative Adversarial Networks (GANs) combined with a physics-driven "seed" diffusion mechanism, the proposed method effectively handles multi-illumination scenes, significantly outperforming traditional and deep learning-based benchmarks.
Introduction
The human visual system possesses the remarkable ability to perceive the constant color of objects despite changes in the spectral composition of the light source. Replicating this "color constancy" in digital imaging is critical for applications ranging from photography to autonomous robotics. However, the majority of computational models rely on a "single light source" assumption, attempting to estimate one global illumination vector to correct the entire image.
In practice, scenes are rarely illuminated by a single source. A typical indoor scene might be influenced by warm incandescent lamps on one side and cool, natural daylight from a window on the other. Standard algorithms struggle in these mixed-lighting scenarios because a single global correction fails to account for local variations, and simple encoder-decoder architectures often produce artifacts or blurry transitions at the boundaries of different lighting zones. Furthermore, the development of robust models is hindered by a severe lack of large-scale, ground-truth datasets for multi-illumination environments.
Methodology
The authors propose a hybrid framework that integrates the high-capacity learning of GANs with classical physics-based priors to address the limitations of current methods.
Color Constancy as Domain Translation
Rather than predicting a numerical illumination vector, the problem is redefined as a translation from a "biased image domain" (the raw input) to a "corrected image domain" (the output under canonical lighting). The researchers evaluated three prominent GAN architectures for this task: Pix2Pix, CycleGAN, and StarGAN. This pixel-wise supervision allows the network to learn fine-grained spatial corrections rather than a single global shift.
Seed-Based Diffusion and Probability Maps
To manage multiple light sources, the model utilizes "seed points"—initial, physics-based estimates of the light color at specific spatial locations, calculated using the Grayness Index. The network is then tasked with "diffusing" these seeds across the image, effectively inpainting an illumination map.
To handle pixels influenced by multiple sources, the network predicts an $N$-channel probability map. Each channel represents the likelihood of a pixel belonging to one of $N$ specific light sources (where $N=4$ in this study). This allows the model to represent and correct for mixtures of light at any given point in the scene.
Synthetic Data Augmentation
To overcome the scarcity of multi-illumination training data, the authors developed a synthetic pipeline. By taking single-illumination images and performing semantic segmentation to identify object boundaries, they were able to "relight" different segments of the image using illuminants drawn from existing datasets. This process generated a diverse training set based on 5,000 images from the Intel TUT dataset.
Experimental Results
The proposed models were evaluated across several benchmarks for both single and multi-illumination performance.
Single Illumination Performance
On the SFU Gray Ball dataset, the Pix2Pix implementation achieved a mean angular error of 6.6. This represents a significant improvement over previous state-of-the-art (SOTA) methods, such as Exemplar-based color constancy, which recorded a mean error of 8.0.
Multi-Illumination Performance
The seed-based diffusion method demonstrated clear superiority on the MIMO dataset, a standard benchmark for multi-light scenes. It achieved a median angular error of 2.9, outperforming both the Grayness Index (3.5) and CRF-based methods (3.3).
The Role of Adversarial Loss
An ablation study highlighted the necessity of the GAN framework. When the adversarial loss (the discriminator) was removed, leaving only standard distance-based losses like L1 or L2, the median error on the MIMO dataset rose from 2.9 to 3.5. The adversarial loss is crucial for forcing the generator to produce sharp textures and clean transitions between different lighting zones.
Discussion and Insights
The success of this approach stems from the synergy between physics-based priors and deep generative modeling. By using physics-based seeds, the network is not required to estimate lighting from scratch; instead, it learns the complex task of spatial propagation and disentanglement. Furthermore, moving to an image-to-image translation paradigm provides the network with much richer supervision than vector-based regression.
Limitations and Future Work
Despite its performance, the model currently relies on a fixed number of potential illuminants ($N=4$). While it can effectively "collapse" these if fewer lights are present, it does not yet dynamically adapt to an arbitrary number of sources during training. Additionally, the model's accuracy is sensitive to the quality of the initial physics-based seeds. Future research will explore methods for the network to dynamically determine the number of light sources and improve the robustness of the initial seed estimation process.
Summary updated