Diffusion-Based Generative Models for 3D Occupancy Prediction in Autonomous Driving

Yunshen Wang, Yicheng Liu, Tianyuan Yuan, Yucheng Mao, Yingshi Liang, Xiuyu Yang, Honggang Zhang, Hang Zhao

TL;DR

This paper introduces a novel approach to 3D occupancy prediction for autonomous driving by framing it as a generative task using diffusion models. This method significantly improves prediction accuracy, robustness to noise and occlusions, and realism compared to existing discriminative techniques, ultimately benefiting downstream planning tasks.

What Problem Does This Paper Address?

Autonomous driving systems need to accurately understand their 3D environment, specifically predicting which parts of space are occupied. This is typically done by estimating 3D occupancy grids from camera images. However, current methods, known as discriminative models, struggle with several challenges:

  • Noisy and Incomplete Data: Real-world sensor data can be noisy, and occlusions mean that not all parts of the scene are visible, leading to imperfect ground truth labels and predictions.
  • Complex 3D Structures: The intricate relationships between 3D geometry, semantics, and the inherent multi-modality (multiple possible interpretations) of occupancy prediction make it a difficult problem.
  • Lack of Scene Priors: Discriminative models learn a direct mapping from images to occupancy, failing to incorporate valuable prior knowledge about how 3D scenes are typically structured.

These limitations result in inconsistent and unrealistic predictions, especially in challenging scenarios, and can hinder the performance of subsequent tasks like path planning.

Methods

The core contribution of this paper is reframing 3D occupancy prediction as a generative modeling task using diffusion models. Here's a breakdown of their approach:

  • Diffusion Models: These models work by progressively adding noise to data (forward process) and then learning to reverse this process to generate clean data from noise (reverse process). The authors adapt this for 3D occupancy, considering both continuous (Gaussian noise) and discrete (transition matrices) diffusion processes.
  • Conditional Generation: To predict occupancy from images, the diffusion model's reverse process is conditioned on multi-view camera images. This means the model learns to denoise and generate occupancy grids given the visual input.
  • Representation Choices: The authors explore three ways to represent the 3D occupancy grid for diffusion modeling:
  • Spatial Latent: Encoding the occupancy grid into a compact latent space.
  • Triplane: Representing the 3D occupancy using three 2D planes.
  • Discrete Categorical Variables: Directly modeling the discrete voxel labels. They found that discrete categorical variables yielded the best performance.
  • Visual Encoder: A Bird's-Eye-View (BEV) model (specifically BEVFormer) is used to encode the input multi-view images into high-dimensional features. These features serve as the conditions for the diffusion model.
  • Guidance Techniques: They compare classifier-free guidance (CFG) and classifier guidance (CG), finding CFG to be more effective for this task.

Datasets

  • Occ3D-nuScenes dataset: This dataset is used for training and evaluation. It provides 3D occupancy labels in 0.4m voxel grids across 17 categories, covering a spatial range of -40m to 40m in X and Y, and -1m to 5.4m in Z.

Key Insights and Ideas

  • Generative Models Excel at Ambiguity: By modeling the underlying data distribution, diffusion models can naturally handle the multi-modal nature of occupancy prediction, producing more diverse and realistic outputs than discriminative models that are forced to output a single prediction.
  • Implicit 3D Scene Priors are Powerful: Diffusion models learn to incorporate complex 3D structures and semantics as a "scene prior." This helps them infer missing information in occluded or noisy regions, leading to more coherent and complete predictions.
  • Robustness to Label Noise: The inherent denoising process of diffusion models makes them naturally robust to the noisy and imperfect labels often found in real-world 3D occupancy datasets.
  • Discrete Representation is Key: For occupancy grids, directly modeling discrete categorical variables proved more effective than latent or triplane representations, likely due to preserving the inherent discrete nature of the data.
  • End-to-End Training Benefits: Using representations from earlier layers of the visual encoder as conditions for the diffusion model, and training end-to-end, leads to better performance.

Key Results

  • Improved mIoU: The proposed diffusion-based method (DiffOcc) achieved a 7.05 mIoU improvement over BEVFormer and a 0.97 mIoU gain over PanoOcc on the Occ3D-nuScenes validation set.
  • Superior Performance in Challenging Regions: DiffOcc significantly outperformed discriminative methods in:
  • Camera-invisible regions: Demonstrating better inference capabilities where visual information is absent.
  • Noisy regions: Showing greater robustness to sensor noise and imperfect labels.
  • Low visibility regions: Achieving higher mIoU scores even with low visibility probabilities.
  • Realistic and Consistent Predictions: Qualitative results show more dense and coherent occupancy estimations, even including complete drivable surfaces where ground truth might be sparse.
  • Benefit to Downstream Planning: When integrated into a simple planning module, DiffOcc's predictions led to better performance, especially when evaluated without visible masks, highlighting the value of its comprehensive perception.

Limitations and Future Work

  • Inference Latency: While diffusion models offer advantages, their multi-step sampling process can introduce latency. The authors note that performance saturates around 10-15 steps and that even 1-2 steps can yield good results. Future work could focus on faster sampling techniques.
  • Hallucination Concern: As with any generative model, there's a potential for hallucination. However, the authors argue that their method achieves superior accuracy (as measured by mIoU) and improved planning performance, suggesting it doesn't induce detrimental hallucinations.
  • Further Exploration of Guidance: While CFG was chosen, further research into optimal guidance techniques could be beneficial.
  • Extending to Other Tasks: The generative approach could be applied to other perception tasks beyond occupancy prediction.

Summary updated

BibTeX
@inproceedings{wang2025diffusion,
  author = {Yunshen Wang and Yicheng Liu and Tianyuan Yuan and Yucheng Mao and Yingshi Liang and Xiuyu Yang and Honggang Zhang and Hang Zhao},
  title = {{Diffusion-Based Generative Models for 3D Occupancy Prediction in Autonomous Driving}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2025},
  url = {https://openreview.net/forum?id=KIIfAHGXFI},
}
Figure