Symbolic Regression with Multimodal Large Language Models and Kolmogorov Arnold Networks
Thomas R. Harvey, Fabian Ruehle, Kit Fraser-Taliente, James Halverson
TL;DR
Symbolic regression is tackled by merging multimodal large language models with FunSearch-inspired genetic search and Kolmogorov–Arnold representations. The authors introduce LLM-LEx for univariate tasks and extend to multivariate problems with KAN-LEx, which decomposes multivariate functions into sums of univariate edge functions and then simplifies the composed expression. Benchmarks show LLM-LEx can frequently recover exact expressions better than traditional engines on random function sets, while KAN-LEx demonstrates the feasibility of solving multivariate cases through edge-wise regression and graph-based simplification. The work highlights practical viability with modest code and outlines future directions, including stronger genetic algorithms, vision transformers for higher dimensions, and domain-specific prompt engineering, all complemented by publicly available code.
Abstract
We present a novel approach to symbolic regression using vision-capable large language models (LLMs) and the ideas behind Google DeepMind's Funsearch. The LLM is given a plot of a univariate function and tasked with proposing an ansatz for that function. The free parameters of the ansatz are fitted using standard numerical optimisers, and a collection of such ansätze make up the population of a genetic algorithm. Unlike other symbolic regression techniques, our method does not require the specification of a set of functions to be used in regression, but with appropriate prompt engineering, we can arbitrarily condition the generative step. By using Kolmogorov Arnold Networks (KANs), we demonstrate that ``univariate is all you need'' for symbolic regression, and extend this method to multivariate functions by learning the univariate function on each edge of a trained KAN. The combined expression is then simplified by further processing with a language model.
