用于 Tensor Cores 上 RandNLA 的混合精度随机投影
Mixed-Precision Random Projection for RandNLA on Tensor Cores
AI总结:
提出一种在 NVIDIA GPU Tensor Cores 上利用 FP32 与 FP16 混合精度矩阵乘法(SHGEMM)的快速随机投影方法,在保持精度的同时显著提升了 RandNLA 中 SVD 计算的速度。
摘要:
随机投影可以在捕获数据结构的同时降低数据维度,是当今处理大量数据的机器学习、信号处理和信息检索的基本工具。RandNLA(随机化数值线性代数)利用随机投影来降低张量低秩分解的计算复杂度,并求解最小二乘问题。尽管随机投影的计算只是简单的矩阵乘法,但其渐近计算复杂度通常大于 RandNLA 算法中的其他操作。因此,已有各种研究提出降低其计算复杂度的方法。我们提出了一种在 NVIDIA GPU 上利用 Tensor Cores 针对单精度张量的快速混合精度随机投影方法。我们利用了随机矩阵需要较低精度的特性,在 Tensor Cores 上开发了高度优化的 FP32 与 FP16 矩阵之间的矩阵乘法——SHGEMM(单精度与半精度 GEMM),其中随机矩阵以 FP16 格式存储。与基准单精度实现相比,在保持精度的同时,我们的方法计算 Randomized SVD 的速度提高了 1.28 倍,计算随机投影高阶 SVD 的速度提高了 1.75 倍。
英文摘要:
Random projection can reduce the dimension of data while capturing its structure and is a fundamental tool for machine learning, signal processing, and information retrieval, which deal with a large amount of data today. RandNLA (Randomized Numerical Linear Algebra) leverages random projection to reduce the computational complexity of low-rank decomposition of tensors and solve least-square problems. While the computation of the random projection is a simple matrix multiplication, its asymptotic computational complexity is typically larger than other operations in a RandNLA algorithm. Therefore, various studies propose methods for reducing its computational complexity. We propose a fast mixed-precision random projection method on NVIDIA GPUs using Tensor Cores for single-precision tensors. We exploit the fact that the random matrix requires less precision, and develop a highly optimized matrix multiplication between FP32 and FP16 matrices -- SHGEMM (Single and Half-precision GEMM) -- on Tensor Cores, where the random matrix is stored in FP16. Our method can compute Randomized SVD 1.28 times faster and Random projection high order SVD 1.75 times faster than baseline single-precision implementations while maintaining accuracy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。