LuxDiT: Lighting Estimation with Video Diffusion Transformer

Ruofan Liang, Kai He, Zan Gojcic, Igor Gilitschenski, Sanja Fidler, Nandita Vijaykumar, Zian Wang

Abstract

Estimating high-dynamic-range (HDR) lighting from a single low-dynamic-range (LDR) image or video is a fundamental challenge in computer vision, essential for realistic object insertion in augmented reality. LuxDiT introduces a generative lighting estimation framework based on a video diffusion transformer (DiT). By leveraging a two-stage training strategy—combining large-scale synthetic physics-based learning with real-world semantic adaptation via Low-Rank Adaptation (LoRA)—LuxDiT achieves state-of-the-art performance in light direction accuracy, intensity estimation, and temporal consistency.

Introduction

In computer vision and graphics, lighting estimation refers to the process of recovering the full 360° light distribution of a scene from a limited field-of-view LDR observation. This "environment map" is critical for rendering virtual objects with accurate shadows, highlights, and reflections. However, the task is inherently ill-posed due to three primary factors:

  1. Data Scarcity: Capturing ground-truth HDR environment maps is labor-intensive, leading to a lack of diverse, high-quality training data.
  2. Global Reasoning Requirements: Unlike local tasks like depth estimation, lighting is a global phenomenon. Visual cues in one part of a frame (e.g., a specular highlight) may be caused by a light source located entirely outside the camera's field of view.
  3. High Dynamic Range: Standard cameras clip the intensity of bright light sources like the sun. A successful model must accurately hallucinate these extreme values to produce realistic lighting effects.

LuxDiT addresses these challenges by repurposing a video diffusion transformer architecture to reason about global scene context and temporal dynamics.

Methodology

LuxDiT is built upon CogVideoX, a state-of-the-art video diffusion transformer. The authors introduce several architectural and procedural innovations to adapt this generative foundation for the specific constraints of lighting estimation.

Dual-Tonemapping Representation

Standard Variational Autoencoders (VAEs) used in diffusion models are typically optimized for LDR image data and struggle with the massive numerical range of HDR values. To circumvent this, LuxDiT represents HDR lighting as two complementary LDR maps: a standard Reinhard-tonemapped version ($E_{ldr}$) and a log-intensity version ($E_{log}$). These maps are processed by the diffusion model and subsequently fused back into a single HDR environment map using a lightweight MLP.

Token-Based Conditioning and Directional Embeddings

To facilitate global reasoning, LuxDiT treats the input image or video as a sequence of tokens. These tokens are processed alongside noise tokens through self-attention layers, allowing the model to correlate visual cues across the entire scene. Furthermore, the model incorporates Directional Embeddings—per-pixel unit vectors in the camera coordinate system—to help the transformer understand the 3D geometry of the 2D panoramic output.

Two-Stage Training Strategy

The model undergoes a bifurcated training process to balance physical accuracy with semantic realism:

  • Stage I (Physics): The model is trained on a massive synthetic dataset (~260,000 video clips) to learn the fundamental relationship between light sources, shadows, and reflections.
  • Stage II (Semantics): To ensure the predicted backgrounds are contextually appropriate (e.g., matching a city street with an urban sky), the model is fine-tuned on a curated set of real-world HDR panoramas using LoRA (Low-Rank Adaptation). This allows the model to retain its physical priors while aligning with real-world semantic contexts.

Experimental Results

LuxDiT was evaluated against several benchmarks, including Laval Indoor, Laval Outdoor, and Poly Haven. The results demonstrate a significant advancement over previous state-of-the-art (SOTA) methods:

  • Directional Accuracy: LuxDiT achieved a 45% reduction in peak angular error (the error in sun/primary light position) on the Laval Outdoor dataset compared to previous leaders like DiffusionLight.
  • Robustness: On the Poly Haven benchmark, the model outperformed existing techniques across all primary metrics, including Diffuse, Matte, and Mirror RMSE.
  • Temporal Stability: By training on video sequences, LuxDiT produces lighting that remains consistent over time. On the WEB360 video benchmark, it exhibited significantly lower temporal variance than frame-by-frame image estimation methods, resulting in smoother virtual object insertions.
  • User Preference: In a subjective user study, participants preferred LuxDiT’s results for virtual object insertion over 54% of the time when compared to specialized baselines like DiPIR, and over 60% of the time compared to general lighting models.

Conclusion and Future Work

LuxDiT demonstrates that the attention-based architecture of Transformers is uniquely suited for the global reasoning required in lighting estimation. By combining synthetic physical training with semantic LoRA adaptation, the model provides a robust solution for both static images and dynamic video.

Future research directions include exploring model distillation to improve inference speeds for real-time mobile applications and moving toward joint modeling frameworks that simultaneously estimate scene geometry, materials, and lighting for a more holistic understanding of 3D environments.

Summary updated

BibTeX
@inproceedings{liang2025luxdit,
  author = {Ruofan Liang and Kai He and Zan Gojcic and Igor Gilitschenski and Sanja Fidler and Nandita Vijaykumar and Zian Wang},
  title = {{LuxDiT: Lighting Estimation with Video Diffusion Transformer}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=nw6Kx91J48},
}
Figure