Tensor Network Structure Search with Program Synthesis
Zheng Guo, Aditya Deshpande, Brian Kiedrowski, Xinyu Wang, Alex Gorodetsky
TL;DR
This work addresses tensor network structure search (TN-SS) by reframing it as transformation program synthesis. It introduces output-directed splits to prune the search space, and a constraint-based ranking pipeline that avoids performing full tensor decompositions for most candidates. The method decomposes the TN-SS workflow into four phases: singular value precomputation, sketch-program generation, cost estimation via integer programming, and final decomposition/rounding, achieving up to 10x faster search and 1.5x–3x better compression than state-of-the-art on large tensors, with demonstrated generalization to unseen data. The approach offers scalable, principled TN-SS that is applicable to machine learning, scientific computing, and related domains where efficient data compression is essential.
Abstract
Tensor networks provide a powerful framework for compressing multi-dimensional data. The optimal tensor network structure for a given data tensor depends on both data characteristics and specific optimality criteria, making tensor network structure search a difficult problem. Existing solutions typically rely on sampling and compressing numerous candidate structures; these procedures are computationally expensive and therefore limiting for practical applications. We address this challenge by viewing tensor network structure search as a program synthesis problem and introducing an efficient constraint-based assessment method that avoids costly tensor decomposition. Specifically, we establish a correspondence between transformation programs and network structures. We also design a novel operation named output-directed splits to reduce the search space without hindering expressiveness. We then propose a synthesis algorithm to identify promising network candidates through constraint solving, and avoid tensor decomposition for all but the most promising candidates. Experimental results show that our approach improves search speed by up to $10\times$ and achieves compression ratios $1.5\times$ to $3\times$ better than state-of-the-art. Notably, our approach scales to larger tensors that are unattainable by prior work. Furthermore, the discovered topologies generalize well to similar data, yielding compression ratios up to $ 2.4\times$ better than a generic structure while the runtime remains around $110$ seconds.
