Does Quantization Make LLMs More Prone to Hallucination?
This article reframes the common question about quantization and hallucination into an engineering problem: whether output distribution shifts stay within acceptable bounds under a given precision and decoding configuration, and whether behavior is consistent under single-request versus concurrent batching loads. It separates static quantization error from dynamic error introduced by the decoding path, explains why speculative decoding improves single-user latency while reducing aggregate throughput under concurrency, and presents reference measurements across context lengths from 1K to 64K. It also covers why a draft depth of 1 is a robust default, a practical evaluation methodology, and a capacity planning checklist.
1. Framing the Question Correctly: Not “Which Is More Accurate,” but “Which Is More Stable Under a Given Load”
“Is a quantized large model more likely to produce nonsense?” is a widely repeated but loosely stated question. A more engineering-oriented framing is this: under a given precision and a given decoding configuration, is the shift in the model’s output distribution constrained within an acceptable range, and does that shift behave consistently under both single-request and concurrent batch workloads?
One common misconception needs clearing up first: quantization does not directly produce nonsense. 4-bit weight quantization introduces numerical error in weights and activations. That error shows up as weaker detail recall in long contexts, degraded format adherence, and a higher probability of repetition and self-contradiction. What actually makes output look absurd is usually the speculative mechanism introduced during decoding, poorly chosen sampling parameters, and scheduling policies applied during batching. Mixing these three causes together leads to the wrong conclusion that lower precision must be worse.
2. Two Error Sources Must Be Considered Separately
The first is static quantization error. When compressing FP8 or higher-precision weights down to 4-bit, outlier channels are the most sensitive to error. Once key channels in the attention and multilayer perceptron modules are over-compressed, the ability to preserve long-range dependencies degrades first. The symptom is not fabrication, but “failing to remember what should have been remembered.”
The second is dynamic error introduced by the decoding path. Speculative decoding (an MTP or draft-then-verify structure) first has a lightweight draft model guess several consecutive tokens, then has the main model verify them in a single pass. The acceptance rate determines the net benefit: a high acceptance rate reduces the number of main-model decoding passes and raises speed, while a low acceptance rate turns draft and verification overhead into a net cost. More importantly, if the sampling parameters used in the verification step differ from those on the main path, the output distribution is slightly distorted. This is the primary source of the “nonsense” impression.
3. What the Measurements Show
Running a same-condition comparison of two quantization configurations on a machine with 256GB of unified memory yields the following trends (the numbers are illustrative re-measurements, meant to demonstrate the methodology rather than to serve as product benchmarks):
| Context length | Baseline decode | Speculative decode | Improvement | First-token latency change | Peak memory change |
|---|---|---|---|---|---|
| 1K | 32.2 | 35.0 | +8.7% | roughly flat | +1.52GB |
| 4K | 26.1 | 34.7 | +33.0% | roughly flat | +1.67GB |
| 16K | 20.3 | 24.5 | +20.7% | 17.1s → 17.7s | +1.71GB |
| 64K | 20.0 | 25.4 | +27.0% | 98.4s → 106.6s | +1.80GB |
The concurrency dimension shows a reversal: at 1 concurrent request, speculative decoding leads by 8.7%; at 2 concurrent requests, aggregate throughput drops from 71.9 to 57.4 tok/s; at 4 concurrent requests, it drops from 103.3 to 92.1 tok/s. The conclusion from this set of numbers is clear: speculative decoding optimizes single-user perceived latency, not total cluster throughput.
As a point of comparison, the higher-precision configuration lands at a decode median of roughly 45–95 tok/s under mixed workloads, with draft acceptance rates fluctuating between 54% and 87% depending on task type: short reasoning and tool-calling tasks have the highest acceptance rates, while long-form generation and code review have the lowest. Meanwhile, direct prefilling of a long input of about 9.4K tokens takes roughly 21 seconds, or around 446 tok/s. This indicates that the bottleneck in long-prompt scenarios is prefilling rather than decoding.
4. Why a Shallow Draft Chain Is the Robust Default
Setting draft depth to 1 is the default for an intuitive reason: the more tokens you guess, the larger the payoff on a hit, but the higher the sunk cost of draft generation and verification once a guess is rejected. Natural language text has relatively high local entropy, so a shallow chain is more stable; templated code, repetitive structures, and fixed-schema output are more likely to benefit from a deeper chain. The engineering recommendation is to configure depth in tiers by task type rather than raising it globally.
# Illustrative: select draft depth by task type and validate sampling consistencydef build_decode_config(task: str, batch_size: int):if batch_size > 1:return {"speculative": False} # prioritize throughput under concurrencydepth = 3 if task in ("code", "schema") else 1return {"speculative": True, "depth": depth,"draft_top_p": 0.95, "main_top_p": 0.95} # parameters must match
5. A Practical Evaluation Method
Judging whether a configuration “hallucinates more” cannot rely on subjective impressions. Fix four groups of metrics: long-context key information recall accuracy, format and schema adherence rate, repeated n-gram ratio, and first-token latency plus peak memory. Run at least three rounds per group and take the median, and re-measure outliers separately. If this needs to be carried on a platform, container platforms can provide environment isolation, logging services can retain raw outputs, and monitoring and alerting can track latency and memory drift, with model weights and the KV cache loaded on demand from object storage or a local high-speed disk.
6. Capacity Planning Checklist
For latency-sensitive single-request workloads, enable shallow speculative decoding first and accept the extra 1.5–1.8GB of memory; for multi-request concurrent online services, keep a non-speculative path to protect aggregate throughput; for long-prompt, short-answer scenarios, focus optimization on prefilling and first-token latency; in mixed deployments, allocate memory and VRAM quotas per model instance so that the KV cache and the draft runtime do not squeeze each other.
