~/aixsci
weekly updates

learn/model families

Symbolic regression

Symbolic regression is a way of getting a computer to search for a short formula that fits data, rather than asking a person to guess the formula first.

What it is

Most ways of fitting data start from a shape chosen by a human. Someone decides the relationship is a straight line, or a curve of a certain kind, and the computer only picks the numbers that go in it. Symbolic regression removes that first step. The computer searches among possible expressions themselves, building candidates out of simple pieces: the measured quantities, addition, multiplication, division, powers, and functions such as sines or logarithms. Each candidate is scored on how closely it reproduces the data, and usually also on how short it is, so that a tidy expression beats a sprawling one that fits equally well.

Because there are endlessly many possible expressions, the search cannot be exhaustive. A common method borrows from biology. The program keeps a population of candidate expressions, keeps the ones that score well, and makes new ones by changing pieces at random or by splicing two candidates together. Repeated over many rounds, this tends to drift towards better candidates. The same machinery works when the thing being searched for is not a formula but another compact structure that can be written down and scored, such as a list of which ingredients a model should keep.

Why scientists use it

Scientists use it when they want an answer they can read. A great deal of modern data fitting produces a model that predicts well but cannot be inspected: the reasoning sits in a mass of internal numbers with no plain meaning. A short expression is different. It can be compared with theory, carried into a different setting, checked for whether it behaves sensibly at extremes, and argued about. Where a conventional fit asks whether the data match an assumed law, symbolic regression asks what law the data suggest, which matters when nobody is confident of the shape in advance.

There is a second, more practical use. Detailed scientific models are often too slow to run many times over, and the expression found by such a search can stand in for the slow calculation: cheap to evaluate, close enough to be useful, and small enough to publish. The same framing covers choosing which parts of a large model to keep, where the aim is a reduced version that still reproduces the full one.

In the record

Limits

A short expression that fits is not the same as a true one. Many different formulas can match the same measurements, and the search returns one of them, shaped by which pieces it was allowed to use. Beyond the range of the data, a fitted expression can fail badly while still looking reasonable. Noise and gaps in the data can be absorbed into spurious terms. The search is also unreliable: it may settle on a mediocre candidate, and running it again can give something different. Any result needs checking against independent evidence.

Written by AIxSci: the background from general knowledge, the examples from checked records.

Every article

1articles
0structural-biology
0materials-chemistry
1astronomy
0climate-weather