MACaQ: Fast, Model Agnostic Calibrated Quantization for Low-Precision Weights and Activations
Lorenz K. Muller, Philippe Bich, Chiara Boretti, Hyun-Min Chang, Jiawei Zhuang, Lukas Cavigelli · HUAWEI Computing Systems Lab
7 Nov 2026 · cs.LG · laptop / colab · code · 5 repros · rl & post-training, efficiency & inference, multimodal
34 hf upvotes · 0 hn points, 0 comments · 395 stars · 0 citations
Weight-activation quantization can reduce the memory and compute cost of neural-network inference, but recent methods often require expensive optimization and architecture-specific propagation of basis transforms across layers. We introduce MACaQ, an MXFP4 W4A4 post-training quantization method that treats every linear layer independently. MACaQ applies a per-channel scale and a block-Hadamard transform online to each layer's activations, while absorbing the corresponding inverse transforms into its weights. Retaining these transforms online avoids cross-layer dependencies and enables a simple streaming implementation of the quantization process, in which only one layer must reside in memory at a time. To improve over round-to-nearest quantization, we introduce Flip-Refinement, a Hessian-aware coordinate-descent procedure that greedily moves individual FP4 codes to adjacent representable values. Despite executing the activation transforms at inference time, MACaQ adds only 2.3% end-to-end overhead over pure MXFP4 on Qwen3-32B in vLLM. MACaQ reaches lower perplexity than DuQuant++ and MR-GPTQ, and already matches their best perplexity on Llama-3-8B in 11 times less quantization time. We further apply MACaQ without architecture-specific modifications to an image diffusion model, illustrating the generality of its layer-local design and show quantization of a 122B parameter model in 64 minutes, using only 32.5GB GPU RAM.
Potential
signals behind the hidden gems rankingExisting reproductions
5 likely reproductions · 8 repos mention it · 15 HF models · checked 21/11/2026
- huawei-csl/MACaQ
SOTA model-agnostic quantization for GGUF, local inference and beyond. Quantize and run text, image, video and audio models with llama.cpp, vLLM, Diffusers and PyTorch.
382★
official
- GGZ14/saber-engine
A Rust inference engine currently targeting AMD R9700 GPU's. buymeacoffee.com/bkuyper
72★
reproduction
1★
reproduction
0★
reproduction
- hermitdave/macaq-mlx
Weight-only MACaQ-R refinement for MLX mxfp4: 45.50 -> 35.47 perplexity on LFM3-1.7B (WikiText-2)
0★
reproduction
- Ohio-University-AI-Club/MACaQ_SD15
SOTA model-agnostic quantization for local inference and beyond. Quantize and run image SD1.5 models.
0★
reproduction
Comments