Chapter 12
Synthesis: choosing and combining methods
The previous chapters presented the methods one family at a time. This chapter puts them side by side: it summarizes their properties, offers a decision guide for choosing a method from what is known about the problem, shows how the methods combine into a workflow, collects the lessons of the examples, and lists the open problems that the field and the package have not solved.
12.1 The families side by side
Table 12.1 compares the method families of eqdisco by what they assume, what they return and what they cost. No family dominates. Genetic programming assumes least and costs most; sparse regression and FFX are fast and deterministic but cannot leave their library; exhaustive search guarantees optimality only for small equations; the Bayesian machine scientist is the only family that quantifies the uncertainty of the structure; language-model proposals bring knowledge that no data-driven method has, at the price of an external model whose proposals must be checked like any other.
Family (chapter) | Assumption | Deterministic | Inner constants | Structure uncertainty | Cost |
GP with LM (3) | none beyond | no | yes | via families | high |
GP-OLS, MGGP (4) | sum of terms | no | with LM | via families | medium |
Sparse regression (5) | terms in a library | yes | no | no | very low |
FFX (5) | sum of bases | yes | no | no | very low |
Exhaustive (5) | small size | yes | yes | ranking | grows exponentially |
Bayesian (6) | prior over operations | no | yes | posterior | high |
Grammar CE (6) | none beyond | no | yes | learned table | medium |
LLM proposals (6) | knowledge in the model | no | yes | no | external |
12.2 A decision guide
Figure 12.1 turns the table into a sequence of questions. They are not a recipe: a careful analyst runs more than one method and compares the results, which is cheap with a common interface. But the questions put the cheap and safe methods first, and keep the expensive general search for problems that need it.
12.3 Combining methods
The methods are more useful together than apart, and the common representation of equations makes the combinations simple. A typical workflow for an unknown relation might proceed as follows.
- 1.
- Check the units and compute the Buckingham groups; fit a surrogate and test separability and symmetries; reduce the problem accordingly (chapter 9).
- 2.
- Run the cheap methods first: sparse regression on a polynomial and function library, FFX, and exhaustive search up to six or seven nodes (chapter 5). If one of them explains the data to the noise level with a small equation, the search may be over.
- 3.
- Otherwise run genetic programming with constant tuning and multi-objective selection, several seeds, and optionally seed it with the equations of step 2 or with language-model proposals (chapters 3 and 6); for sums of terms use GP-OLS (chapter 4).
- 4.
- Collect the accurate equations of all runs, simplify them, and group them into families; compare the families outside the data range; run the Bayesian sampler near the best structures to see how decisive the data are (chapters 6 and 10).
- 5.
- Validate the chosen equation by cross-validation of the search and by residual diagnostics; give intervals for its parameters and bands for its predictions; quantify its sensitivities (chapter 10).
- 6.
- Export, register and document the equation, and monitor it in operation (chapter 11).
12.4 Lessons of the examples
The examples of the book were chosen to show the methods at work, not to rank them, and their budgets are small. Still, several lessons recur and agree with the literature.
- Constants are the bottleneck of genetic programming.
-
Linear scaling (section 2.4) and Levenberg–Marquardt tuning (section 3.4) each improved the error by more than an order of magnitude at the same number of fitness evaluations.
- Local optima are real.
-
On Keijzer-14 most runs of every selection scheme ended at the same paraboloid; the choice of the scheme changed the size of the returned equation more than its accuracy.
- Multi-objective selection controls bloat without losing accuracy.
-
NSGA-II kept programs at a third of the size of unconstrained GP and reached the lowest test error on Nguyen-6.
- Structure helps when it is there.
-
GP-OLS returned the exact three-term polynomial where multi-gene GP kept four useless terms; sparse regression and exhaustive search found exact laws in milliseconds to seconds when the law was in their space.
- Not every idea works.
-
ERR-guided variation, proposed in this book, did not improve on uniform variation in a ten-run comparison, and it is off by default.
- Noise structure matters in dynamics.
-
Measurement noise inflated the selected NARX order from 2 to 4, and the choice of the derivative estimator decided the accuracy of continuous-time identification on noisy data.
- Knowledge constrains shape, not values.
-
Shape constraints and units removed physically wrong models but could not supply information that the data did not contain.
- Several explanations often fit equally well.
-
Model families and the Bayesian posterior showed equivalent forms of one law in some examples and genuinely different extrapolations in others.
- Thresholds must account for sample size.
-
The rule-of-thumb PSI thresholds raised false drift alarms on small batches that the sample-size-aware thresholds avoided.
12.5 Open problems
Symbolic regression remains an open field. Scaling to many variables is hard for every method of this book: the search space grows with the number of terminals, and libraries grow combinatorially. Noise and small samples make many equations equally plausible, and the honest output is then a set of models with their uncertainty rather than one equation, which practice rarely accepts. Model selection criteria that know the structure of an equation, such as the description length of exhaustive search, are better founded than size penalties but still approximations. Pretrained neural and language models [29, 30, 78] bring prior knowledge into the search at a scale that genetic programming cannot, and how to combine their proposals with rigorous fitting, validation and uncertainty is a research question of the coming years. Finally, benchmarks with known solutions measure recovery, but the real test of a discovered equation is whether it helps to understand and control a system, which no benchmark measures. The tools of this book are meant to make that test easier to carry out.
12.6 Further reading
The book of Kronberger et al. [18] gives practical recipes for genetic programming in symbolic regression; Makke and Chawla [19] review the methods and applications in science; La Cava et al. [6] compare the methods on a common benchmark. Brunton, Proctor and Kutz [66], Udrescu and Tegmark [7], Guimerà et al. [74] and Bartlett, Desmond and Ferreira [38] each opened a direction that complements genetic programming.