As Large Language Models (LLMs) scale exponentially, existing pruning techniques face three deployment bottlenecks: (1) hardware-limited unstructured sparsity support, (2) kernel-level mismatch with LLM sparsity patterns, and (3) layer-wise sparsity heterogeneity. We present AlphaSparseTensor, an automated SpMM optimization framework that co-designs algorithmic discovery and hardware execution. Building on AlphaTensor’s paradigm, our solution introduces dynamic programming-based block minimization and sparsity-aware workflow generation through: (1) adaptive zero-block detection and (2) hierarchical tiling for variable sparsity distributions. The system further optimizes GPU execution via memory-computation pipelining and data layout transformations. Evaluations show consistent improvements across multiple benchmarks. \(1.91\times \) speedup over cuSPARSE on Sparse Transformers, and \(4.05\times \) average acceleration versus cuBLAS for 70% pruned LLaMA models. End-to-end inference tests on LLaMA (7B/13B/65B) show system-level improvements of \(8.4\times \) , \(2.1\times \) , \(1.3\times \) , and \(1.2\times \) respectively compared to cuBLAS, cuSPARSE, PyTorch, and Sputnik. We open-source the discovered algorithms at: https://github.com/DavidMiao1127/AlphaSparseTensor

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

AlphaSparseTensor: Discovering Faster Sparse Matrix Multiplication Algorithms on GPUs for LLM Inference

  • Xuanzheng Wang,
  • Shuo Miao,
  • Zihan Zhu,
  • Peng Qu,
  • Youhui Zhang

摘要

As Large Language Models (LLMs) scale exponentially, existing pruning techniques face three deployment bottlenecks: (1) hardware-limited unstructured sparsity support, (2) kernel-level mismatch with LLM sparsity patterns, and (3) layer-wise sparsity heterogeneity. We present AlphaSparseTensor, an automated SpMM optimization framework that co-designs algorithmic discovery and hardware execution. Building on AlphaTensor’s paradigm, our solution introduces dynamic programming-based block minimization and sparsity-aware workflow generation through: (1) adaptive zero-block detection and (2) hierarchical tiling for variable sparsity distributions. The system further optimizes GPU execution via memory-computation pipelining and data layout transformations. Evaluations show consistent improvements across multiple benchmarks. \(1.91\times \) speedup over cuSPARSE on Sparse Transformers, and \(4.05\times \) average acceleration versus cuBLAS for 70% pruned LLaMA models. End-to-end inference tests on LLaMA (7B/13B/65B) show system-level improvements of \(8.4\times \) , \(2.1\times \) , \(1.3\times \) , and \(1.2\times \) respectively compared to cuBLAS, cuSPARSE, PyTorch, and Sputnik. We open-source the discovered algorithms at: https://github.com/DavidMiao1127/AlphaSparseTensor