Abstract
Low-light image enhancement (LLIE) often suffers from non-uniform degradation and color inconsistency, where objects like black cars may appear gray due to a lack of semantic understanding. We present the Semantic-aware Knowledge-guided Framework (SKF), a plug-and-play architecture that leverages high-level semantic priors from a pre-trained segmentation model to guide low-level enhancement. By integrating semantic-aware embedding modules and specialized losses (color histogram and adversarial), SKF significantly improves color accuracy and texture realism across various state-of-the-art baselines.
Introduction
The core challenge in low-light image enhancement (LLIE) is that images suffer from non-uniform degradation. A dark sky requires fundamentally different processing than a dark person or a building. Traditional deep learning models typically treat an image as a uniform grid of pixels and apply a global mapping to improve brightness. Without "semantic priors"—knowledge about the objects in the scene—these models often struggle to maintain color consistency. For example, if a model doesn't recognize a region as "sky," it might introduce purple or gray tints while trying to brighten it, a phenomenon known as "color drift."
This research aims to bridge the gap between high-level semantic understanding (segmentation) and low-level vision tasks (image enhancement) to produce more realistic and accurate results.
The SKF Framework
The authors propose the Semantic-aware Knowledge-guided Framework (SKF), which can be integrated into various existing LLIE baselines. It relies on a Semantic Knowledge Bank (SKB)—a frozen, pre-trained segmentation model (HRNet)—to provide guidance through three novel components:
- Semantic-aware Embedding (SE) Module: This acts as a bridge between the segmentation network and the enhancement network. It uses a transposed-attention mechanism to allow image features to "interact" with semantic features at multiple scales. This helps the model perceive rich spatial and category-specific information during the feature extraction phase.
- Semantic-guided Color Histogram (SCH) Loss: Standard color losses are global. SCH loss uses the semantic map to divide the image into patches based on object instances. It then enforces color consistency for each specific object, ensuring that a "tree" region maintains the statistical color properties of a tree.
- Semantic-guided Adversarial (SA) Loss: In a GAN-based setup, the discriminator often struggles to find "fake" regions. SA loss uses the semantic map to guide the discriminator to focus on specific regions that are likely to contain artifacts, forcing the generator to produce more natural textures.
Experimental Results
The researchers evaluated SKF across several standard benchmarks, including the real-world LOL and LOL-v2 datasets, as well as unpaired datasets like LIME and DICM for generalization testing. The Semantic Knowledge Bank was pre-trained on the PASCAL-Context dataset.
Quantitative Performance
On the LOL dataset, adding SKF to the LLFlow baseline pushed PSNR from 24.99 dB to 26.79 dB, a significant +1.8 dB gain. The LLFlow-L-SKF variant established a new state-of-the-art on the LOL-v2 dataset. These improvements were consistent across six different SOTA baselines (including RetinexNet and KinD++), demonstrating the framework's plug-and-play versatility.
Qualitative and Visual Quality
Qualitatively, the SKF-equipped models showed much better color preservation and fewer "halo" artifacts around bright lights in dark scenes. By understanding the semantics of the scene, the model can keep black objects black instead of turning them gray.
Key Insights and Discussion
- Semantics as a Regularizer: High-level "class" knowledge (knowing a pixel belongs to a "car") acts as a powerful regularizer for low-level pixel values, preventing the network from hallucinating incorrect colors in dark regions.
- Efficiency: By adopting a transposed-attention mechanism in the SE module, the authors kept the computational overhead low while still allowing for complex cross-modal interactions between semantic and image features.
- Limitations: The framework relies on a pre-trained segmentation model. If the model encounters an object category it wasn't trained on, the semantic guidance might be less effective. Additionally, running a full segmentation network alongside an enhancement network increases the memory footprint and inference time.
Conclusion
SKF demonstrates that integrating high-level semantic knowledge into low-level enhancement tasks is a highly effective strategy for overcoming non-uniform degradation. Future work may explore identifying "unknown instances" to improve robustness and extending this semantic-aware approach to other tasks like video enhancement or de-raining.
Summary updated