When we look at a white piece of paper under a warm incandescent lamp or in the cool shade of a tree, our visual system instantly adjusts, allowing us to perceive the paper as consistently white. In computer vision, replicating this ability is known as color constancy or automatic white balancing (AWB). Historically, algorithms simplified this problem by assuming a single, uniform light source illuminates the entire scene. Under this global assumption, correcting the image is straightforward: estimate one global RGB scaling vector and apply it uniformly across all pixels.
However, as early deep learning work by Simone Bianco 0001 et al. in Color constancy using CNNs demonstrated, real-world scenes rarely conform to this ideal. A typical indoor scene might be lit simultaneously by a warm desk lamp and cool natural light streaming through a window. Applying a single global correction factor to such a "mixed-illuminant" scene creates a fundamental trade-off: balancing for the indoor lighting leaves the window region with an unnatural blue cast, while balancing for daylight turns the interior aggressively orange. To resolve this, researchers have shifted toward spatially varying multi-illuminant estimation, treating illumination not as a single vector, but as a complex field that varies across space.
The Local Patch Paradigm
To estimate a light field that changes from pixel to pixel, the most intuitive starting point is to break the image down into localized regions where the single-illuminant assumption still holds true.
An early approach by Michael Bleier et al. in Color constancy and non-uniform illumination: Can existing algorithms work? segmented images into local "superpixels." By running a committee of standard color constancy algorithms on each patch, they used a Random Forest regressor to fuse these local estimates into a coherent, spatially varying map. Similarly, Dani Lischinski et al. in Illuminant Chromaticity from Image Sequences demonstrated that local chromaticity data can be decomposed into dominant global illuminants and a spatial map of their influence using a quadratic cost function.
To make these local estimates robust against noise and texture variations, researchers began incorporating structural and geometric context:
- 3D Geometry: Rui Lu et al. in Color constancy using 3D scene geometry leveraged rough 3D "stages" and depth layers, recognizing that light distribution is intrinsically tied to the physical layout of the scene.
- Logarithmic Contrast: To keep computation lightweight, Kai-Fu Yang et al. in Efficient illuminant estimation for color constancy using grey pixels introduced an illuminant-invariant measure based on local contrast in logarithmic color space. This allowed them to isolate nearly neutral "grey pixels" to resolve localized color shifts without relying on heavy learning models.
Decomposition and Anchor Blending
Predicting an independent RGB illumination vector for every single pixel is computationally expensive and prone to noisy artifacts. To regularize this problem, researchers introduced a powerful insight: most scenes do not contain infinitely many light sources, but rather a few discrete, dominant ones that blend together across space.
In Two Illuminant Estimation and User Correction Preference, the authors aggregated local light source estimates and grouped them using clustering algorithms to determine whether a scene contains a single uniform light or two competing ones. Moving into modern architectures, Dongyoung Kim et al. formalized this in Attentive Illumination Decomposition Model for Multi-Illuminant White Balancing by using slot attention. Their model explicitly decomposes a complex scene into individual light source "slots," mapping out the exact spatial influence and color temperature of each distinct illuminant.
An elegant alternative to estimating the light sources themselves is anchor blending. Instead of predicting a complex, spatially varying illuminant map from scratch, Marcus A Brubaker et al. in Auto White-Balance Correction for Mixed-Illuminant Scenes proposed rendering the raw image multiple times using a few standard global "anchor" settings (such as Tungsten, Daylight, and Shade). A deep neural network then learns pixel-wise weighting maps to blend these pre-corrected versions. This shifts the problem from unconstrained color estimation to a bounded, pixel-wise selection task, drastically improving efficiency and visual stability.
The Ultimate Frontier: Night Photography and Generative Priors
The multi-illuminant problem reaches its peak complexity in nighttime urban environments. While daytime outdoor relighting frameworks, such as the one proposed by Yeonjin Chang et al. in Fast Sun-aligned Outdoor Scene Relighting based on TensoRF, can rely on predictable solar trajectories, nocturnal scenes feature a chaotic mix of localized artificial lights—orange sodium lamps, cool LEDs, and vibrant neon signs.
This extreme complexity has been the focus of the NTIRE challenges from 2022 to 2025 (Egor Ershov et al. in NTIRE 2022 Challenge on Night Photography Rendering, NTIRE 2024 Challenge on Night Photography Rendering, and NTIRE 2025 Challenge on Night Photography Rendering; and Alina Shutova et al. in NTIRE 2023 Challenge on Night Photography Rendering). These challenges highlight how traditional image signal processing pipelines break down when diverse light sources interact in the same frame, driving the field toward neural solutions that can resolve competing color temperatures without creating unnatural color casts.
To handle these unconstrained environments without physical calibration tools, recent work leverages massive generative priors. Yi-Chen Lo in GCC: Generative Color Constancy via Diffusing a Color Checker introduces a method that uses a pre-trained diffusion model to "hallucinate" a virtual color checker into the scene. By leveraging the model's deep understanding of how neutral surfaces look under diverse lighting, it infers localized illumination implicitly. Concurrently, to bring these capabilities to consumer devices, Wei Wu et al. developed Integral Fast Fourier Color Constancy (IFFCC), utilizing an integral histogram technique to match the accuracy of heavy deep-learning models while operating orders of magnitude faster, proving that spatially varying color correction can be deployed in real-time on modern smartphones.
Key Foundational Work
Color constancy and non-uniform illumination: Can existing algorithms work? (2011) — contributed 1 concept elements to this direction.
Color constancy using 3D scene geometry (2009) — contributed 1 concept elements to this direction.