Selective Int8 Quantization for Mixture-of-Experts LLMs
MoE models activate few parameters per token but must keep every expert in memory, and standard post-training quantization treats all layers as equally important. I built a pipeline that scores each layer’s quantization tolerance with five signals — KL divergence, top-1 disagreement, choice-flip rate, log-likelihood MAD and perplexity delta — then quantizes only the tolerant safe band. On Qwen3-30B-A3B that band is 21 of 48 layers; on Qwen3.5-35B-A3B it is 10 of 40.
Multiple-choice benchmarks could not tell the two apart. Selective and full int8 both score 91.5% on GSM8K, and perplexity differs in the fourth decimal. So I measured something else: fidelity to the unquantized model as ground truth — KL divergence over 19,200 teacher-forced token positions, expert-routing overlap, and tokens-until-divergence in free-running generation.
The benchmark sees nothing. Everything that looks at what the model actually does sees a factor of two to two and a half. Safe band wins all twelve fidelity metrics on both architectures.
To rule out the obvious objection — that quantizing fewer layers trivially drifts less — I ran a control where every arm quantizes exactly 21 of 48 layers and only the choice of layers changes: the selected band, three random draws, and the 21 most-sensitive layers. The selected band beat count-matched random on 12 of 12 metrics. Paired over the same 150 prompts with 4,000 bootstrap resamples, exact top-k set match improves by +6.52 points, 95% CI [+6.31, +6.73], winning on 150 of 150 prompts.
What this does not yet show
All-layer int8 is still the better memory trade. It saves 15.6 GB more than the safe band at equal perplexity and equal multiple-choice accuracy. The safe band’s measured advantages are fidelity and throughput, not footprint.
On the Qwen models the ranking may be restating depth. Spearman correlation between layer index and sensitivity is −0.852 (30B) and −0.947 (35B), and a plain “deepest N layers” band recovers most of the advantage over random. A last-N control arm would separate the two and has not been run. On the smaller Phase 1 models the safe tier sat mid-network, where a depth heuristic would have picked the wrong layers — so depth is not a universal answer, but the Qwen result is not yet clean.
Long-form output quality has never been measured. Every metric here is accuracy, perplexity, or distance from the bf16 model.