arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.14110cs.LG
收藏

基于SVD的上下文稀疏性预测器用于快速LLM推理

SVDP: Training-Free Contextual Sparsity Predictors for Fast LLM Inference

Georgii Serbin, Kirill Koshkin, Zhongao Sun, Anastasiya Bistrigova, C. C. Korikov

AI总结:

本文提出一种无需训练的快速稀疏模式预测方法,利用截断感知SVD和阈值校准算法,加速ReGLUFFN的LLM推理,实验显示在保持低精度损失下,解码时间减少1.8倍。

摘要:

上下文稀疏性是减少大语言模型(LLM)推理过程计算复杂度的一种方法。现有基于上下文稀疏性的高效LLM推理加速技术需要训练稀疏模式预测器。本文提出一个框架,用于加速LLM中的ReGLU基于的前馈网络(FFN)推理。所提出的框架提供了一种快速、无需训练的方法,通过截断感知的SVD对门投影矩阵进行分解,结合阈值校准算法和支持条件计算的CUDA和CANN设备推理执行器。在三个稀疏LLM上进行的实验显示,FFN的平均激活稀疏性水平为90%,解码时间减少达1.8倍,同时在涉及复杂数学和代码生成的任务上的基准分数损失低于1%。这项工作推进了LLM在边缘设备上的部署。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑