Semantically Contrastive Learning for Low-Light Image Enhancement

Dong Liang, Ling Li, Mingqiang Wei, Shuo Yang, Liyan Zhang, Wenhan Yang, Yun Du, Huiyu Zhou

Abstract

Low-light image enhancement (LLE) is a critical task for improving the visibility and quality of images captured in suboptimal lighting conditions. Traditional supervised methods are often limited by the difficulty of obtaining perfectly aligned image pairs. This paper introduces SCL-LLE, a novel framework that utilizes semantically contrastive learning to enhance low-light images. By learning from both positive (normal-light) and negative (over/underexposed) samples, and incorporating high-level semantic segmentation guidance, the proposed model achieves more natural enhancement and improved performance on downstream tasks like semantic segmentation.

Introduction

Enhancing images captured in low-light environments is a long-standing challenge. While deep learning has significantly advanced the field, most existing methods rely on "strong supervision" with paired datasets. Such pairs are hard to capture and calibrate in real-world scenarios. Furthermore, many models fail to account for two vital aspects: negative constraints and semantic context. Without negative samples, models may produce overexposed artifacts. Without semantic context, enhancement can be spatially inconsistent, as different objects (e.g., sky vs. road) naturally possess different brightness characteristics.

Methodology

The SCL-LLE framework treats enhancement as a multi-task joint learning problem, comprising three primary modules:

1. Contrastive Learning Module

Instead of simple pixel-wise matching, SCL-LLE employs a triplet loss in a latent feature space defined by Gram matrices. This module pulls the enhanced image toward "positive" normal-light samples and pushes it away from "negative" samples, such as overexposed or underexposed images. This boundary-based learning helps the model avoid common enhancement artifacts.

2. Semantic Brightness Consistency

To ensure that objects within the same category maintain consistent brightness, the framework integrates a pre-trained DeepLabv3+ semantic segmentation network. It calculates the average brightness for each semantic category and enforces a loss that encourages smooth, category-specific brightness levels, preventing "patchy" results.

3. Feature Preservation

To maintain the original image's structure and color, the authors utilize a combination of perceptual loss—comparing VGG features—and a color constancy term based on the gray-world hypothesis.

Key Insights and Results

A major finding of this work is the effectiveness of negative samples. Including overexposed images as negatives significantly reduces "halo" artifacts and over-saturation, providing a clear boundary for the model's enhancement logic.

Visual comparison showing the impact of negative samples on enhancement quality. (a) Input, (b) result without negative samples, (c) SCL-LLE result.

Quantitative Performance

SCL-LLE was evaluated across multiple datasets, including DICM, MEF, LIME, NPE, and VV. It achieved state-of-the-art results in no-reference metrics (NIQE: 3.46, UNIQUE: 0.85). On the SICE benchmark, it outperformed existing models like EnlightenGAN and Zero-DCE, reaching a PSNR of 17.95 and an SSIM of 0.68.

Downstream Task Benefits

Beyond visual quality, SCL-LLE significantly improves the performance of autonomous perception systems. Pre-processing darkened Cityscapes images with SCL-LLE led to a substantial boost in Mean Intersection over Union (mIoU) for semantic segmentation, demonstrating its practical utility for night-time computer vision.

Conclusion and Future Work

SCL-LLE demonstrates that semantically-aware contrastive learning is a powerful tool for unpaired low-light enhancement. While the method excels at maintaining category-level consistency, the authors acknowledge that the process can sometimes slightly degrade fine structural details compared to original high-light images. Future research will explore tighter coupling between enhancement and segmentation networks to further preserve topological information and optimize performance for specific robotic perception needs.

Summary updated

BibTeX
@inproceedings{liang2022semantically,
  author = {Dong Liang and Ling Li and Mingqiang Wei and Shuo Yang and Liyan Zhang and Wenhan Yang and Yun Du and Huiyu Zhou},
  title = {{Semantically Contrastive Learning for Low-Light Image Enhancement}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i2.20046},
}
Figure