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

FlexiBit:面向任意混合精度AI的全灵活精度位并行加速器架构

FlexiBit: Fully Flexible Precision Bit-parallel Accelerator Architecture for Arbitrary Mixed Precision AI

Faraz Tahmasebi, Yian Wang, Benji Y. H. Huang, Hyoukjun Kwon

AI总结:

本文提出FlexiBit加速器架构,通过位并行处理任意精度与格式的FP/INT运算,解决现有硬件仅支持2的幂次精度及格式固定导致的灵活性不足问题,在FP6 GPT-3上相比Tensor Core类架构和BitFusion分别实现1.66倍和1.62倍每面积性能提升。

摘要:

近期研究表明,大语言模型(LLMs)可以利用低精度浮点(FP)量化在保持原始模型精度的同时实现高效率。特别是,近期工作已经证明了非2的幂次精度(如FP6和FP5)的有效性,以及LLM各层对低精度算术的敏感度差异,这推动了在LLM中采用包含非2的幂次精度的混合精度算术。尽管低精度在算法层面能带来较低的计算开销,但由于硬件约束仅支持有限的2的幂次精度(例如NVIDIA H100 Tensor Core中的FP8、FP16、FP32和FP64),这些优势无法被充分利用。此外,硬件计算单元被设计为支持标准格式(例如FP8的E4M3和E5M2)。这种做法要求每当新的精度和格式出现时重新设计硬件,从而导致为利用新精度和格式的优势而产生高昂的硬件替换成本。因此,在本文中,我们提出了一种新的加速器架构FlexiBit,它能够高效地支持任意精度和格式的FP和INT算术。与先前的位串行设计不同——这些设计虽然也提供灵活性,但由于其逐位时间处理特性而牺牲了性能——FlexiBit的架构能够在没有计算单元利用率不足的情况下,对任意精度和格式进行位并行处理。FlexiBit利用非2的幂次精度和格式的新能力,在面向云规模加速器的FP6精度GPT-3上,与类Tensor Core架构和当前最先进的位并行灵活精度加速器BitFusion相比,分别实现了1.66倍和1.62倍的每面积性能提升。同时,FlexiBit架构的位并行特性与当前最先进的位串行架构相比,实现了3.9倍的性能/面积提升。

英文摘要:

Recent research has shown that large language models (LLMs) can utilize low-precision floating point (FP) quantization to deliver high efficiency while maintaining original model accuracy. In particular, recent works have shown the effectiveness of non-power-of-two precisions, such as FP6 and FP5, and diverse sensitivity to low-precision arithmetic of LLM layers, which motivates mixed precision arithmetic including non-power-of-two precisions in LLMs. Although low-precision algorithmically leads to low computational overheads, such benefits cannot be fully exploited due to hardware constraints that support a limited set of power-of-two precisions (e.g., FP8, 16, 32, and 64 in NVIDIA H100 Tensor Core). In addition, the hardware compute units are designed to support standard formats (e.g., E4M3 and E5M2 for FP8). Such practices require re-designing the hardware whenever new precision and format emerge, which leads to high hardware replacement costs to exploit the benefits of new precisions and formats. Therefore, in this paper, we propose a new accelerator architecture, FlexiBit, which efficiently supports FP and INT arithmetic in arbitrary precisions and formats. Unlike previous bit-serial designs, which also provide flexibility but at the cost of performance due to its bit-wise temporal processing nature, FlexiBit's architecture enables bit-parallel processing of any precision and format without compute unit underutilization. FlexiBit's new capability to exploit non-power of two precision and format led to 1.66x and 1.62x higher performance per area on GPT-3 in FP6 targeting a cloud-scale accelerator, compared to a Tensor Core-like architecture and a state-of-the-art bit-parallel flexible precision accelerator, BitFusion, respectively. Also, the bit-parallel nature of FlexiBit's architecture led to 3.9x higher performance/area compared to a state-of-the-art bit-serial architecture.

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

↑