LaSR

Library-Augmented Symbolic Regression

Interleaves genetic programming and BFGS constant optimization (PySR) with LLM-synthesized abstract concept libraries for equation discovery.

Read the paper

The loop

  1. Proposes

    An LLM abstracts recurring sub-expressions from top equations into reusable symbolic concepts and seeds mutated expression trees.

  2. Judged by

    A high-performance symbolic regression engine (PySR) optimizes numerical constants via BFGS and scores MSE accuracy and complexity on scientific datasets.

  3. Steers

    Tournament selection and Pareto-front complexity filtering retain the fittest symbolic equations and evolve the concept library.

Headline result

Recovered significantly more exact ground-truth physical laws on the Feynman Symbolic Regression Benchmark than standalone PySR or LLM-only baselines.

What this does not prove

Calling an LLM inside evolutionary epochs increases wall-clock runtime compared to pure Julia genetic programming.

How it generalizes the harness

The PySR evolutionary + BFGS numerical optimizer runs the population loop and queries the LLM to evolve abstract symbolic building blocks.

Classification

Classification of LaSR (Library-Augmented Symbolic Regression)
What it proposesEquation
Generative modelLLM symbolic concept and mutation generator
Algorithmic authorityPySR genetic programming and BFGS numerical optimizer
FeedbackScore
What gets updatedPopulation of candidates and prompt context
When it runsOffline, at design time
ValidityEmpirical (measured)
EvidenceCode released
LineageOriginal system