Swift:面向科学应用的高性能稀疏张量缩并
Swift: High-Performance Sparse Tensor Contraction for Scientific Applications
AI总结:
针对稀疏张量缩并计算成本高的问题,提出Swift算法,通过高效分组、优化数据结构和哈希表实现替代高成本排序,在测试中实现高达20倍加速并更好处理不平衡张量。
摘要:
在量子计算、物理、化学和机器学习等科学领域,高维数据通常使用稀疏张量来表示。张量缩并是一种流行的张量操作,用于提取意义或改变输入张量。然而,张量缩并计算成本高昂,且复杂度随元素数量呈二次方增长。因此,人们创建了专门的算法来仅处理非零元素。当前的稀疏张量缩并算法使用了次优的数据结构,执行了不必要的计算,从而增加了执行时间和整体时间复杂度。我们提出了 Swift,一种用于稀疏张量缩并的新型算法,它用更高效的分组取代了高成本的排序,利用更好的数据结构来表示张量,并采用了更内存友好的哈希表实现。Swift 与最先进的稀疏张量缩并算法进行了对比评估,在各种测试用例中展现出高达 20 倍的加速,并且能够显著更好地处理不平衡的输入张量。
英文摘要:
In scientific fields such as quantum computing, physics, chemistry, and machine learning, high dimensional data are typically represented using sparse tensors. Tensor contraction is a popular operation on tensors to exploit meaning or alter the input tensors. Tensor contraction is, however, computationally expensive and grows quadratically with the number of elements. For this reason, specialized algorithms have been created to only operate on the nonzero elements. Current sparse tensor contraction algorithms utilize sub-optimal data structures that perform unnecessary computations which increase execution time and the overall time complexity. We propose Swift, a novel algorithm for sparse tensor contraction that replaces the costly sorting with more efficient grouping, utilizes better data structures to represent tensors, and employs more memory-friendly hash table implementation. Swift is evaluated against the state-of-the-art sparse tensor contraction algorithm, demonstrating up to 20x speedup in various test cases and being able to handle imbalanced input tensors significantly better.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。