논문 해설
Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units
정수 정확 마이크로스케일링: INT8 행렬 유닛에서 MXFP4 언어 모델 실행
- 연구 문제 MXFP4 가중치를 INT8×INT8 행렬 단위에서 정확히 실행하려면 블록별 스케일을 축약 밖으로 옮겨야 하며, 이 논문은 행의 블록 지수 범위가 최대 3이면 가능하다는 조건을 제시합니다.
- 연구 방법 행 단위 지수 차이 조건을 강제하는 SC-MXFP4 양자화로 표준 MXFP4 파일을 만들고, 정수 블록 승수를 쓰는 integer-exact 형식을 함께 제안하여 INT8 GEMM 한 번과 출력별 재스케일로 선형 계층을 계산합니다.
- 주요 결과 Qwen3-1.7B에서 SC-MXFP4 W4A8은 WikiText-2 퍼플렉서티 10.99를, NVFP4 W4A8은 10.51을 보고하며, Qwen3.8-Flash-Next 가중치 행의 99.93%가 조건을 만족합니다. M5 Max에서 W4A8 프리필은 MLX MXFP4보다 밀집 모델에서 1.34–1.74배 빠릅니다.
배경: INT8 행렬 단위에서 4비트 가중치 실행하기
Apple M5 GPU의 Neural Accelerator는 INT8×INT8 연산이 FP16보다 약 두 배 빠르지만, 정수와 부동소수가 섞인 조합은 FP16보다 느립니다. 따라서 기존 W4A16 방식은 4비트 가중치를 FP16으로 역양자화하여 가장 빠른 정수 경로를 쓰지 못합니다. 이 논문은 MXFP4 가중치를 INT8 피연산자로 바꾸고 활성값도 INT8로 양자화하는 W4A8 구성을 다룹니다. 핵심 질문은 표준 MXFP4 파일을 바꾸지 않고도 이 변환이 정확하게 가능한지, 그리고 그 조건이 실제 가중치에서 얼마나 자주 충족되는지입니다.
MXFP4에서는 32개 값마다 E8M0 지수 스케일이 붙습니다. 기존 커널은 각 블록의 스케일을 축약 연산 안에서 적용해야 했습니다. 이 논문은 블록 지수들의 범위가 제한되면 행 전체가 하나의 INT8 벡터와 하나의 2의 거듭제곱 스케일로 정확히 표현되어, 선형 계층이 한 번의 INT8 GEMM과 출력별 재스케일로 줄어든다고 주장합니다.
블록 지수 범위 조건과 정확한 임베딩
각 행의 블록 지수 최솟값을 기준으로 두고, 그 최솟값보다 얼마나 큰지를 나타내는 지수 차이 s_n이 3 이하이면 행의 모든 값은 정수 q_{n,k}와 하나의 2의 거듭제곱 스케일의 곱으로 정확히 표현됩니다. 원문은 E2M1 값을 두 배로 만들면 정수가 되고, 블록 지수 차이만큼 2의 거듭제곱 시프트를 곱하면 된다고 설명합니다. 이때 |q| ≤ 96이므로 INT8 범위에 들어갑니다.

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).
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.
Figure 3 : Block-exponent spread per weight row. Spread above 3 (shaded) needs an exponent adjustment. Logarithmic axis; its bottom tick marks 0 (no rows).
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.선형 계층은 토큰별 INT8 활성값과 가중치 정수 벡터의 곱을 전체 축약 차원에 대해 한 번 계산하고, 마지막에 출력마다 한 번 재스케일합니다. 원문은 K ≤ (2^31 − 1)/(127·96) ≈ 176k 범위에서 INT32 누산이 넘치지 않는다고 적습니다. 반대로 s_n ≥ 4이고 최대 지수 블록에 ±4나 ±6이 있으면 |q| ≥ 128이 되어 INT8 범위를 벗어난다는 조건부 결론도 제시됩니다.
스펙트럼 제약 양자화와 비용
제약을 적용하려면 각 블록의 지수를 OCP 규칙 값과 그 이웃 값 중에서 제곱 오차가 작은 값으로 고르고, 행 최대 지수보다 3 이상 낮은 지수는 E*−3으로 올립니다. 이렇게 만든 파일을 SC-MXFP4라고 부르며, 여전히 표준 MXFP4 텐서이므로 기존 디코더가 그대로 읽을 수 있습니다.
원문의 Proposition 2는 지수가 올라간 블록의 원소가 가질 수 있는 절대 반올림 오차를 2^(E*−4) 이하로 제한합니다. 이는 최상위 지수의 격자 오차 대비 1/16입니다. 조정은 값이 작은 블록에 주로 영향을 주므로 기여가 작다고 논문은 설명하며, 실제 Qwen3-4B에서는 2.1%의 행만 조정되었습니다. GPTQ는 지수를 고정한 뒤 E2M1 값을 선택하므로 결과가 여전히 같은 격자 위에 남습니다.
정수 블록 승수를 쓰는 형식 계열
논문은 2의 거듭제곱 대신 작은 정수 블록 승수 m ∈ M을 쓰는 integer-exact 형식 계열을 제시합니다. 식 (3)의 형태 w = β·m·c에서 c는 정수 코드북 원소, m은 블록 승수, β는 행별 실수 스케일입니다. max C · max M ≤ 127이면 INT8로 실행됩니다. 16폭 블록과 승수 1..10을 쓴 형식은 4.26비트이며, 이 형식은 표준 MXFP4 파일이 아닙니다.
이 형식의 목적은 NVFP4의 정확도 이점을 INT8 실행 범위 안에서 얻는 것입니다. 원문은 같은 조건에서 균일 INT4 원소를 쓰면 오차가 크게 늘고, E2M1의 비균일 격자가 이득의 일부라고 설명합니다.

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).
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.정확도 검증: 제약의 비용과 형식 비교
Qwen3-1.7B에서 WikiText-2 퍼플렉서티는 SC-MXFP4 W4A8이 10.99이고 NVFP4 W4A8은 10.51입니다. 같은 모델에서 16폭 integer-exact 형식은 10.40이며, 원문에 따르면 NVFP4에 스케일 탐색을 적용하면 10.34가 됩니다. 다섯 개의 작은 모델에서 integer-exact 형식은 스케일 탐색을 적용한 NVFP4와 0.06 퍼플렉서티 이내로 가깝습니다.

Table 2 : WikiText-2 perplexity. W4A16: 4-bit weights, 16-bit activations; W4A8: per-token INT8 activations. SC-MXFP4 W4A8 is what our kernels compute. All methods quantize the same matrices. ‡MoE: every expert is quantized, the router stays BF16. Bits atK= 4096(the FP32 row scales of our formats add32/K). – = not run.
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.
Table 11 : SC-MXFP4 and the 16-wide, integer-multiplier format on the same INT8 kernels (Qwen3-1.7B, M5 Max, one session separate from Table 4’s; prefill at 512 and 2048 tokens in the burst regime, at 8192 in the sustained regime). Perplexity: WikiText-2, W4A8, measured on the kernels; NVFP4 is fake-quantized (it has no exact INT8 execution; ∗with scale search 10.34). Tasks: mean zero-shot accuracy over six lm-evaluation- harness tasks, on the kernels. bits/w: average over this model’s quantized matrices.
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 20쪽에서 그림 영역을 추출했습니다.제약 자체의 비용은 작게 보고됩니다. 같은 지수 탐색을 쓴 MXFP4와 SC-MXFP4의 차이는 여러 모델에서 0.007 퍼플렉서티 이하입니다. 활성값을 토큰별 INT8로 양자화하면 같은 가중치의 W4A16 대비 +0.07에서 +0.36 퍼플렉서티가 늘어납니다. 이 값은 모델과 설정에 따라 달라지며, 이 수치는 WikiText-2 퍼플렉서티에 대한 것입니다.

Table 10 : WikiText-2 perplexity ablations (same protocol as Table 2). The two W4A16 rows with exponent search show three decimals for the comparison in §5. – = not run.
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.대형 MoE 모델에서의 조건 만족률과 GSM8K 결과
Qwen3.8-Flash-Next의 가중치 행 중 99.93%가 블록 지수 범위 조건을 만족합니다. 원문은 이를 95.4M 행의 모든 트랜스포머 블록 선형 계층 기준으로 보고하며, 조건을 만족하지 않는 행은 주로 밀집 투영에 있습니다. 이 결과는 이 모델의 가중치에 대한 측정이며, 다른 모델의 모든 행에 대한 보장이 아닙니다.

Table 12 : Rows whose block exponents (MXFP4 with exponent search) span at most 3 over the whole row, and relative weight MSE (×103) before and after enforcing the constraint, over all transformer-block linear layers. †Every W4A8 matrix of the FP8 checkpoint (95.4M rows; 73,728 of the 74,028 matrices are routed experts), with the FP8 experts decoded exactly.
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.GSM8K 1319개 테스트 문제에서 모든 행렬을 양자화한 설정의 결과는 SC-MXFP4 W4A8이 92.65±0.72%, 16폭 형식이 94.84±0.61%입니다. MLX의 W4A16이 같은 SC-MXFP4 가중치에서는 92.80%, 자체 MXFP4 양자화에서는 90.98%입니다. 원문은 활성값을 INT8로 바꾼 효과를 측정 가능한 변화가 없다고 보고합니다.
속도 결과와 실행 비용의 경계
M5 Max에서 INT8×INT8 matmul2d는 FP16의 1.79–1.98배 처리량을 보였고, 혼합 float×integer 조합은 FP16보다 느렸습니다. 이 처리량 차이가 W4A8 설계의 근거입니다. 선형 계층 단위에서 W4A8은 MLX MXFP4 quantized_matmul보다 1.37–1.90배 빠르다고 보고됩니다.

Figure 2 :matmul2dthroughput on the M5 Max Neural Accelerators by operand type (left×right operand) forM×N×Kshapes. INT8×INT8 reaches1.8–2.0×FP16; every mixed float×integer combination is slower than FP16.
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.
Table 7 :matmul2dthroughput (TFLOPS or TOPS, median of 15 interleaved repetitions) on the M5 Max, AC power, High Power mode; speedup vs. FP16 in parentheses (median of per-repetition ratios). Onematmul2d call per128×64output tile, 4 simdgroups, grouped tile order, weightsN×K. All outputs bit-exact.
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.
Table 8 : Linear-layer latency (ms, median) on M5 Max; all W4 variants except MLX read the same SC- MXFP4 weights. Our kernels are timed with GPU timestamps: the elapsed time of one command buffer that runs a pipeline’s kernels back to back, divided by the number of runs it contains, so gaps between a pipeline’s kernels count:matmul2dFP16 is a plain FP16 GEMM; W4A16 fused unpacks to FP16 tiles inside the K- loop; W4A16 2-pass unpacks to an FP16 buffer and runs an FP16 GEMM with the row scales; W4A8 quantizes the activations, unpacks to an INT8 buffer and runs an INT8 GEMM, scaling in registers or in a separate pass, whichever is faster; †W8A8 quantizes the activations and runs an INT8 GEMM with INT32 output from 8-bit weights (no unpack, no scaling), a bound on the achievable speed. MLX’s kernels are timed by wall clock in a separate process (10 calls per evaluation), which includes some host overhead, so the “mixed” vs-MLX column mixes two timing methods. “Alike”: our MLX-integrated kernels (the ones used end to end) and MLX’s, called from MLX and timed alike by wall clock in one process, interleaved; atK= 14336the MLX-integrated W4A8 is slower than the standalone one (3.90 vs. 2.70 ms). Like for like are this column and the comparisons againstmatmul2dFP16 and W4A16 2-pass.
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.엔드투엔드 프리필은 밀집 Qwen3-1.7B에서 MLX MXFP4 대비 1.34–1.74배 빠릅니다. MoE 모델에서는 프롬프트가 길수록 이득이 커졌습니다. 디코드는 배치 1에서 대부분 MLX와 비슷하고 대형 MoE에서는 0.90배 수준입니다. 대형 MoE의 16폭 형식에서 디코드는 MLX 커널을 쓸 수 없어 0.65배입니다. 원문은 이 디코드 한계가 메모리와 커널 지연에 묶인 것이라고 설명합니다.

Table 4 : Time to first token (ms) and decode throughput (tokens/s) on an M5 Max. Speedups, from unrounded medians, are W4A8 vs. MLX MXFP4 measured in the same session and vs. llama.cpp (Q4_0, its fastest 4-bit type here), whose prefill was measured in a separate session (the faster of two runs); every prefill ratio against it is at least1.14×. MoE rows: the default configuration (§4). Prefill rows use the sustained clock regime (prompts following long ones; Table 9 also gives the burst regime). llama.cpp’s MXFP4_MOE type is 11– 26% slower than its Q4_0 on the two MoEs, its Q4_K_M and IQ4_XS prefill at0.82–0.96×Q4_0’s speed (Appendix I). Decode rows: all three systems back to back in one session per model.
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.
Table 6 : Qwen3.8-Flash-Next on an M5 Max: time to first token (ms) and batch-1 decode (tokens/s) of our W4A8 kernels with SC-MXFP4 (58.9 GiB) and with the 16-block format (61.6 GiB), and of MLX MXFP4 W4A16 on exactly the same matrices (65.0 GiB). The systems do not fit in memory together, so each was loaded in its own session (two sessions each, alternating; medians agree within 5%). ∗Decode with MLX’s W4A16 kernels on the same SC-MXFP4 file (two later sessions, 42.4 and 42.5, in which MLX MXFP4 decoded at 42.4); with our W4A8 GEMVs, 37.6 (0.89×).
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.
Table 9 : Prefill time to first token (ms, median of 7–10) by clock regime, with the speedup over MLX MXFP4 in the same run in parentheses (ratio of medians). MoE: the default configuration (W4A8) and the two expert- weight paths forced at every length. – = not measured.
원문 · CC BY 4.0 · Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park · Integer-Exact Microscaling: Running MXFP4 Language Models on INT8 Matrix Units · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.한계와 적용 범위
측정은 한 대의 M5 Max에서 이루어졌으며, 모든 결과는 GPTQ 없이 round-to-nearest 설정으로 얻었습니다. 125B 모델은 BF16 원본이 아니라 FP8 공개본에서 양자화되었습니다. Qwen3.8-Flash-Next에서 integer-exact 형식은 NVFP4보다 퍼플렉서티가 1.1% 뒤처집니다.
또한 integer-exact 형식은 더 이상 표준 MXFP4 파일이 아닙니다. 원문은 INT8 활성값 프리필이 MLX의 affine INT4에 대해 다른 오픈소스 프로젝트에서도 개발되었으며, 커널 수준에서 이 설계가 그 구현보다 빠르지는 않다고 밝힙니다. 따라서 이 설계의 이점은 스케일 접기의 정확성과 형식 확장에 있다고 보는 것이 원문 범위에 맞습니다.
논문 정보
- 저자
- Shinyoung Kang, Junhyung Ahn, Yujun Kim, Jungho Park
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2026년 10월 31일
- 등록일
- 2026년 11월 3일
- 수정일
- 2026년 10월 31일
- 버전
- v1
- arXiv
- 2611.00486
- 분류
- cs.LG
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
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.
원문 인용
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}
}