Exploiting Low-Level Sparsity for Efficient Large Language Model Inference on GPU with SpInfer

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.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Computer Systems
Published
2026-11-26
DOI
https://doi.org/10.1145/3833419
Primary Topic
Parallel Computing and Optimization Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Exploiting Low-Level Sparsity for Efficient Large Language Model Inference on GPU with SpInfer

Peijie Dong, Qiang Wang, Ruibo Fan, Wei William Wang et al.
ACM Transactions on Computer Systems
Parallel Computing and Optimization Techniques
article

Exploiting Low-Level Sparsity for Efficient Large Language Model Inference on GPU with SpInfer

Peijie Dong, Qiang Wang, Ruibo Fan, Wei William Wang, Zeyu Li, Xiaowen Chu, Xiangrui Yu, Gu Gong
article en

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.

ACM Transactions on Computer Systems
Hong Kong University of Science and Technology (HK), Harbin Institute of Technology (CN), The Hong Kong University of Science and Technology (Guangzhou) (CN), University of Hong Kong (HK)
Parallel Computing and Optimization Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon