稀疏张量算法的高性能重排和乘法并行算法
High Performance Rearrangement and Multiplication Routines for Sparse Tensor Arithmetic
摘要:
研究人员越来越多地将数字高阶数据,即,数字张量,在他们的实践中。就像矩阵/向量(MV)范例一样,多用途但高性能的稀疏数据结构和算术计算算法的开发,例如,在爱因斯坦式符号中发现的那些,对于张量的继续采用至关重要。我们用高阶微分算子的例子来说明这种需要。由于稀疏张量算法是一个新兴的研究课题,具有不同于MV范式的挑战,因此许多方面需要进一步阐述。我们专注于三个核心方面。首先,与该领域的主要声音一致,我们强调了数据结构的重要性,它能够适应张量运算的操作复杂性。然而,我们描述了一个线性坐标(LCO)数据结构,提供更快,更内存有效的排序性能。第二,灵活的数据结构,如LCO,严重依赖于排序和排列。我们引入了一个创新的置换算法,基数排序的基础上,这是专门重新排列已经排序的稀疏数据,产生显着的性能增益。第三,我们引入了一种新型的稀疏张量积多元算法,其中可能存在超稀疏性。超稀疏性的不同表现形式需要自己的方法,我们的poly-algorithm是第一个提供的。这些开发都包含在我们的LibNT和NTNT软件库中。通常从高阶微分算子示例中提取的基准测试证明了我们例程的实际影响,与替代高性能实现相比,速度提高了40%或更高。与MATLAB Tensor的比较显示速度提高了10倍以上。因此,这些进步产生了显着的实际改进稀疏张量算法。
英文摘要:
Researchers are increasingly incorporating numeric high-order data, i.e., numeric tensors, within their practice. Just like the matrix/vector (MV) paradigm, the development of multi-purpose, but high-performance, sparse data structures and algorithms for arithmetic calculations, e.g., those found in Einstein-like notation, is crucial for the continued adoption of tensors. We use the example of high-order differential operators to illustrate this need. As sparse tensor arithmetic is an emerging research topic, with challenges distinct from the MV paradigm, many aspects require further articulation. We focus on three core facets. First, aligning with prominent voices in the field, we emphasise the importance of data structures able to accommodate the operational complexity of tensor arithmetic. However, we describe a linearised coordinate (LCO) data structure that provides faster and more memory-efficient sorting performance. Second, flexible data structures, like the LCO, rely heavily on sorts and permutations. We introduce an innovative permutation algorithm, based on radix sort, that is tailored to rearrange already-sorted sparse data, producing significant performance gains. Third, we introduce a novel poly-algorithm for sparse tensor products, where hyper-sparsity is a possibility. Different manifestations of hyper-sparsity demand their own approach, which our poly-algorithm is the first to provide. These developments are incorporated within our LibNT and NTToolbox software libraries. Benchmarks, frequently drawn from the high-order differential operators example, demonstrate the practical impact of our routines, with speed-ups of 40% or higher compared to alternative high-performance implementations. Comparisons against the MATLAB Tensor Toolbox show over 10 times speed improvements. Thus, these advancements produce significant practical improvements for sparse tensor arithmetic.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。