Differentiable Raycasting for Self-Supervised Occupancy Forecasting

Tarasha Khurana, Peiyun Hu, Achal Dave, Jason Ziglar, David Held, Deva Ramanan

Introduction

To navigate safely, autonomous vehicles (AVs) must accurately forecast the evolution of their surrounding environment. Traditionally, this capability is built upon "Perception and Prediction" (P&P) pipelines that rely heavily on human-annotated data, such as 3D bounding boxes and object tracks. However, the cost and scalability of manual labeling remain significant bottlenecks for the deployment of AV systems.

This paper introduces a novel approach to environment forecasting through emergent occupancy, a self-supervised representation that learns to predict 3D scene evolution without human labels. By utilizing differentiable raycasting to bridge the gap between hidden 3D occupancy and observable LiDAR data, the model learns to decouple the motion of the world from the motion of the ego-vehicle, resulting in safer and more robust motion planning.

The Challenge of Entanglement

Recent attempts to bypass human labels have focused on predicting "ego-centric freespace"—identifying which areas of a scene will be unoccupied in the future. While promising, freespace is inherently view-dependent. As the ego-vehicle moves, the observed freespace changes even if the external world remains static. This "entangles" the vehicle's own trajectory with the movement of external objects (e.g., pedestrians or other vehicles), creating a noisy and confusing signal for motion planners.

The authors argue that a view-independent occupancy map is a superior representation. Unlike freespace, occupancy describes the state of the world itself. However, training such a model is difficult because ground-truth 3D occupancy is never directly observed; sensors are always limited by occlusions and perspective.

Methodology: Emergent Occupancy via Differentiable Raycasting

The core innovation of this work is the use of differentiable raycasting as a bridge between a predicted 4D occupancy grid and raw LiDAR observations. The method follows a four-step process:

  1. Occupancy Forecasting: An encoder-decoder network processes historical LiDAR sweeps to predict a 4D (spatial + temporal) volumetric occupancy grid in a fixed world-coordinate frame.
  2. Differentiable Raycasting: To supervise this hidden grid, the model "renders" the predicted occupancy from the perspective of the vehicle’s future positions (retrieved from archival logs). This process simulates a predicted LiDAR sweep.
  3. Self-Supervised Learning: Because the raycasting operation is differentiable, the model can compare the simulated sweep to the actual future LiDAR sweep recorded in the dataset. The resulting error is backpropagated to update the occupancy grid predictions.
  4. Motion Planning: The forecasted occupancy grid serves as a dynamic costmap. A motion planner evaluates thousands of potential trajectories, selecting the path with the lowest cost—effectively the one least likely to intersect with occupied voxels.

Experimental Setup and Datasets

The researchers evaluated the proposed method on two prominent autonomous driving benchmarks:

  • nuScenes: A standard dataset comprising 1,000 logs, used to benchmark the model against state-of-the-art supervised and self-supervised planners.
  • ONCE (One Million Scenes): A large-scale dataset featuring 150 hours of driving. The authors utilized the extensive unlabeled portion (up to 94,000 samples) to test the scaling properties of their self-supervised approach.

Key Insights

  • Decoupling Ego-Motion: By providing the future ego-pose as an input to the raycaster rather than requiring the network to predict it, the model is forced to learn how the environment moves independently of the car's own path.
  • Emergent Representations: Although the model receives no explicit information about object classes, 3D structures and distinct object shapes "emerge" within the occupancy grid. These shapes are the most efficient way for the model to explain the sequence of LiDAR returns over time.
  • Scalability: Unlike supervised methods, which often plateau once labeled data is exhausted, this method scales effectively with raw data. On the ONCE dataset, increasing training data from 8,000 to 94,000 samples led to significantly sharper and more accurate object predictions.

Results

The emergent occupancy method demonstrated substantial improvements over existing baselines:

  • Forecasting Accuracy: The model improved forecasting metrics, such as the F1 score, by up to 15 points compared to self-supervised baselines that do not utilize differentiable raycasting.
  • Safety Metrics: In motion planning simulations on nuScenes, the representation reduced collisions by up to 17% compared to freespace-based planners.
  • Competitive Performance: Remarkably, at a 3-second planning horizon, this self-supervised approach achieved collision rates comparable to high-end supervised models (such as NMP and P3) that require expensive human labels.

Limitations and Future Work

While the results are promising, several challenges remain. The model currently lacks semantic understanding, meaning it cannot distinguish between different types of obstacles (e.g., a car versus a bush) or interpret signals like traffic lights. Additionally, the current Bird's-Eye View (BEV) approach struggles with complex 3D geometries like overpasses, which may be incorrectly flagged as obstacles.

Future research will focus on incorporating "scene flow" constraints to reduce temporal blurring in long-term forecasts and moving from open-loop evaluation to closed-loop testing in high-fidelity simulators to better understand how the model interacts with a dynamic environment.

Summary updated

BibTeX
@inproceedings{khurana2022differentiable,
  author = {Tarasha Khurana and Peiyun Hu and Achal Dave and Jason Ziglar and David Held and Deva Ramanan},
  title = {{Differentiable Raycasting for Self-Supervised Occupancy Forecasting}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  doi = {10.1007/978-3-031-19839-7\_21},
}
Figure