arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.00633cs.CV
收藏

通过令牌压缩加速基于ViT的多视角3D检测器

Make Your ViT-based Multi-view 3D Detectors Faster via Token Compression

Baidu Inc.(百度公司);Huazhong University of Science and Technology(华中科技大学)

Dingyuan Zhang, Dingkang Liang, Zichang Tan, Xiaoqing Ye, Cheng Zhang, Jingdong Wang, Xiang Bai

AI总结:

本文提出TokenCompression3D方法,通过利用历史查询作为前景先验并结合动态路由器进行令牌压缩,在几乎保持SOTA性能的同时实现基于ViT的多视角3D检测器最高30%的推理加速。

摘要:

推理速度慢是将多视角3D检测器部署到自动驾驶等具有高实时性要求的任务中最关键的问题之一。尽管许多基于稀疏查询的方法已经尝试提高3D检测器的效率,但它们忽略了主干网络,尤其是在使用Vision Transformers(ViT)以获得更好性能时。为了解决这一问题,我们探索了通过令牌压缩实现高效的多视角3D检测ViT主干网络,并提出了一种简单而有效的方法,称为TokenCompression3D(ToC3D)。通过利用历史对象查询作为高质量的前景先验,在其中建模3D运动信息,并通过注意力机制与图像令牌交互,ToC3D能够有效确定图像令牌的信息密度大小,并分割出显著的前景令牌。借助引入的动态路由器设计,ToC3D可以将更多计算资源分配给重要的前景令牌,同时压缩信息损失,从而实现更高效的基于ViT的多视角3D检测器。在大规模nuScenes数据集上的大量结果表明,我们的方法几乎可以保持近期SOTA的性能,同时实现高达30%的推理加速,并且在扩大ViT和输入分辨率后,改进保持一致。代码将发布在https://github.com/DYZhang09/ToC3D。

英文摘要:

Slow inference speed is one of the most crucial concerns for deploying multi-view 3D detectors to tasks with high real-time requirements like autonomous driving. Although many sparse query-based methods have already attempted to improve the efficiency of 3D detectors, they neglect to consider the backbone, especially when using Vision Transformers (ViT) for better performance. To tackle this problem, we explore the efficient ViT backbones for multi-view 3D detection via token compression and propose a simple yet effective method called TokenCompression3D (ToC3D). By leveraging history object queries as foreground priors of high quality, modeling 3D motion information in them, and interacting them with image tokens through the attention mechanism, ToC3D can effectively determine the magnitude of information densities of image tokens and segment the salient foreground tokens. With the introduced dynamic router design, ToC3D can weigh more computing resources to important foreground tokens while compressing the information loss, leading to a more efficient ViT-based multi-view 3D detector. Extensive results on the large-scale nuScenes dataset show that our method can nearly maintain the performance of recent SOTA with up to 30% inference speedup, and the improvements are consistent after scaling up the ViT and input resolution. The code will be made at https://github.com/DYZhang09/ToC3D.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑