[GH-ISSUE #5291] [Benchmark] Qwen3.8-Flash-Next 4-bit fidelity: UD-IQ4_XS beats the 33%-larger UD-Q4_K_XL (0.1.56, RTX 5080) #3157

Closed
opened 2026-11-07 14:38:31 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ShaggyDragon on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5291

What did you measure, and what did you get

Fidelity of the two 4-bit recipes for Qwen3.8-Flash-Next that the launcher accepts, against the IQ3_S
production brain, on the quant_quality v1 teacher-forced set (4,995 positions: 999 each of code / docs /
english / multilingual / agent). Engine 0.1.56, image 0.2.10-cuda13, RTX 5080 16 GB, one arm at a time with
production stopped.

Headline: UD-IQ4_XS is better calibrated than both IQ3_S and the 33%-larger UD-Q4_K_XL, and the largest pack is
the worst of the three.
Bytes are not a proxy for fidelity on this model.

arm ppl Δppl vs ref mean logp of true token mean KL KL p99 top-1 vs ref bytes
IQ3_S (ref) 4.057 — −1.4004 — — 100% 83.60 GB
UD-IQ4_XS 3.941 −2.86% −1.3714 0.1163 1.51 87.53% 93.67 GB (+12.0%)
UD-Q4_K_XL 4.087 +0.74% −1.4079 0.1409 2.01 86.83% 111.33 GB (+33.2%)

IQ4_XS improves ppl in all five segments (code −3.4%, docs −3.1%, english −0.4%, multilingual −0.6%,
agent −6.6%); Q4_K_XL regresses english (+2.0%) and agent (+2.6%).

Effect size, honestly. Paired exact McNemar on raw top-1 correctness: IQ4_XS vs Q4_K_XL 130 vs 119 discordant
positions (p = 0.53), IQ4_XS vs ref 139 vs 158 (p = 0.30), Q4_K_XL vs ref 146 vs 176 (p = 0.11). The argmax
difference is inside noise at this sample size, so this is not an accuracy claim. The robust signal is
calibration: the log-probability of the true token moves −2.86% / −3.58% (perplexity terms) in IQ4_XS's favour
against ref / Q4_K_XL, with p99 KL 1.51 vs 2.01.

The part that may be interesting for the engine

Three mechanisms, in the order the data supports them:

  1. Pack bytes do not say where the precision went. Dynamic recipes assign per-tensor types, so "XL" is a
    larger overall allocation, not uniformly higher bits; the extra 17.6 GB did not buy fidelity on these corpora.
  2. Quantiser family: direction vs magnitude. IQ4_XS is importance-weighted lattice/codebook (preserves the
    shape/direction of a weight vector); Q4_K_XL is scalar block quantisation with per-superblock scales and mins
    (preserves magnitude with coarser direction). A routed MoE layer sums 512 experts weighted by the router, so
    direction error compounds across the sum in a way magnitude error does not.
  3. The pack build's own conversion error ranks these two arms the wrong way round: max |err| 0.0286 for
    IQ4_XS (winner) vs 0.0144 for Q4_K_XL (loser). Converted dense tensors are ~460 of ~1,079; the routed
    experts stay native. The expert recipe decides, which is where these two packs differ most.

Also worth recording: the IQ3_S reference leg reproduced ppl 4.057 exactly in two separate windows, so
teacher-forced scoring here is deterministic across runs — a re-scored reference is a cheap sanity check rather
than a requirement.

Reproduction status

passed — full run, three legs, ~12 minutes of GPU time in a window with production stopped (the arms cannot
load beside a resident engine on a 16 GB card: 84 of 15839 MiB free when the scoring buffer wanted 147 MiB).
Method, per-segment tables, limits and the exact commands are in the results folder:

bench/results/2026-11-05-flash-next-4bit-fidelity/ — PR #5290 —
README.md, results.json,
compare-4bit-20261105-2014.json, quality_window.sh, paired_compare.py.

What this does not establish

  • No Q8_0 / BF16 anchor, so fidelity is relative to IQ3_S plus absolute perplexity on this text, not distance to
    the source model.
  • One measured pass per arm; five fixed corpora; no long-context, tool-calling or multi-turn coverage.
  • Decode cost of +12.0% bytes is not measured here and decides adoption, not fidelity. That bracket is next.
Originally created by @ShaggyDragon on GitHub (Nov 5, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5291 ## What did you measure, and what did you get Fidelity of the two 4-bit recipes for **Qwen3.8-Flash-Next** that the launcher accepts, against the IQ3_S production brain, on the `quant_quality` v1 teacher-forced set (4,995 positions: 999 each of code / docs / english / multilingual / agent). Engine **0.1.56**, image `0.2.10-cuda13`, RTX 5080 16 GB, one arm at a time with production stopped. Headline: **UD-IQ4_XS is better calibrated than both IQ3_S and the 33%-larger UD-Q4_K_XL, and the largest pack is the worst of the three.** Bytes are not a proxy for fidelity on this model. | arm | ppl | Δppl vs ref | mean logp of true token | mean KL | KL p99 | top-1 vs ref | bytes | |---|---|---|---|---|---|---|---| | IQ3_S (ref) | 4.057 | — | −1.4004 | — | — | 100% | 83.60 GB | | **UD-IQ4_XS** | **3.941** | **−2.86%** | **−1.3714** | 0.1163 | 1.51 | 87.53% | 93.67 GB (+12.0%) | | UD-Q4_K_XL | 4.087 | +0.74% | −1.4079 | 0.1409 | 2.01 | 86.83% | 111.33 GB (+33.2%) | IQ4_XS improves ppl in **all five segments** (code −3.4%, docs −3.1%, english −0.4%, multilingual −0.6%, agent −6.6%); Q4_K_XL regresses english (+2.0%) and agent (+2.6%). **Effect size, honestly.** Paired exact McNemar on raw top-1 correctness: IQ4_XS vs Q4_K_XL 130 vs 119 discordant positions (p = 0.53), IQ4_XS vs ref 139 vs 158 (p = 0.30), Q4_K_XL vs ref 146 vs 176 (p = 0.11). The argmax difference is **inside noise** at this sample size, so this is not an accuracy claim. The robust signal is calibration: the log-probability of the true token moves −2.86% / −3.58% (perplexity terms) in IQ4_XS's favour against ref / Q4_K_XL, with p99 KL 1.51 vs 2.01. ## The part that may be interesting for the engine Three mechanisms, in the order the data supports them: 1. **Pack bytes do not say where the precision went.** Dynamic recipes assign per-tensor types, so "XL" is a larger overall allocation, not uniformly higher bits; the extra 17.6 GB did not buy fidelity on these corpora. 2. **Quantiser family: direction vs magnitude.** IQ4_XS is importance-weighted lattice/codebook (preserves the shape/direction of a weight vector); Q4_K_XL is scalar block quantisation with per-superblock scales and mins (preserves magnitude with coarser direction). A routed MoE layer sums 512 experts weighted by the router, so direction error compounds across the sum in a way magnitude error does not. 3. **The pack build's own conversion error ranks these two arms the wrong way round**: `max |err| 0.0286` for IQ4_XS (winner) vs `0.0144` for Q4_K_XL (loser). Converted dense tensors are ~460 of ~1,079; the routed experts stay native. The expert recipe decides, which is where these two packs differ most. Also worth recording: the IQ3_S reference leg reproduced ppl **4.057 exactly** in two separate windows, so teacher-forced scoring here is deterministic across runs — a re-scored reference is a cheap sanity check rather than a requirement. ## Reproduction status **passed** — full run, three legs, ~12 minutes of GPU time in a window with production stopped (the arms cannot load beside a resident engine on a 16 GB card: `84 of 15839 MiB free` when the scoring buffer wanted 147 MiB). Method, per-segment tables, limits and the exact commands are in the results folder: `bench/results/2026-11-05-flash-next-4bit-fidelity/` — [PR #5290](https://github.com/Niko1221/Strata/pull/5290) — `README.md`, `results.json`, `compare-4bit-20261105-2014.json`, `quality_window.sh`, `paired_compare.py`. ## What this does not establish - No Q8_0 / BF16 anchor, so fidelity is relative to IQ3_S plus absolute perplexity on this text, not distance to the source model. - One measured pass per arm; five fixed corpora; no long-context, tool-calling or multi-turn coverage. - **Decode cost of +12.0% bytes is not measured here** and decides adoption, not fidelity. That bracket is next.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report.

The Strata project

<!-- gh-comment-id:6658789670 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thank you for the benchmark. We have collected these results for the benchmarks page on the Strata website, so we are closing this here. If you measure again, for example on 0.2.11, you are welcome to open a new report. The Strata project
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3157
No description provided.