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

通过移位感知的实时对齐 mantissa 位宽预测实现数字 CIM 上 FP8 计算精度与效率的平衡

Balancing FP8 Computation Accuracy and Efficiency on Digital CIM via Shift-Aware On-the-fly Aligned-Mantissa Bitwidth Prediction

South China University of Technology(华南理工大学);The Hong Kong University of Science and Technology(香港科技大学);Westlake University(西湖大学)

Liang Zhao, Kunming Shao, Zhipeng Liao, Xijie Huang, Tim Kwang-Ting Cheng, Chi-Ying Tsui, Yi Zou

AI总结:

本文提出了一种灵活的 FP8 DCIM 加速器,通过动态移位感知位宽预测、基于 FIFO 的输入对齐单元和可扩展的 INT MAC 数组,实现了在数字 CIM 上平衡 FP8 计算的精度与效率,同时支持所有 FP8 格式。

摘要:

FP8 低精度格式在 Transformer 推理和训练中得到了广泛应用。然而,现有的数字计算-内存 (DCIM) 架构在支持可变 FP8 对齐 mantissa 位宽方面面临挑战,因为统一的对齐策略和固定精度的乘加 (MAC) 单元难以处理具有不同分布的输入数据。本文提出了一种灵活的 FP8 DCIM 加速器,具有三个创新点:(1) 一种动态移位感知位宽预测 (DSBP),通过实时输入预测,自适应调整权重 (2/4/6/8b) 和输入 (2~12b) 对齐 mantissa 精度;(2) 一种基于 FIFO 的输入对齐单元 (FIAU),用指针控制代替复杂的 barrel shifter;(3) 一种可扩展的 INT MAC 数组,实现灵活的权重精度,且具有最小的开销。在 28nm CMOS 上实现,包含 64×96 CIM 数组,该设计在固定 E5M7 情况下实现了 20.4 TFLOPS/W,比先前工作高 2.8 倍的 FP8 效率,同时支持所有 FP8 格式。在 Llama-7b 上的结果显示,DSBP 在 BoolQ 和 Winogrande 数据集上在相同精度水平下比固定位宽模式更高效,可配置参数允许灵活的精度-效率权衡。

英文摘要:

FP8 low-precision formats have gained significant adoption in Transformer inference and training. However, existing digital compute-in-memory (DCIM) architectures face challenges in supporting variable FP8 aligned-mantissa bitwidths, as unified alignment strategies and fixed-precision multiply-accumulate (MAC) units struggle to handle input data with diverse distributions. This work presents a flexible FP8 DCIM accelerator with three innovations: (1) a dynamic shift-aware bitwidth prediction (DSBP) with on-the-fly input prediction that adaptively adjusts weight (2/4/6/8b) and input (2$\sim$12b) aligned-mantissa precision; (2) a FIFO-based input alignment unit (FIAU) replacing complex barrel shifters with pointer-based control; and (3) a precision-scalable INT MAC array achieving flexible weight precision with minimal overhead. Implemented in 28nm CMOS with a 64$\times$96 CIM array, the design achieves 20.4 TFLOPS/W for fixed E5M7, demonstrating 2.8$\times$ higher FP8 efficiency than previous work while supporting all FP8 formats. Results on Llama-7b show that the DSBP achieves higher efficiency than fixed bitwidth mode at the same accuracy level on both BoolQ and Winogrande datasets, with configurable parameters enabling flexible accuracy-efficiency trade-offs.

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

↑