Abstract
Most existing Low-light Image Enhancement (LLIE) methods either directly map Low-Light (LL) to Normal-Light (NL) images or use semantic or illumination maps as guides. However, the ill-posed nature of LLIE and the difficulty of semantic retrieval from impaired inputs limit these methods, especially in extremely low-light conditions. To address this issue, we present a new LLIE network via Generative LAtent feature based codebook REtrieval (GLARE), in which the codebook prior is derived from undegraded NL images using a Vector Quantization (VQ) strategy. More importantly, we develop a generative Invertible Latent Normalizing Flow (I-LNF) module to align the LL feature distribution to NL latent representations, guaranteeing the correct code retrieval in the codebook. In addition, a novel Adaptive Feature Transformation (AFT) module, featuring an adjustable function for users and comprising an Adaptive Mix-up Block (AMB) along with a dual-decoder architecture, is devised to further enhance fidelity while preserving the realistic details provided by codebook prior.
Introduction
Low-light image enhancement (LLIE) is a classic "ill-posed" problem in computer vision. When brightening a dark image, researchers must contend with extreme noise, color shifts, and a massive loss of structural detail. Traditional methods often struggle because they attempt to map a heavily degraded low-light image directly to a clean one. GLARE addresses this by using a high-quality "memory" of normal-light images to reconstruct the scene.
Methodology
The GLARE framework operates in three distinct stages to bridge the gap between degraded inputs and high-fidelity outputs.
1. Normal-Light Codebook Learning
The process begins by training a Vector Quantized GAN (VQGAN) on thousands of high-quality images. This creates a codebook—a discrete library of "ideal" visual patches (priors) that the model can later draw upon to reconstruct realistic textures.
2. Generative Latent Feature Alignment
A core innovation of GLARE is the Invertible Latent Normalizing Flow (I-LNF). There is typically a significant distribution discrepancy between the features of a dark image and a bright one in latent space. If one simply tries to look up "clean" features using a "dirty" query, the results are often incorrect. The I-LNF module learns to transform messy low-light features into a distribution that aligns with the clean normal-light latent space, ensuring accurate codebook retrieval.
3. Adaptive Feature Transformation (AFT)
To ensure the enhanced image stays true to the original scene (fidelity) while benefiting from the codebook's details, GLARE uses a dual-decoder architecture. An Adaptive Mix-up Block (AMB) allows the model to balance the influence of the original input versus the codebook prior. This includes a learnable coefficient that can be adjusted to tune the enhancement level.
Experimental Evaluation
GLARE was rigorously tested on standard benchmarks (LOL v1/v2, SDSD) and real-world datasets (LIME, DICM, NPE).
Key Results
- Quantitative Superiority: On the LOL-v1 dataset, GLARE achieved a PSNR of 27.35 dB, significantly outperforming other state-of-the-art methods like LL-SKF (26.80 dB) and Retinexformer (25.16 dB).
- Perceptual Quality: It consistently achieved lower LPIPS scores, indicating that the results are more visually realistic.
- Downstream Task Performance: When used as a pre-processing tool for YOLO-v3 on the ExDark dataset, GLARE significantly improved mean Average Precision (mAP), proving its utility for high-level vision applications.
Conclusion
GLARE sets a new bar for low-light image enhancement by combining generative priors with sophisticated latent alignment. While the model is computationally heavier than some end-to-end networks, its ability to recover detail in extreme conditions is unparalleled. Future work will focus on improving inference efficiency and exploring other generative models like Diffusion Models.
Code is available at https://github.com/LowLevelAI/GLARE.
Summary updated