TL;DR
Post-production video relighting usually forces creators into a blind guessing game: tweak a text prompt or environment map, wait minutes for a heavy generative model to render, and hope the shadows land in the right spot. FiatLux fixes this by introducing Lightgrams—fast, approximate lighting videos rendered in real-time that give artists instant visual previews and directly guide a generative video model to produce photorealistic results. Even better, the model learns to extract lighting from unannotated real-world videos to train itself, bridging the notorious gap between synthetic CGI and real-world footage.
What Problem Does This Paper Address?
Lighting is the soul of cinematography, but changing it after a shoot is notoriously hard. Existing generative video relighting tools suffer from three major headaches:
- No real-time feedback: Lighting is an iterative, visual craft. Waiting on slow diffusion passes just to see if a spotlight hits an actor's face kills the creative workflow.
- Clunky spatial and editing controls: Text prompts and global environment maps lack local precision, while 2D light trajectories ignore scene depth. Furthermore, models usually lock you into either replacing all the light or adding a light—rarely both, and almost never removing lights.
- Data scarcity: To train a realistic relighting model, you ideally need pairs of identical moving scenes shot under different lighting. In the real world, that’s nearly impossible to capture at scale, while relying purely on synthetic CGI makes real videos look plasticky.
Methods
FiatLux ("let there be light") unifies interactive previewing and generative video synthesis around three core innovations built atop a pretrained video Transformer (MiniMax H3) finetuned via LoRA:
- Lightgrams: For any source video, the system estimates monocular depth and surface normals to build a quick "screen-space proxy" of the scene's geometry. Using standard screen-space ray tracing (SSRT) on a neutral, standardized material, a real-time shader renders how user-configured 3D lights (point, spot, area, or directional) fall across the scene over time. Multiplying this Lightgram over the raw video gives an instant preview; feeding it into the video Transformer guides the final realistic render.
- Interleaved RoPE Alignment: Because a Lightgram is just a pixel-aligned video, relighting becomes an in-context generation problem (processing source video, lightgram, and target video tokens together). Standard Rotary Position Embeddings (RoPE) struggle to keep multiple video streams aligned in time without blending them together. The authors assign corresponding frame tokens across streams the exact same spatial and base temporal coordinates, separated only by tiny, role-specific time offsets ($\delta_r$). This tells the attention mechanism: "these pixels happen at the exact same moment and place, just in different roles."
- Reciprocal Illumination Learning: Rather than only training on relighting, a single model is jointly trained on four tasks: Relighting (replacement), Lightgram Extraction (predicting the lightgram from an RGB video), Addition, and Subtraction. It learns via a three-stage curriculum:
- Stage 1: Learn basic relighting and extraction on synthetic CGI pairs.
- Stage 2: Add synthetic light addition and subtraction tasks.
- Stage 3 (Real-World Adaptation): Take real videos, artificially corrupt them with shader-rendered lights, and train the model to restore the original video—using its own Stage 1 extraction ability to supply the target lightgram for unannotated real footage!
Datasets
The authors construct a hybrid data engine combining synthetic and real-world video clips:
- Synthetic Data: Object-level assets from ABO and Google Scanned Objects (GSO), plus scene-level videos rendered in Unreal Engine, paired with ground-truth depth, normals, and lighting configurations.
- Real-World Data: In-the-wild footage curated from Pexels, Mixkit, and public films, captioned with an off-the-shelf MLLM (Gemini 3.8 Flash) and turned into self-supervised restoration pairs.
Key Insights and Ideas
- A clean division of labor: Lightgrams don't need to be photorealistic—they just need to encode where light falls and how it moves, leaving texture, complex reflections, and material realism to the pretrained video backbone.
- Positional offsets prevent "texture bleeding": In ablations, giving aligned video streams zero temporal offset caused Lightgram patterns to literally bleed into RGB textures (18.13 dB PSNR), whereas adding tiny role-specific offsets cleanly separated them while maintaining temporal lock (18.68 dB PSNR).
- Inverse tasks make forward generation smarter: Teaching the model to extract light and subtract lights forces it to understand illumination physics rather than memorizing synthetic shortcuts—and unlocks free supervision on unlabelled real-world movies.
- Emergent out-of-distribution generalization: Even though the model was never trained on textured lights (like gobo projections), passing a text-patterned area light or window-blind pattern into the Lightgram shader successfully casts crisp, perspective-accurate text and blind shadows onto real scenes!
Key Results
- Synthetic Relighting & Addition: FiatLux substantially beats open-source baselines on synthetic benchmarks, hitting 19.20 dB PSNR / 0.2245 LPIPS on full relighting (vs. 14.84 dB for Relit-LiVE and 15.31 dB for base MiniMax H3) and 21.40 dB PSNR on light addition (vs. 14.44 dB for LiveLight).
- Lighting Accuracy: Using a novel extraction-based evaluation protocol, FiatLux achieves a median RGB angular color error of 5.41° (remarkably close to the 5.23° ground-truth reference, while baselines exceed 7.88°).
- Real-World Quality: On VBench metrics for in-the-wild videos, FiatLux leads in Aesthetic Quality (0.6026), Background Consistency (0.9597), and Motion Smoothness (0.9908). Qualitatively, it matches or outperforms closed-source commercial heavyweights like Seedance 2.0 and 2.5 without accidentally blending the raw lighting pass into the video.
Limitations and Future Work
Because Lightgrams rely on fast screen-space ray tracing (SSRT), they only model direct illumination from visible geometry. They cannot accurately calculate shadows from off-screen/occluded geometry, nor do they explicitly compute multi-bounce interreflections (relying instead on the generative model's learned priors or extra user-placed fill lights to fake bounce light). Extending Lightgrams to capture richer, physically grounded global light transport is a prime direction for future work.
Summary updated