CHESS: Optimizing LLM Inference via Channel-Wise Thresholding and Selective Sparsification

Junhui He, Shangyu Wu, Weidong Wen, Chun Jason Xue, Qingan Li
9/2/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: junhuihe-hjh/CHESS (4 stars, last commit 2025-06-05).

Abstract

Deploying large language models (LLMs) on edge devices presents significant challenges due to the substantial computational overhead and memory requirements. Activation sparsification can mitigate these resource challenges by reducing the number of activated neurons during inference. Existing methods typically employ thresholding-based sparsification based on the statistics of activation tensors. However, they do not model the impact of activation sparsification on performance, resulting in suboptimal performance degradation. To address the limitations, this paper reformulates the activation sparsification problem to explicitly capture the relationship between activation sparsity and model performance. Then, this paper proposes CHESS, a general activation sparsification approach via CHannel-wise thrEsholding and Selective Sparsification. First, channel-wise thresholding assigns a unique threshold to each activation channel in the feed-forward network (FFN) layers. Then, selective sparsification involves applying thresholding-based activation sparsification to specific layers within the attention modules. Finally, we detail the implementation of sparse kernels to accelerate LLM inference. Experimental results demonstrate that the proposed CHESS achieves lower performance degradation over eight downstream tasks while activating fewer parameters than existing methods, thus speeding up the LLM inference by up to 1.27x.

View on arXivView PDF

Code Implementations(1)

junhuihe-hjh/CHESSCommunity100%

[EMNLP 2024] CHESS: Optimizing LLM Inference via Channel-Wise Thresholding and Selective Sparsification

41Shell, PythonOct 16, 20241 years ago

Similar Papers

Cite this paper

@article{he2024chess,
  title  = {CHESS: Optimizing LLM Inference via Channel-Wise Thresholding and Selective Sparsification},
  author = {Junhui He and Shangyu Wu and Weidong Wen and Chun Jason Xue and Qingan Li},
  year   = {2024},
  eprint = {2409.01366},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.01366v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.01366.svg)](https://codeofpaper.com/paper/2409.01366)

Discussion