4-bit Quantized Small Models vs FP8 Large Models: Which Hallucinates Less?

    A long-running debate in local LLM deployment is whether to pick a small model with 4-bit quantization or a larger model with FP8 quantization. This article breaks down where quantization noise comes from, how it gets amplified into hallucination during decoding, and what actually determines output reliability across the tradeoff of model size, parameter precision, and task difficulty. It compares three typical configurations, walks through a step-by-step framework for building your own evaluation set and choosing a setup, and covers deployment-time tuning such as decoding parameters, constrained decoding, KV cache precision, mixed precision, and model routing. The takeaway is that there is no universal winner: reliability depends on your scenario, and the real moat is turning hallucination from guesswork into a measurable, monitorable, rollback-able engineering metric.

    1. Background: One Quantization Label, Two Very Different Models

    A long-running debate in local LLM deployment is whether to pick a small model with 4-bit quantization or a larger model with FP8 quantization. The former is represented by lightweight, high-throughput, low-latency models and sparse Mixture-of-Experts (MoE) models. The latter is often assumed to be the “higher precision” choice, simply because FP8 uses twice the bit-width of 4-bit.

    Quantization compression works, but a compressed model does not always produce stable output. Many developers have run into cases where a model answers off-topic, repeats the same paragraph over and over, or just makes things up. More confusingly, quantized models often drop only slightly on standard QA benchmarks yet still “fall apart” in real use. That is because benchmark scores reflect average capability, while hallucination is a low-probability, high-impact tail failure, and the two are not the same thing.

    This article does not take sides. Instead, it answers three questions:

    • How does quantization noise arise, and how does it get amplified into hallucination?
    • In the tradeoff between model size, parameter precision, and task difficulty, what is the key variable that determines output reliability?
    • How can you carry out evaluation, model selection, and tuning with practical, actionable methods?

    2. Defining the Problem: What Counts as “Hallucination”

    Before discussing, we need to break “hallucination” into a few observable, measurable failure types:

    1. Factual hallucination: Output looks plausible but conflicts with facts, documents, or context, for example fabricating data, citing nonexistent sources, or misattributing information.
    2. Coherence degradation: During generation you see repetition loops, sudden topic drift, fragmented sentences, or even garbled output, the classic signal that “the model is broken.”
    3. Structural collapse: When asked to return JSON, a table, or code, you get unclosed brackets, missing fields, escaping errors, or code that will not compile.
    4. Instruction drift: Over long instructions or multi-turn conversations, the model gradually forgets constraints, for example dropping “answer in three points” or “do not fabricate,” or forgetting a role the user set earlier.

    These four failure types have different root causes. Factual hallucination depends mainly on the model’s own knowledge and reasoning ability; quantization generally amplifies it rather than creating it from nothing. The latter three are directly tied to the numerical stability of the inference process, and quantization-induced perturbations are more likely to push them from “occasional” to “frequent.”

    So, to compare which quantized version “hallucinates less,” you must distinguish scenarios:

    • Chit-chat, rewriting, summarization: mainly about coherence;
    • Tool calling, structured extraction, code generation: mainly about structural stability;
    • Long-document QA, knowledge consultation: mainly about factual consistency;
    • Long instructions, multi-turn tasks: mainly about instruction following.

    3. Where Quantization Noise Comes From

    3.1 Common Precision Tiers

    Quantization means reducing the number of bits needed to represent each weight. Common precision tiers fall roughly into four categories:

    Precision tier Typical bit-width Weight representation Main cost
    High-precision baseline BF16 / FP16 16-bit float Highest memory footprint; usually the quality reference
    Medium-high precision FP8 8-bit float, shared exponent per block Only 2-3 mantissa bits; narrow-range values need care
    Integer quantization INT8 / 4-bit Integer quantization, shared scale and zero-point per group 4-bit has only 16 dynamic levels; sensitive to outliers
    Ultra-low bit Ternary schemes like 1.58-bit Weights limited to a few values such as {-1, 0, +1} Weakest representational power; relies on specialized algorithms to compensate

    It is worth emphasizing that floating-point and integer quantization have different error characteristics. FP8 is a floating-point format: every value carries relative precision, so it handles values of very different magnitudes reasonably well. An integer format with a uniform scale would crush small weights onto the same grid point, which is why 4-bit and below almost always need group-wise scaling or a nonlinear transform first.

    3.2 Outliers: The Biggest Enemy of Ultra-Low-Bit Quantization

    Outliers are common in deep neural networks: a very small number of weight or activation channels have values one or two orders of magnitude larger than the others. They are rare, but they are often closely tied to critical computation paths such as the residual stream, attention scores, and gating.

    Take 64 weights where one value is 8 and the rest fall between -0.5 and 0.5. If the whole group shares one scale factor, the scale can only be 8/7 ≈ 1.14. Then all the normal weights quantize to just -1, 0, or +1, losing more than half the precision. With ternary quantization, the normal weights might even get flattened to 0 entirely.

    Every layer of a deep network accumulates the error from the layer before it. Once the attention matrix goes haywire, the chain of thought that follows drifts further and further off. Externally, this shows up as off-topic answers, repetition, and hallucination.

    3.3 Four Main Mitigation Approaches

    The industry has developed four main lines of thinking to address this.

    First: group-wise quantization. Split the weights into several small groups and compute a separate scale factor for each (4-bit schemes usually add a zero-point too). Within a group the dynamic range is close, so the scale fits the value distribution more tightly.

    Second: activation-aware scale migration. First, statistics over a large calibration dataset assess how important each weight channel is to the output. Important channels keep higher effective precision, and unimportant ones get compressed harder, which is like spending the limited bit budget where it counts. Some methods also migrate the quantization difficulty in activations onto weights that are easier to handle, via an equivalent transformation.

    Third: error-compensation-based column-wise quantization. Quantize the weights column by column. After quantizing each column, immediately compute its impact on the output and distribute that compensation across the columns not yet quantized. This way, quantization errors do not simply accumulate; they are partly offset in later columns.

    Fourth: orthogonal-rotation-based smoothing, the rotation algorithms. Multiply each layer’s hidden states and weight matrix by an orthogonal matrix, which is like viewing the same data in a new set of coordinate axes. Ideally, the directions where outliers concentrate become misaligned with the new axes, the numerical energy gets redistributed across all dimensions, and the dynamic range converges.

    1. Original: w = [0.02, -0.05, 0.01, 7.80, 0.03, ...] ← one dimension is an outlier; the whole group must accommodate it
    2. │ orthogonal rotation R (RᵀR = I, leaves all inner-product results unchanged)
    3. Rotated: w' = [0.91, -1.13, 0.74, -1.68, 1.02, ...] ← energy spread out, magnitudes within the group are similar
    4. │ ternarize + group-wise scaling
    5. Quantized: q ≈ [-1, -1, +1, -1, +1, ...] ← every weight keeps useful information

    These methods usually fold the rotation matrix into the adjacent normalization and linear layers, so no extra matrix multiplication is added at inference time. For zero overhead, you can use Hadamard-type transforms, which perform the rotation in O(d log d) time via fast transform algorithms.

    It is precisely the combination of these approaches, group-wise scaling plus rotation-based smoothing, that first gave ultra-low-bit models practical value. State-of-the-art ultra-low-bit schemes can compress weights to about one-tenth of full precision, averaging just over one bit per weight, while retaining a high level of capability on aggregate benchmarks. Even so, these schemes still need validation against specific tasks and evaluation sets; you cannot judge by a single score alone.

    4. Mechanism Analysis: How Quantization Noise Gets Amplified into Hallucination

    Once you understand where the noise comes from, look at how it evolves step by step into wrong output. There are three key mechanisms here.

    4.1 Decoding: Low-Confidence Positions Are Easiest to Overwrite

    Each time the model generates a token, it is essentially answering a multiple-choice question. After quantization, the output distribution at each position shifts. Whether that shift changes the final result depends on the “vote margin” between the current candidates.

    When the top token’s score is clearly ahead, say confidence above 0.9, a slight perturbation is almost impossible to change the ranking. When several candidates are close, say the top two differ by a few percentage points, noise can flip the ranking.

    This explains a common phenomenon: the same model behaves normally on simple tasks but starts going off the rails as soon as it hits multi-step reasoning or edge-case generation, because the further along you go, the more low-confidence positions there are.

    1. import math
    2. def flip_risk(logits):
    3. """Estimated probability that quantization changes the top-1 token (illustrative code)
    4. The Gumbel-max trick shows that the probability the original top-1 still wins
    5. under noisy ranking is:
    6. P(keep) = exp(l1) / Σ exp(li)
    7. where li are the original scores for each class, and k is a noise-intensity
    8. parameter; the larger the quantization error, the larger k.
    9. """
    10. top1 = max(logits)
    11. denom = sum(math.exp(k * l) for l, k in zip(logits, noise_scale))
    12. keep = math.exp(top1 * noise_scale[logits.index(top1)]) / denom
    13. return round(1.0 - keep, 4) # probability the top-1 token gets replaced

    In practice, you can use this for a simple screening: decode the same batch of prompts with the high-precision version and count positions where the top-token probability is below 0.7. Tasks concentrated at these “low-confidence hotspots,” such as long-chain reasoning and open-ended writing, are exactly where quantized output quality degrades most noticeably.

    4.2 Generation: Autoregressive Amplification of Error

    Autoregressive generation is a process of “generate, then feed the output back as input.” That makes it inherently sensitive to perturbations.

    • A single token shift at position t puts the wrong token into the context;
    • The model then continues to build around that wrong token, and the error gets progressively “rationalized”;
    • If the error lands on a key node of the chain of thought, say writing “on the contrary” instead of “therefore,” the subsequent reasoning can reverse entirely.

    This is like the “butterfly effect” in chaotic systems: a tiny difference in initial conditions gets amplified level by level along the reasoning chain. Overall metrics like perplexity (PPL) only reflect average error and can hardly detect this kind of local failure, so offline evaluation must be designed around specific tasks.

    4.3 Long Context: KV Cache Is Another Risk Chain

    In chat scenarios, weights are usually loaded only once, but every decoding step also depends on the KV cache, which grows with the conversation. Many inference setups also quantize the KV cache to reduce memory footprint, for example converting it to 8-bit or 4-bit integer representation. The cache itself contains many outliers and runs into the same problem described in Section 3.

    In long-context scenarios, errors stack in two directions:

    • Along the sequence direction, accumulating as the context gets longer;
    • Along the generation direction, propagating as the chain of thought advances.

    This explains why in long-document QA “later answers are worse than earlier ones,” and why the same model gets progressively “less reliable” over a long conversation.

    4.4 A Small Model vs a Large Model: Different Error Baselines

    Combining the three mechanisms above, we can roughly understand the probability that a quantized model “hallucinates” as:

    P(error) ≈ the model’s own error rate × (1 + quantization amplification factor × task difficulty factor)

    The key here is that the two models multiply by different amplification factors.

    Larger dense models usually have more abundant redundant representations and stronger context understanding, so even when some representations are compressed, they can compensate using other dimensions. It is like a higher-resolution photo: still clear after you shrink it.

    Small-parameter MoE models activate only a subset of experts per token, so the representation is more “compact” and more sensitive to perturbations. Concretely:

    • More sensitive to prompt noise. Slight changes in wording can change the expert routing result, so output quality varies. Routing itself often depends on quantized linear layers; once the assignment tilts toward the wrong expert, output quality drops noticeably.
    • Narrower knowledge “breadth.” Coverage of long-tail knowledge in the training data is limited, so on slightly specialized questions the model is more likely to fabricate rather than admit “I do not know,” as a large model would.
    • Generative modalities such as text-to-image. Output tolerates numerical error less, so quantization artifacts show up more easily.

    5. Side-by-Side Comparison: Three Typical Configurations

    Let us return to the original comparison. The two candidates in the question actually represent three typical configurations:

    • Config A: a small-parameter model (especially MoE architecture) with 4-bit quantization;
    • Config B: a medium-scale dense model (e.g., 20-30 billion parameters) with FP8 quantization;
    • Config C: a model of the same scale using a ternary / 1.58-bit scheme. Because of its extreme compression, it is often deployed in very resource-constrained environments.
    Dimension Config A: small model + 4-bit Config B: large model + FP8 Config C: large model + ternary (1.58-bit)
    Average weight bit-width ~4-bit (incl. group scaling overhead) ~8-bit (incl. block scaling) ~1.6-1.8 bit (incl. group scaling overhead)
    30B-parameter weight size ~16-17GB ~31-32GB ~6-7GB
    Deployability on a single consumer GPU Relatively easy Needs large VRAM or multi-GPU sharding Very easy
    Output coherence Fine on simple tasks; drifts on long chains Usually the most stable Depends on algorithm quality; needs testing
    Factual consistency Limited breadth; fabricates on long-tail questions Good knowledge coverage Close to a same-scale high-precision version
    Typical risk points Expert-routing jitter, instruction drift High VRAM and cost pressure Degrades on extreme tasks; generality yet to be validated

    Note: Sizes are estimated as “parameter count × bytes per parameter,” excluding the vocabulary, positional encodings, and other components. Actual file size also depends on factors such as the quantization group size and whether embedding layers are included.

    From the table, the three configurations each have tradeoffs on three dimensions: knowledge breadth, noise resistance, and resource usage:

    • Config B is strongest on knowledge breadth and noise resistance, at the cost of VRAM and cost;
    • Config A is the most resource-efficient, but weaker on knowledge breadth and long-chain stability;
    • Config C trades lower resources for the potential to approach a large model, but this must be built on high-quality rotation smoothing and group-wise quantization algorithms, and actual performance needs validation on evaluation sets.

    6. Selection Decision: How to Choose the Right Configuration

    For a specific business, you cannot look only at parameter count, nor only at the bit-width label. Instead, work through the following four steps.

    6.1 Step 1: Define Your Business’s “Hallucination Tolerance”

    Different businesses have vastly different tolerances for error rates:

    • Customer-support QA and copy polishing can tolerate occasional errors and care more about response speed and concurrency;
    • Code generation, JSON extraction, and knowledge-base QA demand high structural stability and factual accuracy; a single error can directly cause downstream failures.

    For low-tolerance businesses, the bar for candidate configurations should be stricter.

    6.2 Step 2: Separate “Knowledge-Type” from “Structure-Type” Tasks

    • If your scenario depends heavily on broad and deep knowledge coverage, such as general QA, long-chain reasoning, and cross-domain analysis, then the capability gap that comes from parameter scale cannot be compensated by quantization precision, so prioritize large-model configurations (B or C).
    • If your scenario is mainly fixed-format structured extraction, classification, simple summarization, or templated replies, a small model with good quantization often suffices, and the 4-bit configuration (A) offers better cost-performance.

    6.3 Step 3: Check Whether the Quantization Scheme Is “Legitimate”

    Two versions both labeled 4-bit or FP8 can differ enormously in quality. When screening quantized versions, focus on checking:

    1. Whether it uses standard practices such as group-wise scaling and activation-aware scaling;
    2. Whether it provides the calibration dataset and a description of the calibration process;
    3. Whether there is a credible evaluation report that clearly lists the calibration set and evaluation set;
    4. Whether it discloses the quantization version number, toolchain, and license.

    A quantized version that only claims to be “on par with the original” is not worth trusting.

    6.4 Step 4: Build Your Own Evaluation Set Before Concluding

    The final conclusion must be validated with your own business data. Sample from real requests to build a representative test set of no fewer than 200 cases, covering normal, boundary, and adversarial inputs.

    After fixing decoding parameters and the random seed, run each candidate configuration at least 3 times and measure:

    • Structured-output validity rate;
    • Share of highly repetitive outputs;
    • Instruction-constraint compliance rate;
    • Factual error rate, judged manually or automatically.
    1. import json, re
    2. from collections import Counter
    3. def repetition_ratio(text, n=4):
    4. """n-gram repetition ratio: higher means more likely to see repetition-style degradation"""
    5. tokens = text.split()
    6. if len(tokens) < n:
    7. return 0.0
    8. grams = [" ".join(tokens[i:i + n]) for i in range(len(tokens) - n + 1)]
    9. counts = Counter(grams)
    10. dup = sum(c for c in counts.values() if c > 1)
    11. return round(dup / len(grams), 4)
    12. def json_validity(text):
    13. """Structured-output validity: take from the first { to the last } and try to parse"""
    14. start = text.find("{")
    15. if start < 0:
    16. return 0.0
    17. try:
    18. json.loads(text[start:])
    19. return 1.0
    20. except json.JSONDecodeError:
    21. return 0.0
    22. def run_suite(client, samples, repeats=3):
    23. """samples: [(prompt, must_keywords, expect_json), ...]
    24. client is a unified inference wrapper that adapts different local deployment
    25. methods and cloud model services to the same interface, keeping the comparison
    26. consistent across setups.
    27. """
    28. stats = {"repeat_fail": 0, "json_fail": 0, "instruction_fail": 0}
    29. for prompt, must_keywords, expect_json in samples:
    30. outs = [client(prompt) for _ in range(repeats)]
    31. stats["repeat_fail"] += any(repetition_ratio(o) > 0.3 for o in outs)
    32. if expect_json:
    33. stats["json_fail"] += any(json_validity(o) < 1.0 for o in outs)
    34. if must_keywords:
    35. stats["instruction_fail"] += any(
    36. not all(k in o for k in must_keywords) for o in outs
    37. )
    38. total = len(samples)
    39. return {k: round(v / total, 3) for k, v in stats.items()}

    7. Deployment Tuning: The Same Quantized Version Can Behave Differently

    After choosing a configuration, a few engineering techniques can further reduce the error rate.

    7.1 Decoding Parameters: Leave Room for Fault Tolerance

    • For factual QA and extraction tasks, use greedy decoding or a low temperature (0-0.3) to reduce randomness from sampling.
    • Creative writing can use a higher temperature, but pair it with re-prompting and post-validation.
    • Raising the repetition penalty helps with mild repetition, but if the model has already degraded severely, no sampling parameter can save it.

    7.2 Constrained Decoding: Use Rules to Guard the Structure

    For structured-output scenarios, use JSON Schema, regex constraints, or a finite state machine to force the model at the decoding stage to generate only tokens that fit the format. This turns “format correctness” from a probabilistic problem into a deterministic one and significantly reduces the probability of structural collapse.

    7.3 Long Context: Watch KV Cache Precision

    If your business involves long documents, prioritize a high-precision or mixed-precision KV cache strategy. Simple scenarios can use an 8-bit cache; for precision-sensitive scenarios, keep key layers at high precision and use low precision for others. This balances memory and stability.

    7.4 Mixed Precision: Asymmetric Gains

    Not all layers deserve equal compression. You can quantize only the matrix-multiply-dominant weight layers and keep normalization, embedding, and output layers at higher precision, since the output layer directly determines the ranking of the token distribution.

    7.5 Serving Layer: Multi-Model Routing and Quality Fallback

    • Multi-model routing: Route simple intent recognition, classification, and short queries to a small model, and complex reasoning and long-form generation to a large model. This balances cost and reliability.
    • Cloud fallback: On Baidu AI Cloud, you can use a locally deployed small model as a low-latency first layer and keep a cloud-hosted large model as a fallback. Model-inference services typically offer a unified invocation method compatible with mainstream API conventions, making it easy to switch by business rules. Object storage can be used for version management of quantized weights, while logging and monitoring/alerting services track output-quality metrics over time.
    • Output post-validation: Add a rule engine or a separate small model to double-check key outputs, for example numerical consistency, reference traceability, and format validity.

    8. Common Misconceptions

    Misconception 1: A high benchmark score after quantization means it will not hallucinate.
    Benchmark scores reflect average capability, while hallucination is a tail failure. You must look at task-level pass rates and failure distributions, for example how bad the worst 5% of samples are, not just the average.

    Misconception 2: A higher bit-width is always better.
    Bit-width determines the magnitude of quantization error, not the ceiling of the model’s capability. Which is more stable between a 4-bit small model and an FP8 large model depends on the task, model scale, and algorithm quality; there is no one-size-fits-all answer.

    Misconception 3: A 1.58-bit ternary model is just rounding weights.
    Quite the opposite: ternary schemes demand very high algorithm quality. Without rotation smoothing and fine-grained group-wise scaling, ternary quantization almost inevitably breaks the model. When you see claims like “1.7 bits on average while retaining 98%,” ask what the calibration set and evaluation set are, and whether they include long-chain tasks.

    Misconception 4: More parameters means no hallucination.
    Parameter scale can only raise the probability of “knowing the right answer”; it cannot guarantee the model will not fabricate. The root cause of factual hallucination lies in training data, alignment objectives, and retrieval mechanisms; quantization is just an amplifier, not the source.

    9. Conclusion: No Absolute Winner, Only Scenario-Matched Choices

    Back to the original question: which hallucinates less, a 4-bit quantized small model or an FP8 quantized large model?

    The answer depends on the scenario:

    • High demand for knowledge breadth, lots of long-chain reasoning, low fault tolerance: prioritize a high-precision quantized version of the large model (FP8 or higher);
    • Resource-constrained, clear task structure, throughput and cost in mind: a small model at 4-bit is often enough;
    • Ultra-low-bit schemes such as ternary are a “high-potential bet” for extremely resource-constrained cases, but be sure to validate with real business data before going live.

    Whichever you choose, the real moat for landing local LLMs is turning “hallucination” from guesswork into a measurable, monitorable, rollback-able engineering metric. Concretely: build an evaluation set, standardize the comparison, use constrained decoding, add output fallbacks, and monitor continuously. That is far more practical than arguing about “which quantization version is more magical.”