优化张量收缩路径:一种采用改进代价函数的贪心算法方法
Optimizing Tensor Contraction Paths: A Greedy Algorithm Approach With Improved Cost Functions
AI总结:
针对现有张量收缩路径求解算法计算耗时久、资源消耗大且难以处理大规模问题的缺陷,提出基于opt_einsum贪心算法的改进方法,可更快求解高效路径,还能处理现有算法失效的大规模问题。
摘要:
找到高效的张量收缩路径对模型计数、量子电路、图问题和语言模型等广泛领域的问题至关重要。目前已有多种寻找高效路径的方法,例如Optimized Einsum(opt_einsum)的贪心算法与随机贪心算法,以及cotengra中采用的贪心算法和超图划分方法。但这些算法需要大量计算时间与资源才能找到高效的收缩路径。本文提出一种基于opt_einsum贪心算法的新方法,能在更短时间内计算出高效的收缩路径。此外,借助该方法,我们甚至能为现有算法无法处理的大规模问题计算出收缩路径。
英文摘要:
Finding efficient tensor contraction paths is essential for a wide range of problems, including model counting, quantum circuits, graph problems, and language models. There exist several approaches to find efficient paths, such as the greedy and random greedy algorithm by Optimized Einsum (opt_einsum), and the greedy algorithm and hypergraph partitioning approach employed in cotengra. However, these algorithms require a lot of computational time and resources to find efficient contraction paths. In this paper, we introduce a novel approach based on the greedy algorithm by opt_einsum that computes efficient contraction paths in less time. Moreover, with our approach, we are even able to compute paths for large problems where modern algorithms fail.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。