TorchSparse: Efficient Point Cloud Inference Engine

Haotian Tang, Zhijian Liu, Xiuyu Li, Yujun Lin, Song Han
4/21/2022
cs.LGcs.CVcs.PF

Official code: mit-han-lab/torchsparse (1,476 stars, Cuda, MIT, PyTorch, last commit 2025-02-24).

Abstract

Deep learning on point clouds has received increased attention thanks to its wide applications in AR/VR and autonomous driving. These applications require low latency and high accuracy to provide real-time user experience and ensure user safety.

Show full abstract

Unlike conventional dense workloads, the sparse and irregular nature of point clouds poses severe challenges to running sparse CNNs efficiently on the general-purpose hardware. Furthermore, existing sparse acceleration techniques for 2D images do not translate to 3D point clouds. In this paper, we introduce TorchSparse, a high-performance point cloud inference engine that accelerates the sparse convolution computation on GPUs. TorchSparse directly optimizes the two bottlenecks of sparse convolution: irregular computation and data movement. It applies adaptive matrix multiplication grouping to trade computation for better regularity, achieving 1.4-1.5x speedup for matrix multiplication. It also optimizes the data movement by adopting vectorized, quantized and fused locality-aware memory access, reducing the memory movement cost by 2.7x. Evaluated on seven representative models across three benchmark datasets, TorchSparse achieves 1.6x and 1.5x measured end-to-end speedup over the state-of-the-art MinkowskiEngine and SpConv, respectively.

View on arXivView PDF

Code Implementations(1)

PyTorchMIT

[MICRO'23, MLSys'22] TorchSparse: Efficient Training and Inference Framework for Sparse Convolution on GPUs.

1,476191Cuda, PythonAug 24, 20201 years agoMIT
accelerationpytorch

Similar Papers

Cite this paper

@article{tang2022torchsparse,
  title  = {TorchSparse: Efficient Point Cloud Inference Engine},
  author = {Haotian Tang and Zhijian Liu and Xiuyu Li and Yujun Lin and Song Han},
  year   = {2022},
  eprint = {2204.10319},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.10319}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.10319.svg)](https://codeofpaper.com/paper/2204.10319)

Discussion