跳到正文
arXiv (AI + Vision + Imaging)· Zhiyuan Zhang, Yanzhao Li, Hui Dong, Sifan Cheng, Jingwei Zhang·· 8 天前AI 评分36

HiMX:基于定制HIFLOAT4表示的混合格式矩阵乘法

HIMX: mixed-format matrix multiplication based on customized HIFLOAT4 representations

AI 导读

HiMX 提出一种基于 HIF4 分层缩放结构的混合尾数框架,让权重使用更密集的 S1P2、激活使用 E2M1,并将异构尾数转换为不同位宽的定点整数操作数,共享统一整数 MAC 阵列。在 Qwen3-8B 上,该混合格式组合的输出 MSE 低于同构配置,多个基准上平均端到端精度损失从 2.38 降至 1.77 点;Qwen3-30B-A3B 上从 2.23 降至 1.85 点。

正文 · 原文

arXiv:2611.18641v1 Announce Type: new Abstract: 4-bit weight-activation quantization (W4A4) is an important approach for efficient large language model (LLM) inference. Recent hierarchical formats such as HiFloat4 (HIF4) improve the representational range of 4-bit quantization through multi-level scaling. However, the same local mantissa representation in HIF4 may not be equally suitable for weights and activations, which exhibit distinct distribution characteristics. To address this limitation, we propose HiMX, a mixed-mantissa framework built upon the hierarchical scaling structure of HIF4. Our key observation is that the two HIF4-compatible mantissa representations, S1P2 and E2M1, exhibit complementary quantization behavior: the denser S1P2 format provides higher resolution for concentrated weight distributions, while the wider-spaced E2M1 format provides complementary quantization characteristics for activation tensors. HiMX enables operand-tailored mantissa representations while converting heterogeneous mantissas into fixed-point integer operands with operand-specific widths, allowing different operand formats to share a unified integer multiply-accumulate (MAC) array. Block-level analysis on Qwen3-8B shows that HIF4-S1P2 is better suited for weights while HIF4 E2M1 is better suited for activations, and their mixed-format combination achieves lower output MSE than homogeneous configurations. Across multiple benchmarks, HiMX reduces the average end-to-end accuracy loss from 2.38 to 1.77 points on Qwen3-8B and from 2.23 to 1.85 points on Qwen3-30B-A3B, demonstrating the potential benefit of heterogeneous mantissa representations for W4A4 LLM inference.

来源:arXiv (AI + Vision + Imaging) · arxiv.org