tnGPS: Discovering Unknown Tensor Network Structure Search Algorithms via Large Language Models (LLMs)
Junhua Zeng, Chao Li, Zhun Sun, Qibin Zhao, Guoxu Zhou
TL;DR
This work tackles TN-SS, the problem of selecting TN structure hyperparameters, by introducing tnGPS, an LLM-driven framework that mimics human research workflows to automatically discover new TN-SS algorithms. By modeling the innovation process through prompts for knowledge categorization, recombination, incremental improvements, and diversity injection, tnGPS generates candidates that are evaluated on downstream tasks and iteratively refined. Experimental results on natural image and Gaussian process model compression show that tnGPS-discovered TN-SS algorithms systematically outperform state-of-the-art methods, including in out-of-domain settings, with ablations confirming the value of KR, II, and DI components. The approach demonstrates the potential of using large language models to automate algorithm discovery, offering a scalable path to improve TN-based representations while highlighting practical considerations like prompt design and model variability.
Abstract
Tensor networks are efficient for extremely high-dimensional representation, but their model selection, known as tensor network structure search (TN-SS), is a challenging problem. Although several works have targeted TN-SS, most existing algorithms are manually crafted heuristics with poor performance, suffering from the curse of dimensionality and local convergence. In this work, we jump out of the box, studying how to harness large language models (LLMs) to automatically discover new TN-SS algorithms, replacing the involvement of human experts. By observing how human experts innovate in research, we model their common workflow and propose an automatic algorithm discovery framework called tnGPS. The proposed framework is an elaborate prompting pipeline that instruct LLMs to generate new TN-SS algorithms through iterative refinement and enhancement. The experimental results demonstrate that the algorithms discovered by tnGPS exhibit superior performance in benchmarks compared to the current state-of-the-art methods.
