Sparse4D v2: Recurrent Temporal Fusion with Sparse Model

Xuewu Lin, Tianwei Lin, Zixiang Pei, Lichao Huang, Zhizhong SuarXiv 2023

Abstract

Sparse algorithms offer great flexibility for multi-view temporal perception tasks. In this paper, we present an enhanced version of Sparse4D, in which we improve the temporal fusion module by implementing a recursive form of multi-frame feature sampling. By effectively decoupling image features and structured anchor features, Sparse4D enables a highly efficient transformation of temporal features, thereby facilitating temporal fusion solely through the frame-by-frame transmission of sparse features. The recurrent temporal fusion approach provides two main benefits. Firstly, it reduces the computational complexity of temporal fusion from $O(T)$ to $O(1)$, resulting in significant improvements in inference speed and memory usage. Secondly, it enables the fusion of long-term information, leading to more pronounced performance improvements due to temporal fusion. Our proposed approach, Sparse4Dv2, further enhances the performance of the sparse perception algorithm and achieves state-of-the-art results on the nuScenes 3D detection benchmark.

Introduction

In the domain of autonomous driving, accurate 3D object detection is critical and requires the integration of spatial information from multiple cameras and temporal information across consecutive frames. While Bird’s-Eye-View (BEV) methods have gained popularity, they often involve complex, dense feature transformations that do not necessarily scale efficiently. Sparse algorithms, such as the original Sparse4D, provide a flexible alternative by focusing on specific 3D anchors.

However, a major limitation of Sparse4D was its temporal fusion mechanism, which required simultaneous sampling from multiple historical frames. This led to a computational complexity of $O(T)$, where $T$ is the number of frames, causing significant memory and latency overhead as the temporal window expanded. Sparse4D v2 aims to resolve this by making temporal fusion recurrent, passing information from one frame to the next in a constant-time loop.

Recurrent Temporal Fusion

Sparse4D v2 introduces a recurrent temporal fusion strategy to overcome the $O(T)$ bottleneck. Instead of re-processing a batch of historical frames at each step, the model propagates sparse "instance features" frame-by-frame. This approach decouples semantic features (representing object identity) from structured anchors (representing spatial coordinates).

Comparison of temporal fusion strategies: the multi-frame sampling of Sparse4D v1 (left) vs. the recurrent temporal fusion of Sparse4D v2 (right).

By passing information forward in a constant-time loop, Sparse4D v2 achieves $O(1)$ complexity. This efficiency allows the model to incorporate long-term historical context, which significantly improves detection performance, particularly for moving objects, without the linear cost associated with traditional multi-frame sampling.

Architecture and Key Innovations

The Sparse4D v2 architecture incorporates several technical improvements to enhance both performance and deployment feasibility:

  1. Instance Temporal Propagation: To maintain spatial consistency during ego-motion, the model projects 3D anchors from the previous frame's coordinate system into the current one. The associated semantic features are then updated with new spatial embeddings to reflect the vehicle's movement.
  2. Efficient Deformable Aggregation (EDA): Standard deformable aggregation is memory-intensive. Sparse4D v2 utilizes a custom CUDA operator that merges sampling and weighting into a single step, reducing training memory usage by 51% and increasing inference speed by 42%.
  3. Camera Parameter Encoding: The model explicitly encodes camera intrinsic and extrinsic matrices. This allows the network to better understand the spatial relationships between different camera views and improves its ability to generalize across different vehicle platforms.
The detailed architecture of Sparse4D v2, illustrating the flow from image input to recurrent instance feature propagation.

Results and Performance

The model was rigorously evaluated on the nuScenes 3D detection benchmark, which consists of 1,000 driving scenes with 360-degree camera coverage. Sparse4D v2 achieved a state-of-the-art nuScenes Detection Score (NDS) of 0.638 on the test set, outperforming competitors like SOLOFusion and StreamPETR.

In terms of efficiency, the recurrent architecture provides dramatic gains. On an NVIDIA RTX 3090, the ResNet50 version of Sparse4D v2 runs at 20.3 FPS with a memory footprint of only 432M. In contrast, the original Sparse4D's performance degraded to 6.1 FPS and 1149M of memory when configured to use 9 frames of history. This demonstrates that the recurrent approach is not only more accurate but also significantly more viable for real-time deployment on vehicle hardware.

Conclusion

Sparse4D v2 demonstrates that recurrent temporal fusion is a highly effective strategy for sparse 3D perception. By reducing temporal complexity to $O(1)$, the model enables the use of long-term history while maintaining high inference speeds and low memory usage. These improvements, combined with innovations like EDA and camera parameter encoding, establish Sparse4D v2 as a robust and efficient solution for real-world autonomous driving applications.

Summary updated

BibTeX
@misc{lin2023sparse,
  author = {Xuewu Lin and Tianwei Lin and Zixiang Pei and Lichao Huang and Zhizhong Su},
  title = {{Sparse4D v2: Recurrent Temporal Fusion with Sparse Model}},
  year = {2023},
  eprint = {2305.14018},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.14018},
}
Figure