arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.13147cs.ARcs.LGcs.PF
收藏

D-com:加速迭代处理以实现激活值的低秩分解

D-com: Accelerating Iterative Processing to Enable Low-rank Decomposition of Activations

University of California, Irvine(加州大学尔湾分校);NVIDIA(NVIDIA公司)

Faraz Tahmasebi, Michael Pelluer, Hyoukjun Kwon

AI总结:

针对大语言模型激活值低秩分解延迟高的问题,提出D-com加速器,采用Lanczos算法、计算复制和输出形状保持方案,实现22%端到端延迟降低,仅以微小质量损失为代价。

摘要:

在过去十年中,大型语言模型的计算和内存成本持续增加,其规模已超过1万亿参数。为了应对大规模模型带来的挑战,人们探索了诸如低秩分解之类的模型压缩技术。以往的模型分解工作侧重于权重分解,以避免昂贵的运行时分解,因为运行时分解的延迟往往显著超过分解带来的收益(例如,在A100上以4K序列长度运行Llama2-7b时,与不进行分解相比,激活分解会使端到端延迟增加38%)。在本工作中,我们驳斥了这些观察结果,并报告指出,在适当选择分解算法和硬件支持的情况下,输入分解可以带来显著的好处。我们采用了渐进式分解算法——Lanczos算法,并为该分解算法设计了一种协同加速器架构。为了解决分解操作的内存受限问题,我们引入了一种新颖的计算复制方法,将操作推向计算受限区域,在我们的评估中实现了6.2倍的加速。我们还开发了一种输出形状保持的计算方案,消除了连续层中的分解成本。为了弥补压缩带来的模型质量损失,我们引入了一种多轨道分解方法,该方法以最小的计算成本分别处理异常通道,以实现高精度和低困惑度。综合来看,我们的加速器D-com相比A100 GPU提供了22%的端到端延迟改进,代价是轻微的模型质量下降(例如,在AI2推理挑战任务上下降3%)。

英文摘要:

The computation and memory costs of large language models kept increasing over last decade, which reached over the scale of 1T parameters. To address the challenges from the large scale models, model compression techniques such as low-rank decomposition have been explored. Previous model decomposition works have focused on weight decomposition to avoid costly runtime decomposition, whose latency often significantly exceeds the benefits from decomposition (e.g., 38% more end-to-end latency when running Llama2-7b on A100 with 4K sequence length with activation decomposition compared to no decomposition). In this work, we debunk such observations and report that the input decomposition can be significantly beneficial with a proper choice of decomposition algorithm and hardware support. We adopt progressive decomposition algorithm, Lanczos algorithm, and design a co-accelerator architecture for the decomposition algorithm. To address the memory- boundness of the decomposition operation, we introduce a novel compute replication methodology that moves the op- eration toward compute-bound region, which enables 6.2x speedup in our evaluation. We also develop an output shape- preserving computation scheme that eliminates decomposi- tion costs in consecutive layers. To compensate model quality loss from compression, we introduce a multi-track decom- position approach that separately handles outlier channels for high accuracy and low perplexity with minimal compu- tational costs. Combined together, our accelerator, D-com, provides 22% end-to-end latency improvements compared to A100 GPU at the cost of small model quality degradation (e.g., 3% on AI2 Reasoning Challenge task).

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

↑