Exploiting Low-Level Sparsity for Efficient Large Language Model Inference on GPU with SpInfer
Ruibo Fan, Xiangrui Yu, Peijie Dong, Zeyu Li, Gu Gong, Qiang Wang, Wei Wang, Xiaowen Chu
Key points
From the paper's conclusion- SpInfer can surpass cuBLAS at sparsity as low as 10%, marking the first effective translation of the theoretical advantages of unstructured pruning into practical performance gains for LLM inference.
Abstract
Large Language Models (LLMs) have demonstrated remarkable capabilities, but their immense scale poses significant challenges in terms of both memory and computational costs. While unstructured pruning offers promising solutions by introducing sparsity to reduce resource requirements, realizing its benefits in LLM inference remains elusive. This is primarily due to the storage overhead of indexing non-zero elements and the inefficiency of sparse matrix-matrix multiplication (SpMM) kernels at low sparsity levels (i.e., around and below 50%). In this paper, we present SpInfer, a high-performance framework tailored for sparsified LLM inference on GPUs. SpInfer introduces Tensor-Core-Aware Bitmap Encoding (TCA-BME), a novel sparse format that minimizes indexing overhead by leveraging efficient bitmap-based indexing, optimized for GPU Tensor Core architectures. Furthermore, SpInfer integrates an optimized SpMM kernel with Shared Memory Bitmap Decoding (SMBD) and fine-grained asynchronous pipeline design to enhance computational efficiency. Experimental results across various GPU architectures show that SpInfer significantly outperforms state-of-the-art sparse implementations. Across sparsity levels between 30% and 70%, it achieves speedups of up to 2.14 × over Flash-LLM and up to 2.27 × over SparTA. It further delivers substantial gains in memory efficiency and end-to-end inference performance, with speedups up to 1.58 × and 2.01 × over FasterTransformer and vLLM, respectively. SpInfer can surpass cuBLAS at sparsity as low as 10%, marking the first effective translation of the theoretical advantages of unstructured pruning into practical performance gains for LLM inference.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Is 2:4 Sparsity Still Worth It? Semi-Structured Sparsity versus Quantization in LLM InferencearXiv · 2026
- A Differential Computing Accelerator for LLM Inference Leveraging Bit-Slice Transition SparsityarXiv · 2026
- SparseDecoding: Decoding-Aware Pruning for Accurate and Efficient LLM InferencearXiv · 2026
- Vector‐Based SparseGPT: A Vector‐Based Sparsity Method for Large Language ModelAdvanced Intelligent Systems · 2026
- Learning Structured Sparsity for Large Models: Bridging Model Compressibility and Efficient InferencearXiv · 2026
- MINE: Entropy-coded Memory-efficient Inference for Large Language ModelsarXiv · 2026