LLM Low-Bit Quantization: Reallocating the Precision Budget Without Retraining
This article explains why low-bit quantization can degrade LLM quality even when file size targets are met, and how to treat the total bit budget as a finite resource to be reallocated under pure post-training quantization (PTQ). It covers a five-step workflow (layer sensitivity ranking, projection-type differentiation, embedding and output head protection, KV cache quantization, and format/grouping choices), a four-category evaluation system spanning quality, efficiency, stability, and consistency metrics, additional trade-offs for on-device and sub-1GB scenarios, and cloud deployment practices. The key takeaway: with calibration statistics and total size fixed, spend bits where sensitivity is highest and validate with multi-dimensional metrics.
1. Background: Why Low-Bit Quantization Makes Models “Dumber”
In LLM deployment, compressing BF16/FP16 weights down to 4 bits or lower is the most direct way to cut memory footprint and inference cost. Yet engineering practice often reveals a counterintuitive outcome: the file size target is met, but model capability degrades noticeably. Long-chain reasoning tasks are hit hardest, showing abnormally long thinking traces, redundant output, and repeated self-confirmation, so token consumption actually goes up.
The mechanism behind this is not mysterious. Quantization maps a continuous weight distribution onto a finite set of discrete grid points, and the mapping error accumulates across layers. When layers that the output distribution is highly sensitive to are compressed too aggressively, the model’s internal representations shift, the confidence distribution during decoding flattens, sampling paths get longer, and termination conditions are met later than they should be. In other words, token inflation is usually an external symptom of precision loss, not an independent problem.
2. Scope: The Constraint Boundary of Pure PTQ
The quantization approaches common in the industry fall into roughly three categories: quantization-aware training, quantization distillation, and post-training quantization. Pure post-training quantization has a very clear constraint boundary — no backpropagation, no weight updates, and no additional corpus used to train the model. Quantization parameters are decided solely from activation distributions measured on a calibration set.
One boundary is easy to confuse and worth emphasizing: updating calibration statistics is not the same as training the model. But to keep conclusions attributable, the strictest experimental design keeps even the calibration statistics fixed. Only then can performance differences be cleanly attributed to a single variable: how the weight budget is allocated. Many teams mix the two when reviewing quantization gains, and end up unable to tell whether the gain came from the data or from the algorithm.
3. Core Idea: Treat the Total Bit Budget as a Finite Resource to Allocate
With total file size held roughly constant, the only way to improve precision is reallocation: let insensitive layers use fewer bits and hand the savings to sensitive ones. The actionable steps are below.
Step 1: Build a layer sensitivity ranking. Run single-point perturbation experiments layer by layer — drop one layer to low bits on its own, keep the rest at high precision, and measure how much the overall metric drops to obtain a sensitivity curve. A small evaluation set is enough for fast screening in practice:
# Illustrative: layer-wise sensitivity scan (pseudocode)base = evaluate(model, eval_set) # high-precision baselinefor layer in model.named_layers():candidate = quantize_only(model, target=layer, bits=4)delta = base.score - evaluate(candidate, eval_set).scoresensitivity[layer.name] = deltaranked = sorted(sensitivity.items(), key=lambda kv: kv[1], reverse=True)
Step 2: Differentiate by projection type. Attention and projection matrices, the up-projection and down-projection of the feed-forward network, and the gate projection differ significantly in sensitivity. In practice, the feed-forward intermediate layers usually carry more redundant capacity and can tolerate lower bits, while output projections and the critical transforms before normalization are more fragile and should keep higher precision.
Step 3: Protect the word embeddings and the output head. The vocabulary dimension is very large and the distribution is long-tailed. Once the embedding vectors of low-frequency tokens are broken by quantization, rare words and multilingual performance are directly affected. The common approach is to keep embeddings and the output layer at 8 bits or above, sometimes preserving the original precision in part.
Step 4: Do not forget the KV cache. In long-context scenarios, the memory cost of the cache can be on par with the weights, so quantizing the cache to low bits often pays off more than compressing weights further — but the accumulated error over long sequences needs to be evaluated alongside it.
Step 5: Format and grouping granularity are also part of the budget. The group size in group-wise quantization, whether zero points are kept, and the choice between symmetric and asymmetric mapping all change the effective precision available at the same file size.
4. Evaluation: Do Not Look at a Single Accuracy Number
Judging whether a budget reallocation actually succeeded requires observing at least four categories of metrics together:
- Quality metrics: multi-task accuracy, long-text comprehension, multilingual and code tasks measured separately, so a total score cannot mask a local collapse;
- Efficiency metrics: token consumption per request, time to first token, throughput;
- Stability metrics: thinking-length distribution, repetition rate, truncation rate, compared against the high-precision baseline at the distribution level rather than by mean;
- Consistency metrics: output variance across repeated runs under a fixed random seed, since quantization error often shows up as amplified variance.
One caution: any claim of “accuracy up by X points, tokens down by Y percent” that does not disclose the search or allocation algorithm details and the per-category attribution should be treated only as an observation under specific test conditions, not something to extrapolate directly to your own workload distribution. The rational move is to rerun the scan on your own evaluation set.
5. Extra Trade-offs for On-Device and Ultra-Small Footprints
When the target size is pushed down to around 1 GB, or when facing a medium-sized dense model pretrained from scratch, the constraints on budget allocation get tighter: less redundancy is available, and over-compressing any single layer gets amplified. The suggested priority here is to protect embeddings and the output layer first, then the critical attention projections, and compress the feed-forward intermediate layers last. It also helps to split the evaluation set into a “knowledge” group and a “reasoning” group and accept them separately.
6. Engineering Recommendations
For cloud deployment, quantization artifacts can be version-managed in object storage, evaluation and load-testing jobs can run on a container platform, and logging and monitoring with alerting can track latency, throughput, and error rate. On the model serving side, keep dual channels for the high-precision and quantized versions and switch between them gradually by traffic. Baidu AI Cloud’s general-purpose capabilities can cover the steps above; refer to the official documentation for specific configuration.
In summary, quantization optimization under zero retraining is essentially a budgeting problem: fix the calibration statistics, fix the total size, use the sensitivity ranking to spend bits where they matter most, and close the loop with multi-dimensional metrics. Mastering this method has more long-term value than chasing the gain numbers of any single release.
