Benford's Law as a Distributional Prior for Post-Training Quantization of Large Language Models
Arthur Negrão, Pedro Silva, Vander L. S. Freitas, Gladston Moreira, Eduardo Luz
TL;DR
This work addresses the inefficiency of uniform post-training quantization for large language models by introducing Benford-Quant (BenQ), a data-free, log-spaced codebook guided by Benford's Law. The method selectively quantizes transformer transformational layers while preserving stability-critical components in higher precision, motivated by empirical Benford-like statistics in weights and a log-domain rationale from multiplicative training dynamics. Across small to mid-sized models, BenQ improves perplexity at 3–4 bits and remains competitive for larger LLMs, with ablations confirming the advantage of log-spaced grids over linear non-uniform alternatives. The approach is hardware-friendly and drop-in compatible with other quantization techniques, offering a practical path toward aggressive few-bit deployment while inviting hybridization with activation-aware quantization methods for further gains.
Abstract
The rapid growth of Large Language Models (LLMs) intensifies the need for effective compression, with weight quantization being the most widely adopted technique. Standard uniform quantizers assume that parameters are evenly distributed, an assumption at odds with the highly skewed distributions observed in practice. We propose Benford-Quant, a simple, data-free non-uniform quantizer inspired by Benford's Law, which predicts that leading digits follow a logarithmic distribution. Benford-Quant replaces the uniform grid with a log-spaced codebook, dedicating more resolution to the frequent small-magnitude weights. We provide both theoretical intuition and empirical evidence: (i) weights in transformer transformational layers adhere closely to Benford statistics, while normalization layers systematically deviate; (ii) on Small Language Models (SLMs), Benford-Quant consistently improves perplexity, reducing 4-bit perplexity on Gemma-270M by more than 10%; and (iii) on larger LLMs, it remains competitive, with differences explained by over-parameterization effects. Our results indicate that incorporating a Benford-inspired prior into quantization grids is a low-cost modification that yields accuracy gains in aggressive few-bit regimes. Although it is not able to surpass the state of the art in tasks such as perplexity and LAMBADA, the Benford-Quant approach can be hybridized with other quantization methods-such as SmoothQuant and Activation-Aware Quantization-without major pipeline modification, potentially improving their performance.
