Next Article in Journal
Feature Complementarity-Guided Multi-Weight Multi-Scale Fusion Framework for Underwater Image Enhancement
Previous Article in Journal
On the Effects of Motion Coupling on Linear and Quadratic Damping in Multi-DoF Modelling of Floating Offshore Wind Turbines
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

HVIFormer: A Dual-Stage Low-Light Image Enhancement Method Based on HVI Representation

College of Science, Beijing Forestry University, Beijing 100083, China
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2026, 16(5), 2450; https://doi.org/10.3390/app16052450
Submission received: 8 February 2026 / Revised: 28 February 2026 / Accepted: 2 March 2026 / Published: 3 March 2026

Abstract

Low-light image enhancement improves the quality of video surveillance and image analysis and, as a result, has long been a hot topic in image processing. However, current research on this topic faces a difficult challenge—effectively suppressing noise while improving brightness and maintaining color consistency, especially in extremely dark scenes, where dark noise amplification, uneven exposure, and color shifts often interact, leading to detail loss and color distortion. To address the issue, we propose a dual-stage low-light enhancement framework based on the HVI (Horizontal/Vertical-Intensity) color space. The low-light image is first mapped to the HVI space, obtaining the intensity component I and the HVI-based feature map, with I being explicitly extracted as an intensity prior. A Transformer-based pre-recovery module is introduced for global dependency modeling, guided by the intensity prior I through an Intensity-Conditioned Block (ICB) for conditional feature interaction. Subsequently, a dual-branch enhancement network utilizes lightweight Complementary Cross-Attention (CCA) blocks for brightness refinement and color denoising. Finally, the enhanced image is remapped to the sRGB color space. The proposed framework decouples global brightness recovery and feature preprocessing from detail enhancement and color refinement, improving stability in extremely dark and high-noise scenarios. Through 18 quantitative and qualitative experiments, we demonstrate that our proposed method achieves superior performance in dark noise suppression and color restoration across multiple low-light datasets.

1. Introduction

Low-light images are commonly captured under insufficient illumination and are degraded by low ambient light, sensor noise, and uneven exposure, leading to missing details in dark regions, amplified noise, and color distortion [1]. Such images arise in nighttime surveillance, autonomous driving, robotics, mobile photography, and medical imaging, where degraded visibility severely hinders both visual quality and downstream vision tasks. Consequently, Low-Light Image Enhancement (LLIE) aims to recover perceptually pleasing images by improving brightness and contrast, restoring hidden details, correcting colors, and suppressing noise without introducing overexposure or color shifts.
Existing LLIE methods mainly face two primary challenges. On one hand, there are limitations in the adaptability of color spaces. Conventional color spaces (e.g., HSV [2]) are not sufficiently robust in low-light conditions, often suffering from unstable color behavior. In particular, the hue-axis discontinuity and low-intensity noise can induce color artifacts and noticeable color shifts, degrading visual quality and downstream reliability. On the other hand, balancing performance and efficiency in feature modeling poses a challenge. CNN-based models [3,4,5] are effective for local details but are less capable of modeling long-range dependencies, which may lead to non-uniform exposure and inconsistent color. Transformers [6] improve global consistency via long-range interactions, but their computational overhead can be substantial for high-resolution inputs, limiting practical deployment. It remains challenging to achieve a favorable trade-off among color fidelity, detail preservation, global consistency, and efficiency.
To address the two primary challenges mentioned above, this study proposes a dual-stage low-light image enhancement framework, HVIFormer, based on the HVI representation [7] (Horizontal/Vertical-Intensity). It leverages a trainable HVI representation to provide an explicit illumination prior while preserving chroma/structure cues. Unlike fixed-rule color spaces (e.g., HSV [2]), HVI is trainable and tailored for LLIE, allowing it to adapt to diverse brightness scales and color variations. Specifically, the input sRGB image is mapped into HVI and decomposed into a global intensity map I and an HVI feature map. The intensity map I serves as a unified reference for exposure calibration, while the HVI feature map retains detail and color cues. Based on this decomposition, HVIFormer adopts a two-stage coarse-to-fine design: Stage I performs intensity-guided Transformer pre-recovery using I as an illumination prior, and introduces an Intensity-Conditioned Block (ICB) to calibrate global exposure and suppress dominant noise. Stage II refines details and color based on the Stage-I result, using lightweight Complementary Cross-Attention (CCA) for efficient cross-branch fusion. This division of labor reduces over-exposure and color shift while preserving local fidelity. Extensive experiments on 10 paired/unpaired low-light datasets demonstrate robust performance, producing uniformly exposed images with rich details and natural colors.
Our contributions can be summarized as follows:
  • We propose a novel two-stage deep learning framework for low-light image enhancement based on HVI color space representation to address the issue. This framework significantly improves the visual quality of low-light images after enhancement.
  • In our two-stage framework, the first stage is the Transformer pre-recovery stage. At this stage, we introduce intensity prior conditions and adaptive mechanisms, combined with intensity-conditioned blocks (ICBs), to significantly improve the stability of image enhancement.
  • The second stage is image refinement and enhancement. At this stage, we introduce the Complementary Cross-Attention (CCA), which effectively reduces excessive image enhancement, unnatural color shifts, and dark noise artifacts.
  • We conduct comparative experiments on 10 datasets, qualitatively analyzing visual effects and quantitatively comparing 10 quantitative indicators. The results showed that the overall performance of our proposed HVIFormer method is superior to all compared state-of-the-art methods (SOTA).

2. Related Work

The key literature related to this study can be summarized into three areas: low-light image enhancement, color spaces and decoupled representations, and vision Transformers.

2.1. Low-Light Image Enhancement

Early low-light enhancement methods mainly relied on traditional image processing techniques and prior assumptions, such as tone mapping [8,9], gamma transformation [10], histogram equalization [11,12,13], and illumination–reflection decomposition based on the Retinex theory [14,15,16,17,18,19,20,21]. While these methods are computationally efficient and interpretable, they fail to provide a unified model for handling complex degradations in real low-light scenarios, such as noise amplification, color distortion, and uneven exposure. As a result, they often lead to over-enhancement, loss of texture details, or unnatural color distortions in practical applications.
Deep learning methods overcome the limitations of traditional methods that rely on hand-crafted features by learning a complex non-linear mapping between low-light and normal-light images. This has significantly improved the quality, robustness, and generalization of low-light enhancement, making it the mainstream approach in the field. Several representative technical routes have emerged, covering various network architectures, including CNN [22], Generative Adversarial Networks (GAN) [23], Transformers [24], and hybrid architectures.
In 2017, LLNet [25] proposed by Lore et al. became a classic deep learning-based low-light enhancement tool. It constructed a deep network by stacking convolutional layers, integrating noise suppression and brightness enhancement, and was the first to demonstrate the potential of CNNs for low-light image processing. Liu et al. introduced RUAS [26], which incorporated an adaptive illumination-aware attention mechanism. This mechanism dynamically identifies dark and bright areas in the image, assigning differentiated enhancement weights to different lighting regions, thereby improving the brightness of dark regions while preventing overexposure in bright areas, further optimizing lighting uniformity. Xu et al. proposed SNR-Aware [6], which uses a hybrid CNN-Transformer collaborative mechanism. The CNN module captures local details and noise features, while the Transformer module models long-range dependencies through global self-attention. Additionally, a signal-to-noise ratio (SNR)-aware module dynamically adjusts the network’s enhancement strength to adapt to different noise levels in low-light scenarios.
Furthermore, MBLLEN, proposed by Li et al. [5], employs a multi-branch, multi-scale convolutional network architecture to provide dedicated enhancement paths for different brightness ranges in the image, enabling adaptive brightness adjustment and detail preservation. EnlightenGAN, proposed by Jiang et al. [23], leverages the advantages of GANs and employs an unsupervised training mode using unpaired data. The generator simulates the mapping from low-light to normal-light images, while the discriminator supervises the authenticity of the enhanced results, effectively addressing the issue of scarce paired training data and producing results closer to real-world visual experiences.
In recent years, with the rise of Transformer models in computer vision, RetinexFormer, introduced by Cai et al. [27], leverages the global modeling power of Transformers to accurately separate the image’s reflectance (details and color) from its illumination map (lighting information), optimizing each component separately and significantly improving color fidelity and detail restoration. LLFormer, proposed by Wang et al. [24], is specifically designed for low-light enhancement. It combines local window attention with global attention, reducing computational complexity while enhancing the model’s ability to capture dark region details and light distribution.

2.2. Color Spaces and Decoupled Representations

The essence of low-light enhancement tasks is not merely to improve brightness, but more fundamentally to ensure color accuracy and effectively suppress image noise. In addition to directly learning the mapping relationship in the traditional sRGB space, recent studies have also explored decoupled enhancement in more suitable color spaces. The primary idea of this approach is to leverage the luminance–chrominance decoupling characteristics of different color spaces to simplify the enhancement task.
The sRGB space is the most commonly used representation, highly compatible with display devices. However, its limitation lies in the tight coupling of luminance and color information in the red (R), green (G), and blue (B) channels [28,29]. As a result, under extremely low light conditions, even slight noise or exposure changes captured by the sensor can cause significant variations in the relative proportions of the three channels, leading to unnatural color shifts. This makes the entire enhancement process highly sensitive to noise and lighting changes. To address the coupling problem of sRGB, many studies have attempted to switch to decoupled spaces such as HSV and YCbCr [2,30,31,32,33].
The advantage of the HSV space lies in its ability to separate luminance from color information, where the value (V) component directly corresponds to brightness enhancement, greatly simplifying the brightness enhancement task. However, the main limitation of HSV for low-light enhancement is the discontinuity of the hue axis and stability issues at extremely low brightness levels. Hue is a periodic variable, causing the same color (e.g., red) to appear “disjointed” at the two ends of the hue axis ( 0 and 360 ), resulting in discontinuity in distance-based calculations. Even more critically, at very low brightness, where the value (V) is close to zero, color information is easily dominated and distorted by noise, leading to visual artifacts such as dark color noise and black-plane noise, ultimately making color information highly unstable.
The YCbCr space is also a commonly used decoupled space [2,33]. Its advantage lies in the separation of luminance (Y) and chrominance (Cb, Cr), which facilitates independent processing. Originally designed for video compression and transmission, it has advantages in data compression. However, its limitation is that the Y component is not fully linearly related to human visual perception of brightness, and it lacks explicit modeling of hue information, thus having limited capability for complex color adjustments and fine color distortion correction.
In addition, Horizontal/Vertical-Intensity (HVI) [7] is a trainable color space that, through polarization mapping, reduces the Euclidean distance between similar colors in the HSV space, effectively eliminating noise. Additionally, HVI introduces a learnable adaptive collapse mechanism specifically designed for low-intensity areas, significantly enhancing the color stability of dark regions. Experimental results show that the HVI representation can significantly improve image enhancement performance.

2.3. Vision Transformer

In recent years, Transformer [34] has been widely applied in image restoration (including image classification [35,36], semantic segmentation [37,38], low-light enhancement, etc.) due to its powerful ability to model global dependencies. Unlike traditional convolutional neural networks (CNNs), which rely on fixed receptive fields, Transformers can dynamically and globally capture long-range contextual information across the entire image when computing the features of the current pixel through its primary self-attention mechanism. This characteristic of Transformers gives them a significant advantage in image restoration tasks. For example, they excel at capturing long-range dependencies, enabling feature interactions across distant pixel regions, and effectively utilizing global context to guide local recovery, which is especially helpful in restoring large structural and blurred areas.
In LLIE tasks, Transformers can also better leverage reliable semantic information from bright regions to guide the recovery of dark regions with high noise and low visibility, thereby improving overall visual consistency. However, there are some notable limitations when applying Transformers to image restoration tasks. The computational complexity of the standard self-attention mechanism scales quadratically with the input image size, making Transformers require enormous computational resources and memory, which can become a bottleneck in practical deployment. Furthermore, while Transformers are adept at global modeling, they are less precise at capturing local high-frequency details compared to CNNs. In detail-recovery tasks, this may lead to issues such as local blurring or insufficient sharpening in the restored image, often requiring the integration of CNN structures to compensate for this limitation [6].
More importantly, when handling degradations such as low-light conditions, which exhibit spatial non-uniformities, if no explicit prior knowledge of factors like illumination or noise is incorporated into the conditional control, Transformers may apply global interactions uniformly across all regions. This could result in overenhancement or noise amplification, leading to instability. Therefore, current research in Transformer-based image restoration focuses on maintaining its global modeling capability while reducing computational complexity and effectively incorporating local details and scene priors.
For convenient comparison with our method, we list the features of several typical low-light enhancement methods in Table 1. From the table, it can be seen that our method is different from those existing methods in both model technology and color space. Therefore, our method can serve as a new exploration and an alternative method in the application of low-light image enhancement technology.

3. Method

The primary challenge in low-light enhancement lies in the need to significantly brighten dark regions to restore visible structure; however, this brightening simultaneously amplifies noise and causes color distortion. At the same time, uneven local exposure results in different brightness and color distributions for the same object in different regions, making it difficult for models that rely solely on local operations to maintain global consistency. To address this, this study proposes a dual-stage enhancement framework in the HVI domain (Figure 1), consisting of Stage-I intensity-conditioned Transformer pre-recovery and Stage-II dual-branch refinement enhancement. By decoupling global brightness recovery and feature preprocessing from image detail enhancement and color refinement, the proposed framework improves the model’s stability in extremely dark and high-noise scenarios.
The overall approach of our method is as follows: Given an input low-light image L R H × W × 3 , HVIFormer first maps it to the HVI space, explicitly decomposing it into the intensity map I R H × W × 1 and the HVI map X h v i R H × W × 3 containing color and structural information. This color space transformation effectively decouples illumination information from color and structural information.
Stage-I: Intensity-Conditioned Transformer Pre-Recovery Stage. In this stage, the intensity component is introduced as an explicit illumination prior for intensity-conditioned feature interaction. Through element-wise scaling, the intensity features dynamically guide and adjust the attention mechanism to aggregate features, enabling feature interactions in different brightness regions to adopt different strategies. In dark regions, the HVI feature map integrates reliable contextual information more effectively to recover the image structure and suppress noise amplification. In relatively bright regions, over-enhancement is avoided to preserve the original color and details of the image. By leveraging the Transformer architecture, Stage-I can effectively model global dependencies, ensuring global lighting consistency and optimizing detail recovery when processing regions with varying brightness.
Furthermore, Stage-I introduces a bidirectional interaction update mechanism between content (HVI feature) and intensity (intensity feature). In this mechanism, the intensity information first serves as a guide, using the Intensity-Conditioned Block (ICB) to control and direct the update of the image content features (such as color and structure). More importantly, the content features, in turn, adjust the intensity, making it not a fixed condition but one that can be continuously optimized based on the actual structure and object information in the image. This significantly improves the stability and consistency of the algorithm when handling real-world scenarios with issues such as local exposure inconsistency and complex noise. Through its self-attention mechanism, the Transformer effectively captures long-range dependencies between different regions of the image, providing stronger support for global recovery and detail processing of the image.
Stage-I finally outputs two results: the repaired intensity component I R H × W × 1 and the denoised HVI feature X h v i R H × W × 3 , providing a more reliable and consistent input for Stage-II.
Stage-II: Dual-Branch Refinement Enhancer. In this stage, based on the input provided by Stage-I, a dual-branch U-Net architecture with six lightweight Complementary Cross-Attention (CCA) blocks is used to further refine the image’s brightness, recover details, and stabilize the color.
Finally, through the Perceptual Inverse HVI Transform (PHVIT), the enhanced HVI features are stably mapped back to the sRGB space, outputting the final enhanced image L ^ .
The primary logic of the dual-stage design is as follows: The first stage serves as a pre-recovery phase, focusing on unifying the overall brightness of the image and performing initial noise and degradation suppression in dark regions, thereby reducing the learning difficulty for the subsequent network. The second stage focuses on fine-grained processing to recover local details and ensure color stability and consistency. This dual-stage structure effectively decouples the tasks, avoiding conflicts that arise when a single network is tasked with handling both global brightness adjustment and local detail enhancement, thus preventing unstable artifacts in the final result.
Algorithm 1 outlines the primary process of the proposed HVIFormer in the HVI domain, from coarse to fine enhancement (as shown in Algorithm 1). This process follows a closed-loop design of spatial transformation, dual-stage optimization, and transformation, strictly adhering to the coarse-to-fine enhancement logic, ensuring the collaborative optimization of brightness consistency, detail integrity, and color naturalness. Table 2 summarizes the modules of HVIFormer, their inputs/outputs, and their roles in improving brightness consistency, noise suppression, and color stability.
Algorithm 1 Proposed HVI-domain coarse-to-fine pipeline.
Require: 
Low-light sRGB image L
Ensure: 
Enhanced sRGB image L ^
1:
( X h v i , I ) HVIT ( L )                          ▹ sRGB→HVI
2:
( I , X h v i ) P ( X h v i , I )     ▹ Stage-I intensity-conditioned Transformer pre-recovery
3:
L ˜ h v i E ( I , X h v i )                 ▹ dual-branch refinement enhancement
4:
L ^ PHVIT ( L ˜ h v i )                          ▹ HVI→sRGB
5:
return  L ^

3.1. HVI Representation of the Image

To ensure the completeness of the method description, we first list the HVI representation formula of an image based on the work by [39]. The trainable HVI color space transformation method begins by calculating the intensity map of the image using the maximum sRGB channel value:
I max = max c { R , G , B } ( I c ) ,
thus extracting the scene’s brightness information. Then, using the intensity map and the original image, an HV color map is generated that combines color and structural information. The horizontal and vertical components are computed as follows:
H ^ = C k S D T h , V ^ = C k S D T v
where ⊙ denotes element-wise multiplication; C k is a low-intensity color plane density adjusted by the trainable density parameter k Q + , given by the following formula:
C k = sin π I max 2 + ϵ k ,
where S represents color saturation; and D T is the saturation adjusted by the training function T ( x ) , with D T = T ( P γ ) . The horizontal and vertical components h = cos ( 2 π P γ ) and v = sin ( 2 π P γ ) are computed using the hue value P γ . The hue mapping P γ is defined as follows:
P γ = 3 γ G H , if 0 H < 1 3 3 ( γ B γ G ) ( H 1 3 ) + γ G , if 1 3 H < 2 3 3 ( 1 γ B ) ( H 1 ) + 1 , if 2 3 H 1
where γ G , γ B ( 0 , 1 ) , and H [ 0 , 1 ] represents the hue value. By introducing the adaptive linear color perception mapping P γ , the color shift problem is adjusted to mitigate the color distortion caused by cameras in low-light environments. This method effectively avoids the hue discontinuity and black-plane issues in the traditional HSV color space, providing a more precise solution for low-light image enhancement.

3.2. Stage-I Intensity-Conditioned Transformer Pre-Recovery

In extremely dark scenes, image degradation is not merely a result of underexposure. In fact, the issue involves a complex interplay among artifacts, including uneven brightness distribution, increased noise in dark areas, and severe color distortion.
If the image converted to the HVI space is directly fed into the subsequent enhancement network for processing, the network must solve two problems simultaneously: correcting global illumination inconsistencies, and restoring local details and color information. This coupling of tasks makes training more difficult and can lead to unstable phenomena, such as local overexposure, color bias, and artifacts in dark areas.
Therefore, a strength-conditioned pre-recovery phase is introduced before performing refinement enhancement. The goal of this phase is not to complete the final enhancement, but rather to use intensity information to guide the preprocessing and normalization of the input features. Through this process, the subsequent enhancement network can focus more on restoring image details and optimizing color, thereby avoiding the aforementioned problems.
In the HVI representation, we extract the intensity component I, which clearly reflects the image’s lighting conditions. I is strongly associated with exposure levels and thus helps us distinguish brightness differences in various regions of the image. Additionally, when noise in the dark areas of the image is high, I provides a natural guide, helping us determine which areas require stronger recovery processing and which areas should avoid excessive enhancement.
Based on this, we design Stage-I as an intensity-based feature recovery phase rather than relying on the network to infer illumination information on its own. By leveraging the illumination information provided by I, we can process the image more precisely, ensuring a more stable and reasonable recovery.

3.2.1. Multi-Scale U-Shaped Pre-Recovery Module with Dual Output

In low-light images, image degradation is not only reflected in overall underexposure but also includes loss of details in local regions and increased noise. To address these issues, Stage-I adopts a multi-scale encoder–decoder structure (Figure 1 (Stage-I)). This structure expands the receptive field through the encoder, enabling global consistency, while the decoder restores spatial details via skip connections, preventing excessive smoothing and ensuring image details are not blurred.
The encoder part of Stage-I contains two levels of downsampling, forming feature maps of three resolutions ( H × W , H / 2 × W / 2 , H / 4 × W / 4 ). At each resolution, several intensity-conditioned basic blocks (ICBs) are used to update the features, followed by downsampling through strided convolutions to increase the receptive field and enhance channel capacity. Specifically, we map the input image from the standard sRGB color space to the HVI color space, obtaining its representation in the HVI space X hvi , while explicitly extracting the intensity map I, and performing convolution on both X hvi and I. First, a 3 × 3 convolution layer maps them to the same channel dimension C, resulting in two feature representations:
F hvi = ϕ ( X hvi ) R H × W × C , F I = ϕ I ( I ) R H × W × C ,
where F hvi represents the higher-level feature map extracted through convolution, and F I is the intensity feature guided by the intensity map. Since both have the same spatial resolution and channel size C, they can be easily subjected to subsequent conditional interaction modeling to enhance image enhancement. On top of this, another ICB module is applied, followed by a 4 × 4 convolution for downsampling, increasing the channel size from C to 2 C . The second stage stacks two ICBs at the H / 2 × W / 2 resolution and applies the same convolution operation to reduce the resolution to H / 4 × W / 4 , increasing the channel size from 2 C to 4 C . At the lowest resolution ( H / 4 × W / 4 ), we further stack two ICBs as a bottleneck module to better model global dependencies and restore consistency between regions.
The decoder is symmetrically designed with the encoder and includes two levels of upsampling. Starting from H / 4 × W / 4 , it progressively upsamples through 2 × 2 transposed convolutions (stride 2), with skip connections to fuse features from the corresponding encoder at each scale. The number of channels gradually decreases from 4 C to C. Finally, a 3 × 3 convolution is applied to obtain ( I , X hvi ) .
Unlike directly outputting the enhanced image, Stage-I is designed as a pre-recovery module at the feature level. It does not directly output the final enhanced result, but instead generates two types of information: we predict the residual of the HVI feature map Δ h v i and obtain the adjusted X hvi through residual update. This process helps optimize and improve the HVI features to make them more consistent with real lighting conditions; we also predict the residual of the intensity map Δ I and add it to the original intensity map I, obtaining the corrected intensity map I . This corrected intensity map will provide more reliable guidance for subsequent enhancement.
Thus, the output of Stage-I is ( I , X hvi ) , which serves as input to Stage-II. This design separates the tasks of correcting brightness consistency and optimizing content features, avoiding task coupling between the two. In this way, Stage-I provides more stable and controllable input conditions for subsequent image refinement and enhancement, thereby ensuring the robustness and reliability of the entire process.

3.2.2. Cross-Branch Interaction Update Between Content and Intensity

Although F I provides an effective illumination-condition signal, in extremely dark regions, due to noise or exposure inconsistencies, the intensity features may become unreliable, leading to the failure of the conditional signal. In contrast, F hvi usually contains more stable structural and texture information, which can help correct the bias in the intensity map. To overcome this issue, we introduce a bidirectional interaction update mechanism between HVI features and intensity features in the multi-scale U-shaped structure: on one hand, F I is used to guide the update of F hvi , while on the other hand, F hvi reversely corrects F I , allowing the intensity map to adaptively adjust under the guidance of structural and texture information, rather than remaining fixed.
Specifically, at each scale, F hvi and F I are iteratively updated through the same interaction module (ICB, Figure 2). In addition to the update of F hvi guided by F I , we also perform the process of F hvi correcting F I (e.g., F I B ( F I , F hvi ) ), which enhances the intensity map’s ability to perceive structure and texture, improving its stability.
Specifically, in the t-th iteration of the interaction, we use the same basic block B ( · ) to update these two features:
F hvi t + 1 = B ( F hvi t , F I t ) , F I t + 1 = B ( F I t , F hvi t ) ,
where B ( · ) is the ICB, a module consisting of Intensity-Conditioned Multi-Head Self-Attention (IC-MHSA) and a Feed-Forward Network (FFN). This cross-branch interaction update mechanism continuously corrects the intensity map based on structural and texture information, ensuring that even regions with large illumination differences in real low-light scenes can receive more reliable enhancement, thereby improving the stability of the enhancement effect.

3.2.3. Intensity-Conditioned Multi-Head Self-Attention

Specifically, we first reshape the input HVI image feature X hvi R H × W × C into a feature tensor X R H × W × C . Next, we adopt h independent attention heads, where each attention head has a feature dimension of d, satisfying the channel dimension constraint C = h · d .
We first obtain the queries (Q), keys (K), and values (V) via linear projections (Figure 2b):
Q = X W Q , K = X W K , V = X W V ,
where W Q , W K , W V R C × C are learnable linear projection matrices, so Q , K , V R H × W × C .
Then, we split Q, K, and V into h groups according to the number of heads:
Q = { Q ( i ) } i = 1 h , K = { K ( i ) } i = 1 h , V = { V ( i ) } i = 1 h ,
where each Q ( i ) , K ( i ) , V ( i ) R H × W × d , ( i = 1 , 2 , , h ) .
Next, we generate fusion weights G aligned with the HVI image features based on the previously extracted intensity features F I , where the weights dynamically adjust the update magnitude across different spatial locations and channels in the image based on intensity information, enabling local enhancement based on intensity. Specifically, we perform element-wise re-weighting of the value features in the attention mechanism to control the update magnitude at different spatial locations and channels:
V = V G , G = g ( F I ) ,
where ⊙ denotes element-wise multiplication, and g ( · ) represents a function that processes the intensity feature F I , generating the fusion weight G.
This strategy can be understood as adaptive fusion guided by intensity information: in low-light regions, G tends to amplify the contribution of effective context, helping to restore structural details in the image and suppress noise diffusion; in brighter regions, G suppresses excessive updates to avoid over-enhancement, maintaining the naturalness and consistency of color and texture. To achieve this, we do not impose explicit range constraints (such as [ 0 , 1 ] ) on G, but instead allow the model to learn the appropriate scaling magnitude and direction through end-to-end training, enabling it to dynamically adjust its enhancement strategy in different environments.
We reshape and split the previously generated fusion weight G R H × W × C into h parts to obtain { G ( i ) } i = 1 h , where each G ( i ) R H × W × d .
We then perform conditional scaling of the V features for each head:
V ( i ) = V ( i ) G ( i ) .
Next, each head computes attention independently and aggregates
O ( i ) = Softmax Q ( i ) K ( i ) d V ( i ) , O ( i ) R H × W × d .
Then, we concatenate the outputs of all heads and obtain the final result via a linear mapping:
Attn ( X ; G ) = Concat O ( 1 ) , , O ( h ) W O , W O R C × C .
Finally, the output features of all heads are concatenated, and feature fusion is completed via linear mapping, incorporating 2D positional encoding to preserve image spatial location information, and the output of the intensity-conditioned multi-head self-attention is obtained.
Unlike simply statically concatenating intensity-guided features with HVI space image features, this intensity-prior-based adaptive fusion mechanism recalculates the fusion weights G during each global aggregation. This allows us to explicitly model relationships across different lighting regions: in dark areas, the model relies more on effective contextual information to help restore details and suppress noise; in bright areas, the model updates more conservatively to prevent over-enhancement or color distortion.

3.3. Dual-Branch Refinement Enhancement

After completing the intensity-conditioned Transformer pre-recovery in Stage-I, we feed its output as a more stable input condition into Stage-II for refinement enhancement (Figure 1 (Stage-II)). Stage-II adopts a dual-branch structure to process intensity and color structural information separately: the I branch learns brightness mapping to avoid underexposure or overexposure, while the HV branch focuses on dark region denoising and color stabilization to suppress color bias and noise textures. The two branches interact cross-branch to learn complementary information, allowing brightness enhancement, color correction, and detail recovery to be jointly optimized. To further enhance the information interaction between the brightness branch and the color branch, we adopt a lightweight Complementary Cross-Attention (CCA) module (Figure 3). CCA effectively learns the complementary information between the HV branch and the intensity branch through the Cross-Attention Block (CAB) mechanism, promoting their collaborative optimization in the image enhancement process. Specifically, the HV branch handles HVI features, while the I branch processes intensity features, and the CAB mechanism establishes a mutually guiding relationship between these two branches.
The CAB exhibits a symmetrical structure between the I-way and the HV-way [39]. We use the HV-branch as an example to describe the details. Y H V R H × W × C represents the input of the HV-branch. The CAB first derives the query (Q) by Q = W ( Q ) Y H V . Meanwhile, the CAB splits the key (K) and value (V) by K = W ( K ) Y H V and V = W ( V ) Y H V . W ( Q ) , W ( K ) , and W ( V ) represent the feature embedding convolution layers. This can be expressed as follows:
Y ˜ H V = W ( V Softmax ( Q K / α H V ) + Y H V )
where α H V is the multi-head factor [36], and W ( · ) denotes the feature embedding convolutions.
Based on Retinex theory, the color denoise layer (CDL) decomposes the updated feature tensor Y ˜ H V into illumination and reflectance components, which are achieved through feature embedding convolution layers W ( I ) and W ( R ) , respectively, i.e., Y H V = W ( I ) Y ^ H V (illumination component) and Y R = W ( R ) Y ^ H V (reflectance component). Based on these two components, CDL is defined as follows:
Y ^ H V = W D tanh ( W D Y H V ) + Y H V tanh ( W D Y R ) + Y R
where ⊙ denotes element-wise multiplication, and W D represents the depth-wise convolution layers. Finally, the output of the CDL adds a residual connection to mitigate the vanishing gradient problem in deep network training and simplify the model training process.
Unlike directly using the original HVI input, we use the intensity map I corrected by Stage-I as a more reliable guidance signal and input it along with the Stage-I enhanced HVI image features X hvi into the dual-branch enhancer. Since Stage-I has already performed global illumination consistency correction and preliminarily suppressed degradation, Stage-II can focus more on local detail recovery and color refinement, thus reducing problems such as overexposure, dark region noise amplification, and color distortion. Specifically, in Stage-II, we input the output ( I , X hvi ) from Stage-I into the dual-branch refinement enhancer for further enhancement, resulting in the enhanced HVI representation L ˜ h v i .
PHVIT (Perceptual-invert HVI Transformation) maps the HVI representation back to the HSV color space, and is used to obtain the final sRGB enhancement result by restoring the Stage-II output L ˜ hvi from the HVI space to the sRGB space. Overall, PHVIT forms a surjective mapping, thereby covering the valid representation domain of HSV; meanwhile, by introducing controllable parameters, it enables the saturation and brightness of an image to be adjusted independently. To ensure that the mapping is injective (and thus invertible) in computation, PHVIT first constrains the output components to valid numerical ranges to avoid outliers that may cause color overflow. It then defines h ^ and v ^ as intermediate variables:
h ^ = I ^ H D T C k + ε , v ^ = I ^ V D T C k + ε ,
where ε = 1 × 10 8 is used to improve numerical stability. Next, according to the estimated intensity component, the polarized-plane components are de-normalized, and the hue and saturation are recovered by inverting the 2D coordinates: the hue map is computed from the inverse polar angle, while the saturation is obtained from the planar radius. Specifically, the hue map is formulated as
H = F γ arctan v ^ h ^ mod 1 ,
where F γ is an inverse piecewise-linear function:
F γ ( X ) = X 3 γ G , 0 X < γ G , X γ G 3 ( γ B γ G ) + 1 3 , γ G X < γ B , X 1 3 ( 1 γ B ) + 1 , γ B X 1 ,
where γ G and γ B are defined in Equation (4). The saturation and value maps are perceptually estimated as
S = α S h ^ 2 + v ^ 2 , V = α I I ˜ ,
where α S and α I are customizable linear parameters for adjusting the image saturation and brightness, respectively, and I ˜ denotes the restored intensity (used as the HSV value channel). Finally, the HSV image is converted to an sRGB image [40] via the standard HSV→sRGB mapping, yielding the final enhanced image L ^ . This step ensures that the Stage-II output can be stably transformed back to the sRGB space, closing the two-stage pipeline and facilitating both visualization and quantitative evaluation.

3.4. Compared with HVI-CIDNet Method

Although our method is built upon the HVI representation, HVIFormer does not claim novelty in the HVI space itself. Instead, our contributions focus on how intensity is explicitly modeled and exploited to drive restoration, together with a two-stage collaborative design that is absent in CIDNet-style HVI pipelines. The key differences are as follows:
  • Two-stage collaboration: We separate restoration into Stage-I intensity-conditioned global pre-recovery (illumination calibration and dominant noise suppression) and Stage-II refinement (detail/color restoration), which is more stable for extremely dark inputs where single-stage pipelines often over-amplify noise or drift in color.
  • ICB: Rather than using intensity as a simple auxiliary cue, ICB couples intensity and content features bi-directionally, enabling mutual correction between illumination structure and scene content under severe low-light conditions.
  • IC-MHSA: We introduce intensity-conditioned MHSA where the intensity prior gates the attention update, yielding region-adaptive enhancement and mitigating over-enhancement and color shift.
  • CCA-based dual-branch refinement: Stage-II adopts dual branches (intensity-focused vs. chroma/detail-focused) and uses Complementary Cross-Attention (CCA) for controlled information exchange, improving denoising, texture recovery, and color fidelity beyond single-stream CIDNet-style designs.

3.5. Loss Function

To simultaneously improve both overall exposure and dark-region detail recovery, we apply joint supervision on the final enhanced result during training of the two-stage framework, considering both performances in the sRGB and HVI spaces.
In the HVI color space, we use L1 loss L 1 [41], edge loss L e [42], and perceptual loss L p [43] for the low-light enhancement task. Given the network’s final output enhanced image X h v i and its corresponding HVI feature map X hvi , the goal is to minimize the difference between them. The specific loss function is expressed as follows:
l ( X h v i , X hvi ) = λ 1 · L 1 ( X h v i , X hvi ) + λ e · L e ( X h v i , X hvi ) + λ p · L p ( X h v i , X hvi )
where λ 1 , λ e , and λ p are weights used to balance each loss term. In the sRGB space, for the restored sRGB image L ^ and the original sRGB ground truth L g t R H × W × 3 , we use the same loss function. The final overall loss function is
L = l ( L ^ , L g t ) + λ h l ( X h v i , X hvi ) ,
where λ h is a hyperparameter that balances the strength of supervision in both color spaces.
In this way, we ensure that the output image maintains natural, accurate brightness and color in the sRGB space, while effectively enhancing details in dark regions and suppressing noise and color bias in the HVI space.

3.6. Evaluation of Image Enhancement Performance

In low-light image enhancement tasks, both qualitative and quantitative evaluations are important for assessing an approach’s performance. Qualitative evaluation mainly relies on visual comparisons to judge the quality of enhanced images, focusing on exposure and brightness distribution, detail recovery, noise suppression, color fidelity, and overall visual consistency. Specifically, the enhanced image should maintain uniform brightness while avoiding overexposure, underexposure, or noise amplification. Dark-region details and textures should be effectively recovered, and the image’s colors should remain consistent with the original, avoiding color bias or excessive saturation. In practical applications, by displaying the enhanced image, comparing it with the original image and other methods, and showing zoomed-in views, the algorithm’s advantages can be more intuitively demonstrated.
Quantitative evaluation relies on multiple evaluation metrics, commonly including PSNR, SSIM [44], LPIPS [45], etc. On datasets with ground truth (GT), we first calculate the Peak Signal-to-Noise Ratio (PSNR) to measure the pixel-wise difference between the enhanced image and the ground truth. The PSNR is computed as follows:
PSNR = 10 log 10 MAX 2 MSE
where MSE is the mean squared error and MAX is the maximum pixel value (typically 255 or 1). A higher PSNR value indicates better image quality.
Next, we use SSIM (Structural Similarity) to assess the similarity of images in terms of structure, brightness, and contrast. The SSIM is calculated as follows:
SSIM ( x , y ) = ( 2 μ x μ y + C 1 ) ( 2 σ x y + C 2 ) ( μ x 2 + μ y 2 + C 1 ) ( σ x 2 + σ y 2 + C 2 )
where μ x and μ y are the mean values of images x and y, σ x 2 and σ y 2 are the variances, σ x y is the covariance, and C 1 and C 2 are constants, often set as C 1 = ( K 1 D ) 2 and C 2 = ( K 2 D ) 2 , where D is the dynamic range of the image.
Finally, LPIPS (Learned Perceptual Image Patch Similarity) is used to measure perceptual differences based on deep feature differences. The LPIPS is computed as follows:
LPIPS ( x , y ) = l 1 H l W l h , w w l ( ϕ l ( x ) h w ϕ l ( y ) h w ) 2 2
where ϕ l ( x ) and ϕ l ( y ) are the deep features of images x and y at the l-th layer, w l is the weight for each layer, and ⊙ denotes element-wise multiplication. A lower LPIPS value indicates that the enhancement result is closer to human perceptual similarity.
For low-light images without GT, we use no-reference metrics such as NIQE [46] or BRISQUE [47] to evaluate image quality. These metrics provide auxiliary evaluations by modeling the naturalness and quality of the image. Although these metrics do not rely on GT, they reflect the naturalness of the image and are consistent with subjective evaluation.
In the experiments, we used two types of datasets to evaluate the model’s performance. One type is a dataset with real images (GT), such as LOLv1, where quantitative evaluation is performed using metrics like PSNR, SSIM, and LPIPS. Visual comparisons highlight the enhanced image’s detail recovery and noise suppression capabilities. The other type is a real-world dataset without GT, where evaluation mainly relies on no-reference metrics (such as NIQE and BRISQUE), along with qualitative comparisons, to comprehensively demonstrate the method’s enhancement effects.

4. Experiment

4.1. Datasets

We evaluated our model on several commonly used low-light image enhancement (LLIE) benchmark datasets, aiming to test three different scenarios: (1) supervised training using paired images for easy quantitative comparison; (2) testing the model’s generalization ability in real-world scenarios without paired images; and (3) examining the model’s robustness in extremely dark environments.
LOL is one of the most commonly used benchmarks in the LLIE field. It includes low-light images and their corresponding normal exposure images, making it convenient for objective quantitative evaluation. Specifically, LOLv1 [3] contains 500 image pairs under standard splits, typically using 485 pairs for training and 15 pairs for testing. The image resolution is commonly 400 × 600. LOLv2 [48] further divides into two subsets, Real and Synthetic, to assess the model’s adaptation to real-world degradation and synthetic degradation distributions. LOLv2-Real typically uses 689 pairs for training and 100 pairs for testing, while LOLv2-Synthetic typically uses 900 pairs for training and 100 pairs for testing. Overall, LOL is mainly used to evaluate the model’s reconstruction performance, structural fidelity, and color recovery under paired supervision, while also reflecting the model’s stability when handling different types of degradation.
The unpaired datasets DICM [49], LIME [16], MEF [50], NPE [14], and VV [51] typically only provide low-light images without strictly paired reference images. These datasets are closer to real-world applications of single-image enhancement scenarios. Thus, this setting focuses more on the model’s ability to adapt to different data distributions: the model needs to output natural, clean, and not overly enhanced images without a reference. We evaluate these datasets using no-reference metrics, measuring enhancement performance based on naturalness, noise control, and distortion levels.
The original SICE [52] dataset contains 589 sets of low-light and over-exposed images. Following a commonly used protocol, we split SICE into training/validation/test sets at a 7:1:2 ratio. Unless otherwise stated, all methods are trained on the SICE training set and evaluated on the official evaluation subsets SICE-Mix and SICE-Grad [53]. This split protocol and evaluation setting are adopted to avoid ambiguity and ensure reproducibility.
Sony-Total-Dark [39] is a customized version of the Sony subset in the SID [54]. There are 2697 short–long-exposure RAW image pairs. Following the commonly used setting, we convert RAW images to extremely dark sRGB inputs without gamma correction, as shown in the first row of Figure 4, which significantly increases the difficulty in dark regions and amplifies sensor noise.

4.2. Experiment Settings

To ensure a fair comparison, we follow the mainstream low-light image enhancement (LLIE) evaluation protocols for training and testing, and use relatively matched cropping and training epoch settings for different datasets.
For LOLv1 and LOLv2-Real, we crop the training images into 256 × 256 patches, set the batch size to 4, and train for 1500 epochs. For LOLv2-Synthetic, we use a batch size of 1, train for 500 epochs, and do not apply cropping. For SICE, we use 160 × 160 patches for training, set the batch size to 10, and train for 1000 epochs. Testing is conducted on both SICE-Mix and SICE-Grad. For Sony-Total-Dark, we crop the training images into 256 × 256 patches, set the batch size to 4, and train for 1000 epochs.
In terms of implementation, we train the models based on PyTorch using the Adam optimizer [55] ( β 1 = 0.9 , β 2 = 0.999 ). The initial learning rate is set to 1 × 10 4 , and we use the cosine annealing strategy [56] to gradually decay it to 1 × 10 7 . All experiments are conducted on third-party cloud GPU HPC compute nodes equipped with Intel(R) Xeon(R) Platinum CPUs, 80 GB RAM, and Ubuntu 20.04. We train and evaluate HVIFormer using a single NVIDIA GeForce RTX 4090 (24 GB) or RTX 3090 (24 GB). To ensure reproducibility, we keep the software stack identical across GPU instances (CUDA 11.8, PyTorch 2.0.1) and use the same training protocol and fixed random seeds.

4.3. Evaluation Metrics

For paired datasets, we use PSNR and SSIM to measure image distortion and, additionally, LPIPS (with AlexNet as the feature extraction network) to evaluate perceptual similarity. PSNR and SSIM focus more on pixel-level errors and structural consistency, while LPIPS emphasizes human perceptual effects, reflecting the similarity in texture and semantics. In this way, we can comprehensively evaluate the image enhancement performance from both precision and perceptual quality aspects.
For unpaired datasets, because ground truth images are unavailable, we use the no-reference quality metric NIQE to evaluate single-image enhancement results. Such metrics are usually more sensitive to natural image statistics, noise, and artifacts, and can indicate whether the enhanced result appears natural or whether over-enhancement and distortion are present to some extent.

4.4. Results Analysis

4.4.1. Quantitative Comparison on LOL Datasets

Table 3 presents the quantitative evaluation results and model complexity comparison on the LOLv1, LOLv2-Real, and LOLv2-Synthetic datasets. The results show that HVIFormer achieves the best PSNR and SSIM values across all three LOL benchmarks, and the LPIPS value is also the lowest, indicating that the method strikes a better balance between pixel-level accuracy and perceptual quality.
Specifically, compared to the second-best method, HVIFormer achieves a PSNR improvement of 2.78% on the LOLv1 dataset; a PSNR improvement of 4.52% on the LOLv2-Real dataset; and a PSNR improvement of 19.74%, SSIM improvement of 2.58%, and a 2.86% reduction in LPIPS on the LOLv2-Synthetic dataset.

4.4.2. Quantitative Comparison on Unpaired Datasets

Table 4 summarizes the NIQE results on five unpaired datasets: DICM, LIME, MEF, NPE, and VV. HVIFormer achieves the best average NIQE of 3.395, outperforming all other methods. Compared to the second-best method (AVG 3.457), it reduces the NIQE by 1.79%, indicating that, in the absence of real reference images, our method generates results that are more natural and better aligned with the distribution of real images.

4.4.3. Quantitative Comparison on Extreme Low-Light Datasets

To further validate the performance of HVIFormer under extreme low-light conditions, Table 5 presents the evaluation results on the SICE and Sony-Total-Dark datasets. HVIFormer achieves significant improvements on both extreme datasets: on the SICE dataset, PSNR reaches 21.079 dB and SSIM is 0.765, with a PSNR improvement of approximately 58.66% compared to the strongest baseline method; on the Sony-Total-Dark dataset, PSNR is 24.234 dB and SSIM is 0.697, achieving the best performance. These significant improvements demonstrate that under conditions of extremely low illumination, severe information loss, and more complex noise, HVIFormer effectively avoids the imbalance between under-enhancement (overall grayness, invisible details) and over-enhancement (overexposure, color bias, noise amplification), showcasing stronger detail recovery and structural preservation capabilities. Moreover, the dual-stage approach of HVIFormer enables the best performance on this dataset even under extreme low-light conditions. These optimized results more clearly express the advantages of HVIFormer on these challenging datasets and highlight the key role of the dual-stage method in handling extreme low-light situations.

4.4.4. Qualitative Comparison

By combining the visual comparisons in Figure 5 and Figure 6, it is evident that the performance advantage of HVIFormer is intuitively validated across scenes of varying complexity. In paired datasets such as LOL, compared to traditional Retinex-based methods, HVIFormer demonstrates superior global exposure control, significantly improving the brightness of dark regions while effectively avoiding common issues such as over-enhancement, halos, and visual artifacts caused by discontinuities in local brightness. In the face of the real challenges posed by unpaired datasets, HVIFormer outperforms common end-to-end sRGB space enhancement networks by more effectively suppressing common dark-region noise and texture distortions. It also successfully eliminates noticeable color biases, such as yellowish or greenish tints, that are often introduced during enhancement, making the final generated images closer to the natural distribution in terms of hue and saturation.

4.5. Ablation Experiment

The ablation experiment in Table 6 clearly demonstrates the key role of each primary component in the model: First, when only Stage-II is retained (Setting A), the model is required to handle both illumination consistency calibration and detail/colour recovery, resulting in an LPIPS value of 0.115. This indicates that the lack of prior illumination optimization leads to over-enhancement issues in the image. In contrast, when only Stage-I is used (Setting B), although it improves overall exposure and consistency to some extent, the image’s texture and colour restoration capability is limited due to the absence of a dedicated detail recovery stage. This fully proves that the decoupled design of Stage-I and Stage-II is the foundation for efficient enhancement, where their collaborative division of tasks prevents overload in a single stage.
Furthermore, after removing the Intensity-Conditioned Block (Setting C), the model’s performance significantly declines, with a noticeable gap compared to the complete model (Setting G), demonstrating that Stage-I’s correction of the intensity map provides a more reliable illumination baseline. Not only does this enhance the consistency of the image structure, but it also effectively suppresses over-enhancement and colour bias. When the Intensity-Conditioned Multi-Head Self-Attention is further removed (Setting D), the LPIPS value rises to 0.083, verifying the primary role of the intensity-guided adaptive fusion weights in suppressing dark-region noise and avoiding local overexposure. These weights precisely control the enhancement amplitude, ensuring the balance of local and overall brightness in the image.
Moreover, after removing the Complementary Cross-Attention mechanism (Setting E), the model’s performance in all metrics deteriorates, and the RGB two-stage approach without HVI space modeling (Setting F) performs even worse. This demonstrates the indispensable synergistic effect of both aspects: first, the bidirectional interaction of content and intensity in Stage-I enhances the credibility of conditional information, providing a solid foundation for subsequent enhancement; second, the cross-branch interaction between brightness and colour branches in Stage-II strengthens detail recovery and colour restoration capability, with both stages complementing each other to achieve synergistic enhancement.
As shown in Figure 7, the enhancement results of HVIFormer are closest to the ground truth (GT), effectively preserving image details and colour consistency. In contrast, the outputs of other methods exhibit varying degrees of distortion and significant noise interference, resulting in a visual effect that deviates more noticeably from the GT. This fully validates the unique advantage of HVIFormer in decoupling modeling and enhancement in the HVI space by separating the optimization of illumination, details, and colour dimensions, before using cross-module interactions to achieve fusion, ultimately yielding more precise and natural low-light image enhancement.

4.6. Application Prospects and Cross-Domain Transferability

Many real-world vision systems require robust perception under poor illumination. The proposed intensity-guided Transformer pre-recovery stabilizes global exposure and suppresses severe noise, while the subsequent refinement stage restores fine structures and improves color fidelity; therefore, the framework is potentially transferable beyond low-light enhancement. Typical downstream scenarios include UAV-based construction inspection [61] (e.g., rebar counting) and building façade analysis [62], where challenging illumination is common. Future work will investigate cross-domain adaptation and evaluation on relevant public datasets, including a labelled dataset for rebar counting inspection on construction sites using unmanned aerial vehicles and building façade datasets for analyzing building characteristics using deep learning.

5. Conclusions

To improve the quality of low-light image enhancement, we propose a new two-stage deep learning framework using image HVI color space. The framework provides an alternative method for a user who seeks a method for enhancing low-light images with high quality but moderate model parameters. The ablation experiment shows that each module of our proposed method has a significant effect on enhancing low-light images. Comparative experiment results show that the proposed HVIFormer method is superior to 10 compared state-of-the-art methods according to the visual effects and the 10 quantitative indicators; in particular, the proposed method demonstrates greater stability in dark-region noise suppression and color restoration, effectively avoiding common issues such as overexposure, color bias, and detail loss.
Despite achieving good enhancement results, our model has a relatively large number of parameters and a high computational cost, especially when processing high-resolution images, which may lead to longer processing times. Therefore, future work will focus on optimizing the model, such as reducing computational complexity through techniques such as model pruning, quantization, or knowledge distillation, to make it more widely applicable in real-world scenarios. It is well known that transforming images between color spaces may cause information loss. The lack of in-depth theoretical analysis of the issue in our proposed method is a limitation of our paper, and we believe it is a topic worth further study. Additionally, although this study primarily focuses on static image enhancement, our framework demonstrates good scalability and can be further explored for video enhancement tasks. In video scenes, HVIFormer can leverage temporal information for cross-frame enhancement, not only improving the visual quality of individual frames but also effectively reducing the impact of motion blur, lighting changes, and other factors on the enhancement effect, thereby achieving more stable and natural video enhancement results. Beyond low-light enhancement, our framework may also benefit downstream vision applications under poor illumination (e.g., UAV-based construction inspection and building façade analysis), which we will explore in future work.

Author Contributions

Conceptualization, Y.L. and H.L.; methodology, Y.L. and H.L.; software, Y.L.; validation, L.L., Y.L. and H.L.; formal analysis, Y.L. and L.L.; investigation, Y.L.; resources, L.L. and H.L.; data curation, Y.L.; writing—original draft preparation, Y.L. and H.L.; writing—review and editing, Y.L. and L.L.; visualization, Y.L.; supervision, L.L. and H.L.; project administration, H.L.; funding acquisition, L.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The original data can be downloaded from the website of the referenced database; the enhanced data we have processed can be downloaded from Github (version 2.0.1 of PyTorch, version 11.8 of CUDA) or are available on request from the first author.

Acknowledgments

We gratefully acknowledge the anonymous reviewers for their insightful comments and constructive suggestions, which have significantly improved the quality of this manuscript.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Li, C.; Guo, C.; Han, L.; Jiang, J.; Cheng, M.M.; Gu, J.; Loy, C.C. Low-Light Image and Video Enhancement Using Deep Learning: A Survey. IEEE Trans. Pattern Anal. Mach. Intell. 2022, 44, 9396–9416. [Google Scholar] [CrossRef] [PubMed]
  2. Guo, X.; Hu, Q. Low-Light Image Enhancement via Breaking Down the Darkness. Int. J. Comput. Vis. 2023, 131, 48–66. [Google Scholar] [CrossRef]
  3. Wei, C.; Wang, W.; Yang, W.; Liu, J. Deep Retinex Decomposition for Low-Light Enhancement. arXiv 2018, arXiv:1808.04560. [Google Scholar] [CrossRef]
  4. Zhang, Y.; Guo, X.; Ma, J.; Liu, W.; Zhang, J. Beyond Brightening Low-Light Images. Int. J. Comput. Vis. 2021, 129, 1013–1037. [Google Scholar] [CrossRef]
  5. Lv, F.; Lu, F.; Wu, J.; Lim, C. MBLLEN: Low-Light Image/Video Enhancement Using CNNs. In BMVC; Number 1; Northumbria University: Newcastle upon Tyne, UK, 2018; Volume 220, p. 4. [Google Scholar]
  6. Xu, X.; Wang, R.; Fu, C.; Jia, J. SNR-Aware Low-Light Image Enhancement. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2022; pp. 17714–17724. [Google Scholar]
  7. Yan, Q.; Feng, Y.; Zhang, C.; Pang, G.; Shi, K.; Wu, P.; Dong, W.; Sun, J.; Zhang, Y. HVI: A New Color Space for Low-light Image Enhancement. In Proceedings of the 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2025; pp. 5678–5687. [Google Scholar] [CrossRef]
  8. Ok, J.; Lee, C. HDR Tone Mapping Algorithm Based on Difference Compression with Adaptive Reference Values. J. Vis. Commun. Image Represent. 2017, 43, 61–76. [Google Scholar] [CrossRef]
  9. Feng, W.; Liu, H.D.; Wu, G.M.; Zhao, D.A. Gradient Domain Adaptive Tone Mapping Algorithm Based on Color Correction Model. Laser Optoelectron. Prog. 2020, 57, 081007. [Google Scholar] [CrossRef]
  10. Li, X.; Liu, M.; Ling, Q. Pixel-Wise Gamma Correction Mapping for Low-Light Image Enhancement. IEEE Trans. Circuits Syst. Video Technol. 2023, 34, 681–694. [Google Scholar] [CrossRef]
  11. Dale-Jones, R.; Tjahjadi, T. A Study and Modification of the Local Histogram Equalization Algorithm. Pattern Recognit. 1993, 26, 1373–1381. [Google Scholar] [CrossRef]
  12. Rao, B.S. Dynamic Histogram Equalization for Contrast Enhancement for Digital Images. Appl. Soft Comput. 2020, 89, 106114. [Google Scholar] [CrossRef]
  13. Kang, L.; Chen, X. Image Contrast Enhancement Based on Multi-Level Histogram Shape Segmentation. Comput. Appl. Softw. 2022, 39, 207–212. [Google Scholar]
  14. Wang, S.; Zheng, J.; Hu, H.-M.; Li, B. Naturalness Preserved Enhancement Algorithm for Non-Uniform Illumination Images. IEEE Trans. Image Process. 2013, 22, 3538–3548. [Google Scholar] [CrossRef] [PubMed]
  15. Fu, X.; Liao, Y.; Zeng, D.; Huang, Y.; Zhang, X.-P.; Ding, X. A Probabilistic Method for Image Enhancement with Simultaneous Illumination and Reflectance Estimation. IEEE Trans. Image Process. 2015, 24, 4965–4977. [Google Scholar] [CrossRef] [PubMed]
  16. Guo, X.; Li, Y.; Ling, H. LIME: Low-Light Image Enhancement via Illumination Map Estimation. IEEE Trans. Image Process. 2017, 26, 982–993. [Google Scholar] [CrossRef] [PubMed]
  17. Park, S.; Yu, S.; Moon, B.; Ko, S.; Paik, J. Low-Light Image Enhancement Using Variational Optimization-Based Retinex Model. IEEE Trans. Consum. Electron. 2017, 63, 178–184. [Google Scholar] [CrossRef]
  18. Li, M.; Liu, J.; Yang, W.; Sun, X.; Guo, Z. Structure-Revealing Low-Light Image Enhancement Via Robust Retinex Model. IEEE Trans. Image Process. 2018, 27, 2828–2841. [Google Scholar] [CrossRef]
  19. Gu, Z.; Li, F.; Fang, F.; Zhang, G. A Novel Retinex-Based Fractional-Order Variational Model for Images With Severely Low Light. IEEE Trans. Image Process. 2020, 29, 3239–3253. [Google Scholar] [CrossRef]
  20. Ren, X.; Yang, W.; Cheng, W.-H.; Liu, J. LR3M: Robust Low-Light Enhancement via Low-Rank Regularized Retinex Model. IEEE Trans. Image Process. 2020, 29, 5862–5876. [Google Scholar] [CrossRef]
  21. Hao, S.; Han, X.; Guo, Y.; Xu, X.; Wang, M. Low-Light Image Enhancement With Semi-Decoupled Decomposition. IEEE Trans. Multimed. 2020, 22, 3025–3038. [Google Scholar] [CrossRef]
  22. Guo, C.; Li, C.; Guo, J.; Loy, C.C.; Hou, J.; Kwong, S.; Cong, R. Zero-reference deep curve estimation for low-light image enhancement. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2020; pp. 1780–1789. [Google Scholar]
  23. Jiang, Y.; Gong, X.; Liu, D.; Cheng, Y.; Fang, C.; Shen, X.; Yang, J.; Zhou, P.; Wang, Z. EnlightenGAN: Deep Light Enhancement Without Paired Supervision. IEEE Trans. Image Process. 2021, 30, 2340–2349. [Google Scholar] [CrossRef]
  24. Wang, T.; Zhang, K.; Shen, T.; Luo, W.; Stenger, B.; Lu, T. Ultra-High-Definition Low-Light Image Enhancement: A Benchmark and Transformer-Based Method. In Proceedings of the AAAI Conference on Artificial Intelligence; AAAI: Washington, DC, USA, 2023; Volume 37, pp. 2654–2662. [Google Scholar] [CrossRef]
  25. Kin, G.L.; Akintayo, A.; Sarkar, S. LLNet: A Deep Autoencoder Approach to Natural Low-Light Image Enhancement. Pattern Recognit. 2017, 61, 650–662. [Google Scholar] [CrossRef]
  26. Liu, R.; Ma, L.; Zhang, J.; Fan, X.; Luo, Z. Retinex-Inspired Unrolling With Cooperative Prior Architecture Search for Low-Light Image Enhancement. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2021; pp. 10561–10570. [Google Scholar]
  27. Cai, Y.; Bian, H.; Lin, J.; Wang, H.; Timofte, R.; Zhang, Y. Retinexformer: One-stage Retinex-based Transformer for Low-light Image Enhancement. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV); IEEE: New York, NY, USA, 2023; pp. 12504–12513. [Google Scholar]
  28. Gevers, T.; Gijsenij, A.; Van de Weijer, J.; Geusebroek, J.-M. Color in Computer Vision: Fundamentals and Applications; John Wiley & Sons: Hoboken, NJ, USA, 2012. [Google Scholar]
  29. Lee, J.; Park, J.; Baik, S.; Lee, K.M. Rethinking RGB Color Representation for Image Restoration Models. arXiv 2024, arXiv:2402.03399. [Google Scholar] [CrossRef]
  30. Li, Z.; Jia, Z.; Yang, J.; Kasabov, N. Low Illumination Video Image Enhancement. IEEE Photonics J. 2020, 12, 1–13. [Google Scholar] [CrossRef]
  31. Zhang, Y.; Di, X.; Zhang, B.; Ji, R.; Wang, C. Better Than Reference in Low-Light Image Enhancement: Conditional Re-Enhancement Network. IEEE Trans. Image Process. 2022, 31, 759–772. [Google Scholar] [CrossRef]
  32. Zhou, L.; Chen, X.; Ye, B.; Jiang, X.; Zou, S.; Ji, L.; Yu, Z.; Wei, J.; Zhao, Y.; Wang, T. A Low-Light Image Enhancement Method Based on HSV Space. Imaging Sci. J. 2025, 73, 16–29. [Google Scholar] [CrossRef]
  33. Brateanu, A.; Balmez, R.; Avram, A.; Orhei, C.; Ancuti, C. LYT-NET: Lightweight YUV Transformer-Based Network for Low-Light Image Enhancement. IEEE Signal Process. Lett. 2025, 32, 2065–2069. [Google Scholar] [CrossRef]
  34. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is All You Need. In Advances in Neural Information Processing Systems; Guyon, I., Von Luxburg, U., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., Garnett, R., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2017; Volume 30, Available online: https://proceedings.neurips.cc/paper_files/paper/2017/file/3f5ee243547dee91fbd053c1c4a845aa-Paper.pdf (accessed on 12 August 2025).
  35. Alaaeldin, A.; Touvron, H.; Caron, M.; Bojanowski, P.; Douze, M.; Joulin, A.; Laptev, I.; Neverova, N.; Synnaeve, G.; Verbeek, J.; et al. XCiT: Cross-Covariance Image Transformers. Adv. Neural Inf. Process. Syst. 2021, 34, 20014–20027. [Google Scholar]
  36. Dosovitskiy, A. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv 2020, arXiv:2010.11929. [Google Scholar]
  37. Cao, H.; Wang, Y.; Chen, J.; Jiang, D.; Zhang, X.; Tian, Q.; Wang, M. Swin-Unet: Unet-Like Pure Transformer for Medical Image Segmentation. In Proceedings of Computer Vision—ECCV 2022 Workshops; Karlinsky, L., Michaeli, T., Nishino, K., Eds.; Springer Nature: Cham, Switzerland, 2023; pp. 205–218. [Google Scholar]
  38. Wu, B.; Xu, C.; Dai, X.; Wan, A.; Zhang, P.; Yan, Z.; Tomizuka, M.; Gonzalez, J.E.; Keutzer, K.; Vajda, P. Visual Transformers: Where Do Transformers Really Belong in Vision Models? In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV); IEEE: New York, NY, USA, 2021; pp. 599–609. [Google Scholar]
  39. Feng, Y.; Zhang, C.; Wang, P.; Wu, P.; Yan, Q.; Zhang, Y. You Only Need One Color Space: An Efficient Network for Low-light Image Enhancement. arXiv 2024, arXiv:2402.05809. [Google Scholar] [CrossRef]
  40. Foley, J.D.; Van Dam, A. Fundamentals of Interactive Computer Graphics; Addison-Wesley Longman Publishing Co., Inc.: Reading, MA, USA, 1982; Available online: https://api.semanticscholar.org/CorpusID:62562590/ (accessed on 19 September 2025).
  41. Zhao, H.; Gallo, O.; Frosio, I.; Kautz, J. Loss functions for image restoration with neural networks. IEEE Trans. Comput. Imaging 2016, 3, 47–57. [Google Scholar] [CrossRef]
  42. Seif, G.; Androutsos, D. Edge-based loss function for single image super-resolution. In Proceedings of the 2018 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP); IEEE: New York, NY, USA, 2018; pp. 1468–1472. [Google Scholar] [CrossRef]
  43. Johnson, J.; Alahi, A.; Fei-Fei, L. Perceptual losses for real-time style transfer and super-resolution. In Computer Vision—ECCV 2016; Springer International Publishing: Cham, Switzerland, 2016. [Google Scholar] [CrossRef]
  44. Wang, Z.; Bovik, A.C.; Sheikh, H.R.; Simoncelli, E.P. Image Quality Assessment: From Error Visibility to Structural Similarity. IEEE Trans. Image Process. 2004, 13, 600–612. [Google Scholar] [CrossRef]
  45. Zhang, R.; Isola, P.; Efros, A.A.; Shechtman, E.; Wang, O. The Unreasonable Effectiveness of Deep Features as a Perceptual Metric. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2018; pp. 586–595. [Google Scholar]
  46. Mittal, A.; Soundararajan, R.; Bovik, A.C. Making a “Completely Blind” Image Quality Analyzer. IEEE Signal Process. Lett. 2013, 20, 209–212. [Google Scholar] [CrossRef]
  47. Mittal, A.; Moorthy, A.K.; Bovik, A.C. No-Reference Image Quality Assessment in the Spatial Domain. IEEE Trans. Image Process. 2012, 21, 4695–4708. [Google Scholar] [CrossRef]
  48. Yang, W.; Wang, W.; Huang, H.; Wang, S.; Liu, J. Sparse Gradient Regularized Deep Retinex Network for Robust Low-Light Image Enhancement. IEEE Trans. Image Process. 2021, 30, 2072–2086. [Google Scholar] [CrossRef]
  49. Lee, C.; Lee, C.; Kim, C.-S. Contrast Enhancement Based on Layered Difference Representation of 2D Histograms. IEEE Trans. Image Process. 2013, 22, 5372–5384. [Google Scholar] [CrossRef]
  50. Ma, K.; Zeng, K.; Wang, Z. Perceptual Quality Assessment for Multi-Exposure Image Fusion. IEEE Trans. Image Process. 2015, 24, 3345–3356. [Google Scholar] [CrossRef] [PubMed]
  51. Vonikakis, V.; Kouskouridas, R.; Gasteratos, A. On the Evaluation of Illumination Compensation Algorithms. Multimed. Tools Appl. 2018, 77, 9211–9231. [Google Scholar] [CrossRef]
  52. Cai, J.; Gu, S.; Zhang, L. Learning a Deep Single Image Contrast Enhancer from Multi-Exposure Images. IEEE Trans. Image Process. 2018, 27, 2049–2062. [Google Scholar] [CrossRef]
  53. Zheng, S.; Ma, Y.; Pan, J.; Lu, C.; Gupta, G. Low-Light Image and Video Enhancement: A Comprehensive Survey and Beyond. arXiv 2024, arXiv:2212.10772. [Google Scholar] [CrossRef]
  54. Chen, C.; Chen, Q.; Xu, J.; Koltun, V. Learning to See in the Dark. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition; IEEE: New York, NY, USA, 2018; pp. 3291–3300. [Google Scholar]
  55. Kingma, D.P.; Ba, J. Adam: A Method for Stochastic Optimization. arXiv 2017, arXiv:1412.6980. [Google Scholar] [CrossRef]
  56. Loshchilov, I.; Hutter, F. SGDR: Stochastic Gradient Descent with Warm Restarts. arXiv 2017, arXiv:1608.03983. [Google Scholar] [CrossRef]
  57. Ma, L.; Ma, T.; Liu, R.; Fan, X.; Luo, Z. Toward Fast, Flexible, and Robust Low-Light Image Enhancement. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR); IEEE: New York, NY, USA, 2022; pp. 5637–5646. [Google Scholar]
  58. Hou, J.; Zhu, Z.; Hou, J.; Liu, H.; Zeng, H.; Yuan, H. Global Structure-Aware Diffusion Process for Low-light Image Enhancement. In Advances in Neural Information Processing Systems; Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt, M., Levine, S., Eds.; Curran Associates, Inc.: Red Hook, NY, USA, 2023; Volume 36, pp. 79734–79747. Available online: https://proceedings.neurips.cc/paper_files/paper/2023/file/fc034d186280f55370b6aca7a3285a65-Paper-Conference.pdf (accessed on 20 September 2025).
  59. Zhang, Y.; Zhang, J.; Guo, X. Kindling the Darkness: A Practical Low-light Image Enhancer. In Proceedings of the 27th ACM International Conference on Multimedia; Association for Computing Machinery: New York, NY, USA, 2019; pp. 1632–1640. [Google Scholar] [CrossRef]
  60. Zhang, T.; Liu, P.; Zhao, M.; Lv, H. DMFourLLIE: Dual-Stage and Multi-Branch Fourier Network for Low-Light Image Enhancement. In Proceedings of the 32nd ACM International Conference on Multimedia; ACM: New York, NY, USA, 2024; pp. 7434–7443. [Google Scholar] [CrossRef]
  61. Wang, S.; Eum, I.; Park, S.; Kim, J. A Labelled Dataset for Rebar Counting Inspection on Construction Sites Using Unmanned Aerial Vehicles. Data Brief 2024, 55, 110720. [Google Scholar] [CrossRef] [PubMed]
  62. Wang, S.; Park, S.; Kim, J. Building Façade Datasets for Analyzing Building Characteristics Using Deep Learning. Data Brief 2024, 57, 110885. [Google Scholar] [CrossRef]
Figure 1. Overall architecture of the HVIFormer framework. (a) The HVI color transformation (HVIT) converts the sRGB image into the intensity map and HVI feature map. (b) The enhancement network is divided into two stages: Stage-I performs intensity-conditioned Transformer pre-recovery, and Stage-II conducts dual-branch refinement enhancement. Finally, the enhanced HVI image is converted back to the sRGB enhanced image through PHVIT.
Figure 1. Overall architecture of the HVIFormer framework. (a) The HVI color transformation (HVIT) converts the sRGB image into the intensity map and HVI feature map. (b) The enhancement network is divided into two stages: Stage-I performs intensity-conditioned Transformer pre-recovery, and Stage-II conducts dual-branch refinement enhancement. Finally, the enhanced HVI image is converted back to the sRGB enhanced image through PHVIT.
Applsci 16 02450 g001
Figure 2. Content-intensity cross-branch interaction module: (a) Intensity-Conditioned Block (ICB), (b) Intensity-Conditioned Multi-Head Self-Attention (IC-MHSA).
Figure 2. Content-intensity cross-branch interaction module: (a) Intensity-Conditioned Block (ICB), (b) Intensity-Conditioned Multi-Head Self-Attention (IC-MHSA).
Applsci 16 02450 g002
Figure 3. Dual-branch Complementary Cross-Attention (CCA) Block (i.e., I branch and HV branch). CCA includes Cross-Attention Block (CAB), Intensity Enhancement Layer (IEL), and Color Denoising Layer (CDL). The feature embedding convolution layers consist of 1 × 1 depthwise convolution and 3 × 3 group convolution.The design of these modules is an updated version based on [39].
Figure 3. Dual-branch Complementary Cross-Attention (CCA) Block (i.e., I branch and HV branch). CCA includes Cross-Attention Block (CAB), Intensity Enhancement Layer (IEL), and Color Denoising Layer (CDL). The feature embedding convolution layers consist of 1 × 1 depthwise convolution and 3 × 3 group convolution.The design of these modules is an updated version based on [39].
Applsci 16 02450 g003
Figure 4. Input the extreme dataset Sony-Total-Dark and the image enhanced using the HVIFormer method.
Figure 4. Input the extreme dataset Sony-Total-Dark and the image enhanced using the HVIFormer method.
Applsci 16 02450 g004
Figure 5. Visual comparisons of the enhanced results by different methods on LOLv1 and LOLv2. The non-English text in the images can be considered as a painting without paying attention to its textual meaning (culture).
Figure 5. Visual comparisons of the enhanced results by different methods on LOLv1 and LOLv2. The non-English text in the images can be considered as a painting without paying attention to its textual meaning (culture).
Applsci 16 02450 g005
Figure 6. Five unpaired datasets are compared visually, and we randomly select one image in each dataset to compare with the other methods. Our HVIFormer enhances dark details and illumination to a suitable interval, which is better than the other methods.
Figure 6. Five unpaired datasets are compared visually, and we randomly select one image in each dataset to compare with the other methods. Our HVIFormer enhances dark details and illumination to a suitable interval, which is better than the other methods.
Applsci 16 02450 g006
Figure 7. Visualizing component ablation in HVIFormer. Visual comparisons show noticeable differences against the ground truth when specific components of HVIFormer are removed. Each omitted component causes varying levels of color distortion and noise, highlighting their importance for high-fidelity image enhancement.
Figure 7. Visualizing component ablation in HVIFormer. Visual comparisons show noticeable differences against the ground truth when specific components of HVIFormer are removed. Each omitted component causes varying levels of color distortion and noise, highlighting their importance for high-fidelity image enhancement.
Applsci 16 02450 g007
Table 1. Comparison of features of several typical low-light enhancement methods (Part I). (TIP: traditional priors/image processing; SML: supervised machine learning; U/WML: unsupervised or weak machine learning).
Table 1. Comparison of features of several typical low-light enhancement methods (Part I). (TIP: traditional priors/image processing; SML: supervised machine learning; U/WML: unsupervised or weak machine learning).
MethodYearCategoryModel FeaturesColor Space
Tone mapping [8,9]2017 [8]; 2020 [9]TIPGradient domain adaptive tone mappingRGB; grayscale (intensity)
Gamma correction [10]2023TIPPower-law nonlinear luminance curve transformationRGB; grayscale (intensity)
Histogram equalization [11,12,13]1993 [11]; 2020 [12]; etcTIPHistogram redistribution for contrast adjustmentRGB; grayscale (intensity)
Retinex decomposition [14,15,16,17,18,19,20,21]2013 [14]; 2015 [15]; etcTIPIllumination and reflectance decomposition with priors/regularizationMostly RGB (also log domain or luminance channel)
LLNet [25]2017SMLEnd-to-end mapping with stacked denoising autoencoders for brightening and denoisingRGB
MBLLEN [5]2018SMLMulti-branch CNN with feature extraction, enhancement, and fusionRGB
EnlightenGAN [23]2021U/WMLUnpaired GAN-based framework with generator and discriminatorRGB
Zero-DCE [22]2020U/WMLCurve-parameter estimation with self-supervised no-reference lossesRGB
RetinexFormer [27]2023TransformerTransformer self-attention with Retinex formulation and illumination guidanceRetinex
LLFormer [24]2023TransformerHigh-resolution LLIE with self-attention for long-range modelingRGB
HVIFormer (Ours)OursHVI representation with intensity-guided transformer pre-recovery and detail/color refinementHVI
Table 2. Module-level summary of HVIFormer (inputs/outputs and to do).
Table 2. Module-level summary of HVIFormer (inputs/outputs and to do).
ModuleInputsOutputsTo Do
HVIT (sRGB → HVI)Low-light sRGB image L X h v i and IExtracts intensity prior I and decouples chroma for more stable low-light representation (brightness + color).
Stage-I ( X h v i , I ) Pre-recovered ( I , X h v i ) Global exposure calibration and coarse denoising for a stable base before refinement (brightness + noise).
ICBContent/intensity features (within Stage-I)Bi-directionally updated content/intensity featuresBi-directional intensity–content correction to stabilize illumination cues and suppress noise (brightness + noise).
IC-MHSAQ/K/V features and intensity-driven gating (within Stage-I)Intensity-gated attention outputIntensity-gated attention: stronger updates in dark regions, conservative updates in bright regions (noise + color).
Stage-II ( I , X h v i ) Refined L ˜ h v i Refines details and color fidelity on the pre-recovered result; suppresses residual noise (color + noise).
CCAFeatures from intensity branch and chroma/detail branch (Stage-II)Complementarily fused cross-branch featuresComplementary cross-branch fusion between intensity and chroma/detail features to reduce artifacts (color + noise).
PHVIT (HVI → sRGB)Enhanced L ˜ h v i Enhanced sRGB image L ^ Reconstructs sRGB with range constraints to avoid overflow and preserve visual consistency (color).
Table 3. Quantitative results of PSNR/SSIM ↑ and LPIPS ↓ on the LOL (v1 and v2) datasets. Best results are in red and second best in blue.
Table 3. Quantitative results of PSNR/SSIM ↑ and LPIPS ↓ on the LOL (v1 and v2) datasets. Best results are in red and second best in blue.
MethodsColor ModelComplexityLOLv1LOLv2-RealLOLv2-Synthetic
Params/M FLOPs/G PSNR ↑SSIM ↑LPIPS ↓PSNR ↑SSIM ↑LPIPS ↓PSNR ↑SSIM ↑LPIPS ↓
RetinexNet [3]Retinex0.44772.0116.7740.4190.47416.0970.4010.54317.1370.7620.225
LLFormer [24]RGB12.5412.9023.6490.8290.16927.7490.8730.14317.7150.7890.243
ZeroDCE [22]RGB0.0764.8314.1210.5020.43312.5940.4460.48417.1750.8170.197
SCI [57]RGB0.005610.6722.0150.5660.29323.8660.6870.20224.7260.9410.096
EnlightenGAN [23]RGB114.3561.0117.4840.6510.32218.4890.6720.31117.5980.7200.265
GSAD [58]RGB17.43439.4627.6300.8750.09122.2950.7940.19121.7370.8740.060
RUAS [26]Retinex0.0030.8316.4110.4260.51918.1120.4070.51715.6210.4230.523
KinD [59]Retinex8.02183.7220.6240.8170.19318.5540.8000.25922.1990.8910.118
SNR-Net [6]RGB4.0126.3524.6090.8500.15021.4790.8570.15822.8750.1180.903
RetinexFormer [27]Retinex1.6116.7226.6440.8510.12821.4440.8350.23725.4670.9310.035
CIDNet [7]HVI1.887.5727.6560.8640.12222.8470.8180.24624.3410.9120.043
HVIFormer (Ours)HVI3.4026.6328.7780.8910.06729.0010.9020.09630.4910.9550.034
Table 4. NIQE scores on LIME, VV, DICM, NPE, and MEF datasets. “AVG” denotes the average NIQE scores across these five datasets. Best results are in red and second best in blue.
Table 4. NIQE scores on LIME, VV, DICM, NPE, and MEF datasets. “AVG” denotes the average NIQE scores across these five datasets. Best results are in red and second best in blue.
MethodsDICMLIMEMEFNPEVVAVG
RetinexNet [3]4.4134.6114.2434.5294.6224.483
RetinexFormer [27]3.6953.8643.4563.9412.9613.583
ZeroDCE [22]3.6704.0893.5044.3623.3023.785
CIDNet [7]4.0744.1223.3603.6273.2473.686
RUAS [26]6.0885.2695.2565.9345.6825.646
DMFourLLIE [60]3.6253.2333.5653.5643.2983.457
HVIFormer3.6163.5363.2113.4023.2123.395
Table 5. Results on extreme low-light datasets. The arrow ↑ indicates that a higher value is better. Best results are in red and second best in blue.
Table 5. Results on extreme low-light datasets. The arrow ↑ indicates that a higher value is better. Best results are in red and second best in blue.
MethodsSICESony-Total-Dark
PSNR ↑SSIM ↑PSNR ↑SSIM ↑
RetinexNet [3]11.8450.61213.8420.350
RetinexFormer [27]12.8450.62016.4680.375
ZeroDCE [22]12.3020.63415.8760.405
CIDNet [7]13.3020.63322.6540.668
RUAS [26]8.3800.50512.2460.078
HVIFormer21.0790.76524.2340.697
Table 6. Ablation studies on HVIFormer with the LOL-v1. The term ‘w/o’ denotes the absence of a specific component. The arrows ↑ and ↓ indicate that higher and lower values are better, respectively. Best results are in red and second best in blue.
Table 6. Ablation studies on HVIFormer with the LOL-v1. The term ‘w/o’ denotes the absence of a specific component. The arrows ↑ and ↓ indicate that higher and lower values are better, respectively. Best results are in red and second best in blue.
SettingPSNR ↑SSIM ↑LPIPS ↓
A: w/o Stage-I27.860.8740.090
B: w/o Stage-II27.420.8710.099
C: w/o Intensity-Conditioned Block28.180.8820.078
D: w/o Intensity-Conditioned Multi-Head Self-Attention28.030.8780.083
E: w/o Complementary Cross-Attention28.090.8800.081
F: w/o HVI (sRGB two-stage)26.940.8580.115
G: Full (Ours)28.7780.8910.067
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Li, Y.; Luo, L.; Li, H. HVIFormer: A Dual-Stage Low-Light Image Enhancement Method Based on HVI Representation. Appl. Sci. 2026, 16, 2450. https://doi.org/10.3390/app16052450

AMA Style

Li Y, Luo L, Li H. HVIFormer: A Dual-Stage Low-Light Image Enhancement Method Based on HVI Representation. Applied Sciences. 2026; 16(5):2450. https://doi.org/10.3390/app16052450

Chicago/Turabian Style

Li, Yimei, Liuhong Luo, and Hongjun Li. 2026. "HVIFormer: A Dual-Stage Low-Light Image Enhancement Method Based on HVI Representation" Applied Sciences 16, no. 5: 2450. https://doi.org/10.3390/app16052450

APA Style

Li, Y., Luo, L., & Li, H. (2026). HVIFormer: A Dual-Stage Low-Light Image Enhancement Method Based on HVI Representation. Applied Sciences, 16(5), 2450. https://doi.org/10.3390/app16052450

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop