Domain-Aware Tensor Network Structure Search

Giorgos Iacovides, Wuyang Zhou, Chao Li, Qibin Zhao, Danilo Mandic · Submission to ICLR 2026 · Rejected

TL;DR

tnLLM is a new framework that uses Large Language Models (LLMs) to solve the notoriously difficult problem of finding the best structure for a Tensor Network. By feeding the LLM domain-specific information about the data, the researchers achieved up to a 110x reduction in function evaluations compared to state-of-the-art numerical methods, while providing human-readable explanations for the chosen structures.

What Problem Does This Paper Address?

In the world of high-dimensional data (like video or complex financial series), we often use Tensor Networks (TNs) to compress information. Think of it as a "super-compression" that breaks a massive, multi-dimensional array into smaller, connected pieces.

The catch? Finding the "optimal" way to break that array down—the Tensor Network Structure Search (TN-SS) problem—is NP-hard. Current state-of-the-art (SOTA) methods treat this as a "blind" numerical optimization problem. They require thousands of trial-and-error evaluations, which is computationally expensive. Furthermore, these methods are "black boxes"; they might find a good structure, but they can't tell you why those specific connections or ranks were chosen.

Methods

The authors introduce tnLLM, a framework that shifts TN-SS from a purely numerical task to a reasoning task guided by an LLM (specifically GPT-4o). The core innovation is a domain-aware prompting pipeline:

  1. Behavior-Directive Prompt: Frames the LLM as an expert in tensor decomposition and defines the mathematical objective function.
  2. Task-Directive Prompt (Initialization): Instead of starting from a random guess, the LLM is given "domain information"—descriptions of what the tensor modes actually represent (e.g., "Height," "Width," "RGB Channels"). The LLM uses its internal knowledge to reason that spatial dimensions (Height/Width) should have higher ranks than color channels.
  3. Optimization-Directive Prompt (Discovery): This is an iterative loop. The LLM receives the results of previous evaluations and is instructed to "explore and exploit" the search space, refining the structure based on the feedback of the loss function.

Crucially, the authors also propose a hybrid approach: using tnLLM to find a "good neighborhood" in the search space, then letting traditional numerical methods (like TNLS or TnALE) perform the final local optimization.

Datasets

The framework was evaluated on three primary types of data:

  • Images: Order-3 RGB image tensors.
  • Videos: Order-4 RGB video tensors (adding a temporal dimension).
  • Financial Time-Series: A newly curated order-5 dataset consisting of 142 tensors representing rolling windows of financial instruments, assets, features, and time intervals. This is noted as the largest dataset of its kind used in TN-SS research.
  • Additional Domains: To prove generalizability, they also tested on Physics (Darcy Flow), Geospatial Hyperspectral images, and Biomedical MRI data.

Key Insights and Ideas

  • LLMs as Zero-Shot Initializers: The most striking insight is that LLMs already "understand" the relationships between data dimensions. For example, an LLM knows that adjacent pixels in an image are highly correlated, so it suggests a higher "rank" (more capacity) for those connections without needing to see the raw numbers first.
  • Reasoning vs. Sampling: Traditional methods sample the search space blindly. tnLLM uses Chain-of-Thought (CoT) reasoning to justify its moves. This mimics how a human expert would approach the problem, significantly narrowing the search space.
  • Transparency: Because the LLM generates text, it provides "domain-aware explanations." It can explain that it increased a specific rank because "temporal coherence is crucial for motion representation," making the model's structure verifiable by human experts.
  • The "Cold Start" Solution: The paper demonstrates that the biggest weakness of current SOTA methods is poor initialization. tnLLM solves this "cold start" problem effectively.

Key Results

  • Efficiency: tnLLM achieved comparable accuracy to SOTA methods but required significantly fewer evaluations: 78x fewer than TNLS and 110x fewer than tnGPS.
  • Runtime: Total runtime (including LLM inference time) was reduced by up to 98.3%. For the Images dataset, tnLLM finished in 151 seconds, while the next fastest SOTA took 1,659 seconds.
  • Compression: In two out of three datasets, tnLLM found structures that achieved better compression rates than any other method while staying below the error threshold.
  • Robustness: The framework remained effective across different LLMs, including GPT-4o, GPT-4.5, and the open-source DeepSeek V3.

Limitations and Future Work

  • Black-Box Efficiency: While the LLM is efficient, there is currently no mathematical proof or theoretical guarantee for why it is efficient or how many steps it will take to converge.
  • Model Sensitivity: Weaker models (like GPT-3.5) were prone to "hallucinating" or misinterpreting the optimization goal (e.g., thinking a higher loss was better).
  • Prompt Engineering: The system relies heavily on the quality of the prompts. The authors suggest that future work could involve "prompt learning" to automatically optimize these instructions.
  • Continuous Optimization: The authors propose moving toward domain-aware TN-SS algorithms based on continuous optimization to provide better theoretical guarantees.

Summary updated

BibTeX
@misc{iacovides2025domain,
  author = {Giorgos Iacovides and Wuyang Zhou and Chao Li and Qibin Zhao and Danilo Mandic},
  title = {{Domain-Aware Tensor Network Structure Search}},
  year = {2025},
  eprint = {2505.23537},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.23537},
}
Figure