In-Context Symbolic Regression: Leveraging Large Language Models for Function Discovery

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Merler, Matteo, Haitsiukevich, Katsiaryna, Dainese, Nicola, Marttinen, Pekka
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910620634316800
author Merler, Matteo
Haitsiukevich, Katsiaryna
Dainese, Nicola
Marttinen, Pekka
author_facet Merler, Matteo
Haitsiukevich, Katsiaryna
Dainese, Nicola
Marttinen, Pekka
contents State of the art Symbolic Regression (SR) methods currently build specialized models, while the application of Large Language Models (LLMs) remains largely unexplored. In this work, we introduce the first comprehensive framework that utilizes LLMs for the task of SR. We propose In-Context Symbolic Regression (ICSR), an SR method which iteratively refines a functional form with an LLM and determines its coefficients with an external optimizer. ICSR leverages LLMs' strong mathematical prior both to propose an initial set of possible functions given the observations and to refine them based on their errors. Our findings reveal that LLMs are able to successfully find symbolic equations that fit the given data, matching or outperforming the overall performance of the best SR baselines on four popular benchmarks, while yielding simpler equations with better out of distribution generalization.
format Preprint
id arxiv_https___arxiv_org_abs_2404_19094
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle In-Context Symbolic Regression: Leveraging Large Language Models for Function Discovery
Merler, Matteo
Haitsiukevich, Katsiaryna
Dainese, Nicola
Marttinen, Pekka
Computation and Language
Machine Learning
State of the art Symbolic Regression (SR) methods currently build specialized models, while the application of Large Language Models (LLMs) remains largely unexplored. In this work, we introduce the first comprehensive framework that utilizes LLMs for the task of SR. We propose In-Context Symbolic Regression (ICSR), an SR method which iteratively refines a functional form with an LLM and determines its coefficients with an external optimizer. ICSR leverages LLMs' strong mathematical prior both to propose an initial set of possible functions given the observations and to refine them based on their errors. Our findings reveal that LLMs are able to successfully find symbolic equations that fit the given data, matching or outperforming the overall performance of the best SR baselines on four popular benchmarks, while yielding simpler equations with better out of distribution generalization.
title In-Context Symbolic Regression: Leveraging Large Language Models for Function Discovery
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2404.19094