H2OPUS-TLR:使用随机自适应逼近的高性能瓦片低秩对称分解
H2OPUS-TLR: High Performance Tile Low Rank Symmetric Factorizations using Adaptive Randomized Approximation
摘要:
密集矩阵的瓦片低秩表示将它们划分成大致均匀大小的块,其中每个非对角瓦片被压缩并存储为其自己的低秩因子分解。它们为实际应用中出现的许多数据稀疏密集算子提供了有吸引力的表示,可以实现大量压缩和更小的内存占用。TLR矩阵是规则的完全跨步数据结构的简单性与分层低秩矩阵的不平衡树的最佳复杂性之间的折衷,并且通过其瓦片大小提供方便的性能调整参数,所述瓦片大小可以被成比例以考虑瓦片驻留在存储层次结构中的高速缓存大小。目前还没有高性能算法可以生成Cholesky和$LDL^T$因子分解,特别是在GPU上。当对TLR矩阵进行因子分解时实现高性能的困难来自于在因子分解过程期间必须执行的昂贵的压缩操作以及导致处理核心的不规则工作模式的瓦片的自适应秩分布。在这项工作中,我们开发了一个动态的并行运算,并将其与批量自适应随机近似相结合,以实现GPU和CPU上的高性能。我们的实现达到了超过1.2 TFLOP/s的双精度的的V100 GPU上,并受到限制的批处理GEMM操作的性能。在空间统计中产生的大小为$N = 131K$的协方差矩阵的Cholesky因子分解可以在短短几秒钟内分解到精确度为$ε=10^{-2}$。我们相信,所提出的GEMM为中心的算法可以很容易地移植到新的硬件,如张量核心,优化小型GEMM操作。
英文摘要:
Tile low rank representations of dense matrices partition them into blocks of roughly uniform size, where each off-diagonal tile is compressed and stored as its own low rank factorization. They offer an attractive representation for many data-sparse dense operators that appear in practical applications, where substantial compression and a much smaller memory footprint can be achieved. TLR matrices are a compromise between the simplicity of a regular perfectly-strided data structure and the optimal complexity of the unbalanced trees of hierarchically low rank matrices, and provide a convenient performance-tuning parameter through their tile size that can be proportioned to take into account the cache size where the tiles reside in the memory hierarchy. There are currently no high-performance algorithms that can generate Cholesky and $LDL^T$ factorizations, particularly on GPUs. The difficulties in achieving high performance when factoring TLR matrices come from the expensive compression operations that must be performed during the factorization process and the adaptive rank distribution of the tiles that causes an irregular work pattern for the processing cores. In this work, we develop a dynamic batching operation and combine it with batched adaptive randomized approximations to achieve high performance both on GPUs and CPUs. Our implementation attains over 1.2 TFLOP/s in double precision on the V100 GPU, and is limited by the performance of batched GEMM operations. The Cholesky factorization of covariance matrix of size $N = 131K$ arising in spatial statistics can be factored to an accuracy $ε=10^{-2}$ in just a few seconds. We believe the proposed GEMM-centric algorithm allows it to be readily ported to newer hardware such as the tensor cores that are optimized for small GEMM operations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。