Crossover by Function, Not Wiring: Preserving Dynamical Building Blocks in Small Recurrent Circuits

Evolutionary search is meant to work by combining good pieces from different parents. That only helps if crossover, the step that mixes two parent networks into a child, keeps those pieces intact. In small recurrent neural circuits the pieces are hard to see from the wiring. Theory of finite-size networks, meaning circuits of tens to a few thousand units where noise does not average away, shows that neurons which are identical and identically wired can spontaneously split into groups with different firing rates. It also shows that correlated activity can separate completely from the underlying synapses. So two parents can have near-identical connectivity and still assign different computational roles to corresponding neurons. The reverse also happens: very different wiring can implement the same computation. Any crossover that lines up parents by their graph structure will then cut through the units that actually work together.

We propose to line up and recombine parents by their measured dynamics instead of their wiring. Each parent is driven with the same probe inputs. Neurons are matched across parents by their response profiles. Groups of neurons that fluctuate together become the units that are transplanted whole, carrying their synapses, time constants and thresholds with them. A cheap stability check keeps the child on the same side of the nearest instability as its parents. The central, falsifiable prediction comes from finite-size theory: the advantage of functional over structural alignment should be largest in small, strongly inhibited circuits, where symmetry breaking occurs. It should shrink as circuit size grows toward the regime where mean-field theory (the large-network approximation in which fluctuations vanish) becomes accurate.

Core Claim

Two diagnoses motivate the claim. The first is that crossover which ignores functional structure is destructive. Subtree tracing in genetic programming found that blind crossover produces offspring that are, on average, less fit than their parents (On the Effectiveness of Genetic Operations in Symbolic Regression). The permutation problem in architecture search is the same failure seen from another angle: isomorphic encodings get torn apart. Shortest Edit Path (SEP) crossover repairs this for feedforward cell graphs. It computes the graph edit distance between two parents and applies half of the shortest edit sequence, and it has a provably better lower bound on expected improvement than mutation (Shortest Edit Path Crossover).

The second diagnosis is why SEP's fix cannot transfer to recurrent circuits. In finite firing-rate networks with strong inhibition, branch-point bifurcations split symmetric populations into functionally distinct subgroups. These branches contract and disappear as $N$ grows (The Complexity of Dynamics in Small Neural Circuits). Such bifurcations reshape functional connectivity graphs (How bifurcations affect functional connectivity in finite-size neural networks). Separately, input-driven saturation decouples correlation structure from anatomy, and moving the largest Jacobian eigenvalue toward zero drives independently noised neurons to perfect correlation (A Formalism for Evaluating Analytically the Cross-Correlation Structure of a Firing-Rate Network Model).

Put together, these mean that in small circuits the relevant permutation symmetry is broken by the dynamical state, not by the graph. The correct correspondence between two parents is therefore a functional one. We claim that crossover built on functional correspondence and functional modules keeps building blocks where structural crossover destroys them, and that the size of the gain is predicted by circuit size and inhibition strength.

Research Program

The operator has three steps.

Step 1: functional alignment. Both parents receive a shared bank of probe inputs, drawn from the task data. For each neuron we record its trial-averaged response profile and its trial-to-trial fluctuations. Neurons are matched one-to-one across parents by maximum-weight assignment on response-profile similarity.

Step 2: module definition. In each parent, the fluctuation covariance matrix is clustered into co-fluctuating groups. These groups are the candidate building blocks. The child inherits a random subset of aligned modules from parent B and the rest from parent A. Each transplanted module keeps its internal weights and its per-neuron tuple of membrane time constant, threshold and plasticity parameters as one unit. This responds directly to the concern that recombining coupled $(\tau_m, w_{ij}, v_{th})$ tuples produces ringing or silence in finite populations. That concern follows from the refractory "hole effect" described in Towards a theory of cortical columns.

Step 3: stability-preserving repair. Linearize the child's rate dynamics around its operating point and compute the leading real part of the Jacobian spectrum, $\lambda_{\max}$. If $\lambda_{\max}$ has crossed zero relative to both parents, or has come within a margin $\epsilon$ of zero, we act. Crossing zero means the child has passed a bifurcation. Coming near zero means it is entering the stochastic-synchronization regime. In either case we rescale all between-module weights by a single scalar gain $g$, found by line search, until

$$ \operatorname{sign}\big(\lambda_{\max}(g)\big) = \operatorname{sign}\big(\lambda_{\max}^{\text{parent}}\big), \qquad |\lambda_{\max}(g)| \ge \epsilon . $$

For spiking networks we use the rate linearization as a proxy and confirm the result with a short simulation.

The operator is then placed inside regularized evolution. It is compared against alternative crossovers under identical selection, population size and evaluation budget. The analysis side is equally important. For every offspring we log four things: the fitness change relative to its parents; whether it keeps its parents' dynamical regime (fixed point, oscillation, or chaos, classified by spectrum and largest Lyapunov exponent); whether the parents' modules survive in the child, judged by how well the child's covariance clusters overlap the transplanted ones; and the circuit size $N$ and inhibition strength.

Baselines

Naive reference. Mutation-only regularized evolution, which adds or removes edges and perturbs per-neuron parameters, with no crossover. Mainstream architecture search uses this because it avoids the permutation problem entirely. Any crossover must beat it on evaluations-to-target, or crossover is not worth having.

Structural competitor (the main one). A recurrent adaptation of SEP from Shortest Edit Path Crossover. Graph edit distance is computed on the signed, weighted connectivity graph, and half of the edit path is applied. Where exact edit distance is intractable we use approximate solutions, which that paper shows tolerate up to 30% approximation error. This is the strongest existing answer to crossover-induced disruption, and it is exactly the structure-first view our claim disputes. It receives the same population, evaluations and hyperparameter search budget as our operator.

Linkage-learning competitor. A local linkage model in the style of LK-GOMEA from Solving Multi-Structured Problems by Introducing Linkage Kernels into GOMEA, applied to the flattened parameter vector with nearest-neighbour kernels and mating restrictions. That paper shows local kernels avoid the averaging trap that stops global GOMEA and DSMGA-II beyond 40–80 variables on Best-of-Traps. It is the best-supported method in the file for finding blocks from parameter statistics, which makes it the right test of whether dynamics add anything beyond parameter space.

Gradient-trained reference points. On the Spoken Heidelberg Digits spoken-digit benchmark, recast as spike trains (SHD), the relevant reported numbers are these. Heterogeneous Neuronal and Synaptic Dynamics for Spike-Efficient Unsupervised Learning reports 80.49% for a heterogeneous recurrent spiking network with Bayesian-optimized parameter distributions, against 73.58% for the homogeneous version. The same paper reports Lorenz-system prediction error of 0.195 NRMSE (normalized root-mean-square error), against 0.395 for the homogeneous version. The Heidelberg Spiking Data Sets reports 71.4% for a surrogate-gradient recurrent spiking network, 83.2% with augmentation and size tuning, and 85.7% for an LSTM. Sparse Spiking Gradient Descent reports about 77%.

Ablations. Four ablations isolate the key ingredients:

  • Alignment only: matching by function, but transplanting random neuron subsets instead of modules.
  • Anatomical modules: modules taken from clustering the weight matrix rather than the fluctuation covariance.
  • No repair: omitting the stability repair.
  • Repair only: structural SEP plus our stability repair.

The last ablation checks whether the whole gain comes from rejecting or repairing children that crossed a bifurcation, rather than from functional alignment.

Beating the structural competitor means three things: a higher median offspring fitness change, a higher regime-preservation rate, and fewer evaluations to target, each significant across at least 20 seeds at small $N$. On SHD, "beating" means exceeding 80.49% at matched neuron count, with the spike count reported alongside accuracy.

Why not just…?

Why not just train a fixed topology with surrogate gradients? Gradients do not choose discrete wiring, and they do not assign coupled heterogeneous parameters to specific subcircuits. The reported SHD numbers for gradient-trained recurrent spiking networks, from 71.4% up to about 77%, sit below the 80.49% reached only by searching heterogeneity. That is evidence the searchable space matters. Gradients remain a real threat on accuracy alone. We therefore also run a hybrid, evolving topology and parameters and then fine-tuning weights with sparse gradients, so that the comparison isolates what the search contributes.

Why not just use mutation only? For feedforward cells, SEP crossover beat mutation-only regularized evolution both in theory and on NAS-Bench-101, NAS-Bench-NLP and NAS-Bench-301. Whether this holds in recurrent circuits is exactly what is uncertain, because the file suggests structural crossover can be worse than mutation when edits cross bifurcations. The mutation-only baseline settles this directly. If it matches our operator, crossover is not worth the probe cost in this setting, and we will report that.

Why not just use SEP on the recurrent connectivity graph? SEP guarantees that the child's graph lies between its parents. It says nothing about where the child sits in dynamical phase space, and the finite-size results show that one inhibitory edge can move a small circuit across a branch point. The "repair only" ablation tests whether a bifurcation filter added to SEP recovers our gains. If it does, the real contribution is the repair, not functional alignment, and the note's claim narrows accordingly.

Why not just match neurons by activation, as in feedforward model merging? This is the closest existing idea and the most serious threat. Activation-based neuron matching is already used to merge feedforward networks, although nothing in our file covers it. What is new here is not matching by activity per se. It is three things together: treating co-fluctuation modules, rather than individual neurons, as the unit of inheritance; the stability repair; and the predicted dependence on $N$. The "alignment only" ablation is exactly plain activation matching. If it performs as well as the full operator, our contribution reduces to applying known merging practice to recurrent evolution.

Why not just design with mean-field equations? The mechanism we exploit disappears in that limit. The branch-point splitting shrinks and vanishes as $N$ grows (The Complexity of Dynamics in Small Neural Circuits). Propagation-of-chaos arguments also fail under sparse connectivity (A Formalism for Evaluating Analytically the Cross-Correlation Structure of a Firing-Rate Network Model). The size sweep makes this concrete: at large $N$, where mean-field theory holds, we expect structural and functional crossover to converge.

Proposed Experiments

Controlled setting: firing-rate E–I circuits. We use excitatory–inhibitory firing-rate circuits of the type analysed by Fasoli and colleagues. $N$ is swept from 10 to 1000, and inhibition is swept across the branch-point threshold, with noise added to the membrane dynamics. Tasks are small and scored by simulation: holding one of several target activity patterns (multistable memory), producing a target oscillation, and discriminating noisy inputs. Where analytic correlation predictions exist for the regular graphs in that work (ring, clique, hypercube), they validate our covariance estimates. The file reports that those analytic predictions typically fall below 3.5% error against Monte Carlo simulation.

Decisive check. We plot the gap between functional and structural crossover, in median offspring fitness change and in regime preservation, against $N$ and inhibition strength. The hypothesis predicts a gap that is large at small $N$ under strong inhibition and that shrinks as $N$ grows. A flat gap, or no gap, falsifies the finite-size explanation even if the operator helps for other reasons.

Applied setting: spiking networks. We evolve sparse recurrent spiking networks with heterogeneous per-neuron parameters on SHD, and on Spiking Speech Commands (SSC). The file reports 50.9% for a recurrent spiking network on SSC, against 75.0% for an LSTM. We also run the Lorenz prediction task, where the reference is 0.195 NRMSE. All runs use the matched budgets described above.

Mesoscopic check. A smaller-scale test transplants populations between variants of the Potjans–Diesmann cortical microcircuit, using the mesoscopic equations of Towards a theory of cortical columns as a cheap simulator. The question is whether module transplants that keep refractory and adaptation parameters together avoid the ringing and silencing that split transplants produce.