Abstract
Vision Transformers (ViTs) have become the state-of-the-art backbone for multi-view 3D object detection due to their high capacity. However, their computational intensity remains a significant hurdle for real-time autonomous driving applications. We introduce ToC3D (TokenCompression3D), a novel framework that accelerates ViT backbones by up to 30%. ToC3D utilizes historical object queries as "3D-aware" priors to identify and prioritize salient foreground tokens while compressing redundant background information. Evaluations on the nuScenes dataset demonstrate that ToC3D maintains high detection accuracy while significantly reducing latency compared to standard 2D compression methods.
The Efficiency Bottleneck in 3D Detection
Multi-view 3D object detection is critical for autonomous vehicles to perceive their surroundings. While sparse detectors have optimized the decoding stage, the image backbone remains a bottleneck. Standard ViT backbones process every image patch—including the sky and road surface—with equal computational weight.
Existing 2D token compression techniques often fail in 3D contexts because they lack depth and motion awareness. This leads to the accidental pruning of small, distant, or fast-moving objects, which are vital for safe navigation. To address this, a "3D-aware" approach to token selection is required.
ToC3D: 3D-Aware Token Compression
The proposed ToC3D method introduces a feedback loop where the decoder's historical knowledge guides the backbone's current feature extraction. This is achieved through two primary components:
1. Motion Query-guided Token Selection (MQTS)
Instead of relying solely on 2D image features, MQTS leverages "history object queries" from previous frames. These queries are temporally aligned to the current frame using ego-motion data. An attention mechanism then scores image tokens based on their correlation with these 3D-aware priors, ensuring that regions likely to contain objects are preserved.
2. Dynamic Router and the "Bridge Token"
Once scored, tokens are routed through two paths. Salient tokens (foreground) proceed through the Regular Path (full attention blocks). Redundant tokens (background) are compressed into a single "Bridge Token." This bridge token allows the model to maintain global spatial context without the cost of processing every background patch. The original redundant tokens are passed through a "Free Path" (identity layer), saving substantial computation.
Experimental Results
ToC3D was integrated into the StreamPETR baseline and evaluated on the nuScenes dataset. The results highlight a superior trade-off between accuracy (NDS) and latency.
Key findings include:
- Significant Speedup: The ViT backbone achieved a speedup of up to 30.5%, translating to a 26.1% improvement for the entire detection pipeline.
- Accuracy Preservation: The "Fast" configuration of ToC3D matched the performance of the uncompressed baseline (55.2% NDS) while operating much faster.
- 3D Awareness Advantage: ToC3D outperformed 2D-only compression methods like DynamicViT by approximately 2% NDS, validating the necessity of 3D-aware priors.
Conclusion
ToC3D demonstrates that the computational burden of ViT-based 3D detectors can be mitigated by intelligently pruning image tokens using temporal and 3D priors. By repurposing the decoder's memory to guide the backbone, ToC3D achieves a more efficient and effective perception system for autonomous driving. Future work may explore dynamic pruning ratios to further optimize performance in varying environmental complexities.
Summary updated