NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Enhance Images as You Like with Unpaired Learning

Xiaopeng Sun, Muxingzi Li, Tianyu He, Lubin Fan

TL;DR

Low-light image enhancement is inherently subjective, yet most AI models treat it as a rigid one-to-one mapping problem. This paper introduces a lightweight conditional GAN that learns a one-to-many relationship from unpaired data, allowing users to enhance images based on a reference style while using 10x fewer parameters than previous state-of-the-art models.

What Problem Does This Paper Address?

Enhancing a dark photo isn't just about "fixing" it; it’s about artistic preference. One person might want a high-contrast, moody look, while another wants a bright, naturalistic scene. In technical terms, this makes low-light enhancement an ill-posed problem: there are many valid "normal-light" versions of a single "low-light" input.

Most existing deep learning methods ignore this, training models to map an input to a single, deterministic ground truth. Furthermore, these models often rely on paired datasets (identical scenes shot at different exposures), which are difficult and expensive to capture. The authors tackle two gaps: how to enable user-controlled, one-to-many enhancement, and how to do it effectively using unpaired training data (where the "dark" and "bright" image sets don't match).

Methods

The authors propose a lightweight one-path Conditional Generative Adversarial Network (cGAN). The architecture consists of two main components:

  1. Modulation Code Generator (MCG): This module takes a low-light input and a "reference" image (representing the desired style). It fuses their features into a modulation code that guides the enhancement process.
  2. U-Net Translator: A modified U-Net that performs the actual image translation. It features two novel internal modules:
  3. Pixel-wise Self-Modulation (PSM): This bridges the gap between the encoder and decoder. It uses upsampled features to adaptively adjust the statistics of "skipped" features, preserving multi-scale textures.
  4. Channel-wise Conditional-Modulation (CCM): This is the "style injector." It uses the code from the MCG to perform a learnable, non-linear transformation on the image features, effectively simulating complex brightness and contrast curves.

To train this without paired images, they use a suite of specialized loss functions:

  • Idempotence Loss: Ensures a bright image conditioned on itself remains unchanged.
  • Spatial Consistency Loss: Forces the output to maintain the same structural gradients as the input.
  • Global Color Consistency Loss: Prevents unrealistic color shifts by keeping the relative strength of color channels stable.
  • GAN Loss: The standard adversarial loss to ensure the output looks "real" to a discriminator.

Datasets

The researchers combined several existing datasets to create a diverse, unpaired training environment:

  • LOL (Low-Light) Dataset: Used for both training and testing (#690 test set).
  • MIT-Adobe FiveK: A large-scale dataset of professional photo adjustments.
  • Exclusively Dark (ExDARK) / LIME: Used to test the model's generalization to real-world, challenging low-light scenarios.

In total, they utilized 983 low-light and 5,576 normal-light images for training, ignoring any existing pairing information to prove the efficacy of their unpaired approach.

Key Insights and Ideas

  • Embracing Subjectivity: By conditioning the output on a reference image, the model moves away from "one-size-fits-all" enhancement. This allows for a "one-to-many" mapping that respects user preference.
  • Efficiency is King: The model achieves state-of-the-art results with only ~891,000 parameters. For comparison, the popular EnlightenGAN uses over 8.6 million parameters. This 10x reduction makes the model much more suitable for mobile or edge devices.
  • The Power of Idempotence: In unpaired learning, the "idempotence loss" (mapping a bright image to itself) acts as a crucial anchor, preventing the generator from producing arbitrary or hallucinatory results.
  • Simulating Curves: Instead of simple linear scaling, the CCM module uses a piece-wise function to simulate the sophisticated curve adjustments used by professional photo editors.

Key Results

  • Quantitative Performance: On the FiveK dataset, the model achieved the highest PSNR (20.87 max) and SSIM (0.797 max) among unpaired methods, proving that it doesn't sacrifice quality for its small size.
  • Qualitative Superiority: In visual comparisons (e.g., the LIME and LOL datasets), the model produced images with better contrast, more natural colors, and significantly less noise than heavyweights like RetinexNet or CycleGAN.
  • User Control: The model successfully transferred styles from reference images—if the reference was warm and bright, the output followed suit.

Limitations and Future Work

  • Dependency on Idempotence: The authors note that the idempotence loss is the only thing enforcing content consistency in their setup; without it, the model fails. This suggests the training stability is highly sensitive to this specific loss.
  • Reference Selection: While the model allows for user preference, it requires a reference image. Future work could explore how to generate these "style codes" automatically based on semantic scene understanding.
  • Generalization: The authors suggest that the PSM and CCM modules could be applied to other image-to-image tasks, such as general style transfer or image synthesis, which remains to be explored.

Summary updated

BibTeX
@inproceedings{sun2021enhance,
  author = {Xiaopeng Sun and Muxingzi Li and Tianyu He and Lubin Fan},
  title = {{Enhance Images as You Like with Unpaired Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.24963/ijcai.2021/140},
}
Figure