Learning Gain Map for Inverse Tone Mapping

Yinuo Liao, Yuanshen Guan, Ruikang Xu, Jiacheng Li, Shida Sun, Zhiwei XiongICLR 2025

Introduction

Inverse Tone Mapping (ITM) is the process of taking a Standard Dynamic Range (SDR) image—the kind most of our current screens and cameras use—and "up-converting" it to High Dynamic Range (HDR). Traditionally, AI models try to predict the raw HDR pixel values directly. This is incredibly difficult because HDR data has a "long-tailed" distribution where a few pixels are extremely bright while most are dark, making it hard for neural networks to learn effectively.

Researchers have introduced a new approach to upgrading standard images to HDR by predicting a "Gain Map" rather than the HDR image itself. Their proposed model, GMNet, uses a dual-branch architecture to capture both fine-grained local details and global brightness levels, significantly outperforming traditional inverse tone mapping methods on both synthetic and real-world mobile datasets.

The Shift to Gain Maps

The authors point out a shift in the industry: companies like Apple, Adobe, and Google are moving toward a double-layer image format. This format stores a standard SDR image plus a small, auxiliary Gain Map (GM). When you view the image on an HDR screen, the device multiplies the SDR pixels by the Gain Map to "boost" the highlights.

This paper introduces GM-ITM, a task focused on learning to generate that Gain Map, which is mathematically simpler and more stable to predict than raw HDR irradiance. The core insight is that predicting the relationship between SDR and HDR (the Gain Map) is easier for a network than predicting the HDR values from scratch. The Gain Map has a more balanced distribution, making the learning process more stable.

Overview of the GM-ITM process, histogram distributions, and visual comparisons.

Methodology: Introducing GMNet

To tackle the GM-ITM task, the authors propose GMNet, a dual-branch network designed to handle the unique characteristics of Gain Maps. By splitting the Gain Map into a normalized map (shape/texture) and a peak value (intensity), the model can specialize.

  1. Local Contrast Restoration (LCR) Branch: This branch focuses on the "where." It looks at the full-resolution SDR image to restore pixel-level spatial details and textures, ensuring that highlights don't look "flat" or "blocky."
  2. Global Luminance Estimation (GLE) Branch: This branch focuses on the "how much." It processes a down-sampled version of the image to estimate the global peak brightness.
  3. Cross-Branch Modulation: The GLE branch provides global guidance to the LCR branch through spatial-aware and channel-wise modulation. Essentially, the global branch tells the local branch which regions likely need the most "boost," helping the model handle fluctuating peak values across different scenes.

The final output is a normalized Gain Map multiplied by a predicted scalar, which is then used to reconstruct the linear HDR image. Because Gain Maps are typically lower resolution (1/4 or 1/16 of the original image), the task is naturally more computationally efficient than full-scale HDR reconstruction.

Datasets for GM-ITM

To train and test this new task, the authors developed two distinct datasets:

  • Synthetic Dataset: 1,276 SDR-GM pairs derived from high-quality 4K HDR videos. These were created using a degradation model that simulates how cameras typically "squash" HDR content into SDR.
  • Real-World Dataset: 1,000 pairs captured using a Xiaomi 14 Ultra (which natively supports the ISO standard for Gain Maps). This provides a benchmark for how the model performs on actual mobile photography across indoor, outdoor, day, and night settings.

Key Results

GMNet was compared against several state-of-the-art models in Single-Image HDR (SI-HDR) and SDR-to-HDRTV conversion.

  • Quantitative Performance: On the synthetic dataset, GMNet achieved a PSNR of 47.63 dB in the PQ domain, significantly higher than the next best competitor (HDCFM at 44.90 dB). It also led in HDR-specific metrics like HDR-VDP3.
  • Qualitative Quality: Visual comparisons show that GMNet avoids common artifacts like "color clipping" in bright sunlit areas or "grid effects" seen in other lightweight models. It preserves much more texture in highlight regions, such as clouds or light bulbs.
  • Computational Efficiency: The model is highly efficient, achieving a runtime of 75.26ms for a 4K image on an NVIDIA A100, making it viable for near-real-time applications.

Limitations and Future Work

The authors acknowledge a few areas for growth. Currently, the model predicts a grayscale (single-channel) Gain Map, which is the current industry standard. However, some advanced use cases might benefit from a 3-channel (RGB) Gain Map to handle complex color shifts. Additionally, while the real-world dataset is a great start, it is currently limited to a specific mobile sensor (Sony LYT-900). Future work could involve making the model more "sensor-agnostic" to work seamlessly across various smartphone brands.

Summary updated

BibTeX
@inproceedings{liao2025learning,
  author = {Yinuo Liao and Yuanshen Guan and Ruikang Xu and Jiacheng Li and Shida Sun and Zhiwei Xiong},
  title = {{Learning Gain Map for Inverse Tone Mapping}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=GtHRhpgpzB},
}
Figure