Abstract
Finding the optimal structure for a Tensor Network (TN) is a notoriously difficult, NP-hard problem that typically requires extensive trial and error. We introduce TnALE (Alternating Local Enumeration), an algorithm designed to find high-quality TN structures with significantly fewer evaluations than previous state-of-the-art methods. By replacing random neighborhood sampling with a deterministic, alternating coordinate-descent-style search, TnALE reduces the complexity of the search space from exponential to linear relative to the dimension. Our evaluations across synthetic topologies, regression datasets, and natural images demonstrate that TnALE achieves up to a 10x speedup while maintaining or improving solution quality.
Introduction
Tensor Networks (TNs) are essential for decomposing high-dimensional data into smaller "cores." However, the effectiveness of a TN depends on solving the Tensor Network Structure Search (TN-SS) problem: determining the optimal topology, internal dimensions (ranks), and input data ordering (permutation).
The search space for TN-SS grows exponentially with the number of dimensions, making brute-force approaches infeasible. Existing methods like Tensor Network Local Search (TNLS) utilize neighborhood-based random sampling. While effective, TNLS requires a massive number of objective function evaluations—each involving costly inner optimizations—limiting its practical utility. TnALE addresses this bottleneck by shifting the search strategy toward efficient local enumeration.
Methodology: Alternating Local Enumeration
The core innovation of TnALE is the Alternating Local Enumeration (ALE) scheme. Instead of simultaneously perturbing multiple structure variables, TnALE updates them sequentially while keeping others fixed.
Key algorithmic features include:
- Alternating Updates: Variables (e.g., specific ranks or permutations) are updated one by one in a "coordinate-descent" fashion.
- Local Enumeration: For each variable, the algorithm exhaustively evaluates all possible values within a predefined local neighborhood.
- Round-Trip Order: Updates are performed in both a "forward" and "backward" pass to ensure thorough exploration of the local search space.
- Efficiency Optimizations: To accelerate the search, TnALE reuses optimized cores from lower-rank structures (knowledge transfer) and employs linear interpolation to estimate objective values in early stages.
Theoretically, TnALE reduces the search complexity from $\Omega(2^K)$ (for random sampling) to $O(K)$ (linear with dimension $K$), assuming a "low-rank" optimization landscape.
Experimental Evaluation
The performance of TnALE was benchmarked against TNLS and Genetic Algorithms (TNGA) using synthetic tensors, regression datasets (CCPP, MG, Protein), and natural images from the BSD500 dataset.
Key Results
TnALE consistently outperformed baseline methods in terms of evaluation efficiency. In synthetic tests across various topologies—including Tensor Ring (TR), PEPS, and MERA—TnALE identified the ground-truth structures with far fewer evaluations.
On real-world regression tasks, the speedup was equally pronounced. For the Protein dataset, TnALE reached the target error in 1,053 evaluations, compared to 3,601 for TNLS. In image compression tasks, TnALE found superior compression ratios compared to greedy methods while remaining more efficient than stochastic alternatives.
Discussion and Insights
The success of TnALE stems from the insight that the TN-SS optimization landscape often exhibits a low-rank structure, allowing alternating updates to converge efficiently. Mathematically, TnALE can be viewed as a discrete version of "cross-approximation" methods.
While highly efficient, TnALE is a deterministic search and can occasionally become trapped in local minima. Future research may explore hybrid approaches that combine the speed of TnALE with stochastic elements to improve global convergence, as well as extending the method to dynamic topology evolution.
Summary updated