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

TOMOS:消除混合精度矩阵计算中的数据重复

TOMOS: Eliminating Data Duplication in Mixed-Precision Matrix Computations

Purdue University(普渡大学)

Vasileios Georgiou, Petros Drineas

AI总结:

针对混合精度矩阵计算的数据重复问题,提出复合精度矩阵格式TOMOS,其通过拆分FP32条目实现双精度访问,优化内核在A100上获高吞吐量,求解器加速达1.6倍且无冗余分配。

摘要:

混合精度算法利用低精度硬件,但用不同精度计算同一矩阵通常需要重复存储、多次转换或操作仿真。我们提出TOMOS,一种复合精度矩阵格式,可从单一表示提供隐式32位和16位访问。每个FP32条目被拆分为用于低精度计算的16位主字和支持精确FP32重构的互补字。该编码方案通过次正规表示提升低精度视图的数值质量,并支持高精度输入的精确恢复。TOMOS使用FP32大小的存储,数据移动随计算精度缩放。在NVIDIA A100 GPU上,优化的GEMM和GEMV内核实现了与供应商库相当的吞吐量,而混合精度最小二乘求解器在无冗余矩阵分配的情况下,比FP32实现了高达1.6倍的加速。

英文摘要:

Mixed-precision algorithms exploit reduced-precision hardware, however computing with the same matrix at distinct precisions typically requires duplicate storage, repeated conversions, or operation-emulation. We introduce TOMOS, a composite-precision matrix format that provides implicit 32-bit and 16-bit access from a single representation. Each FP32 entry is split into a 16-bit primary word for low-precision computation and a complementary word that enables exact FP32 reconstruction. The encoding scheme improves numerical quality of the low-precision view through subnormal representations, and allows exact recovery of high-precision inputs. TOMOS uses FP32-sized storage, with data movement scaling with compute precision. Optimized GEMM and GEMV kernels achieve throughput comparable to vendor libraries on NVIDIA A100 GPUs, while a mixed-precision least-squares solver achieves up to 1.6x speedup over FP32 without redundant matrix allocations.

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

↑