AI Descartes: Combining Data and Theory for Derivable Scientific Discovery
Paper · 2021 · Cristina Cornelio, Sanjeeb Dash, Vernon Austel et al.
Summary
Several equations can fit the same measurements and still give very different answers when conditions change. AI Descartes addresses that ambiguity by asking which equations follow from what is already known about the phenomenon. The authors pair symbolic regression, a search for equations whose form and coefficients are learned from data, with automated theorem proving. The regression component proposes compact relationships. The prover checks those relationships against scientific assumptions written as axioms, including assumptions that involve quantities the experiments never measured.
The system can establish that a candidate follows from the axioms, exhibit a counterexample to a candidate, or assess how closely a candidate agrees with the theory. One assessment uses the inputs at which measurements were taken. Another looks for the largest discrepancy across a specified range of inputs. That wider check can reveal that a formula leaves out a variable whose effect was difficult to see in the measurements. The orbital examples show why this matters. Every planet in the solar-system dataset orbits the same star, so an equation can fit those periods quite closely without expressing any dependence on the star’s mass. In the binary-star data, a candidate expressed the dependence on both masses and distance correctly in the authors’ tests, closely approximating the full form of Kepler’s third law.
The other demonstrations give different outcomes. For relativistic time dilation, the regression search missed the exact law, but a quadratic candidate tracked the predictions of relativity across a much wider velocity range than the clock measurements covered. The same candidates disagreed with an alternative set of assumptions that implied zero time dilation. For gas adsorption, the theorem prover established that the form of a one-site equation learned from measurements followed from Langmuir’s assumptions. The proof established the existence of suitable coefficients for that form. Their fitted numerical values came from the data.
In a comparison on 81 Feynman benchmark problems with sparse, noisy samples, the regression component recovered an accepted equation among its candidates for 49 problems, giving the reported accuracy of 60.49%. That score allows specified small errors in constants. The authors also supplied axioms for five selected problems and verified the expected relationship in each case, directly or by allowing the constants to vary. Together, the experiments show where deduction helps most clearly. It can select an equation that a comparison of fits would overlook, identify a candidate that remains accurate over a useful domain, and make explicit which assumptions support the result.
Deep dive: AI Descartes: Combining Data and Theory for Derivable Scientific Discovery
AI Descartes uses symbolic regression to find equations in sparse data and tests whether they follow from scientific axioms. · about 38 minutes to read
The problem and its context
When a close fit leaves the law unresolved
Suppose a set of orbital measurements contains the distance to each planet, the planet’s mass, the mass of its star, and the time it takes to orbit. A short equation using distance alone can look convincing if every orbit is around the same star. A more complete equation can give almost the same predictions there and substantially different predictions for two stars orbiting one another. The measurements can constrain the relation between distance and period closely while leaving the influence of mass much harder to establish. A search procedure that ranks expressions by their fit has to make a decision in the presence of that ambiguity.
The authors place symbolic regression between two approaches to learning from data. In ordinary regression as they describe it, a researcher picks the mathematical form first and uses the observations to estimate its parameters. A researcher who already expects a specific dependence on distance can ask how large its coefficient should be. Symbolic regression lets the dependence itself vary. The search might consider a power of distance, a quotient involving mass, or a sum of terms with different variables. Neural networks can also learn relationships whose form is unspecified at the outset. The authors emphasize the practical appeal of equations when the research objective includes reading off the dependence on individual quantities and relating it to prior scientific knowledge.
Earlier work on symbolic regression, as the paper describes it, used accuracy and expression complexity together. If a long expression improves the fit only modestly, a simpler one may be preferable. A set of candidates on the Pareto front represents these tradeoffs. Each retained candidate has a combination of error and complexity that another candidate cannot improve on both measures at once. This can rule out needlessly elaborate expressions, but several short equations may remain plausible. The missing information is whether their mathematical structure agrees with the laws governing the quantities in the experiment.
The earlier AI Feynman work narrows equation search using properties common in physics, including symmetry, dimensions, and opportunities to break a problem into simpler parts. As described by Cornelio and colleagues, that approach uses neural fitting alongside physics-inspired search techniques. The paper also discusses earlier work by Cranmer and colleagues in which symbolic regression extracts physical relationships from components of a trained graph neural network. Both examples illustrate how a search can benefit from more structure than a general-purpose fit supplies. AI Descartes asks a further question about a candidate’s relation to an explicit theory of the phenomenon.
Properties of an equation and consequences of a theory
The paper distinguishes two ways to express prior scientific knowledge. One is to describe a property of the desired equation. A loading curve can be required to increase with gas pressure, for example. That condition can be checked once the curve is proposed. Earlier logic-guided learning methods discussed in the paper impose requirements of this kind. Some incorporate prior knowledge by adding points with suitable values to the fitting data. Others search for expressions and check whether those expressions meet specified equations or inequalities. Such methods can help a search exclude formulas with undesirable behavior.
The other way is to describe the physical system through several related assertions. An adsorption theory can refer separately to occupied sites, unoccupied sites, adsorption and desorption rates, and equilibrium. The observations may consist entirely of pressures and loadings. A proof then has to connect the measured quantities through the intermediate ones. This is a question of entailment. Given all the stated assumptions, must the proposed relationship hold? A monotonicity check by itself answers a narrower question about the proposed curve. The paper demonstrates both kinds of check in adsorption, where they give complementary information.
The direction of the inference also matters. An automated theorem prover usually starts with axioms and a conjecture someone has specified. The prover searches for a derivation of that conjecture, and its success depends on the logic, the formulation, and the resources available. The authors describe the discovery problem as having an additional step. For a collection of measurements and a theory, which conjecture should the prover even attempt? The background theory may be written using variables that never appear in the data. A general theorem prover has no built-in reason to prefer a consequence that relates exactly the measured inputs to the measured output.
AI Descartes uses the experimental relationship to formulate the conjecture. The measurements identify which quantities are to be related, and symbolic regression supplies a manageable collection of candidate equations. Deduction can then assess a specific claim about each candidate. The paper places this division of labor in the context of earlier attempts to improve proof search with learning, including reinforcement learning. Those attempts address how a prover searches. AI Descartes uses learning to help decide what mathematical statement to put in front of one.
The method, step by step
Describe the prediction task and the scientific assumptions
Start with the quantity the experiment records as its outcome. For orbits, that quantity is the period. For the atomic-clock experiments, it is the relative change in clock frequency. For gas adsorption, it is the loading on the surface. The data pair each recorded outcome with measured inputs, such as pressure for adsorption. The task is to discover a function that converts those inputs to the outcome. The target relation and a candidate approximation can be expressed with the same general notation.
y = f*(x)
Here y is the outcome, x is the vector of independent variables, and f* is the unknown function that the discovery procedure aims to recover. The superscript star distinguishes the target from an expression produced by the search. The paper writes a candidate as f. A dataset consists of pairs Xᵢ and Yᵢ, where i indexes observations, Xᵢ is an observed input vector, and Yᵢ is the associated observed outcome.
The authors call the background theory B. It contains axioms, which are statements the prover can assume when it tests a claim. The hypothesis class C specifies the permitted expressions. Its grammar determines which operators can be used, and it can also express restrictions such as monotonicity or avoid generating equivalent forms simply by reversing the order of addition. D denotes the observations. M holds preferences supplied by the researcher, such as a tolerable prediction error. These inputs play different roles. Requiring a shallow expression tree steers the search. Assuming a force balance determines which relationships the scientific theory entails. A threshold on the fit controls which expressions are worth considering in light of the observed measurements.
The formulation assumes a consistent and sufficiently complete theory for the variable under study. Consistency means that the assumptions can hold together. Completeness here means the axioms supply enough information to determine the output for the admissible inputs. The authors use fᴮ for the resulting theory-implied function. Its predictions can be unique across the domain even if different expressions represent them. A candidate that looks different from the familiar expression can therefore be a successful discovery. The paper’s adsorption examples make that distinction particularly concrete.
How AI Descartes searches and checks equations
The steps in order.
Search for compact equations
An expression tree represents an equation through its operations. The leaves provide quantities to combine, and interior nodes perform operations such as addition or division. Reading from the leaves toward the root gives the output of the equation. In a conventional tree, a leaf might be a measured variable or a numerical constant. A product of several powers can then require a substantial part of the tree even when it is a simple term to write down.
AI Descartes uses a richer kind of leaf, which the paper calls an L-monomial. It packages a coefficient and a product of variable powers into a single leaf. This gives the search a compact representation for a term that contains several variables. The powers may be negative, so a reciprocal dependence can be represented within the leaf. An exponent of zero leaves a variable out of that term.
L = h × x₁ᵃ¹ × x₂ᵃ² × ⋯ × xₙᵃⁿ
L is the leaf’s term, h is its real-valued coefficient, and x₁ through xₙ are the independent variables, with n their number. The superscripts denote the corresponding integer powers a₁ through aₙ. The dots stand for multiplication across all the variables between the displayed terms. The researcher specifies bounds on the powers and on the coefficient.
The system enumerates trees with their interior operators already assigned and their leaves still unknown. One tree shape might stand for a sum of monomials. Another might divide a sum by a monomial or take a square root of an expression built from several leaves. The search over structural possibilities therefore has an explicit outer stage. Within each tree, an optimizer decides which powers and coefficients make the resulting expression fit the data. The authors call these generalized expression trees. Two trees with the same depth can represent quite different amounts of ordinary arithmetic, since an entire product of powers can sit inside any leaf.
Some of the enumerated trees can be pruned using algebraic equivalence. A product of monomials can be merged into a monomial by adding the powers of corresponding variables and multiplying the coefficients. A quotient of non-zero monomials can be simplified by subtracting powers and dividing coefficients. Distributing multiplication over addition gives some further opportunities to replace one tree with another. The practical search bounds matter here. A simplified term can fall outside the allowed power range even when its unsimplified factors each fall inside it. The authors accept this tradeoff and use the pruning rules to keep the search manageable.
The optimizer for each tree is a mixed-integer nonlinear program. The integer decisions include the exponents and a binary choice that says whether a leaf may have a coefficient different from unity. The continuous decisions include the values of those coefficients. Multiplication, division, and other permitted operations make the fit a nonlinear function of the choices. The objective uses squared residuals, the squared differences between the candidate’s predictions and the observations.
minimize Σᵢ∈ᴵ (Y⁽ⁱ⁾ − fₕ,ₚ,𝓏,ₜ(X⁽ⁱ⁾))²
I is the set of row indices, and Σ adds a squared residual for each i in that set. X⁽ⁱ⁾ and Y⁽ⁱ⁾ are the inputs and measured output on row i. The expression f is indexed by h, the leaf coefficients, p, the vector of integer powers, z, the vector of binary decisions, and T, the tree with its interior operators assigned. Here p is an optimization variable for the powers. In the orbital and adsorption examples the paper uses that letter for different physical quantities. The square applies to each residual before summation.
−δ ≤ pᵢ ≤ δ
pᵢ is an entry in the vector of integer powers, and δ is the chosen bound on its magnitude. Here i indexes entries in that vector. This constraint applies to every power in every leaf.
−Ωzᵢ + (1 − zᵢ) ≤ hᵢ ≤ Ωzᵢ + (1 − zᵢ)
In this constraint i indexes leaves. The coefficient is hᵢ, its switch is zᵢ, and Ω bounds the magnitude of an adjustable coefficient. A switch of 0 forces the coefficient to 1. A switch of 1 gives the coefficient the allowed interval from −Ω to Ω. The coefficient can still take the value 1 within that interval.
Σᵢ₌₁ᵐ zᵢ ≤ k
m here counts leaves, and the sum runs over their switches zᵢ. The integer k limits how many leaves may have coefficients different from 1. Keeping this limit separate from depth lets the authors consider the same operator structure with different amounts of numerical flexibility.
The paper describes general experimental settings with a depth limit of 3, a search tolerance of 10⁻⁴ for the squared-error objective, and a coefficient range of [−100, 100]. Each individual exponent lies in [−2, 2]. The solver also limits the combined magnitude of the powers in a leaf.
Σᵢ₌₁ⁿ |aᵢ| ≤ τ
aᵢ is the exponent of the ith input variable in the leaf, n counts the input variables, and the vertical bars take the absolute value before the powers are added. The authors set the bound τ to 6. The individual and combined bounds work together. They limit both the complexity of a power assigned to one variable and the complexity that can accumulate across several variables within a leaf.
BARON solves the optimization problems for the trees. It can keep both a feasible solution and a lower bound on the best possible error for a tree. The feasible solution gives an error the search has actually achieved. The lower bound says how far that error might still be improved. This distinction supports a search decision. If the bound for a tree already exceeds an error achieved by a tree of equal or smaller depth, devoting more time to that tree cannot improve the paper’s search objective. If a shallow tree already meets the prescribed tolerance, the search stops pursuing deeper ones.
The separate optimization problems can run in parallel. When there are more trees than available cores, the paper describes rotating through the trees in slices of 10 seconds, pausing one batch and continuing with another. The search favors simpler trees through its ordering and stopping rules. Each optimization can also be stopped by a time limit. Its output may be a good feasible expression with a remaining gap to the lower bound. Global optimality is a capability of the optimization approach under appropriate termination conditions. The experimental search routinely has to balance that capability against the cost of obtaining a tight certificate.
Use dimensions when the inputs support them
Physical units can limit which expressions are admissible before the theorem prover has any work to do. The authors represent dimensions as vectors whose entries are powers of base units, illustrated with mass, distance, and time. A product adds the dimension vectors of its factors. A quotient subtracts them. The terms of a sum need matching units, and the dimensions at the tree root must match those of the predicted quantity.
The gravitation example explains when this filter has force. The dimensions of a force include an inverse power of time. If the available inputs are masses and a distance, and all fitted coefficients are declared dimensionless, no product of powers of those inputs can supply the time dimension. The optimization can reject the tree on dimensional grounds. A suitable dimension-bearing quantity, such as the gravitational constant, changes what can be represented. Allowing a free coefficient with arbitrary units in every leaf can make the check much weaker, since those units can be chosen to compensate for other factors. The system lets the researcher decide whether the coefficients can have units. The authors use the dimensional restrictions where feasible and omit them for the stated comparisons with regression software that lacks the same treatment.
Ask the prover about the conjecture
The reasoner receives the candidate equation and the axioms. The authors use KeYmaera X, which combines deduction with real algebraic and computer algebra techniques. They formulate the checks using first-order logic with arithmetic. A statement can be universal, expressing what holds for every allowed assignment of the variables, or existential, expressing that values with a specified property exist. Equality, inequality, and arithmetic operations let the axioms refer directly to measured and unmeasured physical quantities. Mathematica performs certain separate checks on the behavior of symbolic expressions.
The simplest case asks whether the axioms entail the candidate.
B ⊨ F
B is the set of background axioms, F is the conjecture, and ⊨ denotes logical entailment. Any assignment satisfying the assumptions in B must satisfy F as well. If the conjecture states an equality between the predicted quantity and the candidate expression, a proof establishes that equality throughout the admissible domain. A counterexample instead assigns values that satisfy the axioms and violate the equality. A run can also reach its time limit with the conjecture unresolved.
Kepler’s third law illustrates why a background theory can use more variables than the data. The observed inputs are the masses and their separation. The background axioms introduce distances to the center of mass, two forces, and an angular rate. In the authors’ setup the distances balance around the center of mass, and their sum gives the separation.
m₁ × d₁ = m₂ × d₂
m₁ and m₂ are the masses of the two bodies, and d₁ and d₂ are their respective distances from their center of mass.
d = d₁ + d₂
d is the observed separation and d₁ and d₂ are the center-of-mass distances. The force relation then introduces an intermediate quantity whose value is governed by gravity.
Fᵍ = G × m₁ × m₂ / d²
Fᵍ is the gravitational force, G is the gravitational constant, m₁ and m₂ are the two masses, and d is their separation. The square applies to the separation in the denominator.
Fᶜ = m₂ × d₂ × w²
Fᶜ is the centrifugal force in the paper’s setup, m₂ and d₂ are the mass and center-of-mass distance of the second body, and w is the angular rate. The force balance sets Fᵍ and Fᶜ equal. The background also restricts the masses, the period, and the center-of-mass distances to positive values.
p = 2π / w
p is the orbital period, π is the circle constant, and w is the angular rate. Bringing the balance equations and the period relation together gives an equation using only the observed inputs and the gravitational constant.
p = √(4π²d³ / (G × (m₁ + m₂)))
p is again the period, d is the separation, m₁ and m₂ are the masses, and G is the gravitational constant. π is the circle constant and √ takes the positive square root of the entire quotient. The cube applies to separation, and the masses enter through their sum. The reasoner can compare a proposed period against the value implied by the axioms while keeping the intermediate quantities in its logical formulation. It can thus assess a candidate even when its reasoning problem is supplied as a set of relations rather than a single equation solved for the output.
Check the size and location of discrepancies
The authors define a numerical error, ε, and a reasoning error, β. The numerical error compares predictions with observed outcomes. The reasoning error compares them with the outcomes implied by the theory. At an observed input, an experimental outcome and a theory-implied outcome may already be close. A formula can then have similar error under both comparisons. The distinction becomes much more informative when the reasoner can evaluate a range of inputs for which the measurements give no direct reference outcome.
β₂ʳ = √(Σᵢ₌₁ᵐ ((f(Xᵢ) − fᴮ(Xᵢ)) / fᴮ(Xᵢ))²)
β₂ʳ is the pointwise relative reasoning error using the Euclidean norm, identified by the subscript 2. The superscript r means relative. The sum runs across the m measured input vectors Xᵢ. f is the candidate and fᴮ gives the prediction implied by B. Each difference is divided by the theory-implied value at the same input. Squaring, summing, and taking the square root gives an aggregate discrepancy across the observed inputs.
β∞ʳ = max₁≤ᵢ≤ₘ { |f(Xᵢ) − fᴮ(Xᵢ)| / |fᴮ(Xᵢ)| }
β∞ʳ is the largest pointwise relative reasoning error. The subscript ∞ indicates that the maximum replaces the Euclidean aggregation. The bars take absolute values. i indexes the same m inputs, and the two functions have the same meaning as in the previous expression. For the numerical versions ε₂ʳ and ε∞ʳ, the observed response Yᵢ takes the place of fᴮ(Xᵢ) throughout. For the absolute versions, marked a in the paper, the division by the reference value is dropped. An absolute measure remains usable when the reference outcome is zero, a feature that matters when evaluating the alternative time-dilation axioms.
β∞,ˢʳ = maxₓ∈ˢ { |f(x) − fᴮ(x)| / |fᴮ(x)| }
β∞,ˢʳ is the maximum relative reasoning error across S, the chosen domain, and x ranges over that domain rather than only the measured inputs. f and fᴮ again give the candidate and theory-implied values. In the main Kepler analysis, S is the smallest box of coordinate intervals containing the dataset. It spans each measured input’s range independently, so it can include combinations absent from the sample. The absolute version uses the same domain and maximizes the absolute discrepancy before any division.
The prover is asked questions about bounds. It can decide that discrepancies are below a supplied threshold when it succeeds in proving the corresponding statement. To approximate the maximum error, the system tests successively narrower bounds by binary search. For the pointwise Euclidean error, the authors bound the discrepancy at each observation and then combine the resulting bounds. In the Kepler examples, the supplementary material gives a proof time limit of 1200 seconds and a binary-search precision of 10⁻⁴. These settings explain how the reported errors are obtained. The search produces a bound to a specified precision when it succeeds, and difficult proofs can remain unresolved.
The variable-dependence check changes the domain. The authors widen the admissible interval for one input at a time by an order of magnitude and ask whether the maximum reasoning error increases. If widening the mass interval reveals a substantial disagreement, the fit may have omitted the mass or expressed its effect with the wrong mathematical dependence. Changing one input’s range at a time helps identify which part of the candidate deserves attention. The result remains tied to the axioms and the ranges that are checked. It is an assessment of how the proposed equation behaves under those variations.
Allow the theory to determine the meaning of fitted constants
The adsorption experiment illustrates a different kind of conjecture. The symbolic regression component sees pressure and loading. It can estimate numerical coefficients for an equation relating them. The background theory expresses the same relationship through a site capacity and adsorption and desorption rates. Those quantities can depend on the material and experimental conditions. It would be a stronger claim to say that the theory, on its own, determines the precise decimals obtained by fitting the observations. The authors want to know whether the structure of the equation follows from the theory for suitable coefficients.
The background theory starts from a balance between vacant and occupied sites.
S₀ = S + Sₐ
S₀ is the total number of sites, S is the number of unoccupied sites, and Sₐ is the number of occupied sites.
rₐₒₛ = kₐₒₛ × p × S
Here the subscript ₐₒₛ labels adsorption. rₐₒₛ is the adsorption rate, kₐₒₛ is its proportionality coefficient, p is the gas pressure, and S is the number of vacant sites. Under this assumption, both pressure and vacancy affect the rate at which sites are filled.
r𝒹ₑₛ = k𝒹ₑₛ × Sₐ
The subscript 𝒹ₑₛ labels desorption. r𝒹ₑₛ is the desorption rate, k𝒹ₑₛ is its proportionality coefficient, and Sₐ is the occupied-site count. Equilibrium equates the adsorption and desorption rates. The loading q equals Sₐ under the one-molecule-per-site assumption in the theory. Solving these relations gives the one-site equation.
q = qₘₐₓ × Kₐ × p / (1 + Kₐ × p)
q is loading, p is pressure, qₘₐₓ is maximum loading, and Kₐ represents adsorption strength. The background arguments identify qₘₐₓ with S₀ and Kₐ with the ratio of the adsorption coefficient to the desorption coefficient. These identifications explain why data collected for different materials or conditions can give different coefficient values within the same equation form.
q = qₘₐₓ,₁ × Kₐ,₁ × p / (1 + Kₐ,₁ × p) + qₘₐₓ,₂ × Kₐ,₂ × p / (1 + Kₐ,₂ × p)
q and p are still loading and pressure. The indices 1 and 2 identify distinct site types, each with a maximum loading qₘₐₓ and an adsorption strength Kₐ. The terms are summed because each type contributes its own occupied sites to the total loading. In the background formulation, the rate and site-balance equations can be written for each type, while pressure is shared.
For the proof about a fitted expression, the system replaces its decimals with fresh variables. For example, a pressure divided by a linear expression in pressure can use unknown coefficients for the pressure term and the constant term in the denominator. The question then asks whether there is a choice of coefficients that works across the admissible pressures and loadings for the material parameters in the theory.
∃c₁ ⋯ ∃cₙ [(C ∧ A) → (F′ ∧ C′)]
∃ means that a value exists, and c₁ through cₙ are the variables introduced for the fitted constants. Here A is the conjunction of the physical axioms and C is the conjunction of their sign restrictions. In this formula C refers to sign restrictions, whereas in the general input description it denotes the hypothesis class. ∧ joins assertions with “and” and → denotes implication. F′ states the candidate equation after replacing the decimals, and C′ gives restrictions on the new coefficients, such as positivity. The implemented one-site formulation places the existential choices outside the universal quantifiers for the pressure, loading, and other varying quantities. This lets the coefficients depend on material constants while requiring the same choice to work for every admissible observation.
The authors also check general properties of the proposed loading curve. Their collection K contains requirements for zero loading at zero pressure, positive loading at positive pressure, a non-negative derivative, a finite positive limiting slope at zero pressure, and a finite positive limiting loading as pressure grows. These checks cover behavior that is visible from the curve itself. A formula can satisfy them and still leave a proof obligation about the underlying site theory unresolved. The paper names the IBM AI-Descartes repository as the release of the implementation and experimental datasets.
Experiments and results
Orbital periods from planetary and binary-star observations
The orbital experiments progressively change what the measurements can reveal about mass. The solar dataset contains eight observations, one for each planet. The exoplanet dataset contains 20 observations, including the eight solar observations and measurements from the Trappist-1 and GJ 667 systems. The binary-star dataset has observations for five pairs. For each dataset the response is orbital period, and the inputs are the masses and separation. The satellite and host labels in the planetary data become the two stellar masses in the binary-star data.
The authors normalize the quantities to avoid numerical difficulties from the large magnitudes of values in physical units. Stellar mass is expressed relative to the Sun’s mass. Planetary mass is expressed relative to Earth’s mass in the solar dataset and to Jupiter’s mass in the exoplanet dataset. Distances are expressed in astronomical units. Periods use the scales described for the datasets in the paper, with days/1000 for the planetary data and years for the binary-star data. Normalization affects the coefficients in the reported expressions. For example, the coefficient in the solar distance-only candidate belongs to the scaled variables. The search uses addition, subtraction, multiplication, division, and square root.
The leading solar candidate has the cube of distance inside a square root. It omits both masses. It has a Euclidean relative numerical error of .01291 on the solar observations, a pointwise Euclidean relative reasoning error of .0146, and a maximum relative reasoning error of .0052 over the measured-input box. These quantities use different references or aggregations, so the maximum error and the Euclidean error answer separate questions. The maximum checks the largest discrepancy on the domain. The Euclidean error combines discrepancies across the observed inputs. The close fit is compatible with a substantial structural omission, since the stellar mass is fixed across the observed sample and the planetary masses are small relative to it.
In the exoplanet dataset, the first listed candidate retains the same distance term and introduces the stellar mass under the square root in the denominator. Its maximum relative reasoning error across the measured-input box is .0052. A more elaborate candidate in the same dataset includes terms involving both masses, but the corresponding reported maximum is > 550. Its maximum pointwise relative reasoning error is .1097 on the observed inputs. The much larger domain result shows what can happen when the variables take combinations allowed by their separate ranges. Including an input in an equation provides little protection if its effect in those combinations is expressed incorrectly.
The last binary-star candidate takes the square root of a quotient with cubed separation above a weighted sum of the masses. Its fitted weight for the first mass is 0.9967, with the other entering the sum directly. Its Euclidean relative numerical error on the observations is .005815. The other binary-star candidates shown have lower errors by that numerical measure, .002291 and .003221. The order changes under the pointwise reasoning measure in the chart. The final candidate also has a reported maximum relative reasoning error of .0020 over the input box. For the other two binary-star candidates, the corresponding domain checks timed out.
Pointwise relative reasoning error for the binary-star candidates
The candidate with a weighted sum of both masses agrees most closely with the axioms at the observed inputs.
The numbers
| System or setting | Euclidean relative reasoning error |
|---|---|
| First listed binary-star candidate | .0059 |
| Second listed binary-star candidate | .0038 |
| Candidate with a weighted sum of the masses (this paper) | .0014 |
The dependency tests judged the final candidate’s dependence on both masses and separation correct under the tested extensions. This is the sense in which the integrated analysis rediscovers Kepler’s law. The candidate resembles the full dependence and tracks its predictions closely. The paper reports that the candidates generated by regression in the Kepler experiments failed exact derivability. The small coefficient discrepancy and the successful range checks therefore belong to an approximate recovery, assessed with reference to the law implied by the axioms.
Clock frequency over a wider velocity range
The time-dilation task uses atomic-clock measurements from Chou and colleagues. The input is the speed of a moving clock relative to a stationary one. The response is the fractional frequency shift, scaled by 10¹⁵ in the dataset. The theory predicts how the ratio depends on speed.
(f − f₀) / f₀ = √(1 − v² / c²) − 1
f is the moving clock’s frequency, f₀ is the stationary clock’s frequency, v is relative speed, and c is the speed of light. The expression inside the square root involves the squared ratio of the speeds, and the final subtraction gives the fractional change. The frequencies here are physical quantities. The paper uses f elsewhere as a generic name for a candidate function.
To encode the theory the authors describe a light clock with two mirrors. In the stationary case the light travels the mirror separation on each leg. For the moving clock, the distance along a leg is the hypotenuse of a triangle whose other sides are the mirror separation and the horizontal displacement during that leg. The relative frequency change follows from taking the reciprocals of the clock periods and comparing the resulting frequencies. The relativistic axioms keep the same light speed in the two clock equations and use 3 × 10⁸ meters per second for that speed.
The published candidates use the same search operators as the orbital experiments. The search did not return the exact relativistic equation. Among the candidates, the negative quadratic with coefficient −0.00563 is particularly informative. Its Euclidean absolute numerical error on the scaled clock data is .3822. The table gives a verified interval of 37 ≤ v ≤ 115 for a maximum absolute reasoning error of at most 1 on that scaled response. Under the separate relative criterion of at most 2%, the verified interval is 37 ≤ v ≤ 10⁸, with velocities in meters per second. A fixed absolute deviation on the scaled frequency shift and a fixed fraction of the predicted shift are different requirements. It is therefore meaningful for the same candidate to have very different certified ranges for them.
Another tabulated candidate achieves a smaller maximum relative numerical error on the data, .0009792 against .001824 for the quadratic. It has a singularity at v = 1, which makes it unsuitable if the desired relation is continuous there. Its range for the 2% reasoning criterion is reported as 37 ≤ v ≤ 10⁷. The authors use the range checks and the continuity requirement to judge the candidates. These are comparisons with predictions implied by the clock axioms. The experiment’s clock readings supply the fitting data, while the much wider stated intervals come from reasoning.
Gas loading and the shape of the equation
The adsorption tests use Langmuir’s methane measurements on mica at 90 K and the Sun and colleagues measurements of isobutane on silicalite at 277 K. Both datasets give loadings at measured pressures, on different scales. The site counts and kinetic coefficients are parts of the theory. The measured pressure and loading pairs supply the numerical regression problem. Addition, subtraction, multiplication, and division are the permitted operators. The authors compare searches allowing two and four constants, and the paper reports a run of 20 minutes on 45 cores, with seven candidates displayed for each dataset.
On the mica data, the first listed two-constant candidate has a maximum relative numerical error of .04865. The candidate that the prover establishes has a maximum relative numerical error of .1258. The latter is pressure divided by a linear expression in pressure, with fitted coefficients .00927 and .0759 in the denominator. It satisfies 5/5 of the thermodynamic constraints. The lower-error two-constant candidate satisfies 2/5, and its proof check is labeled as a timeout in the table. The chart includes an additional setting to show how a fit can improve further as the search gains more constants.
Maximum relative numerical error for candidates on the methane-on-mica data
The proof-backed one-site expression has higher error on the observed loadings than either displayed alternative.
The numbers
| System or setting | Maximum relative numerical error |
|---|---|
| First listed two-constant candidate | .04865 |
| One-site form with a proof (this paper) | .1258 |
| First listed four-constant candidate | .02951 |
The paper reports that the best-fitting four-constant expressions for the mica data can achieve lower errors than the single-site and two-site Langmuir forms while missing the two-site equation itself. This is a case where increasing the number of adjustable coefficients improves the observed fit without necessarily producing a scientifically persuasive expression. The proved single-site form also appeared when the search allowed four constants and when an extra point near zero pressure and loading was included.
For the silicalite data, the one-site form is also provable after abstracting the fitted coefficients. Its relative Euclidean numerical error on the observations is .9680. Two four-constant expressions that satisfy 5/5 of the behavior constraints have relative Euclidean numerical errors of .1119 and .1239. The authors manually establish that both have forms equivalent to a two-site Langmuir equation with suitable coefficients. The theorem prover timed out on these candidate checks. The paper also reports a separate successful proof of the explicitly specified two-site equation from the two-site axioms. This separates what the theory can entail from what the automated check managed to establish about the specific expressions returned by regression.
Comparisons with equation-search systems
The methods compared on real data are AI Feynman, TuringBot, PySR, and the Bayesian Machine Scientist. As described in the paper, AI Feynman combines several fitting and search techniques with properties common in physical equations. TuringBot searches with simulated annealing. PySR combines evolutionary search with annealing and gradient-free optimization. Bayesian Machine Scientist explores equations with a Markov chain Monte Carlo procedure guided by a prior learned from a collection of mathematical expressions. These are comparisons of proposed equations and of how systems choose among them. The methods have different available operators and search arrangements.
When a system supplies a preferred equation, the comparison uses that choice. For the other reported systems, the authors can select a knee of the Pareto curve, the point identified as having the greatest curvature in the error and complexity tradeoff. The paper describes using the supplied configurations and reports the comparison settings. The free edition of TuringBot limits the number of independent inputs to 2, so the authors omit it on the binary-star dataset. The paper also describes why some earlier constrained regression methods were left out. A meaningful comparison with one of them would have required the ability to express more of the adsorption constraints than the available implementation supported.
A recurring result across the real datasets is that a promising equation sometimes appears among candidates while the system’s preferred choice is another expression. In the solar comparisons, equations with the same distance dependence as the AI Descartes solar candidate appear among the proposed forms. The solar data make that dependence comparatively easy to see. In the binary-star comparison, PySR proposes an expression with the sum of both masses in the expected place. This illustrates the difference between generating a useful candidate and identifying it on scientific grounds. The appendix reports the candidate sets, and the authors use the observed selection difficulties to explain where a background-theory check would fit.
The broader comparison uses 81 of the 100 Feynman Symbolic Regression Database problems. The authors exclude the 19 problems that involve trigonometric functions. Each original synthetic dataset contains 100,000 noise-free points. The comparison uses 10 data points from each selected dataset and adds 1% error. The goal is to create fitting problems with little data and appreciable noise. The reported metric checks whether the solver returns a candidate that matches the reference equation exactly or has one of the counted small discrepancies in numerical constants. The authors label slightly wrong powers separately, and the reported accuracy counts exact forms and the accepted constant discrepancies.
Candidate recovery accuracy on the 81 sparse, noisy Feynman problems
AI Descartes most often returns a candidate meeting the benchmark’s equation-matching criterion.
The numbers
| System or setting | Candidate recovery accuracy % |
|---|---|
| Bayesian Machine Scientist | 48.15 |
| AI Feynman | 40.74 |
| PySR | 49.38 |
| AI Descartes (this paper) | 60.49 |
AI Descartes returns an accepted candidate for 49 out of 81 problems. The recovery score refers to the presence of a candidate in the regression output. A proof against background axioms is a separate outcome. The authors also compare the tools on a subset of 15 Feynman problems eligible for the free TuringBot edition. AI Descartes achieves 86.67%, AI Feynman, Bayesian Machine Scientist, and TuringBot each achieve 80%, and PySR achieves 73.33% by the same candidate-recovery criterion on that subset. The authors describe these problems as easier. The subset results therefore need the input restriction attached to them.
For the full pipeline, the authors manually obtain background axioms for five selected Feynman problems. In each case the regression stage contains the expected relationship and the reasoning stage verifies it. Some checks use a direct proof. Others use existentially quantified constants to account for fitted coefficients. These experiments show the whole procedure working where the authors have formalized enough background knowledge. The count from the larger benchmark describes how frequently the search reaches a candidate worth checking.
What the ablations show
The same data and different criteria for choosing an equation
The paper’s closest comparisons to an ablation vary the theory, the domain of the reasoning check, or the information available to the adsorption search. It also contrasts rankings by data error and reasoning error for the same candidates. These comparisons address specific steps of the procedure. They give a more direct account of where the added information affects a choice than a single accuracy score across all experiments would.
The binary-star candidates expose a reversal. The equation with the smallest Euclidean relative error on the observed periods is different from the equation with the smallest Euclidean relative discrepancy from the axioms at those inputs. The latter is the expression with both masses in a weighted sum, and it also passes the reported dependence checks. This is evidence that score selection can change when a physical theory provides a reference. A finite set of observed periods can reward small adjustments that imitate the particular observations. The reasoner compares the same candidate to the period implied by a common set of force and balance assumptions.
The domain check adds a further comparison while the candidate itself remains fixed. In the exoplanet case, a candidate can appear to have appreciable but fairly limited disagreement at the observed inputs and break down severely over the input box. When observed inputs occur in clusters, the box can combine values drawn from different parts of the sample. That is precisely what makes the test informative. The candidate has to preserve the right relationship when several plausible values occur together, including combinations for which no period was observed. Extending an input range in isolation can make the source of the disagreement more specific. The solar distance-only expression offers the clearest example. Varying mass exposes a dependence that a constant stellar mass cannot reveal directly.
The pointwise measures also show when extra reasoning provides little separation. On datasets already close to the theory, a good approximation to the observations is likely to be close to the theory at those same inputs. That behavior appears in the solar results. It explains why the authors examine domains and variable dependence in addition to reporting the pointwise discrepancies. A theory check over an interval can ask a stronger question of the same expression without requiring the collection of extra measurements.
Change the light-speed axiom and keep the candidates fixed
The time-dilation comparison changes the background theory while preserving the regression output. The relativistic version gives a constant light speed in the equations for both clocks. The alternative treats light emitted transversely from a moving source as though its speed combined with the source’s speed in the manner specified by the altered axiom. With all the other clock relationships in place, the alternative is internally consistent and implies no shift in clock frequency.
The candidate formulas fitted to the clock observations each disagree with that zero-shift prediction. The paper reports absolute generalization reasoning error greater than 1 even over the domain of the clock data, as well as a pointwise disagreement exceeding the same bound. The relative measure would require division by the theory-implied shift, which in this case is zero. Using an absolute discrepancy gives the theory comparison a meaningful reference scale.
This is a controlled comparison of the explanatory assumptions. The authors keep the measurements and fitted equations fixed and change a stated ingredient of the derivation. The result shows how a fitted formula can carry empirical information into the comparison of theories. The relative success of the original and altered theories is specific to the clock shift and the axioms being compared. The procedure can test the consequences of supplied alternatives. The alternative axiom in this experiment is formulated by the researchers.
Change the available constants and the information near zero pressure
The adsorption runs vary the allowed number of fitted constants and whether to add a point near the origin. The extra point represents the physical expectation that a surface has zero loading at zero gas pressure. In the implementation, both pressure and loading are set to 0.001 for this added observation. A candidate with negative powers can be undefined at a pressure of zero, so the nearby point can be used in the regression objective. The exact limiting and boundary behavior is assessed separately by the symbolic constraint checks.
The extra point and coefficient budget change which pressure curves are favored in the search. The mica one-site candidate appears under more than one condition. Its recurrence shows that the discovery of that form is compatible with both the smaller and the larger coefficient budget used in the experiment and with the additional near-origin observation. The table also shows that several more flexible candidates fit the measured pressures more closely while satisfying fewer of the thermodynamic requirements. The checks supply a basis for preferring a form even when its observed error is higher. The reported runs give examples of what the settings produce. They do not measure recovery across repeated, independently resampled adsorption experiments.
The silicalite results demonstrate a useful relationship between screening and proof. The two expressions that the authors identify with the two-site equation satisfy every stated thermodynamic condition. Their automated proofs remained unresolved. The behavior checks helped identify candidates for manual algebraic analysis, where the authors could connect their coefficients to the site parameters. A property check and a derivation answer distinct questions, so a successful screen can still advance the analysis when the larger logical query is too hard for the prover within its time budget.
Remove a premise from an otherwise successful proof
The supplement performs a direct test of the Langmuir derivation by taking out the desorption-rate premise. With that premise removed, the prover’s counterexample search can assign values that satisfy the remaining assumptions and violate the one-site equation. The counterexample gives a reason why the original derivation needed more than a site balance and equal rates. The missing equation had linked the desorption rate to the occupied population. Once that link is removed, agreement between adsorption and desorption rates no longer forces the same loading for a specified pressure.
The authors also report that adding redundant axioms can leave the successful proof intact. The informative comparison is the removal of an essential premise and the discovery of an assignment that invalidates the implication. A pressure curve can still happen to hold in some cases after the premise is removed. The counterexample establishes that it need not hold in every admissible case under the reduced theory.
Limitations
Limits identified by the authors
The authors assume access to sufficiently complete, consistent, and correct background knowledge. A proof can carry those assumptions through to the conjecture. Its scientific value depends on how well the encoded axioms describe the phenomenon and the conditions under which they are valid. A candidate supported by measurements could fail a derivation because a required assumption is missing. The authors discuss abduction as a possible addition. In that approach, the conjecture obtained from observations would be treated as something to explain, and the system would look for additional assumptions consistent with the existing theory that make its derivation possible. The implemented examples use theories assembled by the researchers.
Obtaining the axioms is itself a practical barrier. The paper describes limited availability of machine-readable theories in the natural sciences and discusses extraction from scientific publications as a potential way to reduce the effort. Equations need surrounding definitions and applicability conditions before they can function as premises. The authors judge the available extraction techniques insufficient for the scope of the intended system. The Feynman proof experiment illustrates the consequence for evaluation. The authors carry out the regression comparison broadly and supply a formal theory manually for a selected subset.
Both search stages can be computationally expensive. The authors report that expanding the tree grammar or increasing the maximum depth produces rapid growth in the number of generalized trees. With the arithmetic operators and square root, their enumeration has 60 trees at maximum depth 3, 4485 at depth 4, and ≥ 10,000,000 at depth 5. Each retained tree can require its own difficult nonlinear optimization. In one illustrated optimization, BARON obtains a certificate for an error around 8.5 shortly after 500 seconds. In another it finds an error around 0.002 shortly before 300 seconds, while the lower bound stays at 0. A promising candidate can thus arrive well before a certificate of optimality becomes available. The time limit can leave a substantial unresolved gap.
The paper also identifies limits of the reasoning tools. Proof times can vary widely among problems, and the tools have restrictions on the mathematical operations and logics they support. The authors report that KeYmaera X supports differential equations in time and lacks support for differential equations in other variables and for higher-order logic. BARON cannot handle differential equations. The successful examples therefore concern relationships amenable to the available algebraic and logical machinery. The software used for the existential adsorption proof reports success without supplying explicit coefficient assignments. The paper gives a manual assignment for the one-site case to illustrate what a witness would explain.
Finally, the authors discuss experimental design as an extension. In the experiments, the measurements already exist when the discovery procedure begins. An active version could seek observations expected to reduce uncertainty about the form of the equation or its parameters. That would be especially relevant when several compact expressions agree on the available measurements and diverge elsewhere. The paper shows how to identify such disagreements with domain checks. It leaves the choice and acquisition of additional measurements outside the implemented cycle.
Limits visible in the evaluation
The generalization claims are conditional on the specified theories and domains. The time-dilation range is a statement about agreement with the relativistic equations. The Kepler intervals compare a candidate to a period implied by the force and balance axioms. In each case the wide-domain result comes from a deduction or a bound. Its experimental grounding comes from the original observations and the physical case for the axioms. The reported range itself does not contain additional measured outcomes. To interpret a small error, a reader needs both the specified input domain and the choice of absolute or relative discrepancy.
Likewise, the assignment of correct variable dependence is a result of the interval extensions that the authors ran. A candidate that passes those checks can still have behavior outside the investigated ranges that the checks never reach. Relative differences also require care when the implied response is zero or very small. The paper’s absolute reasoning comparison for the alternative clock theory is a concrete case where the choice of metric determines which question can even be asked. The singular candidate in the clock experiment shows a related domain issue. A good error bound over one interval can coexist with a problem at a point outside it.
The Feynman numbers measure the retrieval of an accepted expression somewhere among the proposed candidates. The metric tolerates specified discrepancies in constants. A reader interested in fully automatic discovery would also want to know how frequently the system chooses the intended formula and completes a proof across problems with independently prepared axioms. The five successful proofs cover cases chosen for available background knowledge. The larger comparison uses default or reported configurations of competing tools, a restricted set of functions, and sparse samples derived from known equations. Those choices make the result relevant to the data conditions considered in the paper. They leave the performance on other function families and under other search budgets open.
The algorithm also needs the right expression, or a useful equivalent, to survive the search procedure. Operator lists, depth bounds, power limits, coefficient budgets, pruning, and time limits all affect which conjectures reach the reasoner. The authors explicitly note that trimming trees using algebraic simplifications can remove expressions whose merged exponents would exceed the allowed bounds. The time-dilation example illustrates the practical consequence of an incomplete candidate set. Deduction can help choose and evaluate an approximation, while exact recovery remains limited by the proposal stage. Proof timeouts in adsorption expose a separate source of uncertainty after a suitable form has already been found.
What came after
The later citing work is Interpretable Machine Learning for Science with PySR and SymbolicRegression.jl. Its subject is interpretable equation search for scientific applications with those tools. PySR appears in the AI Descartes experiments as a regression system that proposes equations and supplies a preferred candidate. The connection is thus to the stage that turns measurements into symbolic hypotheses. The evidence establishes the citation and the continuity of that subject. Whether the later work adopts AI Descartes’ derivability tests or its reasoning-error measures remains unestablished. PySR and SymbolicRegression.jl
The comparison in AI Descartes gives a concrete reason to care about that stage in its own right. On the binary-star data, PySR’s candidate set includes the expected sum-of-masses structure. Such a result creates a meaningful conjecture for a proof system to assess. The adsorption and clock experiments show how the next question can vary by application. One calls for a proof about a form with material-dependent constants, while the other calls for a bound on the error of an approximation over a stated velocity range. In each case the value of interpretable equation search is that it makes the scientific claim precise enough to ask what observations and assumptions support it.
Cite
Cite as Cristina Cornelio, Sanjeeb Dash, Vernon Austel, Tyler Josephson, Joao Goncalves, Kenneth Clarkson, Nimrod Megiddo, Bachir El Khadir and Lior Horesh. 2021. AI Descartes: Combining Data and Theory for Derivable Scientific Discovery. arXiv:2109.01634.
@misc{cornelio2021ai,
title = {{AI Descartes: Combining Data and Theory for Derivable Scientific Discovery}},
author = {Cristina Cornelio, Sanjeeb Dash, Vernon Austel, Tyler Josephson, Joao Goncalves, Kenneth Clarkson, Nimrod Megiddo, Bachir {El Khadir} and Lior Horesh},
year = {2021},
doi = {10.48550/arxiv.2109.01634},
eprint = {2109.01634},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2109.01634}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cornelio-2021-ai-descartes-combining-data/