FastGaMer: Efficient GainMap Learning for Practical Inverse Tone Mapping

Yuanshen Guan, Ruikang Xu, Chang Chen, Yinuo Liao, Dehua Song, Fenglong Song, Zhiwei XiongCVPR 2026

TL;DR

FastGaMer is an ultra-efficient, resolution-agnostic framework for Inverse Tone Mapping (ITM) that restores High Dynamic Range (HDR) and Wide Color Gamut (WCG) content from Standard Dynamic Range (SDR) inputs. By reconstructing a three-channel color gain map instead of directly regressing full HDR pixel values, it achieves a +1.4 dB PQ-PSNR improvement over prior lightweight methods while processing 4K images in just 6.2 ms.

What Problem Does This Paper Address?

While modern displays increasingly support HDR and WCG, the vast majority of available video and image content is still mastered in legacy SDR. Bridging this gap requires Inverse Tone Mapping (ITM).

However, real-world SDR images aren't generated by a simple global contrast curve. Camera ISPs and local tone-mapping operators (TMOs) apply complex, spatially varying adjustments to contrast, exposure, and color to make details fit within SDR constraints. This creates highly structured degradations and severe color distortions.

Existing learning-based ITM methods fall into two traps:

  1. They use heavy deep networks to directly regress high-bit-depth HDR values, which incurs massive computational overhead and prevents real-time 4K deployment on consumer edge devices like smart TVs.
  2. They rely on single-channel luminance gain maps, which completely fail to recover the lost wide color gamut or correct chroma-dependent distortions.
Figure 1. Benefits of color gain maps and our design motivation. (a) Prior work [24] uses a single-channel GM that only adjusts luminance, failing to restore the WCG gamut lost in local tone-mapping. Color GMs allow per-channel gain, enabling correct gamut extension and color recovery. (b) The proposed FastGaMer is derived from an analysis of local TMO degradation, which consists of both global radiometric compression and spatially varying local adaptation. We address these components with minimal cost: dynamic bilateral grids for local inversion, learnable 3D LUTs with a neural modulator for global mapping, and a lightweight MLP for estimating absolute illumination. This structured color-GM decomposition and resolution-agnostic pipeline leads to an effective and efficient solution.

Methods

FastGaMer introduces a structured framework that explicitly mirrors the forward local tone-mapping degradation process by decoupling global and local inversion. Crucially, all heavy deep-learning computation is confined to a low-resolution thumbnail ($256 \times 256$), making the pipeline exceptionally fast and resolution-agnostic.

The network takes the thumbnail and predicts a global dynamic range scalar ($\hat{Q}_{max}$) alongside three image-adaptive operators in parallel:

  • Dynamic Bilateral Grids: Conditioned on global features, these grids undo spatially varying local adaptations (like non-uniform tone curves) without oversmoothing details.
  • Learnable 3D LUTs: These perform fast SDR-to-GM translation, mapping global intensity and color from the SDR domain to the log-Gain Map domain.
  • Lightweight Neural Modulator: This applies a channel-wise affine transformation (scale and shift) to ensure global structural coherence across large-scale regions like skies.

Once generated, these lightweight mathematical operators are applied sequentially to the original high-resolution SDR image using network-free operations (grid slicing, tri-linear sampling, and basic arithmetic).

Datasets

Because no public datasets provided three-channel color Gain Maps under realistic local TMO degradations, the authors constructed two new benchmarks:

  • Synthetic Dataset: Consists of 8,150 4K SDR–GM pairs derived from the RAISE RAW dataset, using adaptive local tone mapping in Adobe Camera Raw to simulate realistic camera pipelines.
  • Real-Captured Test Set: Consists of 82 real-world pairs captured across diverse indoor/outdoor and day/night conditions using an iPhone 12 Pro Max and Adobe Indigo to export perfectly aligned multi-exposure RAW layers.

The framework was also evaluated on the public GMNet benchmark to demonstrate generalization.

Key Insights and Ideas

  • Luminance is Not Enough: Moving from a single-channel gain map to a three-channel color gain map is essential for WCG content. Local tone mapping distorts color ratios; a color gain map allows per-channel amplification to accurately restore saturated primaries.
  • Divide and Conquer the Degradation: Instead of forcing a monolithic network to learn a complex mapping function, separating the architecture into local spatial adjustments (bilateral grids) and global radiometric mapping (3D LUTs) simplifies the optimization space.
  • The Power of Network-Free High-Res Operations: By shifting the heavy neural processing entirely to a thumbnail and using it to predict lightweight mathematical operators, the framework completely bypasses the memory and computational bottlenecks of high-resolution deep learning.

Key Results

  • Speed and Efficiency: FastGaMer processes 4K images in just 6.2 ms on an NVIDIA V100 GPU, reducing runtime by 70% compared to the leading LUT-based method (ITMLUT).
  • State-of-the-Art Accuracy: On the synthetic test set, it outperforms prior lightweight methods by +1.4 dB PQ-PSNR. It even beats heavy network-based models like GMNet by +0.27 dB PQ-PSNR while running $73\times$ faster.
Figure 2. Speed–performance trade-off. FastGaMer not only surpasses the state-of-the-art network-based method [24] with sub- stantial 4K acceleration, but also delivers a +1.4 dB PQ-PSNR improvement and a 70% runtime reduction over the leading LUT- based approach [11].

Limitations and Future Work

The authors note that while the Gain Map information is generally insensitive to resolution, extreme downsampling of the input SDR image to 1K for processing introduces moderate degradation in the final HDR output. Finding the absolute optimal resolution trade-off for ultra-low-power edge devices remains an open direction for future work.

Summary updated

BibTeX
@inproceedings{guan2026fastgamer,
  author = {Yuanshen Guan and Ruikang Xu and Chang Chen and Yinuo Liao and Dehua Song and Fenglong Song and Zhiwei Xiong},
  title = {{FastGaMer: Efficient GainMap Learning for Practical Inverse Tone Mapping}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=hysfX95Iy0},
}
Figure