FeatEnHancer: Enhancing Hierarchical Features for Object Detection and Beyond Under Low-Light Vision

Khurram Azeem Hashmi, Goutham Kallempudi, Didier Stricker, Muhammad Zeshan AfzalICCV 2023

Abstract

Extracting useful visual cues for downstream tasks is especially challenging under low-light vision. Prior works create enhanced representations by either correlating visual quality with machine perception or designing illumination-degrading transformation methods that require pre-training on synthetic datasets. We argue that optimizing enhanced image representation pertaining to the loss of the downstream task can result in more expressive representations. Therefore, in this work, we propose a novel module, FeatEnHancer, that hierarchically combines multiscale features using multi-headed attention guided by task-related loss functions to create suitable representations. Furthermore, our intra-scale enhancement improves the quality of features extracted at each scale or level, as well as combines features from different scales in a way that reflects their relative importance for the task at hand. FeatEnHancer is a general-purpose plug-and-play module and can be incorporated into any low-light vision pipeline. We show with extensive experimentation that the enhanced representation produced with FeatEnHancer significantly and consistently improves results in several low-light vision tasks, including dark object detection (+5.7 mAP on ExDark), face detection (+1.5 mAP on DARK FACE), nighttime semantic segmentation (+5.1 mIoU on ACDC), and video object detection (+1.8 mAP on DarkVision), highlighting the effectiveness of enhancing hierarchical features under low-light vision.

The Challenge of Low-Light Vision

Computer vision models typically struggle in the dark. While Low-Light Image Enhancement (LLIE) techniques exist, they are often designed to improve visual quality for human eyes. This creates a "perception gap": an image that looks bright and clear to a person might actually have corrupted textures or lost edge information that a neural network needs to identify objects.

Furthermore, many existing enhancement methods rely on supervised learning with paired datasets (matching dark and bright images) or pre-training on synthetic data. These approaches often fail to generalize to the messy, varied lighting conditions of the real world. The authors of FeatEnHancer argue that for a model to truly "see" in the dark, the enhancement process must be directly driven by the needs of the final task (e.g., object detection) rather than an arbitrary standard of visual beauty.

The FeatEnHancer Architecture

FeatEnHancer is a general-purpose module that can be integrated into existing vision pipelines. Its architecture consists of three main components:

  1. Constructing Multi-scale Representations: The input image is downsampled into multiple resolutions (quarter and octa scales) to capture both fine details and broad context.
  2. Feature Enhancement Network (FEN): This is a deep convolutional network that performs "intra-scale" enhancement. It processes each resolution independently to enrich semantic representations. Crucially, FEN is trained using the loss function of the downstream task, forcing it to preserve and highlight features that are useful for detection or segmentation.
  3. Scale-aware Attentional Feature Aggregation (SAFA): This is the core innovation. Inspired by multi-head attention, SAFA learns to fuse features from different scales by calculating their relative importance. It uses attention weights to decide which parts of the high-resolution and low-resolution maps should be prioritized to create a robust, hierarchical representation.

The entire system is trained end-to-end. This means the "enhancer" learns exactly what kind of feature adjustments help the "detector" perform better.

Bridging the Perception Gap

One of the most striking findings of this research is that visual appeal does not always equate to machine performance. FeatEnHancer often produces representations that look "abstract" or even "worse" to humans than traditional LLIE methods, yet these representations lead to significantly higher accuracy for AI models. By explicitly modeling the relationship between different scales through SAFA, the model can navigate the noise inherent in low-light images—using low-resolution maps for global structure and high-resolution maps for specific object boundaries.

Visual comparison of ground truth (GT), hierarchical representations, and enhanced images across various low-light scenarios including detection and segmentation tasks.

Performance Across Benchmarks

FeatEnHancer consistently outperformed both baseline models and state-of-the-art LLIE methods across four diverse low-light benchmarks:

  • Object Detection (ExDark): Achieved a +5.7 mAP improvement over the baseline.
  • Face Detection (DARK FACE): Saw a +1.5 mAP gain when paired with a strong detector like FQ R-CNN.
  • Semantic Segmentation (ACDC Nighttime): Reached a new state-of-the-art with a +5.1 mIoU increase.
  • Video Detection (DarkVision): Improved results by +1.8 mAP, proving its utility in temporal domains.

Despite its performance gains, the module is relatively lightweight, adding only about 138K parameters to the total model size, making it a viable "plug-and-play" addition to existing architectures.

Conclusion and Future Work

FeatEnHancer demonstrates that task-driven enhancement is superior to human-centric visual enhancement for machine perception in low-light environments. While efficient, the authors note that the majority of its parameters reside within the SAFA (attention) module. Future research could explore even more optimized attentional schemes to reduce the parameter count further. Additionally, while the module is versatile, its performance is still influenced by the strength of the backbone architecture it is attached to, suggesting further work in making the enhancement process entirely backbone-agnostic.

Summary updated

BibTeX
@inproceedings{hashmi2023featenhancer,
  author = {Khurram Azeem Hashmi and Goutham Kallempudi and Didier Stricker and Muhammad Zeshan Afzal},
  title = {{FeatEnHancer: Enhancing Hierarchical Features for Object Detection and Beyond Under Low-Light Vision}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=3X58D89spOM},
}
Figure