SparseTIR:用于深度学习中稀疏编译的可组合抽象
SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learning
摘要:
稀疏张量正迅速成为现代深度学习工作负载的关键组成部分。然而,开发高性能稀疏运算符可能是困难和繁琐的,现有的供应商库无法满足新的运营商不断增长的需求。稀疏张量编译器简化了运算符的开发,但用于深度学习的高效稀疏编译仍然具有挑战性,因为单一稀疏格式无法最大限度地提高硬件效率,并且单次编译器无法跟上最新的硬件和系统进步。在本文中,我们观察到,解决这两个挑战的关键是利用组合格式和组合转换。我们提出了SparseTIR,这是一种稀疏张量编译抽象,为深度学习工作负载提供了可组合格式和可组合转换。SparseTIR在这些可组合组件上构建了一个搜索空间,用于性能调优。通过这些改进,SparseTIR在GPU上为单个运算符获得了与供应商库一致的性能加速:GNN运算符为1.20- 2.34倍,稀疏注意力运算符为1.05- 2.98倍,稀疏卷积运算符为0.56- 7.45倍。SparseTIR还将GraphSAGE训练的端到端GNN加速了1.08- 1.52倍,RGCN推理加速了4.20- 40.18倍。
英文摘要:
Sparse tensors are rapidly becoming critical components of modern deep learning workloads. However, developing high-performance sparse operators can be difficult and tedious, and existing vendor libraries cannot satisfy the escalating demands from new operators. Sparse tensor compilers simplify the development of operators, but efficient sparse compilation for deep learning remains challenging because a single sparse format cannot maximize hardware efficiency, and single-shot compilers cannot keep up with latest hardware and system advances. In this paper, we observe that the key to addressing both these challenges is to leverage composable formats and composable transformations. We propose SparseTIR, a sparse tensor compilation abstraction that offers composable formats and composable transformations for deep learning workloads. SparseTIR constructs a search space over these composable components for performance tuning. With these improvements, SparseTIR obtains consistent performance speedups vs vendor libraries on GPUs for single operators: 1.20-2.34x for GNN operators, 1.05-2.98x for sparse attention operators, and 0.56-7.45x for sparse convolution operators. SparseTIR also accelerates end-to-end GNNs by 1.08-1.52x for GraphSAGE training, and 4.20-40.18x for RGCN inference.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。