arXiv:2610.09347cs.NEOct 2026

Manuscript Offprint

arXiv:2610.09347

Relocating Nonlinearity: How a Downstream Learner Reshapes What Genetic Programming Must Evolve

Nam H. Le

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Genetic programming was conceived as a way of evolving solutions: the program is the answer, and fitness is the error of its own output. A substantial line of work instead makes the program an input to a separate learner, so that fitness measures the learner's output rather than the program's. Which learner to attach matters and depends on the problem, with no account of what decides it. The account has to concern the program: what makes a target hard for genetic programming is how much nonlinearity the program must build by composing primitives. Any nonlinearity the learner supplies, the program is spared from building. The quantity to measure is therefore how much of a target's nonlinearity a learner can take over, and on continuous benchmarks it can only be estimated.

Here we show that how much the program must still build is decided by which learner is attached, and is measurable on the programs themselves. Moving to Boolean domains, where a target's nonlinearity is exactly its Fourier degree, we tune that degree from one to six with everything else fixed. Conditioned on success, a linear learner forces the evolved program to the target's degree exactly, at one through six without a single exception over thirty runs per setting, while tree ensembles succeed with far simpler programs and four times as often.

This gives the field two things. A learner can be chosen from a target's structure instead of its reputation for difficulty. Our control target has lower degree than the parity problems yet gains nothing from a nonlinear learner, while targets reducible to a simple statistic gain a great deal. And the degree of the evolved program is a diagnostic free to compute during any run, showing whether the learner is contributing nothing or is carrying the model. The latter comes with a warning: evolution internalises what the learner supplies in only four of sixty-three conditions, and grows more dependent on it in forty-four. The more capable the learner, the less of the model is left legible in the program.

1 Introduction

Genetic programming (GP) was introduced as a way of evolving computer programs to solve problems [1]. The defining arrangement is that the program is the answer: it is executed on the task, and its fitness is the error of its own output. Two application areas have carried most of the work. In symbolic regression the evolved program is the model. The arrangement runs from early successes in recovering physical laws from data [2], through a modern line of work combining expression search with neural guidance, physics-inspired decomposition, or reinforcement learning [3, 4, 5], to benchmarking against standard machine learning methods at scale [6]. In classification the evolved program produces quantities from which a decision is made, in fault diagnosis [7], on high-dimensional data [8], and in multiclass problems [9].

A substantial line of work departs from the defining arrangement. The evolved program stops being the answer. It becomes an input to a separate, deterministic learner that is refitted for every candidate, and fitness measures the learner's output instead of the program's. In classification this is usually called feature construction [10, 7, 8, 9, 11]; in regression it appears as multi-gene GP, which fits a linear model over several evolved trees [12], multiple regression GP, which recombines a program’s subexpressions by least squares before selection [13], evolutionary feature synthesis [14], and systems that learn feature spaces or networks of trees with the downstream model’s weights as feedback [15, 16]. The difference from standard genetic programming is not incidental. Once fitness stops measuring the program’s own output, the program stops being a solution and becomes one component of an answer completed elsewhere, a representation. The literature does not put it this way, and so never asks the question that follows: what is the program now responsible for?

The most recent instance of the arrangement is also its simplest, and makes the question unavoidable. One evolved program supplies a single feature; its values on the data form one semantic vector, and a univariate learner is fitted from that feature to the target. Fitness is the error of the composition, and the evolutionary loop is left entirely unchanged [17], an arrangement we refer to below as LaSER. Because only the learner varies, the effect of the learner can be read directly. That work reports a linear learner dominating one benchmark suite while nonlinear learners take over on a harder one, and reports that the evolved program sometimes attains the target unaided, which it reads as a Baldwin effect. Neither result is explained. The first says which learner won where without naming any property of the targets that would transfer to a new problem, and the second is measured only at the end of a run on the easiest problems.

What the learner contributes is therefore still unknown. Benchmark comparison cannot settle it, because such a comparison characterises a system, not a problem. The account has to concern the program. What makes a target hard for genetic programming is, to a large extent, how much nonlinearity the program must build by composing primitives: a deeply nested product of the right variables is hard to assemble in a way that a rescaling of it is not. Whatever nonlinearity the attached learner can supply, the program does not have to build. The question of which learner to attach is therefore the question of how much of a target's nonlinearity a learner can take over, and the quantity that answers it is the target's order of nonlinearity in the sense of Vladislavleva et al. [18]. The difficulty is that on the continuous benchmarks where this work is done that quantity must be estimated, and the estimate moves with the sampling range, the error tolerance and the polynomial basis. A claim of the form “a nonlinear learner is needed when the order of nonlinearity is high” cannot be tested cleanly while the quantity inside it is partly an artefact of the experimenter's choices. The question has stayed open because it is a measurement problem before it is a scientific one.

We treat it as such. On {−1,+1}n\{-1,+1\}^n every function has a unique multilinear expansion, and because xi2=1x_i^2 = 1 the monomials of degree at most dd span precisely the multilinear terms of degree at most dd; order of nonlinearity therefore coincides with Fourier degree and is computable in closed form by a Walsh-Hadamard transform [19]. The parity family supplies a dial that moves that degree from one to six while the input space, the data, the primitive set and every search parameter stay fixed. The domain is an instrument chosen to make a measurement possible, not the subject of the claim. The measurement itself is the departure: instead of inferring the division of labour from performance, we compute the order of nonlinearity of the program each run actually produced, a quantity that to our knowledge has not been reported for any system of this kind.

Here we show two things: which learner is attached decides how much the program must still build, and that amount is directly visible in the programs evolution produces. Conditioned on success, a linear learner pins the order of the evolved program to the target's exactly, at one through six with no exception in any of the thirty runs per condition, while tree ensembles succeed with programs of order two or three; success rates separate accordingly, at six and seven runs of thirty against twenty-two, nineteen and twenty-six at the highest order. The advantage is real but bounded, and the bound is informative: a 6-multiplexer control, of lower order than the parity problems where the separation is largest, gains nothing at all from a nonlinear learner, so difficulty and the appropriate learner are orthogonal. Neither component approaches the result alone: the same learners reach 0.112 held-out accuracy on the raw inputs, and evolution without a learner collapses to a constant program.

A second finding follows from reading the arrangement literally. The learner is refitted every generation and its fitted parameters are never inherited, which is the structure of lifetime learning in the Baldwinian sense [20, 21]. Following the evolved program across generations shows that evolution does not internalise what the learner supplies. Across sixty-three problem and learner combinations, genetic assimilation (the genotype coming to replicate, on its own, what learning used to supply) occurs in four, three of which are canonical genetic programming, while in forty-four the contribution of learning widens over evolutionary time; on parity of order four the innate accuracy of the best individual falls from 0.713 to 0.394 while its learned accuracy rises to 1.000. The more capable the learner, the less of the model lies in the program one can read, which places predictive accuracy in conflict with the self-sufficiency of symbolic models that motivates the use of genetic programming in the first place.

The contributions are as follows. We pose the division of labour between evolved program and downstream learner as a question about a measurable property of the target, and make that property exact by choice of domain. We prove that an affine learner is order preserving: it supplies no order of nonlinearity, so the evolved program must carry all of it. This places linear scaling and least squares combination at the boundary of the design space, not at a weak point inside it. We prove that parity of order k is an exact composition of an order-1 program with a bounded nonlinear learner, and that the same holds for every symmetric Boolean function whatever its degree, so the class of targets rewarding an expressive learner is characterisable, not merely anecdotal. We measure the order of nonlinearity of the programs evolution produces and show that it tracks what the learner can absorb, not what the target contains. We show that a control target of lower order gains nothing from an expressive learner, separating difficulty from decomposability. And we show that learner capacity and genetic assimilation stand in opposition, which reverses the usual reading of the Baldwin effect in this setting.

References (26)