VMXDOTP:一种用于高效微缩格式加速的RISC-V向量指令集扩展
VMXDOTP: A RISC-V Vector ISA Extension for Efficient Microscaling (MX) Format Acceleration
AI总结:
VMXDOTP是一种基于RISC-V向量指令集的扩展,用于高效实现微缩格式的点积运算,支持多种精度输入和混合精度计算,显著提升了能效和计算效率。
摘要:
与第一代深度神经网络相比,以矩阵乘法(MatMuls)和卷积为代表的常规、计算密集型内核主导了早期的模型。现代基于解码器的Transformer通过交错注意力、归一化和数据依赖的控制流,对计算提出了新的要求。这种需求通过可扩展、高能效的共享L1内存向量处理单元(VPE)集群得到满足。同时,随着最先进模型的规模和带宽需求不断增长,降低精度的格式变得越来越有吸引力。基于块浮点(BFP)表示的微缩(MX)数据格式已成为减少数据量同时保持精度的有希望的解决方案。然而,MX语义与向量执行不匹配:块缩放和多步混合精度操作破坏了向量流水线的规律性,导致计算资源利用率低下和性能下降。为了解决这些挑战,我们提出了VMXDOTP,一种RISC-V向量(RVV)1.0指令集架构(ISA)的扩展,用于高效的MX点积执行,支持MXFP8和MXFP4输入,FP32和BF16累加,以及软件定义的块大小。增强的VPE集群在MX-MatMul上实现了高达97%的利用率。在12nm FinFET工艺实现后,其达到了高达125 MXFP8-GFLOPS和250 MXFP4-GFLOPS,功率为1 GHz、0.8 V时,MXFP8/MXFP4-GFLOPS/W分别为843/1632,仅7.2%的面积开销。我们的设计相对于软件模拟的MXFP8-MatMul,速度提升了7.0倍,能效提高了4.9倍。与之前的MX引擎相比,VMXDOTP支持可变块大小,面积效率提高了1.4倍,能效提高了2.1倍。
英文摘要:
Compared to the first generation of deep neural networks, dominated by regular, compute-intensive kernels such as matrix multiplications (MatMuls) and convolutions, modern decoder-based transformers interleave attention, normalization, and data-dependent control flow. This demands flexible accelerators, a requirement met by scalable, highly energy-efficient shared-L1-memory vector processing element (VPE) clusters. Meanwhile, the ever-growing size and bandwidth needs of state-of-the-art models make reduced-precision formats increasingly attractive. Microscaling (MX) data formats, based on block floating-point (BFP) representations, have emerged as a promising solution to reduce data volumes while preserving accuracy. However, MX semantics are poorly aligned with vector execution: block scaling and multi-step mixed-precision operations break the regularity of vector pipelines, leading to underutilized compute resources and performance degradation. To address these challenges, we propose VMXDOTP, a RISC-V Vector (RVV) 1.0 instruction set architecture (ISA) extension for efficient MX dot product execution, supporting MXFP8 and MXFP4 inputs, FP32 and BF16 accumulation, and software-defined block sizes. A VMXDOTP-enhanced VPE cluster achieves up to 97 % utilization on MX-MatMul. Implemented in 12 nm FinFET, it achieves up to 125 MXFP8-GFLOPS and 250 MXFP4-GFLOPS, with 843/1632 MXFP8/MXFP4-GFLOPS/W at 1 GHz, 0.8 V, and only 7.2 % area overhead. Our design yields up to 7.0x speedup and 4.9x energy efficiency with respect to software-emulated MXFP8-MatMul. Compared with prior MX engines, VMXDOTP supports variable block sizes, is up to 1.4x more area-efficient, and delivers up to 2.1x higher energy efficiency.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。