Skip to content

gryaklab/llm-ode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLM-ODE

Overview

Genetic programming (GP) is an established approach for automated equation discovery but suffers from inefficient search and slow convergence. LLM-ODE addresses this by using an LLM as a genetic variation operator that extracts patterns from elite candidate equations to guide symbolic evolution more effectively. Evaluated on 91 dynamical systems, LLM-ODE consistently outperforms standard GP baselines in search efficiency and solution quality, with stronger scalability to high-dimensional systems than linear or Transformer-only methods.

Installation

First, you need to install the dependencies:

git clone git@github.com:gryaklab/llm-ode.git
cd llmode
uv sync

Training and Evaluation

The script serve_and_run.sh launches the vllm servers in the background and runs LLM-ODE on all datasets:

chmod +x serve_and_run.sh
./serve_and_run.sh

Baseline Methods

In separate environments, you need to install the required packages for each baseline method. Then, issue:

python -m baselines.pysr --save_dir results/pysr/
python -m baselines.sindy --save_dir results/sindy/
python -m baselines.odeformer --save_dir results/odeformer/

Test

Issue uv run pytest.

Citation

If you find our work useful, consider a ⭐️ and citing us with

@article{bideh2026llmode,
  title={LLM-ODE: Data-driven Discovery of Dynamical Systems with Large Language Models},
  author={Bideh, Amirmohammad Ziaei and Gryak, Jonathan},
  journal={arXiv preprint arXiv:2603.20910},
  year={2026}
}

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

[GECCO 2026] The official repo for the paper "LLM-ODE: Data-driven Discovery of Dynamical Systems with Large Language Models"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors