Why Low-Bit Quantized Models Are More Prone to Hallucinations

    This article explores why low-bit quantized models, such as 4-bit and ternary variants, are more prone to hallucinations compared to FP8 models. It breaks down the mechanisms behind quantization-induced errors, compares different quantization strategies, and provides a framework for evaluating models and implementing deployment best practices to mitigate hallucination risks.

    In model deployment practices, a seemingly simple but often misjudged question arises: Between a 4-bit quantized version and an FP8 version, which is less prone to hallucinations? Many intuitively believe that “higher precision is more reliable,” thus assuming FP8 must be superior to 4-bit. Others argue that “as long as the quantization retention rate is high enough, a low-bit model can approximate the original.” Both views are only half correct. Hallucination is not a single metric determined solely by weight precision; it relates to knowledge coverage, alignment strategies, decoding parameters, context length, evaluation methods, and how quantization damages long-tail capabilities. To discuss “which hallucinates less,” we must first break the problem down.

    1. “Hallucination” Is Not Just a Drop in Accuracy

    What we casually refer to as “hallucination” technically encompasses several distinct phenomena:

    1. Factual Hallucination: The model outputs non-existent facts, incorrect entity relationships, or fabricated data.
    2. Reasoning Chain Drift: An error occurs in one step of a multi-step reasoning process, and subsequent steps amplify that error.
    3. Format and Instruction Drift: The model fails to follow established output formats or forgets constraints within a long context.
    4. Uncertainty Calibration Failure: The model answers with high confidence even when it doesn’t know the answer, rather than refusing to answer or asking for clarification.
    5. Long-Tail Knowledge Degradation: High-frequency knowledge remains correct, but low-frequency entities, numerical values, dates, and proprietary concepts are more error-prone.

    The impact of quantization on these phenomena is uneven. FP8 typically retains a high dynamic range, causing minimal disturbance to weights and activations, and thus behaves more closely to the original model. Conversely, 4-bit or lower-bit quantization significantly compresses the parameter representation space. If a quantization scheme only focuses on average error without protecting outlier values, sensitive layers, and long-tail features, the model might appear “normal” on high-frequency Q&A but is more likely to “confidently fabricate” in factual Q&A, multi-hop reasoning, and numerical tasks.

    Therefore, when comparing models of different precisions, you cannot just look at the size, average bit-width, or the retention rate of a comprehensive benchmark. A high comprehensive benchmark score does not mean a low hallucination rate; a small average error does not mean key capabilities haven’t degraded.

    2. Paths Through Which Low-Bit Quantization Amplifies Hallucinations

    1. Outliers Are Smoothed Out

    Deep neural networks often contain a small number of highly influential anomalous activation values or weight outliers. Simply rounding these values down to a low-bit representation can flatten the signals that dictate attention routing and logical branching. As a result, the model may perform acceptably in standard short Q&A but is more likely to output incorrect content when precise recall, comparison, and reasoning are required.

    2. Group Scaling Is Not Fine Enough

    Low-bit quantization usually requires group scaling. The coarser the grouping, the harder it is for the scale to adapt to local numerical distributions; the finer the grouping, the higher the overhead. If the grouping strategy cannot cover local spikes, quantization errors will accumulate across multiple layers, ultimately manifesting as factual drift or format instability.

    3. No Special Treatment for Sensitive Layers

    Different layers have varying sensitivities to quantization. Embedding layers, attention output projections, intermediate layers of the feed-forward network, and layers related to long contexts may react differently to precision disturbances. If all layers are uniformly subjected to low-bit processing, certain critical layers may become sources of amplified hallucinations.

    4. Decoding Strategies Amplify Uncertainty

    Even if the model itself hasn’t noticeably degraded, a higher sampling temperature, an overly large top-p, and a lack of constrained decoding can make low-bit models more prone to “freewheeling.” When quantization errors overlap with sampling randomness, the hallucination rate can rise significantly.

    5. Mismatch Between Eval Sets and Online Distribution

    If the evaluation set primarily consists of general short Q&A, the low-bit model might look close to the original; however, online users frequently ask long-tail, long-context, and multi-constraint questions. At this point, quantization damage is more easily exposed. Using the wrong evaluation set leads to overly optimistic conclusions.

    3. How Ternary Quantization Might Close the Gap

    Ternary quantization constrains core weights to around {-1, 0, +1} and then uses group scaling to restore the numerical range. Its advantage is extremely low storage and computational overhead, but the challenge lies in preventing outlier destruction. Some schemes introduce rotating basis space projection: before quantization, an orthogonal transformation disperses the spikes concentrated in a few dimensions across the entire feature space, mathematically reducing the impact of outliers on the quantization grid. This is paired with finer FP16 group scaling to make the local numerical distribution smoother.

    This concept can be summarized in pseudocode:

    1. function quantize_ternary_with_rotation(W, group_size):
    2. W_rot = orthogonal_rotate(W) # Rotate basis projection to disperse outliers
    3. scales = []
    4. Q = zeros_like(W_rot)
    5. for each group G in split_groups(W_rot, group_size):
    6. s = max_abs(G) / 1.0 # Group scaling factor
    7. scales.append(s)
    8. Q[G] = ternarize(G / s) # Map to {-1, 0, +1}
    9. return Q, scales

    Such methods can reduce the risk of “critical activations being flattened due to simple rounding,” but it doesn’t mean all ternary quantization approaches near-lossless. The effectiveness depends on calibration set coverage, rotation matrix design, group size, whether sensitive layers retain high precision, and whether post-quantization recovery training is applied. A more robust engineering practice is: use low bits for most layers, retain FP16 or FP8 for a few sensitive layers, and determine the protection list through layer-by-layer sensitivity analysis.

    4. How to Fairly Compare 4-Bit, Ternary, and FP8

    To answer “which hallucinates less,” variables must be controlled. It is recommended to fix at least the following conditions:

    • Same base model, same version, same tokenizer, and context window;
    • Same decoding parameters: temperature, top-p, maximum output length, stop conditions;
    • Same prompt templates and system constraints;
    • Same evaluation sets and manual spot-check rules;
    • Separately record factual accuracy, hallucination rate, refusal rate, format compliance rate, and calibration error.

    The evaluation set should be designed hierarchically:

    1. High-Frequency Factual Q&A: Check if basic knowledge is retained.
    2. Long-Tail Entity and Numerical Questions: Check if low-frequency knowledge has degraded.
    3. Multi-Hop Reasoning and Comparison Tasks: Check if the reasoning chain drifts.
    4. Long-Context Constraint Tasks: Check if system instructions are forgotten.
    5. Refusal to Answer When Unknown: Check uncertainty calibration.
    6. Format and Tool Calling Constraints: Check structured output stability.

    A simplified evaluation loop can be written as:

    1. for model in [fp8_model, four_bit_model, ternary_model]:
    2. for sample in eval_set:
    3. out = model.generate(
    4. prompt=sample.prompt,
    5. temperature=0.2,
    6. top_p=0.9,
    7. max_tokens=512
    8. )
    9. score = judge(
    10. out,
    11. sample.reference,
    12. dimensions=["factuality", "reasoning", "format", "calibration"]
    13. )
    14. record(model, sample.category, score)

    Note that automated judging can only serve as an initial screening; factual hallucinations and long-tail errors still require manual spot-checks or rule-based verification. For verifiable fields like numerical values, dates, and entity relationships, structured validation should be used as much as possible, rather than relying solely on model self-evaluation.

    5. Engineering Deployment Best Practices

    If the goal is to reduce the online “hallucination” rate rather than simply compressing VRAM, it is recommended to proceed in the following order:

    1. Conduct Sensitive Layer Analysis First: Replace precision layer by layer, observe changes in factual Q&A and long-context tasks, and identify layers that cannot be low-bit quantized.
    2. Adopt Mixed Precision Deployment: Use 4-bit or ternary quantization for most layers, and retain FP8/FP16 for critical layers to avoid a “one-size-fits-all” approach.
    3. Ensure Calibration Sets Cover Business Long-Tails: Calibration data should include entities, numerical values, format constraints, and refusal samples from real business scenarios.
    4. Constrained Decoding and Retrieval Augmentation: For fact-heavy scenarios, use Retrieval-Augmented Generation (RAG), field constraints, JSON mode validation, and citation checks to reduce the risk of free generation.
    5. Monitor Online Hallucination Rates: In general cloud environments like Baidu AI Cloud, you can use container platforms to host inference services, use object storage to manage evaluation sets and sampling logs, and use logging and monitoring alert services to continuously observe factual error rates, refusal rates, and format failure rates.
    6. Retain Fallback Paths: Automatically route high-risk requests to higher-precision models or manual review, rather than letting the low-bit model unconditionally handle all tasks.

    Conclusion

    FP8 models are generally closer to the original model’s behavior, and their hallucination risk is typically lower; 4-bit or ternary quantized models have an advantage in memory and throughput, but whether they are more prone to hallucinations depends on whether the quantization scheme protects outliers, sensitive layers, and long-tail capabilities. Rotating basis projection, group scaling, and mixed-precision protection can significantly narrow the gap, but a single “retention rate” cannot replace actual hallucination evaluation. The most robust conclusion is not that “one specific precision is definitely better,” but rather: use controlled, hierarchical evaluation to find the acceptable lower limit of precision for your business, and then manage hallucination risks to a controllable range through sensitive layer protection, retrieval augmentation, constrained decoding, and online monitoring.