Analog Crossbars as Noisy Screeners for Symbolic Regression

Symbolic regression searches for a short closed-form formula that fits data, such as $y = x_1 \sin(x_2)/x_3$. The number of candidate formulas explodes with formula size, but a recent complexity analysis locates the hardness precisely. Searching over formula shapes of bounded size is tractable. Deciding which input variables and sub-expressions to include is the hard part, and it remains hard even when the only operator is addition (How Hard Is Science?). The selection step at the core of that hard part is mostly one operation repeated many times: score every candidate building block against the current unexplained part of the target. That operation is a matrix–vector product. A resistive crossbar computes matrix–vector products in a single analog step, using Ohm's and Kirchhoff's laws over a grid of programmable resistors.

This note proposes using analog crossbars only for that screening step. All candidate sub-expression values are stored once as conductances. Each search iteration streams in a residual vector and reads out approximate scores. An exact digital stage then refits a small shortlist. The motivating observation is that screening only needs the right candidate to land somewhere in the top $k$, not to be ranked exactly. Screening may therefore survive the imprecision, variability and leakage currents that have kept analog arrays from doing exact arithmetic at scale. The central deliverable is not a faster solver. It is a measured and predicted noise budget for symbolic search: how much analog error a symbolic discovery pipeline can absorb before exact formula recovery collapses, and whether realistic crossbar non-idealities fit inside that budget.

Core Claim

Split symbolic regression into two parts. The first is enumerating a library of bounded-size sub-expressions, which is tractable by the depth/size result of How Hard Is Science?. The second is selecting from that library, which is the hard part. Once split this way, selection reduces to repeated correlation screening, $s = \Phi^\top r$. Here $\Phi$ is an $N \times M$ matrix whose $M$ columns are the values of the enumerated sub-expressions on $N$ data points, and $r$ is the current residual. This product is the only part of the pipeline that touches all $M$ candidates.

We claim that it can run on analog in-memory hardware with errors far larger than digital arithmetic would tolerate, while losing little exact recovery. The tolerance should follow a simple extreme-value rule. Let $\Delta$ be the gap between the true column's normalized score and the best distractor's, and let $\sigma$ be the standard deviation of the effective analog error per score. Top-1 screening then fails roughly when

$$\sigma \gtrsim \frac{\Delta}{\sqrt{2 \ln M}},$$

because the largest of $M$ independent Gaussian errors grows like $\sigma\sqrt{2\ln M}$. Keeping a shortlist of size $k$ loosens the requirement, since the true column only has to beat the $k$-th largest distractor error rather than the largest.

The non-trivial empirical question is whether real crossbar errors behave like the independent noise this rule assumes. Sneak-path leakage and wire resistance in large arrays produce errors that are correlated across columns (Future Large-Scale Memristive Device Crossbar Arrays). Correlated errors could systematically promote particular distractors. If they do, the rule fails and the hardware needs layout-aware fixes.

Relation to Prior Work

Two lines of work supply the method. Discovering physical laws with parallel symbolic enumeration maps bounded expression shapes onto fixed tensor layers. It reuses shared subtrees, removes duplicates, and evaluates more than $10^8$ candidates in seconds on GPUs. We reuse its enumeration and subtree sharing to build $\Phi$. We differ in moving the scoring of all candidates into a separate low-precision stage rather than evaluating every complete formula exactly.

Symbolic Regression by Exhaustive Search prunes semantically duplicate expressions by hashing before running Levenberg–Marquardt fitting, and EGG-SR merges algebraically equivalent expressions using equality graphs (data structures that store all known-equivalent forms of an expression together). We use semantic hashing to deduplicate the columns of $\Phi$ before programming them. This matters on hardware because near-duplicate columns waste conductances and create ties that analog noise turns into coin flips.

On the hardware side, the closest work runs fixed symbolic computation on neuromorphic chips but not search. Distributed representations enable robust multi-timescale symbolic computation in neuromorphic hardware compiles finite-state machines into spiking networks and runs them on a physical $64\times64$ RRAM crossbar and on Loihi 2. Its weights are computed off-chip in closed form, and it performs no search. Vector Symbolic Architectures as a Computing Framework for Nanoscale Hardware argues that high-dimensional distributed codes suit unreliable hardware, but it reports a capacity limit: superposing many bound items causes cross-talk. That limit is the main reason we do not encode expression trees as hypervectors. Each candidate stays a plain column, so capacity grows with the number of array columns rather than being capped by superposition noise. Device-Algorithm Co-Design of Ferroelectric Compute-in-Memory In-Situ Annealer uses ferroelectric crossbars to anneal fixed-size quadratic binary problems. It is the nearest competing use of analog arrays for combinatorial selection, and we treat it as a baseline below.

Three hardware papers constrain the design. Future Large-Scale Memristive Device Crossbar Arrays reports a read margin above 40% at $128\times128$ under V/3 biasing with strongly rectifying devices. Under floating biasing the margin collapses beyond $8\times8$, and raising wire resistance from 5 Ω to 320 Ω cuts the margin by up to 50%. We therefore tile $\Phi$ across $128\times128$ arrays under V/3 biasing and sum partial results digitally, rather than assuming large monolithic arrays. hxtorch.snn found that host–chip data conversion took about 45% of training wall-clock while analog emulation took about 1%. That finding drives the data-flow choice: $\Phi$ is programmed once, and per iteration only $r$ goes in and the top-$k$ indices come out. The device-variability concerns raised by Chen et al. are exactly the noise whose budget we measure.

Research Program

We first build a digital reference pipeline. A PSE-style enumerator produces all deduplicated sub-expressions up to a size bound over the input variables. Sizes are chosen so that $M$ ranges from $10^4$ to $10^6$. For targets that are positive and multiplicative, we optionally work in log space so that products become sums. Selection then runs as orthogonal matching pursuit: score all columns against the residual, keep the top $k$, refit the coefficients exactly on the union of selected columns, and repeat. Once the support is fixed, a final nonlinear constant fit and a PSE-style exact enumeration over compositions of the shortlisted terms recover formulas that are not purely additive.

This decomposition has a real limit. Formulas with deeply nested dependence on several variables, such as $\sin(x_1 x_2 + x_3)$ inside a larger tree, only appear if the whole subtree is within the library's size bound. We report recovery broken down by formula class to make that cost visible. Unlike Vertical Symbolic Regression, the method needs only passive data, with no controlled experiments.

We then replace the scoring step with an analog model at three levels of realism. The first is independent Gaussian error at controlled $\sigma$, to test the extreme-value rule. The second is a circuit-level crossbar simulator with V/3 biasing, device rectification and on/off ratios, wire resistance, and device-to-device and cycle-to-cycle conductance spread, with ranges taken from Future Large-Scale Memristive Device Crossbar Arrays and the Ag:ZnO device statistics in Transition from synaptic simulation to nonvolatile resistive switching behavior. The third, where access allows, is a physical RRAM crossbar of the size used in Distributed representations enable robust multi-timescale symbolic computation in neuromorphic hardware, with $\Phi$ tiled across repeated programmings.

We study three mitigations that are specific to search rather than to neural network inference. Randomly permuting which tile holds which column breaks the correlation between sneak-path error and candidate identity. Differential column pairs cancel common-mode leakage. Shortlist size $k$ is adapted using the margin rule.

Baselines

The naive reference is uniform random shortlisting of $k$ columns per iteration, followed by the same exact refit. It shows how much the screening signal contributes at all. Alongside it, the same pipeline with exact float32 scoring gives the ceiling that analog screening can at best match.

The strongest existing system is Parallel Symbolic Enumeration (Discovering physical laws with parallel symbolic enumeration), which recovered 40% of true expressions on the 50-dimensional suite with 38 distractor variables, where the paper reports that leading baselines recovered 0%. It is the strongest competitor because it targets exactly the high-dimensional selection regime where our screening matters. We run it from released code on the same data splits, the same operator set and the same wall-clock budget on one GPU. Our method beats it only if analog-screened recovery on that suite meets or exceeds PSE's under matched time and uses less estimated energy per search. Matching float-screened recovery without exceeding PSE would still answer the noise-budget question, but it would not count as beating PSE.

On Nguyen, we compare against Deep Symbolic Regression (Deep symbolic regression), which reports an 83.6% average recovery rate. We run it with its published hyperparameters and an equal number of candidate evaluations.

The ablation that isolates the analog ingredient is digital quantized screening: the same pipeline with scores computed in int8, int4 and int2 arithmetic at a matched effective bit count. If analog screening performs the same as quantized digital screening at equal effective bits, the hardware's structured errors are harmless and only energy and I/O distinguish it. If analog screening is worse, the gap measures the cost of correlated error. A second ablation turns off column deduplication to measure how much duplicate-induced ties hurt under noise.

Finally, an annealing baseline following the ferroelectric in-situ annealer casts support selection over the same library as a quadratic binary problem, in simulation with matched noise. No reported result for symbolic regression with this baseline was found on Lacuna.

Why not just…?

Why not just run the screening on a GPU, where $\Phi^\top r$ is trivially cheap? This is the most serious objection. On current benchmark sizes, a GPU will win on wall-clock, and we do not claim otherwise. The case for analog rests on two conditions. The first is library sizes where streaming $\Phi$ from memory dominates every iteration. The second is energy per screened candidate, using per-event energies of the kind reported for monolithic 3D synapses in 3D Neuromorphic Hardware with Single Thin-Film Transistor Synapses, which reports 2.33 fJ per potentiation event, with ADC overheads included honestly. If the measured noise budget forces high-precision converters that erase the energy advantage, the proposal's answer is negative, and we will report it as such.

Why not just use low-precision digital arithmetic, which gives the same tolerance without analog headaches? The int-quantization ablation tests exactly this. If quantized digital screening matches analog at equal effective bits, then the scientific result, that symbolic selection tolerates very few bits, transfers directly to cheap digital accelerators. That outcome would be useful and would weaken the case for analog hardware specifically.

Why not just decompose the problem with controlled-variable experiments, as Vertical Symbolic Regression does? Vertical Symbolic Regression reaches 100% recovery where horizontal search fails, but it requires an oracle that can hold variables fixed. Our setting is passive observational data. The proposal does not compete where such an oracle exists.

Why not encode expressions as hypervectors and search in superposition? The cross-talk limit reported in Vector Symbolic Architectures as a Computing Framework for Nanoscale Hardware caps how many candidates one vector can hold. A plain column layout has no such cap, so we avoid the problem rather than fight it.

Proposed Experiments

Benchmarks are the Feynman suite, Nguyen, the 50-dimensional distractor suite from Discovering physical laws with parallel symbolic enumeration, and the SRBench++ synthetic track (de França et al.). SRBench++ adds extrapolation and noise tests, so that analog screening is not judged only on in-distribution fit. Metrics are exact symbolic recovery, held-out and extrapolation NMSE, the fraction of iterations in which the true term lands in the top $k$, estimated energy and bytes moved per iteration, and wall-clock.

The first decisive check plots recovery against injected $\sigma$ for several values of $M$. It tests whether the collapse point scales as $\Delta/\sqrt{2\ln M}$ when $\Delta$ is measured per problem. The second check repeats the experiment with circuit-simulated crossbar error at matched total variance. A leftward shift of the collapse point would show that correlated sneak-path and wire-resistance error is worse than independent noise. Column permutation and differential pairs should then move the curve back.

The third check is the head-to-head on the 50-dimensional distractor suite against PSE's reported 40%. The fourth asks whether the physical-array runs, where available, fall within the simulator's predicted recovery band. If they do not, the simulator is missing an error source, and identifying it becomes the next study.