Manuscript Offprint
arXiv:2610.06508A General Pipeline for Dense Illuminant Estimation via Physically Based Synthetic Data
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Illuminant estimation is a fundamental problem in computational photography, as it enables the correction of color shifts induced by varying lighting conditions. While learning-based methods have demonstrated strong performance, their progress is hindered by the limited availability of large-scale datasets with accurate illuminant ground-truth. In this work, we propose a general and reusable pipeline to derive dense illuminant chromaticity maps from physically based 3D-rendered scenes. By repurposing an existing 3D scene collection, our approach enables the systematic generation of pixel-wise illuminant annotations under controlled lighting conditions, effectively lowering the barrier to data acquisition for learning-based illuminant estimation. Using this pipeline, we generate a large-scale synthetic set of 74,321 images, which we employ for pre-training both single- and multi-illuminant estimation models. Extensive experiments with state-of-the-art architectures show that synthetic pre-training consistently improves performance, with gains of up to 28% for single-illuminant estimation and up to 57% for multi-illuminant estimation, particularly in data-scarce regimes. These findings demonstrate that synthetic data generation pipelines offer an effective and scalable solution for the pre-training of illuminant estimation methods.
Introduction
Illuminant estimation is a key component of modern digital imaging pipelines, as it compensates for color shifts caused by varying illumination conditions. By estimating the chromaticity of the scene's light sources, illuminant estimation enables color correction that aligns image appearance with human perception of white and neutral tones under different lighting. Beyond photographic enhancement, accurate illuminant estimation is essential for many computer vision tasks, including object recognition, scene understanding, and image retrieval, where color consistency directly affects downstream performance [1]. Early approaches relied on global statistical assumptions about the color distribution of natural images [2]. While computationally efficient, such methods often fail under complex or spatially varying illumination. Learning-based models, including convolutional neural networks [3, 4, 5] and more recent transformer-based architectures [6], significantly improve robustness by leveraging contextual and semantic information. However, their effectiveness is constrained by the limited availability of large-scale datasets with accurate illuminant ground-truth, whose acquisition requires controlled capture conditions and reference measurements. This limitation is especially pronounced for multi-illuminant estimation, where illumination varies spatially across the scene and pixel-level annotations are required. To address this challenge, we leverage physically based 3D-rendered scenes as a principled source of dense illuminant supervision. Photorealistic renderings provide explicit access to reflectance and illumination properties of the scenes, enabling the derivation of accurate per-pixel illuminant chromaticity, information that is prohibitively difficult to obtain at scale from real images. In this work, we introduce a general and reusable methodology for extracting dense illuminant chromaticity maps from physically based 3D renderings. The proposed pipeline exploits the illumination–reflectance decomposition available in modern rendering engines to generate physically grounded per-pixel supervision, suitable for pretraining both single- and multi-illuminant estimation models and independent of network architecture. As a concrete instantiation of the proposed methodology, we apply the pipeline to the Hypersim dataset [7] to generate a large synthetic corpus for pretraining. Importantly, we emphasize that this instantiation serves as a proof of scalability rather than a dataset-specific contribution: the methodology itself is readily transferable to other rendering environments and synthetic scene collections. Extensive experiments with state-of-the-art architectures [8, 9, 4] and standard benchmark datasets [10, 11, 12] demonstrate consistent performance improvements across architectures and illuminant estimation settings.

(a)

(b)
Figure 1. Sample images from the dataset. (a) illustrates the individual image components. (b) presents the input images along with their corresponding ground-truth illuminant images.
More recently, transformer-based architectures [6] have further improved performance by capturing long-range spatial dependencies and contextual cues. Despite these advances, learning-based methods remain heavily dependent on large, accurately annotated datasets, which are challenging to acquire in real-world settings.
Illuminant Estimation Datasets
Research in illuminant estimation has historically relied on a limited number of real-world datasets. Widely used benchmarks such as ColorChecker [12], NUS-8 [13], and Cube++ [14] provide images captured under controlled conditions, with illuminant annotations obtained from calibration targets. These datasets are primarily designed for single-illuminant estimation and typically provide only global illuminant annotations. To better capture real-world lighting complexity, newer datasets such as LSMI [10] and MIMO [11] introduce scenes with multiple light sources and offer pixel-wise illuminant ground-truth. While these datasets enable the development of multi-illuminant estimation methods, their scale and diversity remain limited due to the cost and complexity of acquiring accurate annotations. Dense ground-truth illuminant maps often require specialized acquisition setups, careful calibration, or manual intervention, resulting in datasets that are relatively small and heterogeneous in annotation quality. Consequently, the scarcity of large-scale, diverse, and consistently annotated real-world datasets remains a major bottleneck for training and evaluating modern illuminant estimation models.
Synthetic Datasets for Vision Tasks
Synthetic datasets have become an important resource for many computer vision tasks, including optical flow [15], semantic segmentation [16], and depth estimation [17]. By providing full control over scene geometry, material properties, and illumination, synthetic data enable the creation of large-scale datasets with precise ground-truth annotations at minimal cost. Prior work has shown that pre-training on synthetic data followed by fine-tuning on real-world datasets can significantly improve generalization and robustness [17, 18]. Advances in photorealistic rendering and physically based illumination models have further reduced the gap between synthetic and real imagery, allowing realistic simulation of complex lighting interactions and material reflectance. Despite these successes, the use of synthetic data for illuminant estimation remains limited. Early attempts relied on simplified illumination models or global color transformations [19], which fail to capture the intricate interactions between lighting, geometry, and surface reflectance. More recently, photorealistic 3D datasets such as Hypersim [7] and Replica [20] provide detailed geometric, material, and illumination information that can be repurposed for illuminant estimation. These datasets offer a promising foundation for pre-training and benchmarking illuminant estimation models, particularly in scenarios where annotated real-world data are scarce.
Data Generation Pipeline
Hypersim [7] is a synthetic HDR dataset comprising 77,400 photorealistic indoor images rendered from 461 distinct 3D scenes. Originally developed for geometric learning, physically
Table 1. Quantitative results, in terms of angular error, of the considered methods on three multi-illuminant estimation datasets: the proposed Hypersim-WB, LSMI-Galaxy [10], and MIMO [11]. For each learning-based method we compare a version trained from-scratch and one that is fine-tuned after pre-training on the Hypersim-WB dataset. We highlight in bold the per-method best and underline the per-dataset best.
| Method | Pre-training Data | Hypersim-WB | LSMI-Galaxy [10] | MIMO [11] | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Mean | B-25 | W-25 | 95-P | Mean | B-25 | W-25 | 95-P | Mean | B-25 | W-25 | 95-P | ||
| GW [2] | - | 5.45 | 1.88 | 11.10 | 13.2 | 4.18 | 0.95 | 8.47 | 10.30 | 2.33 | 0.89 | 4.20 | 4.83 |
| UNet [10] | - | 3.18 | 1.1 | 6.35 | 8.00 | 1.94 | 0.65 | 3.88 | 4.63 | 3.30 | 2.06 | 5.48 | 6.08 |
| Hypersim-WB | - | - | - | - | 1.83 | 0.61 | 3.65 | 4.06 | 2.13 | 0.83 | 4.06 | 4.71 | |
| HDRNet [9] | - | 3.77 | 1.45 | 7.57 | 9.20 | 2.36 | 0.67 | 4.98 | 5.75 | 3.41 | 2.31 | 4.87 | 5.34 |
| Hypersim-WB | - | - | - | - | 2.19 | 0.59 | 4.65 | 5.68 | 3.16 | 1.71 | 5.19 | 5.73 | |
| [4] | - | 4.02 | 1.72 | 7.34 | 8.62 | 4.53 | 0.98 | 10.30 | 13.50 | 3.84 | 1.67 | 6.62 | 7.45 |
| Hypersim-WB | - | - | - | - | 1.95 | 0.58 | 4.30 | 5.93 | 3.37 | 1.00 | 6.60 | 7.43 | |
based vision tasks, and multi-task scene understanding, Hypersim provides detailed geometric and photometric metadata for each scene. This rich information makes the dataset suitable for tasks beyond its original scope, including illuminant estimation. Each rendered image in Hypersim is accompanied by multiple data modalities, including geometric attributes and a decomposition of the scene radiance into diffuse illumination and residual non-diffuse components. The diffuse illumination images are particularly relevant for illuminant estimation, as they represent scene lighting independent of surface reflectance and can serve as a reference for estimating illuminant chromaticity and constructing dense illumination maps.
Although Hypersim does not natively provide illuminant annotations for color constancy or illuminant estimation, its physically based rendering ensures photometric consistency between illumination, reflectance, and observed color. This allows us to derive dense ground-truth illuminant maps from the available rendering outputs. Specifically, each image is defined by three components: diffuse illumination (L), diffuse reflectance (R), and a residual term ( ) capturing specular reflections, interreflections, and other non-Lambertian effects. The final rendered image (I) is reconstructed as:
In this work, we use the diffuse illumination component as a proxy for the scene illuminant. In principle, provides an accurate estimate of the illuminant for Lambertian surfaces. However, in practice, relying on alone is insufficient: in regions dominated by specular reflections, shadows, or other non-diffuse effects, the residual term often contributes most of the observed radiance, while may contain near-zero or missing values (rendered as black pixels). Direct use of would therefore produce incomplete or physically inconsistent illuminant maps. To address this, we augment the diffuse illumination with the grayscale intensity of the residual term prior to normalization:
where denotes the per-pixel mean over the RGB channels of the residual image. The residual is assumed to be dominated by view-dependent reflectance and therefore provides limited reliable chromatic information. This choice is intentionally conservative with respect to chromaticity, as it avoids injecting spurious color information while preserving illumination magnitude in non-diffuse regions. The combined illumination is then normalized to obtain dense per-pixel chromaticity maps. All images are provided in HDR format. We apply the tonemapping function released by the dataset authors, omitting the gamma correction step to preserve a linear relationship between radiance and pixel values. In cases where the diffuse illumination image contains black pixels—indicating regions where illumination is fully captured by the residual term—we assume neutral illumination and generate binary masks to exclude these pixels from the training loss. A manual inspection is carried out to remove malformed images, resulting in a final set of 74,321 images. Figure 1 shows examples of reconstructed scenes alongside their corresponding dense illuminant chromaticity maps. The resulting dataset, which we refer to as Hypersim-WB, is split following a per-scene strategy to avoid data leakage: 80% of the scenes are used for training, 20% for testing, with an additional 20% of the training set reserved for validation.
Experimental results
Experimental Setting
All experiments are conducted under a consistent setup to ensure fair comparisons between methods. Our experimental protocol is designed to isolate the contribution of synthetic pre-training from architectural choices, focusing on data efficiency, robustness under limited supervision, and convergence behaviour rather than absolute peak performance. Models are first pre-trained on the Hypersim-WB dataset and subsequently fine-tuned on real-world datasets. We adopt the Adam optimizer [21] with an initial learning rate of , scheduled via cosine annealing [22] with warm restarts every 10 epochs. During fine-tuning, early stopping is applied with a patience of 50 epochs. For inference, test images are resized to pixels, and model outputs are resized back to the original dimensions. Training is guided by the angular error loss, masking pixels where only the residual contributes to the radiance. Quantitative evaluation reports the angular error distribution, including mean, best-quartile (B-25), worst-quartile (W-25), and 95th percentile (95-P) values.
Multi-Illuminant Estimation Experiments
For multi-illuminant estimation, we follow prior work [10] and evaluate two representative image-to-image architectures: UNet [8] and HDRNet [9]. Each model is trained to infer from RGB inputs the dense illuminant maps described in the Data Gen-

Input
GW [2]
UNet [10]
HDRNet [9]
[4]
GT
Figure 2. Qualitative results of the methods on the considered datasets: Hypersim-WB, LSMI-Galaxy [10], MIMO [9], and ColorChecker [12]. The learning based methods from columns (3-5) are pretrained on Hypersim-WB and fine-tuned on the target dataset. The mean angular error for each image is also reported.
eration Pipeline section. For comparison, we also include the Gray World (GW) [2] algorithm and the FC model [4], representing statistical and learning-based single-illuminant methods, respectively. To evaluate these baselines, their global illuminant predictions are expanded to the size of the ground-truth dense map. All learning-based models are initially trained on Hypersim-WB and then fine-tuned on the real-world LSMI [10] and MIMO [11] datasets. To assess the effect of pre-training, we also train models from scratch on the target datasets. Table 1 presents quantitative results, while Figure 2 shows qualitative examples. Results indicate that models pre-trained on Hypersim-WB consistently outperform those trained solely on real data. The improvement is particularly pronounced for smaller datasets like MIMO (78 images), highlighting the role of synthetic pre-training in enhancing generalization and convergence. Even for larger datasets such as LSMI, pre-trained models maintain superior performance compared to the trained-from-scratch counterparts.
Dataset Reduction Experiment
To better reflect realistic training conditions, we explicitly analyse the impact of synthetic pre-training under progressively reduced amounts of real data, a scenario that commonly arises in multi-illuminant estimation benchmarks. We perform a dataset reduction study using the MIMO dataset. The training set is progressively reduced to 1/2, 1/4, and 1/8 of its original size, while the test set remains constant. Training follows a cross-fold validation scheme, and the UNet architecture is used, as it was the top-performing model in previous experiments. We compare models pre-trained on Hypersim-WB with those trained from scratch. Figure 3 shows the average angular error, best-quartile (B-25), worst-quartile (W-25), and 95th percentile values across different dataset cardinalities. As expected, performance degrades with decreasing dataset size, but fine-tuned models consistently outperform their from-scratch counterparts. Notably, pre-trained models exhibit a much slower degradation, demonstrating that synthetic pre-training provides robustness when real data are scarce.
Single-Illuminant Estimation Experiment
While Hypersim-WB is designed for multi-illuminant estimation with dense maps, it can be repurposed for single-illuminant tasks by averaging the ground-truth illuminant chromaticity over each image. We evaluate Gray World, FC [4], and the UNet and HDRNet architectures (averaging their dense predictions to obtain a single RGB illuminant vector). All models are pre-trained with the same hyperparameters described above and fine-tuned on the ColorChecker dataset [12]. Quantitative results are reported in Table 2. While UNet and HDRNet perform suboptimally for single-illuminant estimation, fine-tuned versions still outperform models trained from scratch. For HDRNet, the from-scratch model achieves slightly better W-25 and

Figure 3. Mean angular error for each considered training set size. The upper and lower bound represent respectively the mean of the worst quartile (W-25) and best quartile (B-25) results. The dotted lines correspond to the mean 95th percentile.
95th percentile values, but requires substantially longer training (359 epochs vs. 98 for the fine-tuned model), demonstrating that pre-training accelerates convergence while maintaining comparable performance. For , fine-tuning on Hypersim-WB consistently lowers the angular error compared to training from scratch, confirming that synthetic pre-training improves performance even in single-illuminant estimation.
Conclusions
In this work, we address data scarcity in illuminant estimation by proposing a general methodology for deriving dense illuminant supervision from physically based 3D-rendered scenes. By exploiting physically grounded illumination components, the proposed pipeline enables the extraction of pixel-wise illuminant chromaticity maps for supervised single- and multi-illuminant estimation. As a concrete instantiation, we apply it to the Hypersim 3D scene collection to generate large-scale synthetic training data. Extensive experiments with state-of-the-art architectures, including UNet, HDRNet, and FC , demonstrate that pre-training on the proposed synthetic dataset consistently improves performance when models are fine-tuned on real benchmarks. Gains are observed across datasets and tasks, with particularly strong improvements in multi-illuminant estimation and under limited real-data conditions. Moreover, synthetic pre-training accelerates convergence and enhances model robustness. These results highlight that physically based synthetic data offer an effective solution to the limitations imposed by scarce real-world annotations in illuminant estimation. Future work includes applying the pipeline to datasets featuring outdoor and more complex lighting conditions, as well as investigating domain adaptation to better transfer learned illuminant representations to real-world images.
References
[1] Marc Ebner, “Color constancy,” in Computer vision: A reference guide, pp. 1–9. Springer, 2020.
[2] Joost Van De Weijer, Theo Gevers, and Arjan Gijsenij, “Edge-based color constancy,” IEEE TIP, vol. 16, no. 9, pp. 2207–2214, 2007.
[3] Simone Bianco, Claudio Cusano, and Raimondo Schettini, “Color
Table 2. Quantitative results, in terms of angular error, of the considered methods for the task of single-illuminant estimation on the ColorChecker dataset [12]. For each learning-based method we compare a version trained from-scratch and one that is fine-tuned after pre-training on the Hypersim-WB dataset. We highlight in bold the per-method best and underline the per-dataset best.
| Method | Pre-training Data | ColorChecker [12] | |||
|---|---|---|---|---|---|
| Mean | B-25 | W-25 | 95-P | ||
| GW [2] | - | 4.80 | 1.72 | 7.11 | 13.20 |
| UNet [10] | - | 3.14 | 0.69 | 6.72 | 8.84 |
| Hypersim-WB | 2.94 | 0.63 | 6.76 | 7.55 | |
| HDRNet [9] | - | 3.53 | 0.90 | 7.20 | 9.25 |
| Hypersim-WB | 3.40 | 0.82 | 7.46 | 9.50 | |
| FC [4] | - | 4.02 | 1.36 | 8.29 | 9.76 |
| Hypersim-WB | 2.88 | 0.74 | 6.19 | 7.09 | |
constancy using cnns," in CVPR Workshops, 2015.
[4] Yuanming Hu, Baoyuan Wang, and Stephen Lin, “Fc4: Fully convolutional color constancy with confidence-weighted pooling,” in CVPR, 2017.
[5] Jonathan T Barron and Yun-Ta Tsai, “Fast fourier color constancy,” in CVPR, 2017.
[6] Dongyoung Kim, Jinwoo Kim, Junsang Yu, and Seon Joo Kim, “Attentive illumination decomposition model for multi-illuminant white balancing,” in CVPR, 2024.
[7] Mike Roberts, Jason Ramapuram, Anurag Ranjan, Atulit Kumar, Miguel Angel Bautista, Nathan Paczan, Russ Webb, and Joshua M Susskind, “Hypersim: A photorealistic synthetic dataset for holistic indoor scene understanding,” in ICCV, 2021.
[8] Olaf Ronneberger, Philipp Fischer, and Thomas Brox, “U-net: Convolutional networks for biomedical image segmentation,” in MIC-CAI, 2015.
[9] Michaël Gharbi, Jiawen Chen, Jonathan T Barron, Samuel W Hasinoff, and Frédo Durand, “Deep bilateral learning for real-time image enhancement,” ACM Transactions on Graphics (TOG), vol. 36, no. 4, pp. 118, 2017.
[10] Dongyoung Kim, Jinwoo Kim, Seonghyeon Nam, Dongwoo Lee, Yeonkyung Lee, Nahyup Kang, Hyong-Euk Lee, ByungIn Yoo, Jae-Joon Han, and Seon Joo Kim, “Large scale multi-illuminant (lsmi) dataset for developing white balance algorithm under mixed illumination,” in ICCV, 2021.
[11] Shida Beigpour, Christian Riess, Joost Van De Weijer, and Elli Angelopoulou, “Multi-illuminant estimation with conditional random fields,” IEEE TIP, vol. 23, no. 1, pp. 83–96, 2013.
[12] Ghalia Hemrit, Graham D Finlayson, Arjan Gijsenij, Peter Gehler, Simone Bianco, Brian Funt, Mark Drew, and Lilong Shi, “Rehabilitating the colorchecker dataset for illuminant estimation,” in CIC, 2018.
[13] Dongliang Cheng, Dilip K Prasad, and Michael S Brown, “Illuminant estimation for color constancy: why spatial-domain methods work and the role of the color distribution,” JOSA A, vol. 31, no. 5, pp. 1049–1058, 2014.
[14] Egor Ershov, Alexey Savchik, Illya Semenkov, Nikola Banić, Alexander Belokopytov, Daria Senshina, Karlo Koščević, Marko Subašić, and Sven Lončarić, “The cube++ illumination estimation dataset,” IEEE Access, vol. 8, pp. 227511–227527, 2020.
[15] Nikolaus Mayer, Eddy Ilg, Philip Hausser, Philipp Fischer, Daniel
Cremers, Alexey Dosovitskiy, and Thomas Brox, “A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation,” in CVPR, 2016.
[16] Stephan R Richter, Vibhav Vineet, Stefan Roth, and Vladlen Koltun, "Playing for data: Ground truth from computer games," in ECCV, 2016.
[17] German Ros, Laura Sellart, Joanna Materzynska, David Vazquez, and Antonio M Lopez, “The synthia dataset: A large collection of synthetic images for semantic segmentation of urban scenes,” in CVPR, 2016.
[18] Adrien Gaidon, Qiao Wang, Yohann Cabon, and Eleonora Vig, “Virtual worlds as proxy for multi-object tracking analysis,” in CVPR, 2016.
[19] Arjan Gijsenij, Theo Gevers, and Joost Van De Weijer, “Computational color constancy: Survey and experiments,” IEEE TIP, vol. 20, no. 9, pp. 2475–2489, 2011.
[20] Julian Straub, Thomas Whelan, Lingni Ma, Yufan Chen, Erik Wijmans, Simon Green, Jakob J Engel, Raul Mur-Artal, Carl Ren, Shobhit Verma, et al., “The replica dataset: A digital replica of indoor spaces,” arXiv preprint arXiv:1906.05797, 2019.
[21] Kingma Diederik, “Adam: A method for stochastic optimization,” in ICLR, 2015.
[22] Ilya Loshchilov and Frank Hutter, “Sgdr: Stochastic gradient descent with warm restarts,” in ICLR, 2017.