Ozaki方案在整数矩阵乘法单元上的性能提升
Performance Enhancement of the Ozaki Scheme on Integer Matrix Multiplication Unit
AI总结:
本文提出通过减少低精度乘法和高精度加法的数量来优化Ozaki方案,从而在整数矩阵乘法单元上同时实现高精度与高性能。
摘要:
本研究旨在同时实现一般矩阵乘法的足够精度和高性能。诸如NVIDIA GPU等近期架构配备了专为机器学习模型中的低精度矩阵乘法设计的高性能单元,且下一代架构预计将遵循相同的设计原则。实现卓越性能的关键在于充分利用此类架构。Ozaki方案是一种使用无误差变换的高精度矩阵乘法算法,它通过多次低精度矩阵乘法和高精度矩阵加法来执行高精度矩阵乘法。Ootomo等人等在高性能矩阵乘法单元上实现了Ozaki方案,旨在同时达到足够的精度和高性能。本文提出了通过减少低精度矩阵乘法和高精度矩阵加法的数量来提升性能的替代方法。数值实验验证了结果的准确性,并对所提方法进行了性能基准测试。这些方法有望在下一代架构中产生更高效的结果。
英文摘要:
This study was aimed at simultaneously achieving sufficient accuracy and high performance for general matrix multiplications. Recent architectures, such as NVIDIA GPUs, feature high-performance units designed for low-precision matrix multiplications in machine learning models, and next-generation architectures are expected to follow the same design principle. The key to achieving superior performance is to fully leverage such architectures. The Ozaki scheme, a highly accurate matrix multiplication algorithm using error-free transformations, enables higher-precision matrix multiplication to be performed through multiple lower-precision matrix multiplications and higher-precision matrix additions. Ootomo et al. implemented the Ozaki scheme on high-performance matrix multiplication units with the aim of achieving both sufficient accuracy and high performance. This paper proposes alternative approaches to improving performance by reducing the numbers of lower-precision matrix multiplications and higher-precision matrix additions. Numerical experiments demonstrate the accuracy of the results and conduct performance benchmarks of the proposed approaches. These approaches are expected to yield more efficient results in next-generation architectures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。