Optimizing Tensor Contraction Paths: A Greedy Algorithm Approach With Improved Cost Functions (2405.09644v1)
Abstract: Finding efficient tensor contraction paths is essential for a wide range of problems, including model counting, quantum circuits, graph problems, and LLMs. 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.
- Eli Meirom et al. Optimizing tensor network contraction using reinforcement learning. In International Conference on Machine Learning, 2022.
 - Hyper-optimized tensor network contraction. Quantum, 2021.
 - The tensor networks anthology: Simulation techniques for many-body quantum lattice systems. SciPost Physics Lecture Notes, 2019.
 - Efficient contraction of large tensor networks for weighted model counting through graph decompositions. arXiv: 1908.04381, 2020.
 - Faster identification of optimal contraction sequences for tensor networks. In Physical Review E, 2014.
 - Algorithms for tensor network contraction ordering. Machine Learning: Science and Technology, 2020.
 - Opt_einsum - a python package for optimizing contraction order for einsum-like expressions. Journal of Open Source Software, 2018.
 - Optimized einsum. https://dgasmith.github.io/opt_einsum/. (retrieved: 07.02.2024).
 - NumPy Developers. Numpy - einsum. https://numpy.org/doc/stable/reference/generated/numpy.einsum.html. (retrieved: 07.02.2024).
 - Johnnie Gray. Cotengra. https://github.com/jcmgray/cotengra. (retrieved: 07.03.2024).
 - High-quality hypergraph partitioning. ACM Journal of Experimental Algorithmics, 2022.
 
Paper Prompts
Sign up for free to create and run prompts on this paper using GPT-5.
Top Community Prompts
Collections
Sign up for free to add this paper to one or more collections.