MIAO:面向MX量化LLM推理的中间累加精度优化框架
MIAO: Microscaling Intermediate Accumulation Optimization
MIAO 是一套软硬件协同设计框架,通过联合选择乘积精度与分阶段累加器位宽,在端到端困惑度约束下最小化硬件面积与能耗。在 MXFP8、MXFP6 和 MXFP4 下,相比全 BF16 累加基线,其处理单元阵列面积最多降低 38.7%、能耗最多降低 36.1%,六款 LLM 上相较仅量化操作数的 MX 量化最多增加 1.60% 困惑度退化。
arXiv:2611.19722v1 Announce Type: new Abstract: Microscaling (MX) quantization enables lower-precision large language model (LLM) inference with limited accuracy degradation, reducing memory requirement and multiplication cost. However, despite reduced operand precision, accumulation is often retained at high floating-point precisions, leaving a substantial hardware cost that operand quantization alone does not address. In particular, systolic arrays, as used in tensor accelerators such as Google TPU and AWS Trainium, distribute accumulation across distinct processing elements but conventionally use uniform accumulator precision throughout the array. This spatial organization offers an opportunity to reduce hardware cost by tailoring precision to individual accumulation stages. In this work, we present MIAO, a hardware-software co-design framework that jointly selects product precision and stage-dependent accumulator widths to minimize hardware area and energy cost under an end-to-end perplexity constraint. MIAO first calibrates MX block-scale shifts to reduce intermediate magnitudes while preserving operand quantization accuracy, then assigns narrower accumulators to earlier stages and progressively wider accumulators to later stages. To efficiently explore the resulting design space, MIAO combines hardware cost estimates derived from logic synthesis with a calibrated accuracy predictor to identify promising precision configurations, then validates the accuracy of promising candidates through bit-exact end-to-end LLM evaluation. Across MXFP8, MXFP6, and MXFP4, MIAO reduces processing element (PE) array area by up to 38.7% and energy by up to 36.1% relative to the all-BF16 accumulation baseline, with at most 1.60% additional perplexity degradation over operand-only MX quantization across six LLMs.
来源:arXiv (Robotics + Hardware + Signal) · arxiv.org