The race to shove Large Language Models into resource-constrained edge devices has officially hit a wall: standard uniform quantization is failing because LLM activation spaces are notoriously anisotropic. Data from recent probes into embedding spaces confirms that a handful of rogue features spike in magnitude, causing specific directions to hijack the covariance matrix after just a few layers. Traditional quantizers essentially throw money away by treating all geometric directions as equals. A new training-free method dubbed KLQ (Kullback-Leibler Quantization) by BalSob107 ditches this democratic approach, instead using eigendecomposition to pinpoint critical directions and measuring the model's causal sensitivity to every nudge and perturbation.

Quantization by Kullback-Leibler Divergence

Rather than trying to flatten the model’s natural geometry with rotation-based hacks, KLQ leans into the chaos. For every weight matrix, the algorithm eigendecomposes the activation covariance matrix from a calibration set. It then methodically breaks things: by perturbing activations along identified directions and measuring the Kullback-Leibler (KL) divergence in the output, KLQ calculates a 'causal importance' score for each path. To distribute the bit-budget, KLQ uses a water-filling algorithm—the mathematically optimal way to ensure that limited VRAM isn't wasted on noise. Unlike CoQuant’s rigid two-tier systems, KLQ prices bit allocation based on actual measured divergence, focusing bits where they prevent the most logic degradation.

KLQ assigns bits per direction by water-filling, the provably optimal allocation under this model.

Benchmarking and Performance

The economic upside is hard to ignore: by ditching the retraining phase and the heavy GPU-hour costs associated with GPTQ or LDLQ rounding, KLQ slashes CapEx for local system deployment. Benchmarks show that Llama 3.2 1B, when pushed into a tight W4A4KV4 configuration, effectively leapfrogs SpinQuant and breathes down the neck of ReSpinQuant. This shift from cloud-heavy computation to high-precision inference on cheap silicon is a game-changer for on-device privacy and latency. However, there is a technical 'toll' to pay: the calibration phase requires one forward pass per direction per matrix. While you save on training, the resulting model’s logical integrity remains hostage to the quality of your initial calibration data. In specific business scenarios where data distribution shifts, this 'geometric' fixedness could lead to unexpected reasoning decay if the calibration set wasn't diverse enough to begin with.

Large Language ModelsOn-Device AICost ReductionMeta AI