AMXFP4: Taming Activation Outliers with Asymmetric Microscaling Floating-Point for 4-bit LLM Inference

📅 2024-11-15
🏛️ arXiv.org
📈 Citations: 2
Influential: 0
📄 PDF

career value

190K/year
🤖 AI Summary
To address accuracy degradation in 4-bit LLM inference caused by activation outliers, this paper proposes AMXFP4—a calibration-free, asymmetric micro-scaled floating-point format. Departing from conventional symmetric MX constraints, AMXFP4 is the first to uncover a fundamental trade-off between intra-group asymmetry and outlier suppression. It employs group-level dynamic shared scaling to enable heterogeneous rescaling, jointly suppressing outliers while preserving representational fidelity. The method supports fully quantized matrix multiplication, incurs zero calibration overhead, and requires negligible additional hardware cost. Experiments demonstrate that AMXFP4 achieves a 3% improvement over MXFP4 on VQA, outperforms rotation-based methods by 1.6% on CSQA, and surpasses deployed commercial MXFP4 variants. Notably, it enables the first end-to-end 4-bit LLM inference with competitive accuracy.

Technology Category

Application Category

📝 Abstract
As large language models (LLMs) grow in parameter size and context length, computation precision has been reduced from 16-bit to 4-bit to improve inference efficiency. However, this reduction causes accuracy degradation due to activation outliers. Rotation-based INT4 methods address this via matrix calibration, but they introduce multi-hour overheads and leave key computations in full precision. Microscaling (MX) floating-point (FP) formats offer fine-grained representation with a shared scale, enabling fully quantized matrix multiplications through direct casting without calibration. However, existing research shows unsatisfactory empirical results for MXFP4 inference, and the robustness of MX formats remains largely unexplored. In this work, we uncover the fundamental tradeoffs of the MX format: while it effectively suppresses activation outliers, it does so at the cost of increased group-wise asymmetry. To address this, we propose AMXFP4, a 4-bit asymmetric FP format that handles both issues using asymmetric shared scales, without requiring calibration. Our custom MAC engine adds negligible hardware cost while improving accuracy: AMXFP4 outperforms MXFP4 by 3% on VQA and exceeds rotation-based methods by 1.6% on CSQA. It also surpasses recently deployed commercial MXFP4 variants. Code: https://github.com/aiha-lab/MX-QLLM
Problem

Research questions and friction points this paper is trying to address.

Reducing 4-bit LLM inference accuracy loss from activation outliers
Eliminating multi-hour calibration overheads in rotation-based INT4 methods
Improving robustness of MXFP4 formats for fully quantized matrix multiplications
Innovation

Methods, ideas, or system contributions that make the work stand out.

Asymmetric FP format for 4-bit precision
Shared scales without calibration overhead
Custom MAC engine for improved accuracy
🔎 Similar Papers
2023-09-27International Conference on Learning RepresentationsCitations: 7
2024-09-19arXiv.orgCitations: 5
J
Janghwan Lee
Department of Electronic Engineering, Hanyang University, Seoul, Republic of Korea
J
Jiwoong Park
Department of Electronic Engineering, Hanyang University, Seoul, Republic of Korea
J
Jinseok Kim
Rebellions Inc., Republic of Korea
Y
Yongjik Kim
Rebellions Inc., Republic of Korea
J
Jungju Oh
Rebellions Inc., Republic of Korea
Jinwook Oh
Jinwook Oh
Rebellions Inc.
Machine LearningHardware AccelerationComputer ArchitectureComputer VisionHigh Performance Processor
Jungwook Choi
Jungwook Choi
Hanyang University
Deep Neural NetworkQuantizationLarge Language ModelEfficient AIAI Accelerator