arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.11287cs.LGcs.AIcs.AR
收藏

HiFloat4格式用于语言模型推断

HiFloat4 Format for Language Model Inference

Yuanyong Luo, Jing Huang, Yu Cheng, Ziwei Yu, Kaihua Tang, Xinda Ma, Xin Wang, Anping Tong, Guipeng Hu, Yun Xu, Mehran Taghian, Peng Wu, Guanglin Li, Yunke Peng… 展开作者

Yuanyong Luo, Jing Huang, Yu Cheng, Ziwei Yu, Kaihua Tang, Xinda Ma, Xin Wang, Anping Tong, Guipeng Hu, Yun Xu, Mehran Taghian, Peng Wu, Guanglin Li, Yunke Peng, Tianchi Hu, Minqi Chen, Michael Bi Mi, Hu Liu, Xiping Zhou, Junsong Wang, Qiang Lin, Heng Liao

AI总结:

HiFloat4通过优化块浮点格式提升语言模型推断的精度与效率,减少硬件资源消耗。

摘要:

本文介绍了HiFloat4(HiF4),一种专为深度学习设计的块浮点数据格式。每个HiF4单元包含64个4位元素,共32位共享的缩放元数据,平均每个值为4.5位。元数据指定了三级缩放层次结构,在捕获跨组和组内动态范围的同时,提高了表示空间的利用率。此外,大64元素组大小使矩阵乘法能够以高度固定的定点方式执行,显著减少了硬件面积和功耗。为了评估所提格式,我们在几种语言模型上进行了推断实验,包括LLaMA、Qwen、Mistral、DeepSeek-V3.1和LongCat。结果表明,HiF4在多个模型和多样下游任务中比最先进的NVFP4格式实现了更高的平均准确率。

英文摘要:

This paper introduces HiFloat4 (HiF4), a block floating-point data format tailored for deep learning. Each HiF4 unit packs 64 4-bit elements with 32 bits of shared scaling metadata, averaging 4.5 bits per value. The metadata specifies a three-level scaling hierarchy, capturing inter- and intra-group dynamic range while improving the utilization of the representational space. In addition, the large 64-element group size enables matrix multiplications to be executed in a highly fixed-point manner, significantly reducing hardware area and power consumption. To evaluate the proposed format, we conducted inference experiments on several language models, including LLaMA, Qwen, Mistral, DeepSeek-V3.1 and LongCat. Results show that HiF4 achieves higher average accuracy than the state-of-the-art NVFP4 format across multiple models and diverse downstream tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑