Occupancy Learning with Spatiotemporal Memory

Ziyang Leng, Jiawei Yang, Wenlong Yi, Bolei Zhou

TL;DR

This paper introduces ST-Occ, a novel framework for 3D occupancy prediction in autonomous driving that efficiently learns spatiotemporal features. By employing a scene-level spatiotemporal memory and a memory attention mechanism, ST-Occ effectively captures historical context, handles uncertainty, and accounts for dynamic scene elements, leading to more accurate and consistent occupancy predictions.

What Problem Does This Paper Address?

Autonomous driving systems need to understand the 3D environment at a fine-grained level, and 3D occupancy prediction is a promising representation for this. However, effectively aggregating occupancy information over time from multiple camera frames is challenging. Existing methods struggle with high computational costs and the inherent uncertainty and dynamics of scene elements (like moving cars or changing lighting). Simply storing and processing historical features frame-by-frame becomes computationally prohibitive, especially for the dense nature of 3D occupancy. This leads to inefficiencies and can negatively impact prediction accuracy and robustness due to accumulated noise and misalignments.

Methods

ST-Occ tackles these challenges with a unified temporal modeling paradigm and two core modules:

  • Spatiotemporal Memory Bank: Instead of storing individual historical frames, ST-Occ maintains a single, scene-centered spatiotemporal memory. This memory efficiently stores comprehensive historical information, including not just occupancy features but also temporal attributes like class activation, log variance (for uncertainty), and occupancy flow (for dynamics). This scene-centered approach simplifies alignment and reduces memory overhead.
  • Memory Attention: This module conditions the current frame's occupancy representation on the historical information stored in the spatiotemporal memory. It uses a deformable attention mechanism that incorporates uncertainty and dynamic awareness. The uncertainty is modeled using an MLP that considers class activations, log variance, and feature similarity. Occupancy flow is used to compensate for the movement of dynamic voxels, preventing misalignments. This attention mechanism allows the model to learn to fuse historical and current information adaptively, mitigating noise and improving robustness.

Datasets

The paper evaluates ST-Occ on the Occ3D benchmark, which is derived from the nuScenes dataset. Occ3D provides 3D occupancy annotations for 1,000 driving sequences.

Key Insights and Ideas

  • Scene-Centered Memory is Key: Moving from ego-vehicle-centered to scene-centered coordinates for the spatiotemporal memory significantly improves efficiency and simplifies temporal fusion.
  • Beyond Just Features: Storing temporal attributes like uncertainty (log variance) and dynamics (occupancy flow) in the memory, alongside occupancy features, is crucial for robust spatiotemporal learning.
  • Uncertainty and Dynamics are Intertwined: Explicitly modeling both uncertainty and dynamic scene elements leads to substantial improvements in prediction accuracy and temporal consistency, especially for static and dynamic regions respectively.
  • Efficiency Gains are Significant: The unified temporal modeling approach drastically reduces memory and computation costs compared to recurrent or stacked methods, allowing for the effective use of more temporal frames.

Key Results

  • Improved Accuracy: ST-Occ achieves a 3 mIoU improvement over the state-of-the-art FB-OCC on the Occ3D benchmark. It also shows significant gains when augmenting other baselines like ViewFormer.
  • Reduced Temporal Inconsistency: The proposed mSTCV metric shows that ST-Occ reduces temporal inconsistency by 29% compared to FB-OCC.
  • Efficiency: ST-Occ is significantly more efficient in terms of training memory and inference time compared to recurrent and stacked temporal modeling approaches, especially as the number of temporal frames increases. For instance, it uses 24GB of memory and 24ms per frame with 40 frames, compared to 705ms and 12.89GB for recurrent methods.

Limitations and Future Work

  • Dynamic Modeling Reliance: The current dynamic modeling relies on explicit estimators trained on nuScenes annotations. Future work could explore deriving occupancy flow directly from temporal information within the fusion process, reducing annotation dependency.
  • Extending to Sparse Methods: The authors suggest extending the unified temporal modeling to sparse query-based perception methods as a promising future direction.

Summary updated

BibTeX
@inproceedings{leng2025occupancy,
  author = {Ziyang Leng and Jiawei Yang and Wenlong Yi and Bolei Zhou},
  title = {{Occupancy Learning with Spatiotemporal Memory}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure