Papers › Interpretable Machine Learning for Science with PySR and SymbolicRegression.jl

Interpretable Machine Learning for Science with PySR and SymbolicRegression.jl

2 May 2023arXiv:2305.01582archive 2025-07-28

Miles Cranmer

PySR is an open-source library for practical symbolic regression, a type of machine learning which aims to discover human-interpretable symbolic models. PySR was developed to democratize and popularize symbolic regression for the sciences, and is built on a high-performance distributed back-end, a flexible search algorithm, and interfaces with several deep learning packages. PySR's internal search algorithm is a multi-population evolutionary algorithm, which consists of a unique evolve-simplify-optimize loop, designed for optimization of unknown scalar constants in newly-discovered empirical expressions. PySR's backend is the extremely optimized Julia library SymbolicRegression.jl, which can be used directly from Julia. It is capable of fusing user-defined operators into SIMD kernels at runtime, performing automatic differentiation, and distributing populations of expressions to thousands of cores across a cluster. In describing this software, we also introduce a new benchmark, "EmpiricalBench," to quantify the applicability of symbolic regression algorithms in science. This benchmark measures recovery of historical empirical equations from original and synthetic datasets.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 29 code samples harvested from 4 repositories linked to this paper: 22 ran (of which 0 constructed an object rather than computing a result; 19 with no instrument failure: 1 honoured, 0 violated, 18 with no contract checked; 3 where Syntology's instrument failed) · 7 unverified. Where Syntology's instrument failed: 3 where our contract draft was wrong; failures of Syntology's instrument, not of the code.

By repository: official repository: 18 samples from 3 repositories, 14 ran (11 with no instrument failure; 3 where Syntology's instrument failed); community (archive-listed): 11 samples from 1 repository, 8 ran (8 with no instrument failure; 0 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

MilesCranmer/PySR officialmentioned in papermentioned on GitHubpytorchApache-2.0Syntology: 13 samples, 9 ran (2 instrument-failed) · 4 unverified report
milescranmer/pysr_paper officialmentioned in papermentioned on GitHubSyntology: 2 samples, 2 ran (1 instrument-failed) · 0 unverified report
milescranmer/symbolicregression.jl officialmentioned in papermentioned on GitHubApache-2.0Syntology: 3 samples, 3 ran (0 instrument-failed) · 0 unverified report
hftsoi/symbolfit mentioned on GitHubMITSyntology: 11 samples, 8 ran (0 instrument-failed) · 3 unverified report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

29 samples harvested: 22 ran (of which 0 constructed an object rather than computing a result; 19 with no instrument failure: 1 honoured, 0 violated, 18 with no contract checked; 3 where Syntology's instrument failed) · 7 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
18ran
7unverified

Licence: 0 of the 29 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

MilesCranmer/PySR official repository 13 samples, 9 ran (2 instrument-failed) · 4 unverified
denoise in 7 papers pysr/denoising.py ran Apache-2.0 (permissive) · 2e8d4f68018bb06b · report fixture: signature X:ndarray/2/float, y:ndarray/1/float, Xresampled:ndarray/2/float, random_state:RandomState/0/? · returned tuple · level recorded 2026-09-26
generate_table_environment pysr/export_latex.py ran · our draft was wrong Apache-2.0 (permissive) · 35cac027aec2fc9a · report fixture: signature columns:list/1/str · returned tuple · level recorded 2026-09-26
multi_denoise pysr/denoising.py ran Apache-2.0 (permissive) · 788c8f857dfc7e08 · report fixture: signature X:ndarray/2/float, y:ndarray/2/float, Xresampled:ndarray/2/float, random_state:RandomState/0/? · returned tuple · level recorded 2026-09-26
run_feature_selection pysr/feature_selection.py ran Apache-2.0 (permissive) · e6060650fde67a36 · report fixture: signature X:ndarray/2/float, y:ndarray/1/float, select_k_features:int/0/int, random_state:RandomState/0/? · returned ndarray · level recorded 2026-09-26
sympy2jax pysr/export_jax.py ran Apache-2.0 (permissive) · 2b540eef802dcbec · report fixture: signature expression:Add/0/?, symbols_in:list/1/Symbol, selection:NoneType/0/?, extra_jax_mappings:NoneType/0/? · returned tuple · level recorded 2026-09-26
sympy2jaxtext pysr/export_jax.py ran Apache-2.0 (permissive) · 7dcdebb05351545b · report fixture: signature expr:Add/0/?, parameters:list/1/empty, symbols_in:list/1/Symbol, extra_jax_mappings:dict/0/? · returned str · level recorded 2026-09-26
sympy2latex pysr/export_latex.py ran Apache-2.0 (permissive) · 2f9e8a418b2ddf46 · report fixture: signature expr:Add/0/?, prec:int/0/int, full_prec:bool/0/bool · returned str · level recorded 2026-09-26
sympy2latextable pysr/export_latex.py ran Apache-2.0 (permissive) · 87522bac09e9f038 · report fixture: signature equations:DataFrame/0/?, indices:list/1/int, precision:int/0/int, columns:list/1/str, max_equation_length:int/0/int, output_variable_name:str/0/str · returned str · level recorded 2026-09-26
sympy2numpy pysr/export_numpy.py ran · our draft was wrong Apache-2.0 (permissive) · 550105efb9068877 · report fixture: signature eqn:Add/0/?, sympy_symbols:list/1/Symbol, selection:ndarray/1/bool · returned CallableEquation · level recorded 2026-09-26
isinstalled pysr/julia_extensions.py unverified Apache-2.0 (permissive) · 6ddcd76b319a6e15 · report
load_package pysr/julia_extensions.py unverified Apache-2.0 (permissive) · 748684a68ada334b · report
pysr pysr/deprecated.py unverified Apache-2.0 (permissive) · 6f4e50a90f40bacf · report
sympy2torch pysr/export_torch.py unverified Apache-2.0 (permissive) · 4da53042a817d8dd · report
milescranmer/pysr_paper official repository 2 samples, 2 ran (1 instrument-failed) · 0 unverified
exec_then_eval src/scripts/benchmark.py ran · honoured contract MIT (permissive) · dbaba5d6f75f42b2 · report fixture: signature code:str/0/str, rstate:NoneType/0/? · returned int · level recorded 2026-09-22
gen_dataset_using_generator src/scripts/benchmark.py ran · our draft was wrong MIT (permissive) · f6c7138e24af8065 · report fixture: signature problem:dict/0/?, rstate:RandomState/0/? · returned tuple · level recorded 2026-09-22
milescranmer/symbolicregression.jl official repository 3 samples, 3 ran (0 instrument-failed) · 0 unverified
go_to_level benchmark/analyze.py ran Apache-2.0 (permissive) · 425b9408358a1729 · report fixture: signature node:Node/0/?, levels:list/1/int · returned Node · level recorded 2026-09-26
load_pysr_graph benchmark/family_tree.py ran Apache-2.0 (permissive) · 787326048f48a5af · report fixture: signature jsonl_path:str/0/str, progress:bool/0/bool · returned DiGraph · level recorded 2026-09-26
simplify_graph benchmark/family_tree.py ran Apache-2.0 (permissive) · d9fc600105551ba1 · report fixture: signature G:DiGraph/0/? · returned DiGraph · level recorded 2026-09-26
hftsoi/symbolfit community (archive-listed) 11 samples, 8 ran (0 instrument-failed) · 3 unverified
cond symbolfit/math_defs.py ran fingerprinted MIT (permissive) · 7339ce430d9364c3 · report fixture: signature x:ndarray/1/float, y:ndarray/1/float · returned ndarray · level recorded 2026-09-24
dataset_formatting symbolfit/processing.py ran MIT (permissive) · cedb288dc6f7aa5b · report fixture: signature x:ndarray/2/float, y:ndarray/2/float, y_up:ndarray/2/float, y_down:ndarray/2/float, fit_y_unc:bool/0/bool · returned tuple · level recorded 2026-09-24
func_sampling_1d symbolfit/evaluate.py ran MIT (permissive) · dfe1ce2145be470b · report fixture: signature func_str:str/0/str, param:dict/0/?, cov:dict/0/?, x:ndarray/1/float, x_finer:ndarray/1/float, n_samples:int/0/int · returned tuple · level recorded 2026-09-24
histogram_scale symbolfit/processing.py ran MIT (permissive) · 009111bb1da07095 · report fixture: signature x:ndarray/1/float, y:ndarray/1/float, y_up:ndarray/1/float, y_down:ndarray/1/float, x_min:float/0/float, x_max:float/0/float, scale_y_by:str/0/str · returned tuple · level recorded 2026-09-24
piecewise symbolfit/math_defs.py ran fingerprinted MIT (permissive) · d09001cea2cb6d5d · report fixture: signature y:ndarray/2/float, x:ndarray/2/float · returned ndarray · level recorded 2026-09-24
round_a_number symbolfit/utils.py ran fingerprinted MIT (permissive) · 8835c31e0f902ddc · report fixture: signature number:float/0/float, sig_fig:int/0/int · returned float64 · level recorded 2026-09-24
round_numbers_in_sympy_expr symbolfit/utils.py ran MIT (permissive) · 83cf752c5fd1aa95 · report fixture: signature sympy_expr:Add/0/?, sig_fig:int/0/int · returned Add · level recorded 2026-09-24
square in 8 papers symbolfit/math_defs.py ran fingerprinted MIT (permissive) · e4406709fbceb341 · report fixture: signature x:Tensor/1/float · returned Tensor · level recorded 2026-09-24
add_gof symbolfit/evaluate.py unverified MIT (permissive) · 33cebf0739d3fc8e · report
func_evaluate symbolfit/evaluate.py unverified MIT (permissive) · 94e2bf0b5e9e59fc · report
functions_unscale symbolfit/processing.py unverified MIT (permissive) · 86deced1b26d9eec · report

Tasks

Interpretable Machine LearningSymbolic Regressionregression

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections