SVDP:面向快速LLM推理的免训练上下文稀疏预测器
SVDP: Training-Free Contextual Sparsity Predictors for Fast LLM Inference
论文提出SVDP框架,用门投影矩阵的截断感知SVD加阈值校准,免训练构建上下文稀疏模式预测器,并给出支持CUDA与CANN条件计算的推理执行器。在三个FFN平均激活稀疏度90%的稀疏LLM上,端到端解码时间最多缩短1.8倍,复杂数学与代码生成任务的基准分数下降不到1%。作者称该工作有助于LLM在边缘设备上的部署。
arXiv:2603.14110v2 Announce Type: replace Abstract: Contextual sparsity is one of the approaches used to reduce computational complexity in the inference process of large language models (LLMs). Existing techniques for efficient LLM inference acceleration based on contextual sparsity with minimal accuracy degradation require training sparse pattern predictors. This paper presents a framework for accelerating inference of ReGLU-based feed-forward networks (FFNs) within LLMs. The proposed framework provides a fast, training-free method for building sparse pattern predictors using truncation-aware singular value decomposition (SVD) of the gate projection matrix, along with a threshold calibration algorithm, and inference executors supporting conditional computation on CUDA and CANN devices. Experiments on three sparse LLMs with an average activation sparsity level of 90% in the FFNs demonstrate up to a 1.8x reduction in end-to-end decoding time while maintaining less than 1% degradation in benchmark scores on tasks involving complex math and code generation. This work advances the deployment of LLMs on edge devices.
来源:arXiv (AI + Vision + Imaging) · arxiv.org