# Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units

Integer-exact MXFP4 runs language models on INT8 matrix units without per-block scaling

Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · arXiv · 2026-10-31

- **Problem** MXFP4 weights dequantize to FP16, so prefill misses the fast INT8 matrix path on M5.
- **Method** When exponents span three steps, the authors fold each row's block scales into one INT8 vector.
- **Results** The integer-exact format with 16-wide blocks is within 0.06 perplexity of NVFP4 with scale search on five small models. On Qwen3.8-Flash-Next routed experts, its KL divergence from FP8 is 0.0557 against 0.0553 for NVFP4 with scale search.

![Figure 1: Left: deployed 4-bit formats are dequantized to FP16 and multiplied at the FP16 rate (W4A16). We rewrite MXFP4 weights exactly as INT8 operands and q…](https://refivu.com/papers/cc6caaac-3d30-4b25-b682-a3f14b4cd27b/figures/figure-bab526512c7d01f02ee479365fe466f0.png?thumb=512)

**Figure 1** : Left: deployed 4-bit formats are dequantized to FP16 and multiplied at the FP16 rate (W4A16). We rewrite MXFP4 weights exactly as INT8 operands and quantize activations to INT8, so the GEMM runs on the INT8 datapath, about2×faster on Apple M5. The weights remain a valid MXFP4 file. Right: the rewrite is exact when a row’s block exponents lie within a window of four values below the largest; blocks below it (red) are coarsened, which adds at most1/16of the row’s largest rounding error (Proposition 2).

[Original paper](https://arxiv.org/abs/2611.00486v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · Original paper figure · Extracted the figure area from page 2 of the original PDF.

## Why dequantized 4-bit weights stall on M5

Token generation is limited by memory bandwidth, so 4-bit weights help there, but prefill is limited by how fast the hardware multiplies matrices. Most deployed 4-bit formats are dequantized to FP16 inside the matrix multiply, so prefill runs at the 16-bit rate. The M5 Neural Accelerator runs INT8×INT8 at about twice the FP16 rate, but any product that mixes a float and an integer operand runs slower than plain FP16.

QServe and DGQ use integer group scales, so the conversion stays in integer arithmetic. MXFP4 kernels in llama.cpp and elsewhere multiply doubled E2M1 values, which are integers up to 12, against INT8 activations, and they apply each block's E8M0 scale to that block's partial sum. That last step keeps a scale inside every block of the reduction, and the authors ask whether it is needed at all.

## Folding block scales into an exact INT8 row

The key idea is that a power-of-two block scale is only a shift, so it can be folded into the INT8 operands when the range allows it. Range is the only obstacle, and a condition on the row's block exponents settles it exactly. Doubling each E2M1 value gives an integer, and each weight is rewritten as an integer times a shifted row scale, \\(w\_{n,k}=2^{E\_n-1}q\_{n,k}\\) with \\(q\_{n,k}=2v\_{n,k}\\cdot 2^{e\_{n,b(k)}-E\_n}\\).

Here \\(E\_n=\\min\_b e\_{n,b}\\) is the smallest block exponent of the row, and the spread \\(s\_n=\\max\_b e\_{n,b}-E\_n\\) is the gap from it to the largest.

When the spread is at most 3, every \\(q\_{n,k}\\) has magnitude at most 96, so the whole row is one INT8 vector times one scale. If the spread is 4 or more and a top-exponent block holds ±4 or ±6, some \\(q\_{n,k}\\) reach 128, which INT8 cannot hold. A linear layer then becomes one INT8 GEMM over the full reduction, with one rescale per output.

The quantizer chooses each block exponent by squared-error search over the OCP rule and its two neighbours, then raises any exponent below the row maximum minus three. The blocks that get raised are the small ones, and their rounding error is at most 1/16 of the largest grid error at the row's top exponent. So the constraint changes little where the output is large.

Real weights already satisfy the condition: 97.9-99.97% of rows across seven models do. A null model explains why: for Gaussian rows the median of log2(max/min) is 1.1 to 1.5, and no row violates, while Student-t rows violate in 2.7-37% of cases. On Qwen3-4B, 2.1% of rows violate, and down\_proj carries most of them, at 9.0% of its rows.

## Running the exact W4A8 layer

The weight layout is fixed offline, and the GEMM runs the same integer arithmetic on every call. Each weight keeps a 4-bit code of sign and E2M1 index, and the block shift sits in 2 bits per 32 weights. Each row also stores one FP32 scale, so the packed file costs 4.07 bits per weight at K=4096, against 4.25 for MXFP4. Decoding is a lookup into the values 0, 1, 2, 3, 4, 6, 8 and 12, followed by a left shift.

Because the E8M0 bytes are rebuilt exactly from the shifts and the row scale, the same file still reads as a standard MXFP4 tensor.

Dense prefill unpacks each layer's weights once per call into an INT8 buffer, which MLX's allocator recycles across layers. Activations are quantized per token and fused with the preceding RMSNorm, so that step runs on each call.

All experts then run in one grouped INT8 GEMM, and a combine kernel weights each token's expert outputs by the routing scores.

Under the spread condition, INT32 accumulation can't overflow for a reduction dimension K up to about 176k with INT8 activations. That bound follows from dividing the INT32 range by 127 times 96, the largest INT8 activation times the largest integer weight.

## Accuracy of the 16-block integer-exact format against NVFP4

The authors first compare formats by layer-output error on Qwen3-1.7B, where tr(ΔW H ΔW^T) is divided by tr(W H W^T). That is 31% less error than SC-MXFP4, and it comes within 22% of NVFP4 at 5.70. Giving NVFP4 scale search is the closer reference, since the format then sits 29% above it.

![Table 1: Integer-exact formats (Eq. 3) vs. standard 4-bit formats on Qwen3-1.7B: layer-output error tr(∆W H∆W⊤)/tr(W HW⊤)withHfrom WikiText-2trainactivations,…](https://refivu.com/papers/cc6caaac-3d30-4b25-b682-a3f14b4cd27b/figures/figure-e66e1ffe0f52c193d2da0178575586e4.png?thumb=512)

**Table 1** : Integer-exact formats (Eq. 3) vs. standard 4-bit formats on Qwen3-1.7B: layer-output error tr(∆W H∆W⊤)/tr(W HW⊤)withHfrom WikiText-2trainactivations, every third layer, round-to-nearest. Bits include block codes and one FP32 scale per row (K= 4096). “+ rotation”: randomized Hadamard trans- form of each 32-wide input block. Scale search: each NVFP4 block’s E4M3 scale and its two neighbours on either side; exponent search: the OCP exponent and its two neighbours (least squared weight error).

[Original paper](https://arxiv.org/abs/2611.00486v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

On perplexity, the 16-block format scores 10.40 on Qwen3-1.7B, compared to 10.34 for NVFP4 with scale search. Across the five small models the gap to NVFP4 with scale search stays within 0.06 perplexity. The integer-exact format uses 0.24 fewer bits per weight than NVFP4 in that comparison.

The spread constraint costs little, since unconstrained MXFP4 with exponent search differs from SC-MXFP4 by at most 0.007 perplexity. Per-token INT8 activations add +0.07 to +0.36 perplexity over the same weights in W4A16. Block-wise Hadamard rotations raised SC-MXFP4 W4A8 perplexity from 10.99 to 13.18 on Qwen3-1.7B in the authors' measurements.

GPTQ lowers W4A8 perplexity from 10.99 to 10.53 on the deployed kernels, but the zero-shot mean drops from 61.9 to 60.6.

On zero-shot tasks, SC-MXFP4 W4A8 scores a mean of 61.9 on Qwen3-1.7B, against 61.8 for MLX's MXFP4 W4A16. The 16-block format scores 62.4 on the same model, the highest of the 4-bit systems the authors measured.

## Qwen3.8-Flash-Next results: does the advantage hold at 125B with every matrix quantized?

The authors test the same ideas on Qwen3.8-Flash-Next, a 125B mixture-of-experts model with 512 routed experts per layer. In BF16 the model doesn't fit in 128 GB, so perplexity is evaluated layer by layer. Of its 95.4M weight rows, 99.929% satisfy the spread condition. The rows that violate it are 0.004–0.087% of expert rows, while the dense projections violate it in 2–12.5% of rows, almost always because of one outlier block.

When only the routed experts are quantized, perplexity barely separates the FP4 formats, so the authors use per-token KL divergence from the FP8 model instead.

On the routed experts with INT8 activations, the 16-block format has a KL divergence of 0.0557 from FP8. NVFP4 with scale search reaches 0.0553 on the same setting, so the two are nearly tied. Quantizing only the routed experts, which hold 96% of the parameters, costs every FP4 format at most 0.4% with INT8 activations. The 16-block format is the integer-exact instance with multipliers 1 to 10 at 4.26 bits.

With every matrix quantized, the authors ran all 1319 GSM8K test problems on their kernels. Their 16-block format solves 94.84±0.61% of them, while SC-MXFP4 solves 92.65±0.72%. MLX's MXFP4 W4A16 kernels, applied to its own MXFP4 quantization of the same matrices, solve 90.98±0.79%. INT8 activations change almost nothing, since only 17 and 19 problems were solved by one of the two runs.

The weight quantizer matters more than the activation precision here, because SC-MXFP4 beats MLX's MXFP4 on the same GSM8K set, 52 to 28.

Speed on this model is bounded by work outside the quantized matrices, so the end-to-end gain is smaller than the expert gain. Decode at batch 1 is a different story, since INT8 arithmetic cannot help when each weight is read once. The 16-block format decodes at 27.4 tokens/s on their kernels, which is why the paper reports decode with MLX's kernels on the SC-MXFP4 file.

## Prefill and decode speed on the M5

In isolation, the MoE blocks run 1.33 to 1.65× faster than MLX's at this model's shapes. The end-to-end gain is smaller because the rest of each prefill is work that both systems share. At 2048 tokens, the whole 226 ms difference comes from the experts. About 0.5 s of each prefill goes to the DeltaNet recurrence, attention, and the n-gram lookup on the host.

Batch-1 decode is different, because each weight is read once per token and INT8 arithmetic can't help. With the W4A8 GEMVs, decode runs at 36.3 tokens/s. In one profile of that 27.5 ms step, expert GEMVs and routing take 11.6 ms, dense GEMVs 7.9 ms, and everything else 8.1 ms. Using it for the dense projections raises decode to 37.9 tokens/s.

With MLX's kernels on the same SC-MXFP4 file, decode matches MLX's own 42.4 tokens/s. Its prefill gain of 1.21 to 1.25× stays within 5% of SC-MXFP4's.

The authors' kernel isn't faster than the concurrent oMLX INT8 kernels at the kernel level. For the routed experts, oMLX's gate and up kernel decodes weights into register fragments and runs faster than the authors' grouped GEMMs.

## Limitations and open questions

The authors' measurements come from one M5 Max, so the speed results aren't yet checked on other hardware. The end-to-end prefill gain on Qwen3.8-Flash-Next is 1.22-1.29× against 1.33-1.65× for its expert layers, because the work outside the quantized matrices is large in this hybrid model. About 0.5 s of each prefill is shared non-GEMM work, such as the DeltaNet recurrence, attention and the n-gram lookup on the host.

The authors didn't evaluate block rotations combined with GPTQ, which is the setting MR-GPTQ uses. Rotations raised SC-MXFP4 W4A8 perplexity from 10.99 to 13.18 on Qwen3-1.7B, so the authors kept them out of the main configuration. The integer-exact formats are no longer standard MXFP4 files, so they trade compatibility for accuracy. At the kernel level, the authors' design isn't faster than the concurrent oMLX INT8 kernels.

## Paper info

- **Authors**: Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park
- **Venue**: arXiv · Preprint
- **First published**: 2026-10-31
- **Added**: 2026-11-3
- **Updated**: 2026-10-31
- **Version**: v1
- **arXiv**: 2611.00486
- **Category**: cs.LG
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.00486v1) · [PDF ↗](https://arxiv.org/pdf/2611.00486v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

On hardware whose fastest matrix datapath is INT8$\\times$INT8, such as the Neural Accelerators of Apple's M5 GPUs, 4-bit weights must become INT8 operands. Existing MXFP4 kernels already map FP4 (E2M1) values to integers by doubling them, but apply every 32-element block scale inside the reduction. We show when no per-block work is needed: a row of MXFP4 weights is exactly one INT8 vector times one power-of-two scale if its block exponents span at most three, so a linear layer becomes a single INT8 GEMM with one rescale per output. Enforcing the condition adds at most 1/16 of a row's largest rounding error to the blocks it changes, and real weights already satisfy it: 97.9-99.97% of rows across seven models, including 99.93% of the 95M rows of a 125B-parameter mixture-of-experts (MoE) model, Qwen3.8-Flash-Next. The resulting spread-constrained MXFP4 files stay standard MXFP4. With integer instead of power-of-two block multipliers, an integer-exact format (16-wide blocks, multipliers 1..10, 4.26 bits) runs as one exact INT8 GEMM and is more accurate than NVFP4 (4.5 bits) with its standard scale rule on five small models, within 0.06 perplexity of NVFP4 with scale search. On Qwen3.8-Flash-Next's routed experts with INT8 activations it is as close to the FP8 model as NVFP4 with scale search (KL divergence 0.0557 vs. 0.0553) and closer than MLX's MXFP4 and affine INT4; with every matrix quantized it solves 94.8% of GSM8K vs. 91.0% for MLX's MXFP4. Quantizing only the 74k routed expert matrices (96% of the parameters) to either of our formats with INT8 activations costs at most 0.2% perplexity. A complete W4A8 system on the M5 produces outputs bit-identical to the quantized reference; prefill is 1.34-1.74x faster than MLX on a dense model, 1.10-1.57x on two MoE models up to 35B parameters and 1.22-1.29x on Qwen3.8-Flash-Next, where shared non-GEMM work bounds the gain.

## Quote from the paper

Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park (2026). Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units. arXiv:2611.00486v1. https://arxiv.org/abs/2611.00486v1

**BibTeX**

```
@misc{kang2026integer,
  title = {{Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units}},
  author = {Shinyoung Kang and Junhyung Ahn and Yujun Kim and Jungho Park},
  year = {2026},
  eprint = {2611.00486},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.00486v1}
}
```

## Other paper commentary

- [From Small to Large: Assessing Medical Reasoning, Benchmark Contamination, and Model Size in Language Models](https://refivu.com/en/papers/a50af6f3-052c-439d-b37e-144102cf1c53-from-small-to-large-assessing-medical-reasoning-benchmark.md)
- [DAPS: Dependency-Aware Premise Selection for LLM Theorem Proving](https://refivu.com/en/papers/a7ae9d0f-ded1-4286-bd70-8a5526753610-daps-dependency-aware-premise-selection-for-llm-theorem.md)
- [Simple Features Beat Most AI Control Monitors](https://refivu.com/en/papers/d1aca6c2-1615-45b0-9efd-38f4290a39cf-simple-features-beat-most-ai-control-monitors.md)
- [Cord: Confidence-Anchored Order Residual Decoding for Masked Diffusion Language Models](https://refivu.com/en/papers/f4a533fb-c361-44fb-b98c-6372bedef6b6-cord-confidence-anchored-order-residual-decoding-for-masked.md)
- [Surprise Alone Learns Lies: Evidence-Gated Continual Learning for LLMs from Streaming Claims](https://refivu.com/en/papers/fa5643b8-a357-4203-bd88-f84f7c2636ea-surprise-alone-learns-lies-evidence-gated-continual-learning.md)
- [Where Do Vision Language Models Fail at 3D Reasoning?](https://refivu.com/en/papers/d099ae54-8c6d-4b80-837f-a4c6b79d10d4-where-do-vision-language-models-fail-at-3d.md)
- [Where Causal Discovery Breaks on Real Data: Measuring the Assumptions One Property at a Time](https://refivu.com/en/papers/d714537a-ff4c-4155-99f7-03eb8fffe631-where-causal-discovery-breaks-on-real-data-measuring.md)
- [The Verifier Is Part of the Simulator: Evidence-View Gaming in Agentic Equation Discovery](https://refivu.com/en/papers/e9f6528c-a905-4675-98d1-e8bb5d3a07c2-the-verifier-is-part-of-the-simulator-evidence.md)
- [Crop Mapping Evaluation under Sampling Bias](https://refivu.com/en/papers/fa7f2b34-820c-46b0-b3b3-b5987d42e38c-crop-mapping-evaluation-under-sampling-bias.md)
- [What Does a Safety Label Measure? Auditing Situational-Safety Benchmarks for Multimodal LLMs](https://refivu.com/en/papers/cdf581a5-7ecd-45e6-bb53-e2654b8418b9-what-does-a-safety-label-measure-auditing-situational.md)
- [Are Fake Citations a Form of Reward Hacking? A Pre-Registered Study of Post-Training and Citation Cues](https://refivu.com/en/papers/9ff2abb0-1bf9-4d66-a173-14ba57e93ce2-are-fake-citations-a-form-of-reward-hacking.md)
- [Selecting or Solving? What Best-of-N Verification Delivers in Video Reasoning](https://refivu.com/en/papers/eec8257c-82f3-4c14-b29a-f1b35c3d51f9-selecting-or-solving-what-best-of-n-verification.md)

## Terms in this paper

- [GSM8K](https://refivu.com/en/terms/e48f0e01064d-gsm8k)
- [KL divergence](https://refivu.com/en/terms/5f1dbea73907-kl-divergence)
- [wikitext-2](https://refivu.com/en/terms/9f23241a7a2c-wikitext-2)
- [llama.cpp](https://refivu.com/en/terms/db9004128697-llama-cpp)
- [zero-shot accuracy](https://refivu.com/en/terms/51018930c0be-zero-shot-accuracy)
- [prefill](https://refivu.com/en/terms/617dfbf8a58b-prefill)
- [Qwen3-1.7B](https://refivu.com/en/terms/7b30e8d840c0-qwen3-1-7b)
- [MXFP4](https://refivu.com/en/terms/0e807947caf5-mxfp4)
- [NVFP4](https://refivu.com/en/terms/e5a2832cbfa4-nvfp4)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/cc6caaac-3d30-4b25-b682-a3f14b4cd27b-integer-exact-microscaling-running-mxfp4-language-models-on)
