Vitrify Exact Learning: exact differential equations, changes of variable and closed forms from numerical data
Organizations: Vitrify Labs
Abstract
Symbolic regression searches a space of expression trees for a formula that fits data. Many functions of the sciences have no finite expression over the usual operations and still satisfy a linear differential equation with polynomial coefficients. Vitrify Exact Learning takes nu- merical values of a function and proceeds in three steps. It assumes that the function, in its own variable or after a change of variable or a pushforward of a density, is annihilated by an operator with polynomial coefficients. It finds that operator as the null vector of a matrix of weak-form measurements, in which the data are integrated against test functions and never differentiated, makes the coefficients exact, and tests the exact operator on data that the fit did not read against a noise level propagated from the data. It then solves the exact operator symbolically and keeps the closed form that matches the data. Each step has precedent; the combination takes values on an interval, from a quadrature, a float64 table or a sample, to an exact equation and a closed form. On noise-free benchmarks it recovers 45 of 53 classic targets, 108 of the 120 AI Feynman equations and 74.1% of the Feynman problems of SR- Bench, against 33, 69 and 55.8% for the best other programs, and 50 of 132 special-function targets generated after its code was frozen, against 23. From 40-digit values it returns Meijer G densities, hypergeometric forms for the deflection of light by a black hole, and Appell and Lauricella functions of two variables. With noise in several variables, with sparse data and for equations above fourth order it mostly returns no model.
Figures & tables
| Method | Input | Equation | Coefficients | Map | Closed form | Test |
|---|---|---|---|---|---|---|
| Symbolic regression [ 1 , 3 , 4 ] | points | expression tree | real | no | the tree | held-out points |
| Pearson’s system [ 23 ] | moments of a density | a ratio of polynomials of degree 1 and 2 | real | no | by type | none |
| Modulating functions [ 24 , 25 , 26 ] | input–output records, weak form | linear ODE of a system | real | no | no | fit residual |
| SINDy, implicit SINDy, SINDy-PI [ 27 , 28 , 29 ] | trajectories, differentiated | sparse sum over a library | real, sparse | no | no | held-out data |
| Weak SINDy, WENDy [ 30 , 31 , 32 ] | trajectories, weak form | sparse sum over a library | real, sparse | no | no | held-out data |
| Moment inversion [ 33 ] | moments on an interval | linear ODE, polynomial coefficients, and jumps | real | no | no | none |
| Quantity, input | Operator returned | Closed form returned |
|---|---|---|
| Morse oscillator, ; callable on | in : | |
| Quantum bouncer, ground state; callable on | , | ; is minus the first zero of |
| Fluorescence recovery after photobleaching [ 48 ] ; callable on | ||
| Density of a product of four standard normals; float64 table on | ||
| Deflection of light against ; callable on | ||
| Period of the oscillator at energy ; callable on | order 4, degree 4 |
| Suite | Vitrify Exact Learning | Best other | Program |
|---|---|---|---|
| Classic sets at their published points, of 53 | 45 | 33 | PySR |
| Feynman equations, one variable at a time, of 254 | 251 | 184 | Bingo |
| Feynman equations in all variables, of 120 | 108 | 69 | Flash-ANSR |
| Special functions, pilot set, of 31 | 28 | 0 | – |
| SRBench Feynman, symbolic solution rate | 74.1% | 55.8% | AI Feynman (published) |
| SRBench Strogatz, symbolic solution rate | 100% | 29.5% | GP-GOMEA (published) |
| Relative error | Given an exact form, |
|---|---|
| of the number | of 300 |
| 0 | |
| 0 | |
| 0 | |
| 4 | |
| 20 |
| Error inside | Error beyond it, | |||
|---|---|---|---|---|
| Method | Returned | the data (%) | to (%) | Seconds |
| Vitrify Exact Learning | 0 0 | 00 0 | 0 57.2 | |
| Operon | formula of 302 characters | 0 0.014 | 0 65 | 0 60.0 |
| RILS-ROLS | formula of 60 characters | 0 0.90 | 0 30 | 0 61.0 |
| PySR | formula of 183 characters | 0 1.1 | 0 37 | 0 60.3 |
| Bingo | formula of 250 characters | 0 1.2 | 0 90 | 0 64.5 |
| System | Interval | Variable | Seconds |
|---|---|---|---|
| Equation returned; closed form returned; fitted parameter | |||
| Morse oscillator, | 9.1 | ||
| Hydrogen | 8.3 | ||
| Hold-out check | Evidence | Error of the | ||||
|---|---|---|---|---|---|---|
| System | Digits | residual | noise | (digits) | closed form | Certificates |
| Morse oscillator, | 40 | 318.3 | 2 | |||
| 80 | ||||||
| Hydrogen | 40 | 210.3 | 3 | |||
| 80 | ||||||
| Harmonic oscillator, | 40 | 142.9 | 2 | |||
| Program | What ran |
|---|---|
| Vitrify Exact Learning | One frozen version of the learner. On a float64 table, the entry point of Section S2.10 , which ends in the operator search for one variable. On a callable, the operator search at 40 digits, or the two-variable learner, which was written after that version was frozen. It has no time setting. A run on a float64 table is stopped after 900 s (600 s on SRBench), and a run on a callable after 900 s on the generated set, 3600 s on the physical set and 3000 s in two variables. On the tables of the physical set the entry point for tables (900 s) is followed by the operator search on the table (3600 s). |
| PySR [ 3 ] | Version 2.7.2 with its default search, maximum size 30, the operations , , , , sin, cos, exp, log and sqrt, in float64, 60 s. “PySR with SRBench’s limits” adds the limits that SRBench puts on the search (no nested trigonometric or exponential functions, among others). “PySR + 14 functions” adds erf, , , , , , Ai, Bi, , , Ei, Si, Ci and as unary operations. |
| Operon [ 49 ] | pyoperon 0.6.2 with SRBench’s settings, 60 s. It evaluates in float32. |
| Bingo [ 50 ] | bingo-nasa 0.5.7 with SRBench’s settings, 60 s. |
| gplearn [ 51 ] | Version 0.4.3 with SRBench’s settings and exp added, 60 s. It does not optimise constants. |
| RILS-ROLS [ 53 ] | Version 1.6.7 with SRBench’s settings, 60 s. |
| Classic sets | Feynman equations | Special functions | |||
| published | 1101 | one variable | all | ||
| points | points | at a time | variables | pilot set | |
| Method | of 53 | of 51 | of 254 | of 120 | of 31 |
| Vitrify Exact Learning | 45 (45) | 47 (47) | 251 (244) | 108 (108) | 28 (28) |
| PySR | 33 (27) | 32 (23) | 174 (106) | 0 64 (61) | 0 0 |
| PySR with SRBench’s limits | 30 (21) | 26 (20) | 164 (96) | 0 60 (54) | 0 0 |
| Of the expressions returned | ||||||
| Expressions | of these | match inside | ||||
| Method | Tables | returned | recovered | to | the range only | neither |
| Vitrify Exact Learning | 389 | 371 | 371 | 364 | 0 0 | 00 0 |
| PySR | 389 | 389 | 239 | 156 | 42 | 108 |
| PySR with SRBench’s limits | 389 | 389 | 220 | 137 | 47 | 122 |
| Bingo | 389 | 389 | 225 | 178 | 46 | 118 |
| Symbolic solution rate (%) at noise level | (%) | ||||||||
| Feynman | Strogatz | Feynman, | |||||||
| Method | 0 | 0.001 | 0.01 | 0.1 | 0 | 0.001 | 0.01 | 0.1 | no noise |
| Vitrify Exact Learning | 74.1 | 0 0.9 | 0 0.9 | 0 0.0 | 100.0 | 0 0.0 | 0 0.0 | 0 0.0 | 90.8 |
| AIFeynman | 55.8 | 33.1 | 13.0 | 0 0.7 | 0 27.1 | 22.1 | 0 9.3 | 0 2.1 | 77.4 |
| AFP_FE | 27.0 | 21.9 | 20.8 | 13.5 | 0 20.0 | 15.7 | 13.6 | 0 2.1 | 57.2 |
| GP-GOMEA | 26.8 | 11.0 | 0 5.1 | 0 1.6 | 0 29.5 | 0 7.1 | 0 1.4 | 0 0.0 | 70.9 |
| Vitrify Exact Learning | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Tier | Targets | callable, closed form | callable, with continuation | float64 table | PySR + 14 functions | PySR | Bingo | Flash-ANSR | RILS-ROLS | Operon | gplearn | E2E | TPSR |
| E: elementary | 0 12 | 11 | 11 | 0 8 | 0 3 | 0 7 | 0 4 | 0 2 | 0 5 | 2 | 1 | 0 | 0 |
| A: operator of order 1 to 2 | 0 36 | 28 | 35 | 26 | 0 6 | 0 0 | 0 1 | 0 1 | 0 0 | 0 | 0 | 0 | 0 |
| B: order 3 to 4 | 0 36 | 20 | 28 | 10 | 0 6 | 0 2 | 0 3 | 0 3 | 0 0 | 1 | 0 | 0 | 0 |
| C: order 5 to 8 | 0 36 | 0 3 | 0 3 | 0 0 | 0 2 | 0 2 | 0 3 | 0 2 | 0 0 | 1 | 0 | 1 | 0 |
| N: no operator in | 0 12 | 0 3 | 0 3 | 0 6 | 0 6 | 0 5 | 0 5 | 0 3 | 0 5 | 0 | 3 | 0 | 0 |
| Hyper- | Appell / | Heun | ||||
| All | geometric | Meijer | Fox | Lauricella | type | |
| Method | of 29 | of 11 | of 5 | of 7 | of 4 | of 2 |
| Vitrify Exact Learning, callable | 29 (23) | 11 (10) | 5 (5) | 7 (7) | 4 (1) | 2 (0) |
| Vitrify Exact Learning, float64 table | 18 (17) | 0 8 (7) | 5 (5) | 4 (4) | 1 (1) | 0 |
| Bingo | 0 1 | 0 0 | 0 | 0 | 1 | 0 |
| PySR, PySR + 14 functions, Operon, gplearn, Flash-ANSR, RILS-ROLS, E2E, TPSR | 0 0 | 0 0 | 0 | 0 | 0 | 0 |
| target, definition and box | returned | gen. | time (s) | closest other program; error inside, beyond |
| elliptic Pi, on | 3 | 123.8 | E2E , | |
| pendulum time, on | 1 | 111.5 | Bingo , | |
| ellipsoid capacitance, on | 3 | 221.1 | Operon , | |
| ellipsoid demagnetisation, on | 3 | 226.1 | Operon , | |
| anisotropic square lattice on | 2 | 64.7 | Operon , | |
| Gordon integral on | 2 | 73.6 | Operon , |
| 200,000 draws | 2,000,000 draws | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Distribution | Expected result | expected result | no certificate | numerical fit | other exact operator | expected result | no certificate | numerical fit | other exact operator |
| exponential(1) | exact operator | 10 | 0 0 | 0 0 | 0 0 | 10 | 0 0 | 0 0 | 0 0 |
| gamma(3, 1) | exact operator | 10 | 0 0 | 0 0 | 0 0 | 10 | 0 0 | 0 0 | 0 0 |
| normal(0, 1) | exact operator | 10 | 0 0 | 0 0 | 0 0 | 10 | 0 0 | 0 0 | 0 0 |
| beta(2, 3) | exact operator | 0 4 | 0 4 | 0 2 | 0 0 | 10 | 0 0 | 0 0 | 0 0 |
| lognormal(0, 1/2) | exact operator | 10 | 0 0 | 0 0 | 0 0 | 10 | 0 0 | 0 0 | 0 0 |
| Map | Domain of | Cost | Map | Domain of | Cost |
|---|---|---|---|---|---|
| 0 | 1 | ||||
| 1 | 2 | ||||
| 1 | 2 | ||||
| 1 | 2 | ||||
| 1 | 2 | ||||
| 1 | 2 |
| Vitrify Exact Learning | ||||||
|---|---|---|---|---|---|---|
| Order, | float64 | Other | ||||
| Target | Formula | Interval | degree | callable | table | programs |
| Tier E: elementary (12 targets) | ||||||
| E01 | 2, 0 | closed form | recovered | P, B, R | ||
| E02 | 1, 3 | closed form | recovered | – | ||
| E03 | 2, 3 | closed form | recovered | P14, P, B, F | ||
| From the callable | From the | Closest other program, its error | |||||||
|---|---|---|---|---|---|---|---|---|---|
| Quantity | Interval | Ord. | Deg. | Result | Sec. | float64 table | Program | inside | beyond |
| Hypergeometric | |||||||||
| Pendulum period over its small-angle period, against | 0.05–0.6 | 2 | 3 | closed form | 1.7 | closed form | PySR | ||
| Ellipse perimeter over , against the eccentricity | 0.05–0.6 | 2 | 3 | closed form | 2.4 | closed form | PySR + 14 functions | ||
| Mutual inductance of two equal coaxial loops over , against Maxwell’s modulus | 0.1–0.6 | 2 | 4 | closed form | 3.6 | closed form | Flash-ANSR | ||
| Lemniscate arc length from the node, against the radius | 0.05–0.6 | 2 | 4 | closed form | 1.9 | closed form | Flash-ANSR | ||
| Quantity | Differential equation found for | Closed form returned |
|---|---|---|
| Hypergeometric | ||
| Pendulum period | ||
| Ellipse perimeter | ||
| Coaxial loops | ||
| Lemniscate arc | ||
| Cubic oscillator | ||
| Operator | Role | Residual | Noise |
|---|---|---|---|
| elliptic Pi , variables | |||
| generator | |||
| generator | |||
| series | |||
| series | |||
| generator | |||
| case | data | status | change of variable | operator | closed form | seconds |
|---|---|---|---|---|---|---|
| direct (13 cases) | ||||||
| exp(-x) | callable | verified | – | 21.5 | ||
| 1/(1-x) | callable | verified | – | 9.6 | ||
| exp(-x^2) | callable | verified | – | 11.0 | ||
| Ai(x) | callable | verified | – | 12.6 | ||
| J0(x) | callable | verified | – | 26.0 | ||
Symbolic Regression
Symbolic regression searches data for compact mathematical expressions that balance predictive accuracy with interpretability.
See all 159 papers