Papers › DuQuant++: Fine-grained Rotation Enhances Microscaling FP4 Quantization

DuQuant++: Fine-grained Rotation Enhances Microscaling FP4 Quantization

20 Apr 2026arXiv:2604.17789added by Syntology

Haokun Lin, Xinle Jia, Haobo Xu, Bingchen Yao, Xianglong Guo, Yichen Wu, Zhichao Lu, Ying Wei, Qingfu Zhang, Zhenan Sun

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

The MXFP4 microscaling format, which partitions tensors into blocks of 32 elements sharing an E8M0 scaling factor, has emerged as a promising substrate for efficient LLM inference, backed by native hardware support on NVIDIA Blackwell Tensor Cores. However, activation outliers pose a unique challenge under this format: a single outlier inflates the shared block scale, compressing the effective dynamic range of the remaining elements and causing significant quantization error. Existing rotation-based remedies, including randomized Hadamard and learnable rotations, are data-agnostic and therefore unable to specifically target the channels where outliers concentrate. We propose DuQuant++, which adapts the outlier-aware fine-grained rotation of DuQuant to the MXFP4 format by aligning the rotation block size with the microscaling group size (B{=}32). Because each MXFP4 group possesses an independent scaling factor, the cross-block variance issue that necessitates dual rotations and a zigzag permutation in the original DuQuant becomes irrelevant, enabling DuQuant++ to replace the entire pipeline with a single outlier-aware rotation, which halves the online rotation cost while simultaneously smoothing the weight distribution. Extensive experiments on the LLaMA-3 family under MXFP4 W4A4 quantization show that DuQuant++ consistently achieves state-of-the-art performance. Our code is available at https://github.com/Hsu1023/DuQuant-v2.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2604.17789")

Code

Syntology Ran 14 of 30 code samples harvested from 1 repository linked to this paper; 16 have no recorded run. Of those that ran: 10 ran · our draft was wrong; 1 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: found in paper text by Syntology: 29 samples from 1 repository, 13 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Hsu1023/DuQuant-v2 found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

30 samples harvested; 14 ran; 0 honoured the contract we drafted; 16 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10ran · our draft was wrong
1ran · fixture could not drive it
3ran
16unverified

Licence: 1 of the 30 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Hsu1023/DuQuant-v2. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

DuLlamaRMSNorm Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran fingerprinted MIT (permissive) · 22dc933e4384b25f · report
TruncateFunction Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran MIT (permissive) · b21c5b036d520461 · report
UniformAffineQuantizer Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran MIT (permissive) · f17b50bd007e4e7d · report
cast_to_eBm0_improved Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran · fixture could not drive it fingerprinted MIT (permissive) · 747c84caa92a3ba4 · report
cast_to_fp4 Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · afcafddea4afcd55 · report
dequantize_fp4 Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · deec9d75f4b616b2 · report
duquant_state_dict Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · c44bc2a3237345b4 · report
get_post_parameters Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · c31487ba3c802876 · report
let_parameters Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 7dd7f74b3600a4f5 · report
lwc_parameters Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · dc52888f6a74bba1 · report
quantize_dequantize_fp4 Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 6f32d6d7941324be · report
quantize_fp4 Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran · our draft was wrong fingerprinted MIT (permissive) · 5ce0befa6e109811 · report
smooth_parameters Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology ran · our draft was wrong MIT (permissive) · 607bee1a0f21cd6d · report
QuantLinear Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · 20e6a8d6947c04ab · report
QuantLlamaAttention Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · 77859dd6c404b9c2 · report
QuantLlamaDecoderLayer Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · cbcd07e2ca5a3ba7 · report
QuantLlamaMLP Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · bf4e088584597d5c · report
clear_temp_variable Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · e0d9150534aba495 · report
duquant Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · 41112d78927836b9 · report
post_quant_inplace Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · daa33f9a814e8fd2 · report
post_rotate_quant_temporary Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · cd822d05aa1f374d · report
quant_inplace Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · f3a915217e460b33 · report
register_scales_and_zeros Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · 8e21c7c7a2bc9bcd · report
set_init_duquant_params_state Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · 6fc5c56d4380275e · report
set_quant_state Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · 734fba19235f83c0 · report
set_registered_x_none Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · 3060585a5fbe76af · report
set_requires_grad Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · 6f1be3b48ab8af2f · report
smooth_and_let_inplace Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · da4ceec866898e3a · report
smooth_and_quant_temporary Hsu1023/DuQuant-v2/quantize/duquant.py found in paper text by Syntology unverified MIT (permissive) · eb88d162cd0854f5 · report
truncate_number identical code first harvested elsewhere ran · our draft was wrong fingerprinted licence of this copy not recorded · 94587954e392b665 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2604.17789, was issued in April 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections