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

Ecco:通过熵感知缓存压缩提升大语言模型的内存带宽与容量

Ecco: Improving Memory Bandwidth and Capacity for LLMs via Entropy-aware Cache Compression

Feng Cheng, Cong Guo, Chiyue Wei, Junyao Zhang, Changchun Zhou, Edward Hanson, Jiaqi Zhang, Xiaoxiao Liu, Hai "Helen" Li, Yiran Chen

AI总结:

本文提出面向大语言模型的熵感知缓存压缩技术 Ecco,通过分组非均匀量化、共享 k-means 模式和并行 Huffman 解码流水线,在保持模型精度的同时实现最高 2.9 倍加速和近 4 倍内存容量提升。

摘要:

大语言模型(LLMs)已在各类人工智能应用中展现出变革性能力,但其部署受到巨大内存和计算需求的制约,尤其是在资源受限环境中。量化技术已成为一种关键解决方案,通过降低数据精度来提升内存和计算效率。然而,现有方法往往存在较高的运行时开销和潜在的精度下降问题。为应对这些挑战,我们提出 Ecco,一种面向 LLMs 的基于熵的缓存压缩技术。Ecco 将分组非均匀量化与预定义的共享 k-means 模式以及 Huffman 编码相结合,以利用 LLM 缓存数据固有的熵特性。针对传统 Huffman 编码在并行性和延迟方面的低效问题,我们引入了一种新颖的基于并行 Huffman 的解码流程,并采用多级流水线设计,将延迟降低了两个数量级,同时实现了与 GPU L2 缓存相当的吞吐量。综合评估表明,Ecco 相较于最先进的 AWQ 和 SmoothQuant 框架分别实现了最高 2.9 倍和 1.9 倍的加速,相较于 Olive 加速器实现了 2.4 倍加速,同时将内存容量提升了近 4 倍,并保持了最先进的大语言模型精度。这些结果凸显了我们基于熵的缓存压缩方法在提升大语言模型性能和效率方面的有效性,为更大规模人工智能模型的可部署性铺平了道路。

英文摘要:

Large language models (LLMs) have demonstrated transformative capabilities across diverse artificial intelligence applications, yet their deployment is hindered by substantial memory and computational demands, especially in resource-constrained environments. Quantization techniques have emerged as a critical solution, reducing data precision to enhance memory and computational efficiency. However, existing methods often suffer from high runtime overheads and potential accuracy degradation. To address these challenges, we propose Ecco, an entropy-based cache compression technique tailored for LLMs. Ecco combines group-wise and non-uniform quantization with pre-defined shared k-means patterns and Huffman coding to exploit the inherent entropy characteristics of LLM cache data. Recognizing the inefficiencies of traditional Huffman coding in terms of parallelism and latency, we introduce a novel parallel Huffman-based decoding process with a multi-stage pipeline design, reducing latency by two orders of magnitude and achieving throughput comparable to GPU L2 caches. Comprehensive evaluations demonstrate that Ecco achieves an up to 2.9$\times$ and 1.9$\times$ speedup over the state-of-the-art AWQ and SmoothQuant framework, 2.4$\times$ over the Olive accelerator, all while increasing memory capacity by nearly 4$\times$ and maintaining state-of-the-art LLM accuracy. These results underscore the effectiveness of our entropy-based cache compression in enhancing LLM performance and efficiency, paving the way for more deployable large-scale AI models.

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

↑