LANe: Lighting-Aware Neural Fields for Compositional Scene Synthesis

Akshay Krishnan, Amit Raj, Xianling Zhang, Alexandra Carlson, Nathan Tseng, Sandhya Sridhar, Nikita Jaipuria, James Hays

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:

  1. 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.
  2. 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).
Figure 1: We present Lighting-Aware Neural Fields (LANe) for compositional scene synthesis. With the disentanglement of a class-specific object model (Column 1) and the learned world model (Column 2), LANe can arbitrarily compose objects into different scenes (Column 3 and 4). Our novel light field modulated object model can be composed into scenes in a lighting-aware manner. The figure above shows the same world model used as background scenes on each row, and object models composed into them in arbitrary poses under different lighting conditions. Note that the composed objects are shaded appropriately based on the local lighting condition at the placed location, which shows LANe’s spatially varying lighting- aware compositional synthesis capabilities.

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

Abstract

Neural fields have recently enjoyed great success in representing and rendering 3D scenes. However, most state-of-the-art implicit representations model static or dynamic scenes as a whole, with minor variations. Existing work on learning disentangled world and object neural fields do not consider the problem of composing objects into different world neural fields in a lighting-aware manner. We present Lighting-Aware Neural Field (LANe) for the compositional synthesis of driving scenes in a physically consistent manner. Specifically, we learn a scene representation that disentangles the static background and transient elements into a world-NeRF and class-specific object-NeRFs to allow compositional synthesis of multiple objects in the scene. Furthermore, we explicitly designed both the world and object models to handle lighting variation, which allows us to compose objects into scenes with spatially varying lighting. This is achieved by constructing a light field of the scene and using it in conjunction with a learned shader to modulate the appearance of the object NeRFs. We demonstrate the performance of our model on a synthetic dataset of diverse lighting conditions rendered with the CARLA simulator, as well as a novel real-world dataset of cars collected at different times of the day. Our approach shows that it outperforms state-of-the-art compositional scene synthesis on the challenging dataset setup, via composing object-NeRFs learned from one scene into an entirely different scene whilst still respecting the lighting variations in the novel scene. For more results, please visit our project website https://lane-composition.github.io/.
BibTeX
@misc{krishnan2023lane,
  author = {Akshay Krishnan and Amit Raj and Xianling Zhang and Alexandra Carlson and Nathan Tseng and Sandhya Sridhar and Nikita Jaipuria and James Hays},
  title = {{LANe: Lighting-Aware Neural Fields for Compositional Scene Synthesis}},
  year = {2023},
  eprint = {2304.03280},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.03280},
}
Figure