arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.11615cs.ARcs.AIcs.DCcs.LG
收藏

CUTEv2:面向多样化CPU架构的统一且可配置的矩阵扩展架构,具有最小的设计开销

CUTEv2: Unified and Configurable Matrix Extension for Diverse CPU Architectures with Minimal Design Overhead

State Key Lab of Processors, Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所处理器国家重点实验室);University of Chinese Academy of Sciences(中国科学院大学)

Jinpeng Ye, Chongxi Wang, Wenqing Li, Bin Yuan, Shiyi Wang, Fenglu Zhang, Junyu Yue, Jianan Xie, Yunhao Ye, Haoyu Deng, Yingkun Zhou, Xin Cheng, Fuxin Zhang, Jian Wang

AI总结:

CUTEv2通过解耦矩阵单元与CPU流水线,实现低开销的矩阵扩展架构,支持混合精度运算并提升AI模型性能,跨平台适应性强。

摘要:

矩阵扩展已成为现代CPU中应对AI工作负载激增需求的重要特征。然而,现有设计通常带来显著的硬件和软件设计开销。与CPU流水线的紧密耦合使得在不同CPU之间集成变得复杂,而细粒度的同步指令阻碍了高性能内核的发展。本文提出了一种统一且可配置的CPU矩阵扩展架构。通过将矩阵单元与CPU流水线解耦,该设计实现了低开销集成,同时保持与现有计算和内存资源的紧密协调。可配置的矩阵单元支持混合精度运算,并适应多样化的计算需求和内存带宽约束。异步矩阵乘法抽象具有灵活的粒度,隐藏了硬件细节,简化了矩阵-向量重叠,并支持统一的软件栈。该架构被集成到四个开源CPURTL平台中,并在代表性AI模型上进行了评估。在GEMM负载下,矩阵单元利用率在所有平台上均超过90%。当配置为与Intel AMX具有相似的计算吞吐量和内存带宽时,该设计在ResNet、BERT和Llama3上分别实现了1.57x、1.57x和2.31x的加速,其中超过30%的增益归因于重叠的矩阵-向量执行。一个4 TOPS@2GHz的矩阵单元在14nm CMOS中仅占用0.53 mm²。这些结果展示了强跨平台适应性和有效的硬件-软件协同优化,为开源社区提供了一个实用的矩阵扩展方案。

英文摘要:

Matrix extensions have emerged as an essential feature in modern CPUs to address the surging demands of AI workloads. However, existing designs often incur substantial hardware and software design overhead. Tight coupling with the CPU pipeline complicates integration across diverse CPUs, while fine-grained synchronous instructions hinder the development of high-performance kernels. This paper proposes a unified and configurable CPU matrix extension architecture. By decoupling matrix units from the CPU pipeline, the design enables low-overhead integration while maintaining close coordination with existing compute and memory resources. The configurable matrix unit supports mixed-precision operations and adapts to diverse compute demands and memory bandwidth constraints. An asynchronous matrix multiplication abstraction with flexible granularity conceals hardware details, simplifies matrix-vector overlap, and supports a unified software stack. The architecture is integrated into four open-source CPU RTL platforms and evaluated on representative AI models. Matrix unit utilization under GEMM workloads exceeds 90% across all platforms. When configured with compute throughput and memory bandwidth comparable to Intel AMX, our design achieves speedups of 1.57x, 1.57x, and 2.31x on ResNet, BERT, and Llama3, with over 30% of the gains attributed to overlapped matrix-vector execution. A 4 TOPS@2GHz matrix unit occupies only 0.53 mm\textsuperscript{2} in 14nm CMOS. These results demonstrate strong cross-platform adaptability and effective hardware-software co-optimization, offering a practical matrix extension for the open-source community.

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

↑