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

arXiv:2611.10649 · 2026-11-11 공개 · arXiv · PDF

diffusion-models post-training quantization model-agnostic memory-efficiency low-precision memory-efficient mxfp4

Abstract

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.

한국어 요약

한 줄 요약

MACaQ는 레이어별로 독립적으로 작동하는 W4A4 MXFP4 포스트-트레이닝 양자화 방법으로, 2.3%의 오버헤드로 빠른 처리와 높은 정확도를 달성한다.

핵심 기여도

핵심 아이디어

MACaQ는 기존 양자화 방법에서 일반적으로 사용되는 레이어 간 의존성을 제거하고, 각 레이어를 독립적으로 처리함으로써 양자화 과정을 단순화하고 빠르게 만든다. 이는 블록-하다마드 변환(block-Hadamard transform)과 채널별 스케일(per-channel scale)을 레이어별로 온라인에서 적용함으로써 달성된다. 이 변환은 가중치에 역변환을 적용하여 레이어 간의 의존성을 제거하고, 단일 레이어만 메모리에 유지하면서 스트리밍 방식으로 처리가 가능하다. 이는 기존 방법에서 입력 변환을 네트워크 전체에 전파하는 방식과 달리, 레이어 로컬성을 유지함으로써 엔지니어링 복잡도를 낮추고, 다양한 아키텍처에 쉽게 적용할 수 있게 한다.

기술적 접근법

주요 결과

의의 및 한계

MACaQ는 레이어 로컬성과 스트리밍 처리를 통해 기존 양자화 방법의 복잡성을 줄이고, 다양한 모델 아키텍처에 쉽게 적용할 수 있는 장점을 가진다. 특히, 블록-하다마드 변환과 Flip-Refinement를 통해 높은 정확도와 빠른 처리 속도를 동시에 달성하며, 대규모 모델(122B 파라미터)의 효율적 양자화를 가능하게 한다. 그러나, MACaQ는 레이어 간 의존성을 완전히 제거함으로써 일부 아키텍처에서 기존 방법보다 정확도가 낮아질 수 있으며, 모든 레이어에 온라인 변환을 적용하는 방식은 오버헤드가 발생할 수 있다.

실용적 활용

MACaQ는 대규모 언어 모델 및 이미지 디퓨전 모델 등 다양한 아키텍처에 적용 가능한 레이어별 양자화 방법으로, 클라우드 인프라에서의 저비용 추론 및 실시간 처리에 유용하게 활용될 수 있다. 특히, GPU 메모리가 제한된 환경에서 122B 파라미터 모델을 64분 내에 양자화할 수 있어, 대규모 모델의 실용적 배포에 기여할 수 있다.