qat-q4_0-unquantized) into Q4_K_M, Q5_K_M, Q8_0, or IQ4_XS unless you specifically run Q4_0. A 57-page Zenodo study (DOI:10.5281/zenodo.24665150) proves Gemma 3 1B QAT is worse than the unprepared base model under 20 of 30 real quantizers, while zero-drift diagonal rescaling (ZD-FRD) improves all 13 tested models by up to 2.12x at zero size or speed cost.
The catch: NoemaAI open-sourced the evaluation harness and three 2B-class prepared models, but withheld the ZD-FRD training code as a commercial service, and never tested models above 8B parameters.
Open-weight models almost never run in BF16 on user hardware. Within days of launch, community quantizers convert one floating-point checkpoint into dozens of llama.cpp k-quants, i-quants, Apple MLX weights, bitsandbytes NF4/FP4 loads, and HQQ builds. To curb quantization loss, labs now publish Quantization-Aware Training (QAT) weights targeting one grid, notably Google’s Q4_0 QAT releases for Gemma 3 and Gemma 4.
Armin Stamate (NoemaAI / UCLA) and Jacob Aronow (NoemaAI / Stanford) audited that practice across 30 real exporters (22 pinned llama.cpp formats with and without importance matrices plus 8 bitsandbytes, HQQ, and MLX settings), spending $1,792 across 700 cloud GPU-hours to show why single-format QAT breaks elsewhere and how zero-drift preparation fixes it.
The Core Trick in Plain English
Exporting Google’s Gemma 3 1B QAT checkpoint to Q4_K_M creates more than double the error of quantizing the plain original model (0.204 nats vs. 0.090 nats KL divergence). Why?
The paper splits total export KL divergence (Ef) via an exact three-term Bregman identity: unquantized drift (D) plus self quantization error (Sf) plus a signed interaction term (Cf). Measured against its own BF16 weights, Google’s QAT checkpoint quantizes cleanly: its Q4_K_M self error is 0.045 nats, half the original’s 0.090. The damage comes from D: QAT pushed the unquantized model 0.138 nats away from the original Gemma 3 1B.
Under Q4_0 alone, rounding pushes predictions back toward the original model (Cf = -0.215 nats), pulling total error down to 0.068 nats so the quantized Q4_0 file sits closer to the original than QAT’s own BF16 weights. Every other quantizer lacks that cancellation and inherits the full 0.138 nats drift tax. On Gemma 4 E2B and E4B QAT, drift grows to 0.292 and 0.200 nats while Q4_0 cancellation vanishes (Cf = -0.012 and 0.001), leaving unquantized Gemma 4 E4B QAT 7.0 points worse on strict IFEval than the original (95% CI [-10.5, -3.9]).
NoemaAI’s fix: Zero-Drift Format-Randomized Distillation (ZD-FRD). Instead of moving weights and creating drift, ZD-FRD freezes all original weights and trains <0.02% exact diagonal rescaling pairs at three cancel points per Transformer block:
- Multiply rows of gated MLP
up_projby a scale and divide matching columns ofdown_projby the exact same scale. - Divide an RMSNorm gain vector by a scale and multiply reading projection columns (
Q/K/Vorgate/up) by that scale. - Multiply rows of
v_projand divide correspondingo_projcolumns (an automatic pre-check disables any transform an architecture rejects, such as post-norm in OLMo or scale-free value norms in Gemma 4).
Folding those canceling pairs back into BF16 weights preserves the original full-precision function (<=0.00012 nats drift across all 13 base models, pure BF16 rounding), while taming channel outliers inside quantization blocks. ZD-FRD trains the scales for 1.4 to 13.1 hours on one 48 GB L40S GPU over 25M tokens of FineWeb-Edu text, sampling 21 row-grouped integer/NF4 formats and differentiable llama.cpp k-quants with group-DRO reweighting and half-strength AWQ initialization.
Verified Benchmark Audit
First, Google’s official Gemma QAT releases across llama.cpp build 19ff817f (100 WikiText-2 windows, KL divergence in nats against the original BF16 model; lower is better, Tables 1 and 2):
| Export Format | Gemma 3 1B Orig | Gemma 3 1B QAT | Gemma 4 E2B Orig | Gemma 4 E2B QAT | Gemma 4 E4B Orig | Gemma 4 E4B QAT |
|---|---|---|---|---|---|---|
| BF16 (Unquantized) | 0.000 | 0.138 | 0.000 | 0.292 | 0.000 | 0.200 |
| Q8_0 | 0.004 | 0.140 | 0.008 | 0.293 | 0.005 | 0.202 |
| Q5_K_M | 0.054 | 0.160 | 0.110 | 0.322 | 0.086 | 0.218 |
| Q4_K_M | 0.090 | 0.204 | 0.366 | 0.340 | 0.283 | 0.230 |
| IQ4_XS | 0.156 | 0.232 | 0.307 | 0.404 | 0.259 | 0.272 |
| Q4_0 (QAT Target) | 0.262 | 0.068 | 0.789 | 0.329 | 0.448 | 0.239 |
| Q3_K_M | 0.195 | 0.189 | 1.111 | 0.666 | 1.230 | 0.411 |
Next, ZD-FRD (one fixed recipe applied unchanged) versus Google QAT and Huawei’s training-free Pre-SINQ (Tables 4 and 6; geometric-mean KL advantage across 30 exporters; above 1.00x beats original):
| Model & Method | BF16 Drift | All 30 | 4-bit | <=3-bit | imatrix | Libraries | Improved |
|---|---|---|---|---|---|---|---|
| Qwen3 1.7B (ZD-FRD) | 0.0001 | 2.12x | 2.29x | 1.99x | 1.30x | 2.75x | 30 / 30 |
| Qwen3 8B (ZD-FRD) | 0.0001 | 1.84x | 2.18x | 1.59x | 1.15x | 2.67x | 28 / 30 |
| Qwen3 8B (Pre-SINQ, 5k rows) | 0.0001 | 1.47x | 1.40x | 1.56x | 1.11x | 1.15x | 24 / 30 (bnb DQ: 0.08x) |
| Gemma 3 1B-it (ZD-FRD) | 0.0002 | 1.47x | 1.46x | 1.46x | 1.20x | 1.66x | 30 / 30 (beats QAT 29/30) |
| Gemma 3 1B-it (Google QAT) | 0.1380 | 0.72x | N/A | N/A | N/A | N/A | 10 / 30 (20 regressions) |
| Gemma 4 E2B-it (ZD-FRD cap) | 0.0004 | 1.26x | 1.19x* | 1.20x* | 1.13x* | 1.31x | 29 / 30 (uncapped 1.19x) |
| Gemma 4 E2B-it (Google QAT) | 0.2920 | 0.92x | N/A | N/A | N/A | N/A | 17 / 30 (13 regressions) |
| Qwen3.5 2B (ZD-FRD hybrid) | 0.0001 | 1.15x | 1.15x | 1.14x | 1.05x | 1.18x | 29 / 30 |
| OLMo 3 7B (ZD-FRD post-norm) | 0.0000 | 1.04x | 1.03x | 1.06x | 1.00x | 1.10x | 25 / 30 |
Gemma 4 E2B-it tier columns show Table 4 uncapped values; capping DRO family weight at 0.25 lifted All-30 from 1.19x to 1.26x and libraries from 1.18x to 1.31x.
Lower KL yields real benchmark gains. On Qwen3-8B (lm-evaluation-harness 0.4.13, Table 6), a Q3_K_M export (4.12 GB) drops the original from 76.9% to 73.3% on MMLU and 79.7% to 76.5% on HellaSwag. ZD-FRD at the exact same file size reaches 75.3% MMLU (+2.0 pts) and 78.5% HellaSwag (+1.9 pts), recovering 55% and 62% of the loss. On native llama-server IFEval (541 prompts, Table 5), Gemma 4 E2B-it ZD-FRD scores 77.3% at Q4_0 and 77.8% at Q4_K_M, ahead of both the original (74.9% / 77.3%) and Google QAT (75.4% / 75.6%). Because only folded weight values change, H100 llama-bench speed stays within 1% of the original (254 vs. 253 tok/s at Q4_K_M, 302 vs. 301 tok/s at IQ4_XS).
What the Authors Downplayed
- The ZD-FRD training code is closed-source. The Apache-2.0
noemaai-labs/quantreadyrepo ships only the verification harness,.npzfactors, and rebuild script. Its README explicitly states that the preparation code is withheld (“To have a model prepared, reach NoemaAI through noemaai.com”). Unlike open methods such as Pre-SINQ or AWQ, developers cannot prepare custom checkpoints without reimplementing Section 4 themselves. - Scale stops at 8B dense models, with zero MoE tests. Every model sits between 0.6B and 8B parameters (plus one 2B hybrid Qwen3.5). Qwen3-8B already took 13.1 hours on a 48 GB L40S using micro-batches and self-distillation. Behavior on 32B-70B dense or sparse MoE models remains untested.
- imatrix GGUFs and post-norm models see minimal gains. Importance-matrix quantizers already weight columns by activation energy, so ZD-FRD adds just 0.97x to 1.30x on imatrix formats. Those formats account for 27 of the 28 below-parity regressions across the 13 base models (dipping to
0.88xon Granite 3.3 2BIQ2_M-imat). Post-norm architectures like OLMo 3 7B disable both RMSNorm transforms, leaving a thin 1.04x overall gain. - Library tests ran inside PyTorch, and
Q4_0IFEval is noisy. The headline 2.67x-2.75x library gains measure quantize/dequantize hooks inside one PyTorch harness rather than native MLX Metal or bitsandbytes runtime paths. OnQ4_0, single-seed Gemma 3 1B-it IFEval scores swung from-5.4to+2.4points across seeds even as KL improved consistently.
Who should skip this right now: Anyone running Q6_K/Q8_0 or well-calibrated imatrix 4-bit exports of 14B-70B models gets little direct utility until larger prepared checkpoints or an open trainer arrive.
Can You Run It Today?
| Artifact | Status | Details & Primary Link |
|---|---|---|
| Open-Access Paper (57 pp.) | Live (CC-BY-4.0) | DOI:10.5281/zenodo.24665150 (full 30-exporter tables, KL decomposition, $1,792 compute ledger). |
| Verification & Rebuild Repo | Live (Apache-2.0) | github.com/noemaai-labs/quantready (llama_eval.py, real_exporters.py, per-window JSONs, .npz factors, qres/rebuild.py). |
| Prepared Checkpoints | Live (3 Models Only) | Noema QuantReady HF Collection (Gemma 4 E2B-it, Gemma 4 E2B, Qwen3.5 2B Base in BF16 and GGUF). |
| ZD-FRD Preparation Trainer | Closed / Commercial | Withheld from repository; custom preparation requires contacting NoemaAI. |
Even without the trainer, this Zenodo audit hands local AI builders an immediate free win: never download a Q4_0 QAT checkpoint to run Q4_K_M, Q5_K_M, IQ4_XS, or Q8_0. Export from the original BF16 model instead, and reserve Q4_0 QAT builds strictly for Q4_0.