Skip to main content
QUICK REVIEW

[Paper Review] TorchSparse: Efficient Point Cloud Inference Engine

Haotian Tang, Zhijian Liu|arXiv (Cornell University)|Apr 21, 2022
Advanced Neural Network ApplicationsComputer Science40 citations
TL;DR

TorchSparse accelerates sparse convolution for 3D point clouds on GPUs by improving computation regularity and reducing data movement, achieving up to ~1.6x end-to-end speedups over MinkowskiEngine and SpConv across multiple models/datasets.

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. 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.

Motivation & Objective

  • Motivate efficient real-time inference for 3D point clouds in AR/VR and autonomous driving.
  • Address irregular computation and data movement bottlenecks in sparse convolutions on GPUs.
  • Propose a system optimized for adaptive batching and locality-aware data access to boost performance.

Proposed method

  • Introduce adaptive matrix multiplication grouping to trade FLOPs for regularity and improve GPU utilization.
  • Apply quantized, vectorized, and fused memory access to reduce data movement by optimizing scatter/gather.
  • Fuse mapping operations and use locality-aware ordering to maximize data reuse during inference.
  • Provide a PyTorch-like API while implementing CUDA backends for fast sparse convolution inference.

Experimental results

Research questions

  • RQ1Can adaptive batching of matrix multiplications improve utilization and speed of sparse convolution on GPUs?
  • RQ2To what extent do data movement optimizations (vectorized/scatter-gather, locality-aware access) reduce runtime for sparse convolutions?
  • RQ3How does TorchSparse compare to state-of-the-art sparse engines (MinkowskiEngine, SpConv) across common 3D point cloud benchmarks?
  • RQ4Is the approach robust across datasets (e.g., SemanticKITTI, nuScenes, Waymo) and models (e.g., MinkUNet, CenterPoint)?

Key findings

  • TorchSparse delivers 1.6x end-to-end speedup over MinkowskiEngine and 1.5x over SpConv on evaluated models/datasets.
  • Adaptive grouping of matmul workloads yields 1.4-1.5x speedup in matmul, and 1.6x to 2.0x overall improvements in various setups.
  • Data movement optimizations (vectorized scatter/gather, FP16 quantization with locality-aware memory access, fused kernels) yield significant DRAM access reductions and speedups (up to ~1.9x for data movement).
  • Fusion of mapping and locality-aware input/output access leads to substantial reductions in mapping overhead, contributing to overall gains (up to ~2.3x) in detectors.
  • TorchSparse achieves real-time inference (≥10 FPS) on multiple GPUs for several MinkUNet/CenterPoint configurations, including 3-frame models on nuScenes and Waymo datasets.
  • Adaptive dataset/hardware-specific tuning (ε,S) for batching improves matmul performance by up to ~1.5x and overall throughput across configurations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.