TL;DR
LANe (Lighting-Aware Neural Fields) introduces a method for physically consistent 3D object insertion into novel outdoor driving scenes by disentangling geometry, albedo, and lighting. By augmenting a world-NeRF with a neural light field and a learned attention-based shader, LANe allows vehicles to be seamlessly composed into new environments while accurately adapting to local, spatially varying lighting conditions like shadows and sunlight.
What Problem Does This Paper Address?
Training and validating autonomous driving perception systems requires a massive variety of realistic training data, especially for rare edge cases. Traditional photo-realistic rendering engines are expensive and suffer from a "synthetic-to-real" domain gap, while standard Neural Radiance Fields (NeRFs) model entire scenes statically, preventing the insertion or manipulation of individual objects.
While recent works have split NeRFs into separate "world" (background) and "object" models to allow for composition, they share a major flaw: they ignore lighting variations. If you take a car model trained in a bright, sunny environment and drop it into a tree-shaded street, it retains its original sunny appearance, looking completely out of place. Explicit 3D mesh methods attempt to solve this but struggle with photorealism and complex materials. LANe tackles the challenge of lighting-aware compositional scene synthesis in complex, outdoor environments with spatially varying illumination.
Methods
LANe achieves lighting-aware composition by decomposing the scene into two decoupled representations:
- World-NeRF ($N_{world}$): Models the static background geometry and average color. It is paired with a Neural Light Field ($N_{light}$) that captures how light varies across the scene as a function of the sun's position (azimuth and elevation). A learned shader function ($N_{ws}$) applies a multiplicative multiplier to the base radiance to produce the final lighting-conditioned background.
- Object-NeRF ($N_{obj}$): Represents the scene-agnostic density and color (albedo) of a specific object class (e.g., cars), sharing weights across different instances using shape and color codes.
To handle shading when an object is inserted into a scene, LANe uses two distinct shader architectures:
- For Known Scenes: The shader uses global coordinates and car orientation to look up pre-learned, position-dependent lighting.
- For Unseen Scenes: To generalize to entirely new environments, LANe uses a generalizable shader. For any point on the object's surface, it casts secondary rays into the target scene's Neural Light Field to query incoming light. Because surface normals derived from NeRF density fields are notoriously noisy, LANe uses an attention mechanism where local car coordinates act as queries to aggregate these incident light values, implicitly learning the irradiance integral without needing explicit material properties (BRDFs).
Datasets
The authors evaluated LANe on both synthetic and real-world data:
- Synthetic CARLA Dataset: Generated using the CARLA simulator, consisting of 8 urban scenes under varying lighting conditions, featuring 5 car instances placed across 40 different locations per scene.
- Real-World Dataset: A novel dataset introduced by the authors containing multi-view videos of 4 different cars captured at 10 different times of day using a handheld mobile camera. Camera poses were estimated via COLMAP, and 2D instance masks were generated using Mask R-CNN.
Key Insights and Ideas
- Multiplicative Shading over Explicit BRDFs: Instead of trying to explicitly disentangle complex and error-prone material properties (like roughness or specular reflectance) and surface normals, LANe models lighting as a simple multiplicative factor on top of a learned base radiance. This proves highly effective for outdoor scenes.
- Attention Layers Fix Noisy Normals: Traditional rendering equations rely heavily on precise surface normals. Since implicit neural fields often yield noisy geometry, using an attention mechanism to weight incoming light based on local coordinates bypasses the need for explicit, clean normals.
- Less is More for Generalization: Counter-intuitively, the authors found that sampling fewer secondary rays (e.g., 24 vs. 144) improved composition quality in unseen environments. They hypothesize that a lower ray count prevents the attention layers from overfitting to an averaged representation of the training environments, making them more sensitive to local lighting variations.
Key Results
- Known Environments: LANe significantly outperforms vanilla, lighting-agnostic NeRF baselines. On the synthetic CARLA dataset (Scene 1), LANe improved the Peak Signal-to-Noise Ratio (PSNR) from 17.69 (vanilla NeRF) to 27.75.
- Unseen Environments: When composing an object into an entirely new scene, LANe (LF) achieved a PSNR of 25.05 and an SSIM of 0.875, approaching the quality of models that were trained directly on those target scenes.
- Qualitative Success: As shown in the paper's evaluations, when a car model moves through a scene, it realistically brightens as it enters sunlit areas and darkens when passing through shadows cast by buildings, correctly preserving specular highlights.
Limitations and Future Work
- No Object-to-Scene Shadows: While the scene successfully changes the appearance of the inserted object, the object does not cast new shadows back onto the environment or onto other objects.
- Shadow Residuals: LANe struggles to cleanly remove the original "hard cast" shadows of cars present in the background training data, leaving minor artifacts in the world model.
- Strict Data Requirements: The model assumes that the same object instance is observed under multiple different lighting conditions during training, which is difficult to achieve with real-world moving traffic. The authors suggest that future work could explore training multi-instance shaders jointly on synthetic and real data to alleviate this constraint.
Summary updated