Toward Efficient SpMV in Sparse LLMs via Block Extraction and Compressed Storage

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Lin, Junqing, Sun, Jingwei, Lu, Mingge, Sun, Guangzhong
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908452946706432
author Lin, Junqing
Sun, Jingwei
Lu, Mingge
Sun, Guangzhong
author_facet Lin, Junqing
Sun, Jingwei
Lu, Mingge
Sun, Guangzhong
contents Sparse Matrix-Vector Multiplication (SpMV) has become a critical performance bottleneck in the local deployment of sparse Large Language Models (LLMs), where inference predominantly operates on workloads during the decoder phase with a batch size of one. Existing SpMV kernels and sparse matrix formats, originally designed for scientific computing, fail to exploit the unique structure patterns inherent in sparse LLMs, resulting in suboptimal performance and excessive storage overhead. This paper presents EC-SpMV, a GPU-optimized SpMV approach for accelerating sparse LLM inference. EC-SpMV introduces (1) a hierarchical block extraction algorithm that captures multiple granularities of block structures within sparse LLMs, and (2) a novel compressed sparse format (EC-CSR) that employs delta indexing to reduce storage overhead and enhance memory access efficiency. Evaluated on real sparse weight matrices from LLaMA and OPT models, EC-SpMV achieves up to 6.44x speedup over state-of-the-art SpMV libraries and reduces storage overhead by up to 55.4% compared to CSR.
format Preprint
id arxiv_https___arxiv_org_abs_2507_12205
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Toward Efficient SpMV in Sparse LLMs via Block Extraction and Compressed Storage
Lin, Junqing
Sun, Jingwei
Lu, Mingge
Sun, Guangzhong
Distributed, Parallel, and Cluster Computing
Sparse Matrix-Vector Multiplication (SpMV) has become a critical performance bottleneck in the local deployment of sparse Large Language Models (LLMs), where inference predominantly operates on workloads during the decoder phase with a batch size of one. Existing SpMV kernels and sparse matrix formats, originally designed for scientific computing, fail to exploit the unique structure patterns inherent in sparse LLMs, resulting in suboptimal performance and excessive storage overhead. This paper presents EC-SpMV, a GPU-optimized SpMV approach for accelerating sparse LLM inference. EC-SpMV introduces (1) a hierarchical block extraction algorithm that captures multiple granularities of block structures within sparse LLMs, and (2) a novel compressed sparse format (EC-CSR) that employs delta indexing to reduce storage overhead and enhance memory access efficiency. Evaluated on real sparse weight matrices from LLaMA and OPT models, EC-SpMV achieves up to 6.44x speedup over state-of-the-art SpMV libraries and reduces storage overhead by up to 55.4% compared to CSR.
title Toward Efficient SpMV in Sparse LLMs via Block Extraction and Compressed Storage
topic Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2507.12205