Kintsugi: Find and Repair Quantization Damage Where Tasks Break, Not Where Averages Look
Low-bit quantization of large language models is usually tuned and reported by an average error, such as perplexity or the KL divergence to the full-precision model. We show, on a 27B dense hybrid model at 2.47 bits per weight, that average error does not rank bit maps by task quality: none of our five bit maps with 7-11 % lower KL than the published allocation could replace it. The method did not find a better bit map than the published allocation; what this paper shows is damage that average error hides, an instrument that measures it, and a protocol that kept our own claims honest. On our recall gate two lost a fact 117k tokens back (one also lost a code copy), a third failed only on one fragile code-copy item (as two baselines did), and the other two were worse on long chat documents and gave no agent gain on fresh seeds of the standard benchmark split. On 20 held-out documents with 480 recall items and a short-distance twin of each long item, one of six lower-KL maps (our five and a uniform baseline) lost long-range recall margin: about 1.1 nats on average at 117k-245k tokens and none at short distance, with no wrong answers; a rerun on one machine confirmed it. With teacher-forced margins we traced the loss of one gate item to a band of MLP up-projections that KL rates as the cheapest place to remove bits. That band does not explain the held-out loss: a second map with the same change kept its margin there, and more bits in other groups restored the item. In the other direction, KL found general-text damage that our task probes missed. We describe a simple discipline, which we call the Kintsugi method: diagnose with task probes next to KL at the level of layer groups and runtime settings, repair only the damaged spot, gate every change with lines written before the run, and confirm on data that was not used to choose. We applied the last step to our own claims, and two did not hold on fresh seeds of the same split. A KL-chosen map that lost 17 of 336 agent task-runs on the selection seeds (p = 0.019) was level on two fresh seeds of that split (296 vs 292, p = 0.68); on the harder test_challenge split, which no choice used, it lost 60 of 834 task-runs (610 vs 670, p = 1.3e-5, on both seeds). Our shipped 27B build led BF16 by 21 task-runs on the selection seeds; on two pairs of fresh seeds the gap was +1 and -2. With four candidates on the second fresh pair the selection effect was +13.3 task-runs, bootstrap interval [+0.0, +27.0], so we cannot separate it from seed noise. On a looped mixture-of-experts model (Inkling 2 Mini), the same steps gave a 9.07 GB build with 27.3 % lower KL than a public 2-bit build of the same model at a smaller size, with full needle and code-copy recall up to 245k tokens on one 12 GB GPU, and an AppWorld score level with the official weights (NVFP4 / MXFP8, run exactly) on four fresh seeds (596 vs 592 of 672 task-runs, p = 0.64). So on both a dense and a looped-MoE model the 12 GB build is not significantly different from its reference weights on agent work (BF16; the official release), within a resolution of about 15 task-runs of 336 and 14 of 672 (the smallest difference the sign test detects at the observed number of discordant pairs). On the same model the harness gates also caught an engine fault (HTTP 500s in four agent harnesses, from one missed upstream code hunk) that the KL gate did not see: the faulty and the fixed build had the same KL. We did not invent the quantizer, the trellis codec, or the 27B bit allocation; the contribution is the diagnose-repair-confirm loop and evidence that it changes what ships and what is claimed.
Authors
- Cary Palmer
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-23
- DOI
- https://doi.org/10.5281/zenodo.24455575
- Primary Topic
- Advanced Neural Network Applications
- Type
- preprint