SpBatch: Reclaiming Lost Sparsity for Batched Sparse FFN Execution
Generative large language models (LLMs) face significant challenges in deployment due to their substantial computational and memory demands, particularly under batched inference scenarios. While activation sparsity offers a promising direction to reduce resource consumption, its benefits diminish with increasing batch sizes. Moreover, existing sparse inference systems fail to fully utilize modern GPU Tensor Cores. This paper proposes <italic>SpBatch</italic>, an efficient execution framework for batched activation-sparse FFN computation in ReLU-adapted LLMs through a two-level design. At the system level, it introduces <italic>Sparsity-Aware-Division</italic> to dynamically partition large batches into smaller mini-batches, maximizing sparsity and hardware utilization simultaneously. At the kernel level, it employs a “<italic>Load by CUDA Cores, Compute by Tensor Cores</italic>” strategy, alongside a <italic>Bitmap-based Neuron Index</italic> mechanism for load balancing and an optimized execution pipeline. SpBatch achieves up to 8.89<inline-formula><tex-math notation="LaTeX">${\boldsymbol{\times}}$</tex-math><alternatives><mml:math><mml:mrow><mml:mo mathvariant="bold">×</mml:mo></mml:mrow></mml:math><inline-graphic xlink:href="zhao-ieq1-3732029.gif"/></alternatives></inline-formula> speedup over PowerInfer (a representative activation-sparse baseline) and up to 2.6<inline-formula><tex-math notation="LaTeX">${\boldsymbol{\times}}$</tex-math><alternatives><mml:math><mml:mrow><mml:mo mathvariant="bold">×</mml:mo></mml:mrow></mml:math><inline-graphic xlink:href="zhao-ieq2-3732029.gif"/></alternatives></inline-formula> over llama.cpp (a dense inference framework) in end-to-end inference under the evaluated settings. These results demonstrate that activation sparsity and batch processing can be jointly leveraged through a selective sparse FFN execution path, especially in small-to-moderate batch regimes and high-sparsity edge-oriented scenarios where dense execution does not yet fully dominate.
- Link
- https://www.semanticscholar.org/paper/13af20292425222ac42ed8bcb94094b67667bebe
- Found by
- Semantic Scholar
- Authors
- Zhi-Xiong Zhang, Zhong-Xiang Wei, Zhao-Han Wang, Jin Zhao, Yue-Dong Xu, Xiao-Ming Fu
- Categories
- evaluation
- Published
- 2026-12-01
- Last seen by the radar
- 2026-12-01
- Citations
- 0
- Influential citations
- 0
- Radar score
- 37.03 / 100 (how it is scored)
- Why it scored so
- Matched: evaluat; Primary record: Semantic Scholar
- Related links
- https://doi.org/10.1109/TC.2026.3732029