arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.17435cs.DCcs.ARcs.LGcs.PF
收藏

ZipServ: 一种快速且内存高效的LLM推理方法,结合硬件感知的无损压缩

ZipServ: Fast and Memory-Efficient LLM Inference with Hardware-Aware Lossless Compression

The Hong Kong University of Science(香港科学与技术大学);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳))

Ruibo Fan, Xiangrui Yu, Xinglin Pan, Zeyu Li, Weile Luo, Qiang Wang, Wei Wang, Xiaowen Chu

AI总结:

ZipServ通过硬件感知的无损压缩技术,提升LLM推理效率,减少内存占用,实现比cuBLAS快2.21倍的内核速度和1.22倍的端到端推理加速。

摘要:

无损模型压缩在缓解位精确大语言模型(LLM)服务中的内存和带宽瓶颈方面具有巨大潜力。然而,现有方法由于与GPU架构的根本设计不匹配,往往导致显著的推理延迟:在内核层面,传统熵编码器产生的可变长度位流破坏SIMT并行性;在系统层面,解耦的流水线导致冗余内存流量。我们提出了ZipServ,一种为高效LLM推理共同设计的无损压缩框架。ZipServ引入了针对Tensor-Core的三比特图编码(TCA-TBE),一种新的固定长度格式,使解码具有常数时间并行性,以及一个融合的解压缩-矩阵乘法(ZipGEMM)内核,可将权重实时解压到Tensor Core寄存器中。这种“加载压缩,计算解压缩”的设计消除了中间缓冲区并最大化计算强度。实验表明,ZipServ可将模型大小减少高达30%,在NVIDIA的cuBLAS上实现高达2.21倍的内核速度提升,并在vLLM上平均加速端到端推理1.22倍。ZipServ是首个在GPU上提供存储节省和显著加速LLM推理的无损压缩系统。

英文摘要:

Lossless model compression holds tremendous promise for alleviating the memory and bandwidth bottlenecks in bit-exact Large Language Model (LLM) serving. However, existing approaches often result in substantial inference slowdowns due to fundamental design mismatches with GPU architectures: at the kernel level, variable-length bitstreams produced by traditional entropy codecs break SIMT parallelism; at the system level, decoupled pipelines lead to redundant memory traffic. We present ZipServ, a lossless compression framework co-designed for efficient LLM inference. ZipServ introduces Tensor-Core-Aware Triple Bitmap Encoding (TCA-TBE), a novel fixed-length format that enables constant-time, parallel decoding, together with a fused decompression-GEMM (ZipGEMM) kernel that decompresses weights on-the-fly directly into Tensor Core registers. This "load-compressed, compute-decompressed" design eliminates intermediate buffers and maximizes compute intensity. Experiments show that ZipServ reduces the model size by up to 30%, achieves up to 2.21x kernel-level speedup over NVIDIA's cuBLAS, and expedites end-to-end inference by an average of 1.22x over vLLM. ZipServ is the first lossless compression system that provides both storage savings and substantial acceleration for LLM inference on GPUs.

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

↑