Feature distribution statistics as a loss objective for robust white balance correction
필름·전자재료 · (13) 프리즘 필름
기본 정보
- 저자
- DOI
- 10.1007/s00138-025-01680-1
- 저널
- Machine Vision and Applications
- 발행년도
- 2025
- 발행기관
- Springer Science+Business Media
- 피인용수
- 1
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1007/s00138-025-01680-1
- 토픽
- Color Science and Applications
- OpenAlex ID
- W4408608301
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (13) 프리즘 필름
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 51,261자
본문 펼치기
섹션 본문 81문단 · 49,066자
(제목 없음)
1diverse illuminants by neutralizing unwanted color casts.Traditional approaches to WB correction often rely on simplistic assumptions, such as the Gray-World hypothesis [1], which assume uniform illumination throughout the scene.Although computationally efficient, these methods struggle in complex real-world scenarios, where the interplay of multiple light sources can result in significant color distortions that such techniques cannot adequately address[2].The complexity of these scenarios is further illustrated in Fig.1, which demonstrates how different spectral signatures of light sources can alter the overall appearance of a scene.Such variations highlight the challenges posed by multiilluminant conditions, where simple assumptions about illumination often fail to account for the intricate interactions between light sources and scene elements.Recent advances in deep learning have brought notable improvements to WB correction by leveraging datadriven approaches to model complex lighting conditions.
Introduction
2Accurate reproduction of colors under varying lighting conditions remains a fundamental challenge in digital image processing, particularly in scenarios characterized by multiilluminant environments or non-uniform lighting distributions.White Balance (WB) correction, a critical component of the Image Signal Processor (ISP) pipeline, aims to ensure that colors in digital images are perceived correctly under Convolutional Neural Networks (CNNs) [3][4][5][6][7][8][9][10][11] and, more recently, attention-based architectures [12,13] have demonstrated the ability to learn mappings between input images and their desired white-balanced outputs.These models excel in capturing both global and local lighting variations, which makes them well suited to handle intricate illumination scenarios.However, most existing deep learning approaches focus on implicit feature extraction and do not explicitly consider the role of feature distributions in the learning process.As a result, they often fail to generalize to challenging multi-illuminant environments, where higherorder statistical shifts in feature distributions play a critical role in the perceived quality of the correction.
3This work builds upon the foundation of treating lighting as a style factor [14,15], a perspective that views illumination as a variable that influences the statistical properties of an image's features.By aligning the distributions of these features across various lighting conditions, it becomes possible to neutralize the stylistic effects of lighting while preserving the content and structure of the scene.Although prior work [15] has utilized statistical measures such as mean and variance to address such variations, these approaches remain limited in their ability to capture higherorder distributional characteristics, which are often critical for achieving perceptually accurate color corrections in complex lighting scenarios.
4The approach presented in this study introduces a novel optimization framework that utilizes feature distribution statistics as a loss objective for WB correction.This framework employs Exact Feature Distribution Matching (EFDM) [16] to align not only first-and second-order moments, but also higher-order statistics, such as skewness and kurtosis, of the feature distributions between input and target images.By treating these distributional shifts as a style factor to be corrected, the proposed method extends beyond the capabilities of existing techniques, which offers a more robust solution for multi-illuminant environments and non-uniform lighting conditions.The integration of EFDM with a Vision Transformer-based feature extraction [17] and a UNet-like Transformer-based architecture [18] further enhances the model's ability to adapt to varying scenarios, thus ensuring consistent and reliable performance across diverse datasets.
5This study provides a comprehensive analysis of feature distribution statistics under multi-illuminant conditions and demonstrates the efficacy of the proposed framework in addressing the limitations of both traditional and modern WB correction methods.By aligning the statistical properties of feature distributions, the method achieves a perceptual consistency that is both quantitative and qualitative in nature, which establishes a new benchmark for robustness in challenging lighting environments.Our key contributions are as follows:
6• EFDM is used as a training objective to enforce featurelevel alignment, ensuring the predicted feature distribution aligns with the ground truth illumination representation, instead of relying on pixel-wise intensity differences.• Through experimental validation, we show that higherorder statistics play a crucial role in capturing illumination shifts, and this makes EFDM a superior alternative to traditional loss functions used in WB correction.• EFDM is designed as an architecture-independent training objective and can be integrated into both CNN-based (e.g., UNet) and Transformer-based (e.g., Uformer) architectures without additional inference complexity.• EFDM ensures robust adaptation to diverse lighting conditions, particularly with improved generalization in multi-illuminant environments.
Related work
7The problem of WB correction has been extensively studied, with research evolving from simple statistical models to advanced deep learning techniques.The early approaches [1,[19][20][21][22][23][24][25][26][27][28] are based heavily on global statistical assumptions, such as the Gray-World hypothesis, which assumes that the average color of a scene should be gray under neutral lighting conditions [1].These methods focus on global illumination estimates to correct the entire image uniformly.
8Similarly, solutions based on gamut mapping [29][30][31][32] also offer computationally efficient techniques by restricting possible illuminant colors to a feasible gamut, ensuring that corrections remained within realistic limits.Both approaches are computationally efficient and straightforward in design, which makes them suitable for early WB correction tasks.However, these assumptions fail in complex environments where lighting conditions are not uniform, which results in overcorrection or undercorrection of color casts, particularly in scenes with mixed or multi-illuminant lighting [2,11].
9In addition to these methods, low-level statistical methods [28,[33][34][35][36][37][38][39][40][41][42] can be considered as an alternative, where they aim to refine illuminant estimation using statistics.These methods incorporate specialized statistical approaches to dynamically adjust illumination throughout the image, which improve the robustness of the corrections in some cases.However, their reliance on hand-crafted features and simplistic assumptions about scene structure often constrain their adaptability and effectiveness in diverse realworld environments.Scene semantics-based approaches [43][44][45][46][47] further extend these ideas by integrating a highlevel understanding of objects and their contexts, which allows models to use scene information to infer lighting conditions.Although it is promising, these methods relies heavily on predefined models and prior knowledge of the scenes, which makes them less suitable for uncontrolled or dynamic settings where new or unexpected lighting conditions could occur.
10The introduction of deep learning marked a significant shift in WB correction, where CNNs were used to directly learn the mappings between raw images and their white-balanced counterparts [3][4][5][6][7][8][9][10][11].These approaches demonstrate superior performance compared to traditional methods by capturing both global and local lighting variations through their strength in representing related features.With their ability to learn from large-scale datasets, CNN-based models bring greater flexibility and adaptability to WB correction, particularly in scenarios involving complex lighting [11].More recently, attention-based architectures [12,13] have introduced new capabilities by using self-attention mechanisms, which allow modeling long-range dependencies and global context in images.Despite these advancements, many deep learning methods still fail to explicitly model the distributional properties of image features, which this study demonstrates to be critical for handling multi-illuminant environments.By relying only on implicit feature extraction, they often lack the robustness needed to generalize to scenarios where higher-order statistics of feature distributions, such as skewness and kurtosis, play a critical role in achieving perceptually accurate corrections.
11The idea of treating feature distributions as style factors originates from research in style transfer and domain adaptation [14,15], where techniques such as Adaptive Instance Normalization (AdaIN) [48] shows that aligning feature statistics such as mean and variance could allow effective style manipulation without altering content.This approach demonstrates the importance of explicitly aligning statistical properties between source and target distributions, which inspires its application to other tasks such as image synthesis [49,50] and restoration [14].However, while these methods effectively capture first-and second-order statistics, they fail to address higher-order statistical characteristics that often play a crucial role in modeling complex variations introduced by style factors.To overcome these limitations, EFDM [16] is proposed, which aligns all the moments of the feature distributions utilizing the empirical cumulative distribution function (eCDF), thus providing a more comprehensive and precise mechanism for feature alignment.
12Although EFDM has shown its potential in tasks such as style transfer and domain adaptation, as evidenced by the reproducibility study [51], its application to WB correction remains largely underexplored.This study builds upon the foundational concept of modeling lighting as a style factor and extends it by integrating EFDM into a novel optimization framework.By explicitly aligning feature distributions across multiple moments, the proposed approach addresses the limitations of both traditional methods and existing deep learning-based techniques, offering a robust and flexible solution for WB correction.This framework not only incorporates higher-order statistics to enhance generalization, but also bridges the gap between statistical modeling and modern deep learning architectures, which enables effective handling of multi-illuminant environments where existing approaches often fall short.
13of feature maps, EFDM ensures that not only first-and second-order statistics (i.e., mean and variance) but also higher-order moments such as skewness and kurtosis are aligned.This provides a more comprehensive method for handling complex and non-linear distortions introduced by style factors.
14The theoretical foundation of EFDM is grounded in the Glivenko-Cantelli theorem [52], which guarantees the uniform convergence of the eCDF to the true CDF as the sample size increases:
15where Fn (x) is the empirical CDF, F (x) is the true CDF, and the convergence is uniform.Using this principle, EFDM matches feature distributions with precision by aligning their eCDFs.This allows the proposed method to handle intricate chromatic variations and complex lighting distortions more effectively than traditional Gaussian-based methods.
16The practical implementation of EFDM involves computing a rank-based transformation of the feature values in the predicted and target feature maps, followed by a pointwise comparison.Instead of relying on absolute intensity values, EFDM operates by sorting the feature values in both the predicted and reference feature representations and applying a transformation based on their relative ranks.This approach makes the loss function invariant to scale and
Methodology
17This section presents a WB correction framework with the proposed loss objective that emphasizes the role of feature distribution statistics in modeling and addressing complex illumination scenarios.Figure 2 provides an overview of the proposed framework for White Balance correction, highlighting its integration with FDM Loss.We first present the definition of the proposed objective function and then follow by an exploration of the critical role that distributional shifts play in driving color changes within a scene, particularly as they manifest in chromaticity channels and feature representations.The analysis delves into the global style information captured by Vision Transformers (ViT) [17], with a focus on the [CLS] token and its ability to encapsulate illumination-related variations.Finally, the statistical behavior of the chromaticity channel and feature distributions is examined under various illumination conditions.This underscores the limitations of traditional methods and demonstrates the robustness of the proposed approach to address these challenges.
Feature distribution statistics as a loss objective
18The proposed framework employs EFDM [16] as a loss objective, applied specifically to the [CLS] token in ViT [17].EFDM was introduced to address the limitations of Gaussian-based assumptions made by earlier feature alignment methods, such as those used in [48].By aligning the empirical cumulative distribution functions (eCDFs) Fig. 2 Overview of the proposed framework for White Balance correction leveraging FDM Loss.The network (i.e., Uformer, UNet) processes the input image (top left) to generate an illumination map in the UV color space (top right), which is subsequently used to reconstruct the predicted white-balanced RGB image (bottom right).ViT feature extractor is employed to extract the [CLS] tokens from both the predicted and ground truth images, which are then input into the EFDMbased loss function to align their feature distributions effectively distributions of the feature maps, effectively addressing variations introduced by multi-illuminant environments.
19By incorporating EFDM as a loss objective, named FDM Loss, the proposed framework achieves a robust WB correction.The ability to match exact feature distributions, beyond simple mean and variance alignment, allows the method to handle the intricate variations caused by complex lighting conditions.This ensures perceptual consistency and accurate color correction across diverse and challenging scenarios, solidifying EFDM's role as a cornerstone in the proposed methodology.
Style information in vision transformers
20The [CLS] token in ViTs has demonstrated versatility in representing global appearance characteristics across different scenes and images.This token aggregates key visual elements while remaining invariant to spatial configurations, and this capability makes it effective for tasks that require capturing style information.For example, it has been successfully applied in semantic appearance transfer tasks, where the global appearance of one image is applied to another while maintaining structural integrity [53].
21This flexibility extends to modeling lighting conditions, which can be considered as a style factor.The [CLS] token's ability to encapsulate global appearance properties, including illumination variations, makes it particularly suitable for tasks involving multi-illuminant settings.Unlike patchlevel features, which focus on localized details, the [CLS] token inherently captures global illumination characteristics, such as intensity, color temperature, and chromatic balance across the scene.This makes it ideal for EFDM-based alignment, which targets global style consistency in WB correction.
Analysis of illumination as distribution statistics
22To validate the proposed framework, an extensive analysis is conducted to understand the impact of varying illumination conditions, particularly in multi-illuminant scenarios, on chromaticity channels and feature distributions.
Chromaticity channel distributions under multiple illuminants
23Figure 3 illustrates how multi-illuminant conditions affect the chromaticity distributions in the U and V channels.The left columns show the RGB-rendered white-balanced and illuminated images that highlight the visual differences introduced by multi-illuminant lighting.The right columns present histograms for the U and V channels, comparing their distributions in the illuminated scenes (i.e., red and blue intensity variations, thus ensuring that feature alignments remain consistent under different conditions.
24The rank transformation, which is applied independently per feature channel, ensures that corresponding features are matched in a way that reflects their statistical relationships rather than their absolute magnitudes.This process enables EFDM to effectively capture distributional discrepancies between feature representations and enforce feature-level alignment without being affected by variations in scale, intensity, or structural distortions.Unlike conventional loss functions that rely on mean and variance normalization, EFDM aligns the entire feature distribution, allowing for a more precise optimization target in the context of white balance correction.
Algorithm 1 PyTorch-like pseudo-code for EFDM
25A simplified pseudocode representation of this implementation is provided in Algorithm 1, detailing the step-by-step process of computing EFDM loss.The rank transformation within the algorithm is implemented using argsort function, which determines the sorted order of the feature values, followed by gather, which maps these sorted indices back to their original positions to produce rank indices.This formulation ensures that the ranking process is numerically stable and is consistently applied across feature channels.
26In ViTs, the [CLS] token, 384-dimensional feature vector, serves as a global representation of the image by aggregating information from all input patches [53].This property makes the [CLS] token particularly effective in capturing global style characteristics, including illumination and chromatic consistency, which are critical for accurate WB correction.Using this global representation, the EFDM precisely aligns the predicted and ground-truth [CLS] token distributions to ensure robust illumination modeling across diverse scenes.
27Our proposed FDM loss function is mathematically defined as:
28where f pred [i] and f gt [i] are elements of the predicted and ground-truth [CLS] token vectors, respectively.The function rank(•) maps each element of f pred to its corresponding position in the sorted vector f gt .By aligning the ranks, EFDM ensures precise matching of the empirical an illuminated scene with at least two light sources, and the corresponding [CLS] token feature distributions.The histograms on the right depict the distribution of normalized [CLS] token features under these varying lighting conditions to offer insights into the impact of illumination on feature statistics.The observed variations in feature distributions underscore the significant challenges posed by multiple illuminants in feature representation.These challenges reveal the limitations of methods that align only basic statistics.Although these methods can handle simpler lighting scenarios, in other words, more uniform lighting scenarios, they struggle in complex settings involving multiple light sources.Multi-illuminant environments often result in interactions between illuminants with distinct spectral properties.This can introduce color shifts that are neither predictable nor uniformly distributed across the image.The findings emphasize the importance of adopting a more nuanced approach that surpasses lower-order statistical alignment to effectively capture the chromatic shifts caused by complex illumination conditions.
29Our analysis reveals that higher-order statistics, including skewness and kurtosis, exhibit pronounced variations between white-balanced images and those captured under histograms) with those of the ground truth white-balanced images (i.e., gray histograms).Across three camera models (i.e., Galaxy, Nikon, Sony), the histograms for white-balanced images exhibit narrow distributions with low skewness and kurtosis, which indicates uniform chromaticity.In contrast, images captured with multiple illuminants show wider and more skewed distributions, which reflects the complex spectral interactions introduced by multiple light sources.
30The widening and asymmetry in these distributions reveal the higher-order distortions caused by multi-illuminant lighting.Elevated kurtosis values indicate the presence of extreme chromatic variations or outliers, while skewness reflects asymmetry in the color distribution.These distortions challenge previous methods that align only mean and variance, which underscores the need to align higher-order moments to ensure a robust WB correction.In contrast, higher-order statistics show significant deviations, which reflects the complex interactions of multiple light sources in real-world scenes.The results indicate that higher-order statistics capture substantial deviations between illuminated and white-balanced images compared to lower-order statistics.This distinction is particularly evident across all three camera setups, highlighting the importance of incorporating higher-order statistical alignment for robust WB correction.
Multi-illuminant effects on feature distributions
31These findings validate the claim for the inadequacy of lower-order alignment for handling the non-Gaussian distortions introduced by multi-illuminant lighting.Higherorder statistics can provide a more nuanced representation of these variations by capturing the intricate chromatic effects that define multi-illuminant environments.By aligning the full feature distribution, EFDM can ensure robust WB correction by preserving both lower-and higher-order moments to deliver perceptually consistent results.multi-illuminant conditions.Specifically, these higher-order deviations reflect the non-Gaussian characteristics induced by the interplay of multiple light sources.Skewness captures the asymmetry of color distributions, which indicates a dominance of certain hues due to specific illuminants, while kurtosis reflects the presence of extreme chromatic variations, or heavy tails in the distribution.These characteristics illustrate how multi-illuminant environments can amplify complex chromatic interactions, which may further complicate WB correction.
32The analysis demonstrates that aligning only mean and variance inadequately represents the full scope of chromatic distortions in such scenarios.For instance, while lowerorder statistics might capture general trends in illumination, they fail to address the intricate variations caused by multiple light sources, resulting in a suboptimal WB correction.By incorporating higher-order statistics, such as those modeled through EFDM, these limitations can be overcome.Several prior works have explored the importance of feature distribution constraints in deep learning.For instance, Batch Normalization [54] stabilizes training by normalizing feature distributions, while Contrastive Learning [55][56][57][58][59][60][61][62][63] indirectly aligns representations through their statistical characteristics.More explicitly, optimal transport-based loss functions [58,59] align distributions in structured prediction tasks.EFDM follows a similar philosophy, but operates at the feature level, providing a robust and computationally efficient alternative to direct pixel-wise losses.
Feature distribution matching beyond attention mechanism
33While attention mechanisms dynamically adjust feature relationships by reweighting pairwise dependencies, they do not explicitly enforce feature distribution alignment.Self-attention operates by computing similarity scores between features, enabling the model to emphasize relevant dependencies, but it does not directly constrain the statistical structure of learned feature maps.
34In contrast, EFDM explicitly aligns feature distributions by sorting and matching feature values, ensuring that the predicted feature distribution retains statistical consistency with the reference.Unlike pixel-wise losses, which focus on intensity differences, or attention mechanisms, which refine feature importance, EFDM directly minimizes distributional discrepancies, affecting not just first-order statistics but also higher-order moments such as variance, skewness, and kurtosis.Our analysis further supports this distinction, demonstrating that higher-order moments effectively
35(
36The R, G, and B channels are normalized by dividing by the white level and subsequently clamped to the range [0, 1] to maintain intensity consistency in the reconstructed image.The reconstructed image is then processed using a pre-trained Vision Transformer model, which extracts the [CLS] token as its global representation.Similarly, the ground truth white-balanced image undergoes the same process to obtain its corresponding [CLS] token.The proposed FDM loss function is applied to align the distributions of the predicted and ground truth [CLS] tokens, ensuring precise matching of their empirical distributions across all statistical moments.Furthermore, the attention mechanism of Uformer facilitates effective modeling of both local and global illumination variations, which may relax the complexities of multi-illuminant scenarios.To independently validate the effectiveness of the proposed loss objective, separate from Uformer's contribution, it is also evaluated on the UNet [61] architecture, a widely used CNN architecture for image processing.Both architectures employ FDM loss to align feature distributions across varying illumination conditions to ensure robust performance in challenging lighting environments.
37The framework is optimized using the Adam optimizer [62] with β 1 = 0.5 and β 2 = 0.999.The model is trained with a batch size of 32 and an initial learning rate of 2 × 10 −4 , which is progressively reduced over the final 800 epochs to refine the convergence of the model.Training is carried out over 2, 400 epochs, ensuring sufficient iterations for the model to fully optimize its parameters.
38The choice of Adam optimizer was motivated by its ability to efficiently adapt learning rates across different parameters, making it well-suited for tasks involving complex feature distributions.The learning rate decay in the later training stages was introduced as a stabilization mechanism to prevent large updates from destabilizing the model after reaching a refined feature alignment.These hyperparameters were determined on the basis of extensive experimental trials, balancing training efficiency and convergence speed.
39The batch size of 32 was selected on the basis of available GPU resources, ensuring optimal memory utilization while maintaining stable optimization dynamics.Since batch size affects both learning rate selection and total training epochs, these values were chosen through empirical evaluations to achieve the best convergence behavior without introducing computational bottlenecks.Training is conducted on 2× NVIDIA A100 GPUs, leveraging their high computational efficiency for processing large-scale datasets.
Experimental results
40This section outlines the experimental setup used to evaluate the proposed framework.We detail the dataset and preprocessing techniques, describe the architectural choices and hyperparameters for training, and specify the metrics used for quantitative and qualitative evaluations.These components are designed to rigorously assess the effectiveness and robustness of the proposed objective in various illumination scenarios.
Dataset and preprocessing
41The experiments are conducted on the LSMI dataset [60], which provides a comprehensive benchmark for WB correction across diverse illumination conditions.The dataset includes samples captured using three distinct camera models: Galaxy, Nikon, and Sony.Each sample consists of ground truth white-balanced images, images captured under single illuminants, and those affected by multi-illuminant lighting scenarios.This dataset is particularly suited for evaluating the robustness of WB correction methods due to its diverse range of lighting conditions and camera-specific characteristics.
42All images undergo a random resized crop to 256 × 256 pixels during training.The full scope of illumination settings, including single-and multi-illuminant samples, is utilized to increase the robustness of model.Furthermore, random illumination augmentation, as proposed in [60], is applied with a saturation range of 0.2 to 0.8 and a hue threshold of 0.25.This augmentation strategy was introduced to simulate real-world variations in color temperature and illumination conditions.By introducing controlled perturbations in saturation and hue, the model is exposed to a broader distribution of color shifts, and this improves its ability to handle both single-and mixed-illuminant conditions.
Architecture & details
43The proposed framework integrates the Feature Distribution Matching (FDM) loss function into the Uformer [18] architecture, a Vision Transformer-based model designed for image restoration tasks.Input images are first converted into the UVL color space before being processed by the network.The network outputs two channels, U and V, corresponding to the chromatic components R/G and B/G, respectively.These channels are then combined with the G channel of the original input image to reconstruct the white-balanced RGB image, as defined by Eq. 3. across these scenarios, our proposed objective demonstrates its ability to address practical challenges in WB correction.
Complexity analysis
44Since we integrate EFDM into a training objective rather than an architectural modification, it does not introduce additional computational complexity during inference or deployment.While inference time and model size depend on the chosen backbone architecture, a balanced comparison is provided by evaluating using EFDM as loss function with both CNN-based (i.e., UNet) and Transformer-based (i.e., Uformer) architectures.Among the compared methods, AID [13] employs an attention-based approach, making its computational characteristics similar to Uformer, while One-Net [63] and HDRNet [64] use CNN-based feature extraction, resembling UNet.This ensures that our experimental setup covers a range of architectures with comparable computational properties, demonstrating that EFDM integration does not impose additional inference costs beyond what is expected in existing approaches.
Experimental results
45Tables 1, 2, and 3 present the benchmark results on the LSMI dataset [60], showcasing the performance of various
Evaluation metrics
46In this study, the primary evaluation metric is the Mean Absolute Error (MAE) between the corrected and ground truth images.In addition to MAE, we propose a novel evaluation metric, namely Multi-to-Single Ratio (MSR), which can be used to assess the generalization ability of the models across single-and multi-illuminant scenarios.Qualitative evaluations include visual comparisons of corrected images to highlight the perceptual improvements achieved by the proposed method.
47The Multi-to-Single Ratio is defined as the ratio of the mean MAE in multi-illuminant scenarios to the mean MAE in single-illuminant scenarios across all samples in the given dataset.This metric evaluates a model's ability to generalize effectively to multi-illuminant conditions while avoiding overfitting to single-illuminant scenarios.An MSR value closer to 1 indicates superior adaptability, while a higher MSR reflects greater performance degradation between single-and multi-illuminant conditions.
48The proposed MSR provides a deeper insight into the robustness of the model.Overfitting to single-illuminant scenarios often leads to significant performance degradation under multi-illuminant conditions, which are more representative of real-world settings.By maintaining a balance value of 2.14, which reflects its overreliance on single-illuminant conditions.
49In contrast, Uformer with FDM Loss achieves an MSR value close to 1 across all configurations, which indicates its strong generalization ability.For the Galaxy, Nikon, and Sony cameras, the ratios are 1.05, 1.22 and 1.10, respectively.These values underscore the ability of the method to maintain robust performance in multi-illuminant conditions without sacrificing accuracy in single-illuminant scenarios.
50Traditional methods, such as HDRNet and UNet, while competitive in single-illuminant scenarios, fail to maintain similar levels of accuracy under multi-illuminant conditions.For example, HDRNet, reported for the Galaxy camera, achieves a mean MAE of 2.85 in single-illuminant scenarios but only improves marginally to 3.13 in multi-illuminant settings.Similarly, UNet achieves a mean MAE of 2.83 on the Sony camera under single-illuminant conditions, but its performance degrades to 3.04 in multi-illuminant settings.
51The results highlight the importance of achieving a balance between single-and multi-illuminant performance for practical real-world applications.The ability of our proposed approach, Uformer with FDM Loss, to generalize across varied conditions without overfitting makes it a highly reliable solution for WB correction.Its superior performance in multi-illuminant conditions, coupled with an MSR value closer to 1, underscores its robustness and adaptability.This robustness can be attributed to the feature distribution matching mechanism, which directly aligns feature representations rather than relying on pixel-wise intensity comparisons or statistical normalization techniques.Compared methods such as HDRNet [64] and One-Net [63] optimize the illumination by minimizing direct pixel-level errors, which often leads to overfitting in single-illuminant settings and instability when illumination conditions vary significantly.
52In contrast, EFDM preserves the overall structure of feature distributions, ensuring that learned representations remain consistent across different lighting conditions and preventing excessive adaptation to a specific illuminant type.This ability to maintain stable performance under methods, including our proposed approach, Uformer with FDM Loss, under single-, multi-, and mixed-illuminant scenarios for Galaxy, Nikon, and Sony cameras.The results demonstrate the effectiveness of integrating the EFDMbased loss function into the Uformer architecture for WB correction.Our proposed loss objective with Uformer architecture ensures robust performance under challenging multi-illuminant conditions while maintaining accuracy in single-illuminant scenarios.
Benchmark on the LSMI dataset
53In multi-illuminant scenarios, the Uformer with FDM Loss achieves state-of-the-art performance across all three camera setups, as demonstrated by both the mean and median MAE values.For the Galaxy camera, Uformer with FDM Loss records a mean MAE of 1.87 and a median of 1.69 in multi-illuminant scenarios, outperforming key competitors such as One-Net (2.16, 1.53).Similarly, for the Nikon camera, the proposed method achieves a mean MAE of 1.54 and a median of 1.13, surpassing One-Net (1.99, 1.43) and other notable methods.On the Sony camera, Uformer with FDM Loss achieves a mean MAE of 1.67 and a median of 1.57, which further solidifies its superiority under multiilluminant conditions.The consistent performance across all three camera setups highlights the robustness of the proposed method in handling challenging lighting conditions.By using EFDM as the loss function to ensure the exact match of feature distributions, the method effectively models the interaction of multiple light sources, which results in superior perceptual quality and accurate color correction.
54Several competing methods demonstrate strong performance in single-illuminant scenarios but exhibit significant performance degradation under multi-illuminant conditions that suggests a tendency for overfitting.For instance, on the Galaxy camera, One-Net achieves a mean MAE of 1.19 in single-illuminant scenarios but increases to 2.16 in multiilluminant scenarios, which results in a high MSR value of 1.82.Similarly, AID on the Sony camera achieves an MSR multi-illuminant scenarios.For the Galaxy camera, the mean MAE improves from 2.03 with MSE loss to 1.87 with FDM loss.This demonstrates the robustness of our proposed loss function under complex lighting conditions.Similarly, for the Nikon camera, the mean MAE is reduced from 1.56 with MSE loss to 1.43 with FDM loss, which reflects improved mixed-illuminant performance.
55Unlike MSE loss, which focuses solely on minimizing pixel-wise intensity differences, FDM loss captures intricate relationships among image regions by incorporating higherorder statistical insights derived from feature information.In combination with Uformer's attention mechanisms, which capture both global context and local relationships, our framework ensures spatial consistency, which is a critical requirement for handling uneven lighting variations across a scene.This enhanced capability enables the proposed loss objective to generalize effectively across diverse scenes without overfitting to specific illumination conditions, as evidenced by the balanced MSR values observed across the three camera setups.
56The results in Table 5 demonstrate the versatility of the proposed FDM loss through its significant performance improvements within the UNet architecture.For the Sony camera, the multi-illuminant mean MAE decreases from 3.04 with MSE loss to 2.10 with FDM loss.Similarly, the mixed-illuminant mean MAE improves from 2.94 to 2.04.These results highlight the adaptability of FDM loss, effectively enhancing the performance of a convolutional network like UNet, despite its architectural limitations compared to Uformer.multi-illuminant scenarios is particularly crucial, as common pixel-intensity-based loss functions struggle with the non-linear interactions of multiple light sources.The consistently low MSR values achieved further validate that EFDM's distribution matching prevents catastrophic degradation under complex illumination settings, making it a more reliable objective function for real-world applications.
Ablation study
57Ablation studies systematically evaluate the contributions of the proposed FDM loss function and its adaptability in different architectures.By isolating the effect of the loss function and comparing its performance within different architectures, we provide compelling evidence for the superiority of the proposed methodology in addressing the complexities of WB correction under diverse illumination scenarios.
58The results presented in Table 4 illustrate the significant advantages of employing the FDM loss function over the traditional pixel-wise mean squared error loss.The key strength of the FDM loss lies in its ability to perform exact feature distribution matching, which ensures that higherorder statistics, such as skewness and kurtosis, are effectively aligned between the predicted and ground truth images.This capability enables the model to better handle non-Gaussian and highly variable illumination conditions, which are common in multi-and mixed-illuminant scenarios.
59For example, applying the FDM loss to the Uformer architecture significantly improves performance in In summary, our proposed approach effectively overcomes the limitations of traditional methods by delivering robust and reliable performance in diverse camera setups and challenging illumination conditions.These results highlight the practical applicability and versatility of our proposed method in real-world imaging scenarios.
Comparison with state-of-the-art
60To further evaluate the effectiveness of our proposed approach, we present a qualitative comparison with LSMI-U [60] and AID [13], as shown in Fig. 9. Given the lack of publicly available models for state-of-the-art methods, it was not possible to directly reproduce their results on the LSMI test set.Instead, we extracted qualitative results for AID from their original paper to enable a fair comparison.However, OneNet [63] does not provide test set comparisons in their qualitative results, making its inclusion infeasible.
61The results highlight the differences in illumination estimation among the methods.LSMI-U, which serves as a baseline dataset-derived approach, demonstrates reasonable WB correction but exhibits residual color shifts in challenging multi-illuminant scenarios.AID, designed for illumination decomposition, estimates chromatic illumination components rather than optimizing for perceptual correction, leading to noticeable deviations in certain regions.By contrast, both variants of our method produce more consistent illumination maps with fewer artifacts, reinforcing the effectiveness of using EFDM as a training objective to enforce feature distribution alignment for robust WB correction.
62Notably, in cases where the scene contains strong color casts, the proposed Uformer with FDM Loss model demonstrates improved adaptation to multi-illuminant conditions, as seen in the highlighted regions.The method effectively mitigates undesired tints and preserves global color consistency.However, slight deviations in illumination maps can still be observed, particularly in highly saturated regions, which may indicate potential areas for future improvement in illuminant adaptation.
Failure case analysis
63Although the proposed method demonstrates strong performance in WB correction across diverse scenarios, certain failure cases reveal limitations under complex illumination conditions.Figure 10 presents the cases where the method encounters challenging lighting conditions, which leads to deviations from the ground truth.In these cases, the predicted illumination maps diverge from the reference, particularly in regions with mixed or non-uniform lighting distributions.The corresponding corrected images exhibit Additionally, we evaluate the effectiveness of using AdaIN-stylized feature difference (AdaIN-s) as a loss function to enforce only first-and second-order feature alignment.Although AdaIN-s outperforms MSE in some cases, particularly on the Nikon camera, where it achieves the lowest multi-illuminant mean MAE, it remains less effective than FDM in other scenarios.This suggests that enforcing only mean and variance alignment provides improvements over traditional pixel-wise loss functions, but remains insufficient for robust WB correction under diverse illumination conditions compared to full distribution alignment.
64The seamless integration of FDM loss with both Uformer and UNet architectures underscores its robustness and generalizability as an optimization objective.While Uformer leverages its Transformer-based design to inherently capture both local and global image features, the proposed loss function ensures that even UNet, with its more localized receptive field, achieves substantial performance gains.This adaptability demonstrates the effectiveness of FDM loss in meeting various architectural requirements while consistently providing superior performance in various illumination scenarios.
Qualitative results
65The qualitative comparisons in Figs. 6, 7, and 8 illustrate the efficacy of our proposed approach, Uformer with FDM loss, in addressing the challenges posed by multi-illuminant scenarios in the LSMI dataset.Each figure comprises three samples, with six rows in total.The odd-numbered rows include the illuminated version of the scene, followed by WB correction results from three different methods (i.e., UNet with FDM Loss, Uformer with MSE Loss and Uformer with FDM Loss), and finally the ground truth white-balanced image in the last column.The evennumbered rows display the RAW image, the corresponding network outputs in the UV color space representing the illumination, and the ground truth illumination in the last column.Across the three camera setups (i.e., Galaxy, Nikon, Sony), these results consistently demonstrate that our method outperforms counterparts, including those utilizing traditional loss functions such as MSE and traditional architectures like UNet, in achieving perceptually accurate WB correction under diverse lighting conditions.
66The introduction of FDM-based loss represents a significant advancement in performance by enabling exact matching of feature distributions for the [CLS] token, a critical representation of global image characteristics.By harnessing the [CLS] token's representational power in the global context, the FDM loss not only ensures spatial consistency but also preserves intricate lighting details and color fidelity, particularly in complex multi-illuminant scenarios.local illumination nuances.While pixel-wise methods rely on intensity adjustments to correct for such variations, EFDM focuses on feature distribution alignment, which, although more robust to overall illumination shifts, does not explicitly enforce spatial coherence in extreme cases.Furthermore, environments with highly reflective surfaces or strong saturation can lead to slight deviations in the predicted illumination maps, particularly in regions where illumination discontinuities are highly localized.Despite these challenges, the method consistently maintains strong performance in diverse illumination conditions, and these cases suggest potential areas for further refinement, such as incorporating additional spatial priors to further enhance stability in extreme lighting scenarios.
Conclusion
67This study introduces a novel approach to WB correction by leveraging feature distribution statistics as an optimization objective, addressing challenges posed by multi-illuminant noticeable color shifts, and the angular error values remain higher than in other cases, which indicates the impact of these failures on overall performance.
68One of the primary challenges observed is the difficulty in handling complex mixed illuminant regions, particularly in scenes where multiple light sources interact, such as a combination of natural daylight and artificial indoor lighting.Although the proposed method effectively aligns feature distributions in most cases, the predicted illumination maps in these scenarios can introduce artifacts.This suggests that EFDM may require further refinement to enforce consistent alignment when multiple dominant illuminants are present.As a result, corrected images may exhibit residual color shifts in highly complex lighting conditions.Additionally, in cases with strong directional illumination creating pronounced shadowed and brightly lit areas, the model can exhibit minor chromatic inconsistencies in the predicted illumination maps.This behavior does not necessarily indicate a failure to generalize, but rather highlights the challenges posed by extreme lighting variations, where global feature alignment alone may not fully capture scenarios.By integrating EFDM loss into the Uformer architecture, the proposed method aligns higher-order statistical properties of feature distributions, which enables accurate and robust WB correction.Experimental results demonstrate state-of-the-art performance in multi-illuminant conditions across diverse camera setups, with consistent generalization reflected in balanced MSR values.The approach effectively balances global color consistency with local detail fidelity, and it outperforms traditional and modern methods under complex lighting scenarios.This work establishes a robust framework for WB correction and highlights the potential of distribution-based methodologies for broader image enhancement tasks, offering a foundation for future research into challenging real-world applications.Lastly, based on the insights gained from this study, future research will explore advanced methodologies to further enhance the robustness and scalability of distribution-based optimization for WB correction.Diffusion models [66,67], which have shown great potential in modeling complex data distributions, will be investigated as a means to tackle intricate illumination scenarios.Additionally, frameworks such as flow matching [68] combined with neural ordinary differential equations (ODEs) [69] offer promising avenues for optimizing high-dimensional feature distributions.
Fig. 1
69Fig. 1 Different spectral signatures of the light sources in a sample scene.The columns represent various illumination setups: 'Illum-1' corresponds to the scene illuminated by a single light source, 'Illum-
Figure 4
70Figure 4 highlights the impact of multi-illuminant lighting on the feature distributions of the [CLS] token.Each sample, from different camera models (i.e., Galaxy, Nikon, and Sony), illustrates a ground truth white-balanced image,
Fig. 3
71Fig. 3 Chromaticity channel distributions under different lighting conditions
Figure 5
72Figure 5 presents the mean, standard deviation, skewness, and kurtosis of the [CLS] token distributions across all
Fig. 4 [
73Fig. 4 [CLS] token distribution statistics for samples from different cameras
Fig. 5 [
74Fig. 5 [CLS] token distribution statistics for illuminated vs. white balanced images across three cameras in the LSMI dataset
Fig. 6 3 Fig. 7 3 Fig. 8
75Fig. 6 Visual comparison of WB correction outputs on the Galaxy camera from the LSMI dataset.Image indices: 312, 323, 896
Fig. 10 Fig. 9
76Fig. 10 Illustration of failure cases observed in our proposed method.Image indices: 144, 20, 242
Table 1
77Benchmark results on the LSMI dataset for the Galaxy camera The Multi-to-Single Ratio reflects the robustness of the models in multi-illuminant scenarios
Table 2
78Benchmark results on the LSMI dataset for the Nikon camera
Table 3
79Benchmark results on the LSMI dataset for the Sony camera
Table 4
80Ablation study on the proposed loss function using the Uformer architecture
Table 5
81Ablation study on the proposed loss function using the UNet architecture
참고문헌 59건
- Convolutional Color Constancy 2015 10.1109/iccv.2015.51
- Shades of Gray and Colour Constancy Color and Imaging Conference · 2004 10.2352/cic.2004.12.1.art00008
- Applying Visual Object Categorization and Memory Colors for Automatic Color Constancy Lecture notes in computer science · Springer Science+Business Media · 2009 10.1007/978-3-642-04146-4_93
- U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
- Single and Multiple Illuminant Estimation Using Convolutional Neural Networks IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2017 10.1109/tip.2017.2713044
- Color constancy using CNNs 2015 10.1109/cvprw.2015.7301275
- Edge-Based Color Constancy IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2007 10.1109/tip.2007.901808
- Advances in neural information processing systems 7 Neurocomputing · Elsevier BV · 1997 10.1016/s0925-2312(97)90018-7
- A spatial processor model for object colour perception Journal of the Franklin Institute · Elsevier BV · 1980 10.1016/0016-0032(80)90058-7
- Color constancy based on local space average color Machine Vision and Applications · Springer Science+Business Media · 2008 10.1007/s00138-008-0126-2
- Illuminant estimation for color constancy: why spatial-domain methods work and the role of the color distribution Journal of the Optical Society of America A · Optica Publishing Group · 2014 10.1364/josaa.31.001049
- Computational Color Constancy: Survey and Experiments IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2011 10.1109/tip.2011.2118224
- Bayesian color constancy revisited 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2008 10.1109/cvpr.2008.4587765
- Generalized Gamut Mapping using Image Derivative Structures for Color Constancy International Journal of Computer Vision · Springer Science+Business Media · 2008 10.1007/s11263-008-0171-3
- Improving Color Constancy by Photometric Edge Weighting IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2011 10.1109/tpami.2011.197
- Gamut Constrained Illuminant Estimation International Journal of Computer Vision · Springer Science+Business Media · 2006 10.1007/s11263-006-4100-z
- Color and illuminant voting IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 1999 10.1109/34.809114
- Efficient Color Constancy with Local Surface Reflectance Statistics Lecture notes in computer science · Springer Science+Business Media · 2014 10.1007/978-3-319-10605-2_11
- Improving Color Constancy Using Indoor–Outdoor Image Classification IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2008 10.1109/tip.2008.2006661
- Improving gamut mapping color constancy IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2000 10.1109/83.869188
- A novel algorithm for color constancy International Journal of Computer Vision · Springer Science+Business Media · 1990 10.1007/bf00056770
- Color by correlation: a simple, unifying framework for color constancy IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2001 10.1109/34.969113
- Color constancy using 3D scene geometry 2009 10.1109/iccv.2009.5459391
- Color Constancy Using Natural Image Statistics and Scene Semantics IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2010 10.1109/tpami.2010.93
- Analysis of the retinex theory of color vision Journal of the Optical Society of America A · Optica Publishing Group · 1986 10.1364/josaa.3.001651
- Color constancy using KL-divergence 2002 10.1109/iccv.2001.937524
- Bayesian color constancy Journal of the Optical Society of America A · Optica Publishing Group · 1997 10.1364/josaa.14.001393
- Using High-Level Visual Information for Color Constancy 2007 10.1109/iccv.2007.4409109
- Automatic White Balancing via Gray Surface Identification Color and Imaging Conference · 2007 10.2352/cic.2007.15.1.art00027
- Deep Specialized Network for Illuminant Estimation Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46493-0_23
- Arbitrary Style Transfer in Real-Time with Adaptive Instance Normalization 2017 10.1109/iccv.2017.167
- FC^4: Fully Convolutional Color Constancy with Confidence-Weighted Pooling 2017 10.1109/cvpr.2017.43
- As-projective-as-possible bias correction for illumination estimation algorithms Journal of the Optical Society of America A · Optica Publishing Group · 2018 10.1364/josaa.36.000071
- Quasi-Unsupervised Color Constancy 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.01249
- Revisiting Gray Pixel for Statistical Illumination Estimation Proceedings of the 17th International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications · 2019 10.5220/0007406900360046
- When Color Constancy Goes Wrong: Correcting Improperly White-Balanced Images 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.00163
- HDRNET 2019 10.1145/3330393.3330426
- Green Stability Assumption: Unsupervised Learning for Statistics-Based Illumination Estimation Journal of Imaging · Multidisciplinary Digital Publishing Institute · 2018 10.3390/jimaging4110127
- A Style-Based Generator Architecture for Generative Adversarial Networks 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.00453
- Image-to-Image Translation with Conditional Adversarial Networks 2017 10.1109/cvpr.2017.632
- Unsupervised Embedding Learning via Invariant and Spreading Instance Feature 2019 10.1109/cvpr.2019.00637
- On Finding Gray Pixels 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.00825
- Deep White-Balance Editing 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2020 10.1109/cvpr42600.2020.00147
- Analyzing and Improving the Image Quality of StyleGAN 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2020 10.1109/cvpr42600.2020.00813
- Contrastive Representation Learning: A Framework and Review IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.3031549
- CLCC: Contrastive Learning for Color Constancy 2021 10.1109/cvpr46437.2021.00796
- Instagram Filter Removal on Fashionable Images 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · 2021 10.1109/cvprw53098.2021.00083
- Large Scale Multi-Illuminant (LSMI) Dataset for Developing White Balance Algorithm under Mixed Illumination 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2021 10.1109/iccv48922.2021.00241
- Computational Optimal Transport: With Applications to Data Science Foundations and Trends® in Machine Learning · Now Publishers · 2019 10.1561/2200000073
- Auto White-Balance Correction for Mixed-Illuminant Scenes 2022 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) · 2022 10.1109/wacv51458.2022.00101
- Proceedings. 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition 2005 10.1109/cvpr.2005.3
- Splicing ViT Features for Semantic Appearance Transfer 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2022 10.1109/cvpr52688.2022.01048
- Exact Feature Distribution Matching for Arbitrary Style Transfer and Domain Generalization 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2022 10.1109/cvpr52688.2022.00787
- Uformer: A General U-Shaped Transformer for Image Restoration 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2022 10.1109/cvpr52688.2022.01716
- Modeling the Lighting in Scenes as Style for Auto White-Balance Correction 2022 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) · 2023 10.1109/wacv56688.2023.00488
- Color constancy for non-uniform illumination estimation with variable number of illuminants Neural Computing and Applications · Springer Science+Business Media · 2023 10.1007/s00521-023-08487-z
- The Role of Bright Pixels in Illumination Estimation Color and Imaging Conference · Society for Imaging Science & Technology · 2012 10.2352/cic.2012.20.1.art00008
- Inversion-based Style Transfer with Diffusion Models 2023 10.1109/cvpr52729.2023.00978
- Attentive Illumination Decomposition Model for Multi-Illuminant White Balancing 2024 10.1109/cvpr52733.2024.02410