Escort: Efficient Sparse Convolutional Neural Networks on GPUs

Xuhao ChenarXiv 2018

Introduction: The Sparsity Paradox

Weight pruning is a powerful technique to reduce the size of deep neural networks by removing redundant connections. While it can shrink models by over 80% with minimal accuracy loss, it often fails to deliver real-world speedups on GPUs. This "sparsity paradox" occurs because pruned models frequently run slower than their dense counterparts.

The primary reason is the lowering overhead. Standard GPU libraries use im2col to transform convolutions into matrix multiplications (GEMM). While effective for dense models, this process duplicates input data multiple times, wasting memory bandwidth and destroying data reuse opportunities in sparse scenarios. Furthermore, sparse matrices lead to irregular memory access patterns, causing GPU threads to sit idle while waiting for scattered data.

The traditional lowering (im2col) method duplicates input data to enable standard matrix multiplication, which is inefficient for sparse models.

Escort: Direct Sparse Convolution

To overcome these limitations, the authors introduce Escort, a system that bypasses the traditional lowering method in favor of direct sparse convolution. By computing convolutions directly, Escort avoids the memory-heavy im2col step entirely, prioritizing bandwidth efficiency over raw operation count.

Escort performs direct sparse convolution by multiplying sparse filter elements with corresponding input patches, avoiding data duplication.

Key Innovations

Escort makes sparse convolutions "GPU-friendly" through several architectural optimizations:

  • Dynamic Indexing & Weight Stretching: To manage irregular sparse weights (stored in CSR format), Escort pre-processes indices and calculates input offsets on the fly. This maintains high arithmetic intensity while minimizing off-chip memory traffic.
  • Optimized Data-to-Thread Mapping: Consecutive GPU threads are assigned to consecutive memory locations, ensuring "memory coalescing"—a critical factor for performance on SIMT architectures.
  • Stationary Dataflows: By keeping weights stationary in the on-chip cache and streaming inputs through, Escort maximizes data locality and reduces expensive global memory reads.

Performance and Results

The system was evaluated using AlexNet, GoogLeNet, and ResNet-50 on ImageNet, tested on NVIDIA Tesla P100 and GTX 1080Ti GPUs.

  • Speedups: Escort achieved a 2.63x speedup over cuBLAS and 3.07x over cuSPARSE at the layer level. End-to-end inference saw geomean speedups of 1.38x to 1.60x.
  • Efficiency: Cache hit rates improved significantly to 71-81%, compared to 52-57% for standard sparse libraries. This confirms that bandwidth, rather than raw FLOPS, is the primary bottleneck in sparse computing.

Conclusion

Escort demonstrates that software-level optimizations can turn theoretical pruning gains into tangible GPU performance. By prioritizing bandwidth efficiency and custom kernel design over general-purpose matrix libraries, Escort provides a robust path for deploying efficient sparse CNNs on existing hardware. Future work includes extending these techniques to activation sparsity and smaller filter sizes.

Summary updated

BibTeX
@misc{chen2018escort,
  author = {Xuhao Chen},
  title = {{Escort: Efficient Sparse Convolutional Neural Networks on GPUs}},
  year = {2018},
  eprint = {1802.10280},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.10280},
}
Figure