TL;DR
ExpandDiff is a conditional diffusion pipeline that reconstructs high dynamic range (HDR) images from a single low dynamic range (LDR) exposure. By combining a novel "Dynamic Clipping Synthesis" training strategy with perceptually uniform encoding, it jointly restores lost details in both shadows and highlights, outperforming existing methods by up to 7.34 dB in reconstruction accuracy.
What Problem Does This Paper Address?
Standard camera sensors typically capture 8 to 12 stops of dynamic range, while real-world scenes often exceed 20 stops. This discrepancy forces a trade-off: an LDR image will inevitably "clip" information, resulting in flat white highlights (overexposure) or crushed black shadows (underexposure).
Single-image HDR reconstruction aims to "hallucinate" this missing information. However, this is a classic ill-posed problem because the lost detail cannot be uniquely determined from the LDR input. Furthermore, the amount of clipping varies significantly depending on the camera sensor and the chosen exposure. Most existing methods either focus solely on highlights or require complex multi-step processes to handle both ends of the dynamic range.
Methods
The authors propose ExpandDiff, a pixel-space diffusion model designed for joint shadow and highlight reconstruction. The pipeline (illustrated in Figure 1) features three key innovations:
- Dynamic Clipping Synthesis (DCS): During training, the authors don't just use fixed clipping levels. Instead, they randomly sample shadow and highlight clipping percentiles from the ground-truth HDR targets to create LDR inputs. This forces the model to learn how to reconstruct images across a wide variety of information loss conditions.
- Spatially Conditioned Diffusion Backbone: Unlike models that operate in a compressed latent space, ExpandDiff works directly in pixel space. It uses an EDSR-based encoder and SPADE (Spatially-Adaptive Normalization) layers to inject LDR structural features into the diffusion U-Net at multiple resolutions. This ensures the reconstructed HDR image maintains the structural integrity of the original LDR capture.
- PU21 Perceptual Encoding: Instead of predicting linear radiance (where errors in bright areas numerically overwhelm errors in dark areas), the model predicts in the PU21 space. PU21 is a perceptually uniform encoding where equal numerical differences correspond to equally visible changes to the human eye. This makes the model significantly more sensitive to shadow details.
Datasets
- Training: The model was trained on a diverse collection of HDR images from Poly Haven, the Laval photometric sample, HDR-Real, and the Fairchild survey.
- Evaluation: The primary benchmark is the SI-HDR benchmark (181 scenes). The authors also introduced a more challenging evaluation condition, $C_p$, which features simultaneous shadow and highlight clipping (averaging 15.4% highlight-clipped and 5.87% shadow-clipped pixels) to test the robustness of the DCS strategy.
Key Insights and Ideas
- One Trajectory, Two Directions: While previous diffusion-based HDR methods often used separate denoisers for highlights and shadows, ExpandDiff handles both simultaneously in a single 24-step sampling trajectory.
- The Importance of the Output Head: The authors found that combining PU21 encoding with a bounded
tanhoutput head was crucial. Because PU21 allocates more of the bounded range to dark intensities, thetanhhead becomes more responsive to shadow errors, preventing the model from ignoring dark regions in favor of bright ones. - Generalization through DCS: By training on a distribution of clipping levels, the model becomes robust to different exposures. The "ExpandDiff-P" variant (trained with DCS) showed significant performance gains on images with two-sided clipping compared to models trained on standard benchmarks.
Key Results
ExpandDiff sets a new state-of-the-art on the SI-HDR benchmark:
- Benchmark Performance: The benchmark-oriented variant (ExpandDiff-B) improved HDR reconstruction accuracy by 3.43 dB (PU21-PSNR) over the strongest competing method (ExpandNet).
- Robustness to Heavy Clipping: Under the two-sided clipping condition ($C_p$), the DCS-trained variant (ExpandDiff-P) exceeded the strongest competitor by a massive 7.34 dB.
- Qualitative Superiority: As seen in Figures 2 and 3, ExpandDiff successfully recovers textures in light fixtures and details in dark street corners where competing methods like DITM or Refusion often produce flat or noisy results.
Limitations and Future Work
- Absolute Luminance: Like most single-image methods, ExpandDiff cannot determine the absolute physical brightness of a scene (e.g., it doesn't know if a lamp is 100 or 1000 nits) and relies on display-referred scaling.
- Large Clipped Regions: The model's ability to reconstruct detail weakens when very large, contiguous regions of the image are clipped, as there is less surrounding context to guide the diffusion process.
- Computational Cost: While 24 steps is efficient for a diffusion model (taking ~3.19s for a 512x512 image on an A100), it is still slower than simple feed-forward CNNs. Future work could explore one-step distillation techniques to speed up inference.
Summary updated