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

最小化缩放因子的隐藏成本:面向大语言模型的图引导超低位量化

Minimizing the Hidden Cost of Scales: Graph-Guided Ultra-Low-Bit Quantization for Large Language Models

University of California, Berkeley(加州大学伯克利分校)

Rayyan Abdalla, Amir Hussein, Min Wu, Dinesh Manocha

AI总结:

提出SAGE-PTQ框架,通过图引导的显著性感知量化分离显著与非显著权重,实现超低位量化并最小化缩放开销,在LLaMA-3-8B上困惑度降至6.74且内存低于BiLLM的50%。

摘要:

训练后量化(PTQ)对于大语言模型(LLMs)的高效部署至关重要。最近的超低位PTQ方法依赖于严格的权重显著性假设或位置启发式,引入了大量隐藏的缩放开销。我们提出SAGE-PTQ(显著性感知图引导高效PTQ),一种新颖的LLMs超低位量化框架,可最小化隐藏缩放成本。SAGE-PTQ使用分布统计分离显著和非显著权重,然后将子采样的非显著权重建模为稀疏图,以估计每层的最佳组数。SAGE-PTQ应用双模量化,为显著权重分配多位精度,并对非显著权重进行二值化。为减少缩放开销,SAGE-PTQ对显著权重使用每个通道一个缩放因子,对每个非显著组使用一个标量。最后,SAGE-PTQ实现自适应显著性阈值,以选择每个矩阵的最佳显著性比率。SAGE-PTQ平均达到1.03权重位和仅0.004缩放位每矩阵,优于BiLLM和PB-LLM等最先进方法。在LLaMA-3-8B上,SAGE-PTQ在WikiText2上达到6.74困惑度,而BiLLM为55.8,同时使用不到BiLLM 50%的GPU内存。在LLaMA-2-70B上,SAGE-PTQ在单个NVIDIA L40 GPU上提供1.5倍更快的解码速度,展示了实际的推理效率。

英文摘要:

Post-training quantization (PTQ) is critical for the efficient deployment of large language models (LLMs). Recent ultra-low-bit PTQ methods rely on rigid weight-saliency assumptions or position heuristics, introducing substantial hidden scaling overhead. We propose SAGE-PTQ (Saliency-Aware Graph-guided Efficient PTQ), a novel ultra-low-bit quantization framework for LLMs that minimizes hidden scaling cost. SAGE-PTQ separates salient and unsalient weights using distributional statistics, then models subsampled unsalient weights as a sparse graph to estimate the optimal number of groups per layer. SAGE-PTQ applies dual-mode quantization, assigning multi-bit precision to salient weights and binarizing unsalient weights. To reduce scaling overhead, SAGE-PTQ uses one per-channel scale for salient weights and one scalar per unsalient group. Finally, SAGE-PTQ implements adaptive saliency thresholding to select the optimal saliency ratio per matrix. SAGE-PTQ achieves 1.03 weight bits and only 0.004 scaling bits per matrix on average, outperforming state-of-the-art methods such as BiLLM and PB-LLM. On LLaMA-3-8B, SAGE-PTQ achieves 6.74 WikiText2 perplexity, compared to 55.8 for BiLLM, while using less than 50% of BiLLM's GPU memory. On LLaMA-2-70B, SAGE-PTQ provides 1.5x faster decoding on one NVIDIA L40 GPU, demonstrating practical inference efficiency.

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

↑