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

本福特定律作为大语言模型后训练量化中的分布性先验

Benford's Law as a Distributional Prior for Post-Training Quantization of Large Language Models

Postgraduate Program in Computer Science, Federal University of Ouro Preto(计算机科学硕士课程,联邦大学奥鲁普里托);Computing Department, Federal University of Ouro Preto(计算部门,联邦大学奥鲁普里托)

Arthur Negrão, Pedro Silva, Vander L. S. Freitas, Gladston Moreira, Eduardo Luz

AI总结:

本福特定律用于大语言模型后训练量化,通过非均匀量化器提升压缩效果,减少困惑度并保持竞争力。

摘要:

大语言模型(LLMs)的快速增长加剧了对有效压缩的需求,权重量化是应用最广泛的技巧。标准均匀量化器假设参数均匀分布,这一假设与实践中观察到的高度偏斜分布相矛盾。我们提出了Benford-Quant,一种简单、无需数据的非均匀量化器,灵感来自本福特定律,该定律预测前导数字遵循对数分布。Benford-Quant用对数间隔的代码本取代均匀网格,将更多分辨率分配给频繁的小幅度权重。我们提供了理论直觉和实证证据:(i)变换层的权重紧密符合本福特定律统计,而归一化层系统性地偏离;(ii)在小型语言模型(SLMs)上,Benford-Quant一致地提高了困惑度,使Gemma-270M在4位困惑度上减少超过10%;(iii)在更大的LLMs上,它仍然具有竞争力,差异由过参数化效应解释。我们的结果表明,将本福特定律启发的先验纳入量化网格中是一种低成本的修改,能够在激进的少位制中带来准确性提升。尽管它无法在如困惑度和LAMBADA等任务上超越当前的最先进水平,但Benford-Quant方法可以与SmoothQuant和Activation-Aware Quantization等其他量化方法混合,而无需重大流程修改,可能提高其性能。

英文摘要:

Post-training quantization (PTQ) is a practical way to reduce the memory footprint of large language models, but low-bit quantization is sensitive to mismatches between the quantization codebook and the empirical weight/activation distributions. We revisit Benford-like leading-digit statistics as a lightweight diagnostic of scale-broad behavior in transformer tensors. Across several model families, we observe a consistent functional dichotomy: transformational nn.Linear weights tend to be Benford-like, whereas LayerNorm parameters systematically deviate. Motivated by this observation, we propose BenQ, a data-free PTQ codebook that uses a simple log-spaced grid as a proxy for scale-broad distributions and applies it selectively to transformational layers while keeping stability-critical parameters in higher precision. In 4-bit group-wise PTQ, BenQ consistently improves over uniform RTN and trades wins with NF4 across architectures and tasks, while remaining substantially simpler than optimization-based methods. We additionally report dynamic activation quantization as an exploratory stress test: the results show that log-spaced grids can reduce RTN failures in some families, but also reveal that outlier handling remains essential for reliable low-bit activation PTQ. Code is available at https://github.com/ufopcsilab/benford-quant.

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

↑