TL;DR
DiffHDR is a novel framework that converts standard 8-bit Low Dynamic Range (LDR) videos into high-quality High Dynamic Range (HDR) videos by framing the conversion as a generative radiance inpainting task. By leveraging a pretrained video diffusion model and a clever Log-Gamma color mapping, it hallucinates realistic details in clipped highlights and shadows while maintaining strict temporal consistency.
What Problem Does This Paper Address?
The vast majority of digital video is captured and stored in 8-bit LDR formats. Consequently, extreme highlights are often clipped to pure white (saturation) and deep shadows are crushed to pure black (quantization), destroying the original scene radiance. This lack of detail prevents accurate playback on modern HDR displays and severely limits post-production workflows like color grading and re-exposure.
Converting LDR to HDR is fundamentally a "one-to-many" problem: there are infinite ways a clipped sky or a dark shadow could actually look. Existing deterministic deep learning methods try to map pixels directly, which often results in blurry, unrealistic details in clipped zones. On the other hand, while generative models (like GANs or diffusion models) can hallucinate realistic details, applying them to video typically suffers from severe temporal flickering or requires massive datasets to train from scratch—a major bottleneck given the extreme scarcity of paired HDR video data.
Methods
To solve these challenges, the authors introduce DiffHDR, which builds upon a pretrained video-to-video latent diffusion model (Wan-2.1-VACE-14B). Its core components include:
- Log-Gamma Color Mapping: Instead of fine-tuning the video Variational Autoencoder (VAE) on rare HDR data—which can distort its learned LDR priors—the authors design a Log-Gamma curve. This curve compresses high-dynamic-range radiance into a bounded range $[0,1]$ that aligns perfectly with the data distribution of a standard LDR-trained VAE, allowing error-free encoding and decoding without any VAE fine-tuning.
- Exposure-Aware Masking: The system automatically detects over- and underexposed regions by thresholding luminance values. It applies an Exponential Moving Average (EMA) across frames to smooth these masks, ensuring temporal stability and preventing frame-to-frame flickering.
- Context-Focused Cross-Attention (CFA): To allow user control over the hallucinated regions, the authors implement a structured prompting format:
[overexposed: <description>]; [underexposed: <description>]. At inference time, a custom cross-attention routing mechanism uses the spatial exposure masks to apply these text prompts (or reference images) exclusively to the clipped regions. - LoRA Fine-Tuning: To preserve the massive generative priors already inside the video diffusion model, the backbone parameters are frozen, and only the Diffusion Transformer (DiT) blocks are adapted using rank-32 LoRA layers.
[Input LDR Video] ➔ [Log-Gamma Mapping] ➔ [Frozen LDR VAE Encoder]
│
▼
[Masks & Prompts] ➔ [Context-Focused Attention] ➔ [Denoising DiT (LoRA)]
│
▼
[Output HDR Video] ⮪ [Inverse Log-Gamma] ⮪ [Frozen LDR VAE Decoder]
Datasets
To overcome the lack of paired HDR video data, the authors developed a synthetic data curation pipeline:
- Polyhaven Synthetic Dataset: They utilized ~800 high-quality 16K panoramic HDRI maps from Polyhaven. By placing a virtual camera in Blender and simulating dynamic paths (zooms, rotations), they rendered ~5,400 high-fidelity HDR video sequences (81 frames each). LDR counterparts were synthesized by simulating exposure shifts, quantization, clipping, and temporally correlated camera noise.
- Evaluation Benchmarks: The model was tested on the synthetic SI-HDR dataset, the Cinematic Video dataset, a held-out set of Polyhaven videos, and real-world "in-the-wild" videos sourced from Pexels and Veo2.
Key Insights and Ideas
- Don't Fix the VAE, Fix the Input: The authors discovered that trying to fine-tune a video VAE directly on HDR data actually degrades high-frequency details due to over-smoothing. Keeping the LDR VAE frozen and mapping the HDR data into its "comfort zone" via Log-Gamma compression yields significantly better reconstruction.
- Precision Bottlenecks: The paper notes that while the diffusion model (DiT) can be fine-tuned efficiently using BF16 precision, the VAE decoding must run in FP32 precision. Otherwise, the limited numerical precision of BF16 introduces ugly banding artifacts in smooth, dark gradients.
- Region-Aware Disentanglement: Standard global text prompts confuse diffusion models when dealing with opposite exposure extremes. Separating the prompts into explicit overexposed and underexposed blocks via localized cross-attention routing allows for highly controllable, content-aware synthesis.
Key Results
DiffHDR achieves state-of-the-art performance across both image and video benchmarks:
- Quantitative Performance: On the SI-HDR dataset, DiffHDR achieved a PU21-PIQE score of 19.37 and an FID of 18.68, substantially outperforming the leading diffusion baseline, LEDiff (22.71 and 25.98, respectively). On video benchmarks, it consistently led in temporal and quality metrics like FOVVDP, DOVER, and MUSIQ.
- Qualitative Excellence: Visually, DiffHDR successfully recovers intricate structures—such as fine hair strands against a blinding sky or the distinct circular shape of the sun—where competing methods produce flat highlights or severe artifacts.
- Re-Exposure Latitude: The generated videos maintain strict temporal coherence and provide massive flexibility for downstream post-production, allowing seamless re-exposure adjustments across multiple stops (e.g., from EV-4 to EV+4).
Limitations and Future Work
- Metric Penalization: The authors note that on reference-based metrics like HDR-VDP3, DiffHDR sometimes scores slightly lower than deterministic models. This is an inherent trait of generative inpainting: the model creates highly realistic, plausible details (like unique cloud textures) that do not match the ground-truth pixels identically, causing reference-based metrics to penalize them despite superior visual quality.
- Downstream Integration: While the paper demonstrates excellent text- and image-guided editing capabilities, integrating this generative pipeline into real-time streaming or automated industry grading suites remains an open area for development.
Summary updated