Apple's M5 has an integer fast lane nobody was driving

Start with the hardware fact: every GPU core in Apple's M5 carries a matrix engine called the Neural Accelerator, and a pure INT8×INT8 matmul runs at roughly twice the FP16 rate. But the catch is that both operands have to be integers. The paper measures FP16×INT8 and FP16×INT4 at only 0.68 to 0.96× the FP16 rate, which is slower than doing nothing clever at all.

The problem is that every 4-bit model running on a Mac today takes the dequantization route. In MLX's own issue #4627, developer magnuslundstedt measured on an M6 that all quantized matmuls in MLX 0.32.3 (affine 2-to-8-bit, mxfp4, mxfp8, nvfp4) unpack the packed weights into threadgroup memory and then run an FP16/BF16 GEMM, so the hardware's 8-bit lanes are never used. Quantized prefill is pinned to the FP16 rate: on that same M6, int8×int8 hits 26.9 TOPS (1.98×), while the stock 4-bit quantized matmul reaches only 18.9 TF/s. The 8-bit path is not missing from the hardware; it is wasted by the format and the runtime together.

The paper's fix is surprisingly plain: do not change the model, do not change the weight file format, just rewrite the weights. The original paper is arXiv:2611.00486.

MXFP4 weights were already integers waiting to happen

MXFP4 elements use E2M1 encoding. The paper's observation: doubling an E2M1 value lands exactly in the integer set {0, ±1, ±2, ±3, ±4, ±6, ±8, ±12} — a fact existing MXFP4 kernels already exploit to form INT8 operands.

One step further. Define a row's block exponent spread as the largest block exponent minus the smallest. The paper proves that when the spread is at most 3, every doubled element in that row has absolute value at most 96, which lands squarely inside the INT8 range. The row can then be represented exactly as one INT8 vector times one power-of-two scale. The whole linear layer collapses into a single INT8 GEMM over the full reduction dimension with one rescale per output, and INT32 accumulation cannot overflow as long as K is at most about 176k.

What if the spread exceeds 3? The paper simply raises the too-small block exponents up to max minus 3, and shows the cost is negligible: the absolute rounding error of every modified block is at most 1/16 of the row's largest rounding error. The constraint also only touches blocks that are small relative to their own row, so they contribute little to the output anyway.

The key point is that real weights almost naturally satisfy this condition. Across seven models the paper finds that 97.9% to 99.97% of weight rows meet the condition; on the 125B Qwen3.8-Flash-Next, 99.93% of 95.4M rows qualify. The rewritten files remain standard MXFP4, so any MXFP4 decoder reads them unchanged.

Measured: prefill speeds up, decode does not

The paper runs a complete system on an M5 Max (128GB). On the dense Qwen3-1.7B, time to first token is 1.34 to 1.74× faster than MLX's MXFP4 and 1.56 to 2.49× faster than llama.cpp; on the MoEs it is 1.20 to 1.57× on OLMoE-1B-7B and 1.10 to 1.43× on Qwen3.5-35B-A3B. The entire W4A8 system on the M5 produces logits that are bit-identical to the quantized reference.

Accuracy comes along for the ride. On the 125B Qwen3.8-Flash-Next, with every matrix quantized, the paper's integer-exact format solves 94.8% of GSM8K versus 91.0% for MLX's MXFP4, and its KL divergence from the FP8 model is 0.0557, essentially level with the 0.0553 of NVFP4 with scale search. Quantizing only the 73,728 routed expert matrices (96% of the parameters) costs the paper's own format at most 0.2% perplexity, and other FP4 formats at most 0.4%.

The other side of the speed ledger has to be stated plainly. Decode gains essentially nothing: 0.99 to 1.01× MLX on the dense model and OLMoE, and 0.90 to 0.91× on Qwen3.5-35B-A3B, which is slightly slower. The reason is straightforward — at batch 1 decode each weight is read once and used once, so the bottleneck is memory bandwidth and per-kernel latency, where INT8 arithmetic does not help.

And on the 125B model, end-to-end speedup is only 1.22 to 1.29×, well short of the 1.33 to 1.65× measured in isolation on the expert layers. The paper's explanation is that about 0.5 seconds of every prefill is spent outside the W4A8 matrices (the DeltaNet recurrence, attention, 96 residual-stream mixers, and a host-side n-gram lookup). The more accurate integer-exact format is more awkward still: because the files are no longer MXFP4-compatible, they cannot reuse MLX's decode kernels, and on the 125B model its decode speed drops to 0.65× MLX's.

Two cold buckets of water

First, accuracy is not free. The paper itself admits that llama.cpp's Q4_K_M (about 5 bits per weight, with some tensors left at 6 bits) is more accurate than its formats throughout, and that switching to INT8 activations adds another 0.7 to 2.8 points of perplexity. They also did not evaluate block rotations combined with GPTQ.

Second, this is a preprint with no community validation yet. The repository shinyoungkang1/mxfp4-int8-m5 has 5 commits, 0 stars and 0 forks under the MIT license, and reproducing it needs an M5-family chip, macOS 26 and Metal 4, with the 125B line requiring you to build an mlx-lm pull request branch yourself. The authors come from UT Southwestern, Emory, Duke and CMU rather than Apple — what they did was open a path on Apple's hardware that nobody had opened.

So what

The real value of this paper may not be the speedups at all. It is that it lays open a waste everyone had simply assumed: 4-bit quantization on a Mac saves memory, not compute. You get a smaller model and a slower prefill, while the hardware's 2× integer path sits completely idle.

Interestingly, Apple did not move, but the community did. That MLX issue has been open since October 5, 2026, and the patch author later added measurements: the int8 staging approach raises quantized prefill by 1.39× on M6 at a worst-domain perplexity cost of +0.92%, with decode unchanged. The same hardware fact was measured independently in two places, by the paper's authors and by the MLX community.

And this paper leaves a harder hook: with a purely mathematical construction it shows that the supposed wall between 4-bit weights and INT8 units was never that wide in the first place. Most real weights were already standing on the side that can be made into integers — nobody had just proved it.