SparsePipe: Parallel Deep Learning for 3D Point Clouds

Keke Zhai, Pan He, Tania Banerjee, Anand Rangarajan, Sanjay RankaarXiv 2020

TL;DR

SparsePipe is a new framework that brings efficient, asynchronous pipeline parallelism to 3D point cloud deep learning. By combining sparse tensor representations with a smart, heterogeneity-aware model partitioning algorithm, it enables training deeper models at higher resolutions across multiple GPUs—even when those GPUs have different performance characteristics—significantly outperforming traditional dense and data-parallel approaches.

What Problem Does This Paper Address?

3D point clouds, generated by LiDAR or depth sensors, are inherently sparse; most of the 3D volume they occupy is empty space. However, traditional deep learning approaches often convert these into "dense" tensors, which wastes massive amounts of memory and computation on empty voxels. This inefficiency limits researchers to shallow models and low-resolution data (often just $32^3$ or $50^3$).

Furthermore, scaling these models to multiple GPUs introduces new bottlenecks. Standard Data Parallelism (DP) requires synchronizing all model weights across every GPU, which becomes a massive communication overhead for large models. Model Parallelism (MP), which splits the model across GPUs, often suffers from "bubbles"—idle time where one GPU waits for another to finish its layer. Finally, real-world clusters are often heterogeneous, containing different generations of GPUs (e.g., a mix of Titan V and RTX 2080 Ti). Existing frameworks assume all GPUs are identical, leading to severe load imbalances when they aren't.

Methods

SparsePipe tackles these issues through three main pillars:

  1. Sparse Tensor Computation: Instead of dense grids, SparsePipe uses sparse tensors that only store non-empty voxels. It employs generalized convolutions, which only perform calculations at locations where data actually exists. This drastically reduces the memory footprint.
  2. Asynchronous Pipeline Parallelism: SparsePipe implements a hybrid approach. It partitions the model into stages (Model Parallelism) and processes mini-batches in a pipelined fashion. To keep GPUs busy, it uses asynchronous updates, leveraging techniques like weight stashing (to ensure the same weight version is used for both forward and backward passes of a specific batch) to maintain convergence.
  3. Heterogeneous-Aware Partitioning (SmartProfile): This is the "secret sauce" for mixed-GPU clusters. The framework includes a profiling tool that measures the computation and communication cost of every layer on every type of GPU in the system. It then uses a dynamic programming algorithm to find the optimal way to split the model. If one stage is particularly slow, SparsePipe can replicate that stage across multiple GPUs (Data Parallelism within the pipeline) to balance the throughput.
Fig. 4: Hybrid pipeline model parallelism with 3 processors and 2 stages. Stage 1 takes twice of the time units than stage 2 in the forward or backward pass. To sustain roughly the same throughput of stage 2 (on proc 3), stage 1 is replicated on two processors (proc 1 and 2).

Datasets

The authors evaluated SparsePipe using the ModelNet40 dataset, a standard benchmark containing 40 categories of 3D CAD models. They used this to compare shape classification performance between their sparse approach and traditional dense baselines.

Key Insights and Ideas

  • Resolution is King: Because sparse tensors are so memory-efficient, SparsePipe can handle resolutions up to $200^3$, whereas dense models often crash due to "out-of-memory" errors at anything above $50^3$. Higher resolution directly translates to better accuracy because the model can see finer details.
  • Exploiting Point Sparsity: The authors found they could further accelerate training by randomly dropping a subset of points (a "dropout ratio" for coordinates). Surprisingly, the models remained stable and accurate even when dropping significant amounts of data, allowing for even faster training speeds.
  • Pipeline > Data Parallelism for Large Models: For models with many parameters (like VGGNet), pipelining is superior to simple data parallelism because it reduces the total amount of data that needs to be communicated between GPUs to synchronize gradients.
  • Heterogeneity is a Feature, Not a Bug: By explicitly accounting for different GPU speeds during the partitioning phase, SparsePipe achieves much higher utilization than frameworks that assume homogeneity.

Key Results

  • Accuracy: Sparse models achieved higher testing accuracy on ModelNet40 (88.35% at $200^3$ resolution) compared to dense counterparts (86.78% at $50^3$).
  • Speedup: On a 4-GPU setup, SparsePipe achieved up to a 15.46x speedup compared to a single-GPU dense baseline when utilizing point sparsity.
  • Load Balancing: In a heterogeneous environment (mixing Titan V and RTX GPUs), SparsePipe’s HETE-MP (Heterogeneous-aware Model Parallelism) achieved speedups of 2.41x to 3.11x over standard Data Parallelism, significantly outperforming naive Model Parallelism which only reached ~1.33x to 2.27x.

Limitations and Future Work

While SparsePipe excels at large, parameter-heavy models like VGGNet, the authors note that for models with very few parameters (like ResNet), standard Data Parallelism might still be preferred due to lower overhead.

Additionally, the current pipelining approach is less efficient for branching architectures (like 3D-UNets used in segmentation). These architectures generate large amounts of intermediate data that must be passed between GPUs, potentially creating a new communication bottleneck. The authors suggest that investigating how to combine branch neural networks with pipeline parallelism is a promising direction for future research.

Summary updated

Abstract

We propose SparsePipe, an efficient and asynchronous parallelism approach for handling 3D point clouds with multi-GPU training. SparsePipe is built to support 3D sparse data such as point clouds. It achieves this by adopting generalized convolutions with sparse tensor representation to build expressive high-dimensional convolutional neural networks. Compared to dense solutions, the new models can efficiently process irregular point clouds without densely sliding over the entire space, significantly reducing the memory requirements and allowing higher resolutions of the underlying 3D volumes for better performance. SparsePipe exploits intra-batch parallelism that partitions input data into multiple processors and further improves the training throughput with inter-batch pipelining to overlap communication and computing. Besides, it suitably partitions the model when the GPUs are heterogeneous such that the computing is load-balanced with reduced communication overhead. Using experimental results on an eight-GPU platform, we show that SparsePipe can parallelize effectively and obtain better performance on current point cloud benchmarks for both training and inference, compared to its dense solutions.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
ModelNet40 · shape classificationSparse DNN (S-1; SparsePipe)Testing Acc87.61%+0.83 vs baselinesplit: test · backbone=VGG16-BN · batch-size=128 · resolution=50×50×50 · point-sampling=p=1
Source quote
L278: Testing Acc (%) │ 86.78 │ 87.61 │ 87.41 │ 86.93 │ 87.18 │ 87.80 │ 87.52 │ 87.00
ModelNet40 · shape classificationSparse DNN (S-1; SparsePipe)Epoch Time129.63 sec.-185.31 vs baselinebackbone=VGG16-BN · batch-size=128 · resolution=50×50×50 · point-sampling=p=1
Source quote
L279: Epoch Time (sec.) │ 314.94 │ 129.63 │ 99.70 │ 71.43 │ 82.05 │ 35.11 │ 27.62 │ 20.37
ModelNet40 · VGG16-BN trainingHETE-MPTraining speedup over DP3.11backbone=VGG16-BN · hardware=1 Titan V, 4 RTX · batch-size=64 · resolution=50×50×50
Source quote
L333: We further demonstrated that HETE-MP can give better partition of models by exploiting different GPU characteristics, compared to MP which is with the assumption of homogeneous GPU processors across servers. To run these partitioning algorithm, the bandwidth between two servers needs to be specified in advance, which is measured with the iperf3 tool. Compared to MP that gets a speedups of 1.33-2.27 over DP, HETE-MP can further accelerate the training and achieve higher speedups ranging from 2.41 to 3.11. For example, for five GPUs with one Titan V and four RTX, the speedup of HETE-MP is 3.11. Comapred to MP achieving 2.03× speedup, HETE-MP is 1.53× faster. Similarly, on eight GPUs, HETE-MP can obtain 1.98 × speedup compared to MP with a more load-balanced model partition.
Reported baseline / comparator measurements (3)
BenchmarkMethodMetricScoreProtocol / Evidence
ModelNet40 · shape classificationDense DNN (D-1 reference) baselineTesting Acc86.78%split: test · backbone=VGG16-BN · batch-size=32 · resolution=50×50×50
Source quote
L278: Testing Acc (%) │ 86.78 │ 87.61 │ 87.41 │ 86.93 │ 87.18 │ 87.80 │ 87.52 │ 87.00
ModelNet40 · shape classificationDense DNN (D-1 reference) baselineEpoch Time314.94 sec.backbone=VGG16-BN · batch-size=32 · resolution=50×50×50
Source quote
L279: Epoch Time (sec.) │ 314.94 │ 129.63 │ 99.70 │ 71.43 │ 82.05 │ 35.11 │ 27.62 │ 20.37
ModelNet40 · VGG16-BN trainingMP baselineTraining speedup over DP2.03×backbone=VGG16-BN · hardware=1 Titan V, 4 RTX · batch-size=64 · resolution=50×50×50
Source quote
L333: We further demonstrated that HETE-MP can give better partition of models by exploiting different GPU characteristics, compared to MP which is with the assumption of homogeneous GPU processors across servers. To run these partitioning algorithm, the bandwidth between two servers needs to be specified in advance, which is measured with the iperf3 tool. Compared to MP that gets a speedups of 1.33-2.27 over DP, HETE-MP can further accelerate the training and achieve higher speedups ranging from 2.41 to 3.11. For example, for five GPUs with one Titan V and four RTX, the speedup of HETE-MP is 3.11. Comapred to MP achieving 2.03× speedup, HETE-MP is 1.53× faster. Similarly, on eight GPUs, HETE-MP can obtain 1.98 × speedup compared to MP with a more load-balanced model partition.
BibTeX
@misc{zhai2020sparsepipe,
  author = {Keke Zhai and Pan He and Tania Banerjee and Anand Rangarajan and Sanjay Ranka},
  title = {{SparsePipe: Parallel Deep Learning for 3D Point Clouds}},
  year = {2020},
  eprint = {2012.13846},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.13846},
}
Figure