Retinexformer: One-stage Retinex-based Transformer for Low-light Image Enhancement
Retinexformer integrates one-stage Retinex framework with Transformer, achieving significant PSNR gains over 4dB on 13 datasets.
Key Findings
Methodology
This paper introduces an end-to-end one-stage Retinex framework (ORF) combining illumination estimation and noise suppression. The core is the Illumination-Guided Transformer (IGT), which employs illumination features to guide non-local self-attention via IG-MSA, capturing long-range dependencies. ORF estimates illumination maps through convolutional modules, then enhances images by restoring corruptions with IGT. The entire pipeline is trained jointly, simplifying previous multi-stage approaches. Extensive experiments show superior performance across 13 benchmarks, with notable improvements in noise-heavy scenarios.
Key Results
- On datasets like SID and SDSD, PSNR improvements exceed 6dB, with an average gain of over 4dB compared to state-of-the-art methods such as DeepUPE and RetinexNet.
- In low-light object detection tasks, enhanced images lead to higher detection accuracy, demonstrating practical benefits.
- Model parameters are only 6% of Restormer, with 40% fewer FLOPS, enabling efficient deployment without sacrificing quality.
Significance
This work advances low-light image enhancement by integrating Transformer-based long-range modeling into a unified Retinex framework. It addresses longstanding issues of noise amplification, color distortion, and multi-stage training complexity. The end-to-end approach simplifies deployment and significantly boosts image quality, impacting applications like night surveillance, autonomous driving, and smartphone photography. The method's robustness and efficiency open new avenues for real-time, high-quality low-light imaging.
Technical Contribution
The paper pioneers the use of Transformer in low-light enhancement, proposing IG-MSA guided by illumination features to model non-local dependencies efficiently. It introduces a novel one-stage Retinex formulation with perturbation modeling, enabling joint training of illumination estimation and noise suppression. The architecture combines multi-scale U-Net with IG-MSA modules, achieving superior detail recovery and noise reduction while maintaining computational efficiency. These innovations collectively push the boundary of low-light image restoration.
Novelty
This is the first work to embed a Transformer-based attention mechanism guided explicitly by illumination features within a Retinex framework for low-light enhancement. It departs from传统多阶段训练,采用端到端优化,结合非局部建模与噪声抑制,显著优于传统卷积和多阶段方法。IG-MSA机制的引入实现了低复杂度长距离依赖建模,为低光照增强提供新思路。
Limitations
- 在极端过曝或极暗场景下,模型仍存在一定的恢复不足,处理动态范围极端变化的能力有限。
- 对复杂光照变化和高动态场景的适应性有待提升,泛化能力需在更多多样化数据上验证。
- 训练依赖大量标注数据,可能在数据获取方面存在一定限制。
Future Work
未来将结合多模态信息(如深度、红外)提升极端场景的鲁棒性。探索自适应光照估计机制,增强模型的泛化能力。还将优化模型结构,实现更快的推理速度,推动在移动端和实时应用中的部署。
AI Executive Summary
Low-light image enhancement remains a challenging problem in computer vision, with traditional methods like histogram equalization and gamma correction often producing artifacts and unnatural results. Deep learning approaches based on Retinex theory have made progress but typically rely on multi-stage training pipelines, which are complex and computationally expensive. Moreover, convolutional neural networks (CNNs) struggle to model long-range dependencies, limiting their effectiveness in restoring details in dark regions.
This paper introduces Retinexformer, a novel framework that unifies illumination estimation and noise suppression within a single, end-to-end trainable pipeline. The key innovation is the design of an Illumination-Guided Transformer (IGT), which employs illumination features to guide a specialized self-attention mechanism (IG-MSA). This mechanism enables the model to effectively capture long-distance relationships between regions with different lighting conditions, leading to superior detail recovery and noise reduction.
The framework is built upon a simplified one-stage Retinex formulation, where illumination perturbations and corruptions are jointly modeled. The convolutional modules estimate illumination maps, which are then used to enhance the input images. The IGT modules, integrated at multiple scales, refine the restored images by focusing on regions with severe noise or underexposure. Extensive experiments across 13 datasets demonstrate that Retinexformer surpasses existing state-of-the-art methods by over 4dB PSNR on average, with particular gains in noisy scenarios.
The model is lightweight, requiring only a fraction of the parameters and FLOPS compared to previous Transformer-based methods, making it suitable for real-world deployment. User studies and practical applications in low-light object detection further validate its effectiveness. Future directions include multi-modal fusion, adaptive illumination modeling, and real-time processing, promising broader impact in night-time imaging, surveillance, and autonomous systems.
Deep Analysis
Background
Low-light image enhancement has evolved from simple histogram equalization and gamma correction to sophisticated deep learning models. Early methods lacked semantic understanding, often causing artifacts. Retinex-based approaches introduced decomposition into reflectance and illumination, improving perceptual quality but still suffering from multi-stage training and noise amplification. Recent CNN models like RetinexNet and KinD improved performance but struggled with long-range dependencies and noise suppression. Transformer models, known for capturing global context, have been under-explored due to computational costs. This work aims to bridge this gap by integrating Transformer mechanisms into a Retinex framework, addressing both efficiency and robustness.
Core Problem
Existing low-light enhancement methods face challenges such as complex multi-stage training, limited ability to model long-distance dependencies, and poor noise suppression, especially in severely corrupted scenes. CNN-based models cannot effectively capture global context, leading to artifacts and detail loss. Traditional Retinex methods assume noise-free illumination maps, which is unrealistic. Therefore, designing a unified, end-to-end model that efficiently models long-range interactions, suppresses noise, and handles diverse lighting conditions remains an open problem.
Innovation
The paper introduces a one-stage Retinex framework (ORF) that models corruptions via perturbation terms, enabling joint training of illumination and noise suppression. The core innovation is the Illumination-Guided Transformer (IGT), which employs IG-MSA to guide self-attention with illumination features, capturing long-range dependencies efficiently. This approach reduces computational complexity from quadratic to linear relative to spatial size, allowing integration at multiple scales. The architecture simplifies training, improves detail recovery, and effectively suppresses noise and artifacts, setting a new benchmark in low-light enhancement.
Methodology
- �� Use convolutional layers to estimate illumination maps and extract light-up features from input images.
- �� Introduce perturbation terms to model noise and color distortions, enabling joint end-to-end training.
- �� Design a U-shaped IGT with multiple IGAB units, each containing IG-MSA guided by illumination features.
- �� Implement IG-MSA by reshaping features into tokens, computing scaled dot-product attention with illumination guidance, and concatenating multi-head outputs.
- �� Employ skip connections and multi-scale fusion to refine restored images.
- �� Optimize the entire network with MAE loss, balancing detail preservation and noise suppression.
- �� Validate on multiple datasets, including LOL, SID, SMID, and SDSD, with ablation studies confirming each component’s contribution.
Experiments
Experiments involve training on diverse datasets with varied lighting conditions, using data augmentation and hyperparameter tuning. The evaluation metrics include PSNR and SSIM, with comparisons against CNN-based and Transformer-based SOTA models. Ablation studies demonstrate the effectiveness of IG-MSA and illumination guidance. The model’s robustness is tested in noisy, overexposed, and underexposed scenarios, showing consistent superiority. Computational efficiency is analyzed through FLOPS and parameter count, confirming the lightweight design. Cross-dataset validation confirms generalization capabilities.
Results
Retinexformer achieves an average PSNR increase of over 4dB across 13 datasets, with improvements exceeding 6dB in noisy scenarios like SID and SDSD. It outperforms DeepUPE, RetinexNet, and Restormer by significant margins, with fewer parameters and FLOPS. Visual results show clearer, more natural images with less noise and color distortion. User studies indicate higher perceptual quality scores, and low-light object detection accuracy improves notably, demonstrating practical utility. Ablation results confirm the importance of illumination-guided attention and multi-scale fusion.
Applications
The method can be directly applied to night-time surveillance, autonomous driving, and smartphone photography, where robust low-light enhancement is critical. It requires minimal training data and can be deployed on edge devices for real-time processing. The improved image quality benefits downstream tasks like recognition, tracking, and scene understanding. Long-term, the framework can be extended to multi-modal inputs, such as infrared or depth data, further enhancing performance in challenging environments.
Limitations & Outlook
Despite its strengths, the model struggles in extreme overexposure or underexposure scenarios, where details are heavily lost. Its performance under rapid lighting changes or dynamic scenes needs further validation. The reliance on large annotated datasets may limit applicability in data-scarce domains. Computational costs, though reduced, still pose challenges for real-time deployment on very resource-constrained devices. Future work should focus on adaptive mechanisms and unsupervised training to address these issues.
Plain Language Accessible to non-experts
想象你在一个黑暗的房间里,想让里面变得明亮。传统方法就像用手电筒,只能照亮一小块区域,还可能让光线反光或出现噪点。Retinexformer像一个聪明的灯光调节器,它知道哪里需要亮,哪里要保持原样。它会用一种特殊的“光线引导”技术,调整房间的亮度,让每个角落都看得清楚,又不会出现怪色或噪点。它还能记住房间的细节,比如家具的颜色和位置,确保画面自然真实。这个方法就像用专业的灯光布置,让房间看起来像白天一样明亮、清晰。未来,它还能帮你在夜晚拍照、监控或自动驾驶时,看到更清楚、更真实的画面,就像夜视仪一样厉害。
ELI14 Explained like you're 14
想象你在黑暗中玩游戏,屏幕很暗,看不清楚东西。你想让画面变亮,但普通的亮度调节会让颜色变怪,还会出现噪点。Retinexformer就像一个超级聪明的调光器,它知道哪里需要变亮,哪里要保持原样。它会用一种特别的“光线引导”方法,把暗的地方变亮,又不让颜色变怪,还能把噪点抑制掉。就像你用专业的灯光布置,让房间看起来既明亮又自然。这个方法还可以帮你在夜晚拍照时,照片更清楚、更漂亮,不会有噪点或变色。它让夜间的画面变得像白天一样清晰,未来可以用在监控、自动驾驶甚至手机拍照上,帮你在黑暗中也能看得清清楚楚!
Abstract
When enhancing low-light images, many deep learning algorithms are based on the Retinex theory. However, the Retinex model does not consider the corruptions hidden in the dark or introduced by the light-up process. Besides, these methods usually require a tedious multi-stage training pipeline and rely on convolutional neural networks, showing limitations in capturing long-range dependencies. In this paper, we formulate a simple yet principled One-stage Retinex-based Framework (ORF). ORF first estimates the illumination information to light up the low-light image and then restores the corruption to produce the enhanced image. We design an Illumination-Guided Transformer (IGT) that utilizes illumination representations to direct the modeling of non-local interactions of regions with different lighting conditions. By plugging IGT into ORF, we obtain our algorithm, Retinexformer. Comprehensive quantitative and qualitative experiments demonstrate that our Retinexformer significantly outperforms state-of-the-art methods on thirteen benchmarks. The user study and application on low-light object detection also reveal the latent practical values of our method. Code, models, and results are available at https://github.com/caiyuanhao1998/Retinexformer