arXiv:2611.00486cs.LGOct 2026

Manuscript Offprint

arXiv:2611.00486

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

Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

On hardware whose fastest matrix datapath is INT8×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.74× faster than MLX on a dense model, 1.10–1.57× on two MoE models up to 35B parameters and 1.22–1.29× on Qwen3.8-Flash-Next, where shared non-GEMM work bounds the gain.

1 INTRODUCTION

Running large language models (LLMs) on personal hardware is attractive for privacy and cost, and it is made possible by 4-bit weight quantization: memory is limited, and token generation is bound by memory bandwidth, so bytes per weight dominate. Processing the prompt (prefill) is different. It is compute-bound, and its speed is set by how fast the hardware multiplies matrices. On hardware without 4-bit matrix units, deployed 4-bit formats are dequantized to 16-bit floating point inside the matrix multiplication (W4A16) (Hannun et al., 2023; Gerganov et al., 2023), so prefill runs at the 16-bit rate.

Apple’s M5 GPUs add a matrix engine, the Neural Accelerator, to every GPU core (Waschkowski et al., 2026). INT8×INT8 runs on it at about twice the FP16 rate, but only when both operands are integers; every mixed float×integer combination is slower than plain FP16 (§2; consistent with measurements reported by MLX and community developers (MLX issue 4627, 2026; oMLX contributors, 2026; scratchy contributors, 2026)). W4A16 therefore cannot use the fastest datapath. A W4A8 design can, provided 4-bit weights become INT8 operands without changing the model. The same holds on other matrix units whose fast path is INT8 but that lack FP4, such as the INT8 tensor

Figure

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, about 2× 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 most 1/16 of the row's largest rounding error (Proposition 2).

cores of NVIDIA GPUs before Blackwell, AMD's and Intel's integer matrix units and Arm's SME; the M5 is our case study, and only the kernel design of §4 is specific to it.

Turning 4-bit weights into INT8 operands is not new. W4A8 schemes such as QServe (Lin et al., 2025) and DGQ (Zhang et al., 2023) define formats with integer group scales so that the conversion stays in integer arithmetic; for MXFP4 (Open Compute Project, 2023; Rouhani et al., 2023b), llama.cpp and other kernels use the fact that doubled E2M1 values are integers up to 12 and multiply them against INT8 activations, applying each block's E8M0 scale to that block's partial sum (ggmorg, 2025; Georganas et al., 2025; vLLM contributors, 2026); and concurrent open-source work runs INT8-activation prefill on the M5 for affine INT4 weights with per-group corrections (oMLX contributors, 2026; scratchy contributors, 2026). Our observation is that for MXFP4 the per-block scales can usually be removed from the reduction altogether: power-of-two scales are the special case of integer scales that needs only shifts, so they fold into the INT8 operands, and the only obstacle is range, which a condition on the row's block exponents settles exactly (Figure 1). A folded layer is one INT8 GEMM over the full reduction with a single rescale per output, which matrix units execute at full rate. Folding is not faster than well-engineered per-group corrections (§7); what it adds is exactness, standard MXFP4 files, and the FP4 codebook at the INT8 rate.

References (52)