Electrical stimulation through a dense electrode array can, in principle, activate chosen retinal neurons one at a time. That is the basis of high-resolution retinal prostheses. Doing it well requires a model of each cell that predicts which electrode current patterns will make it fire. The best current approach fits a detailed biophysical model of every cell: a branched Hodgkin–Huxley neuron with dozens to hundreds of electrical compartments. The fit uses gradient descent through a simulator written in an automatic-differentiation library. This works. On held-out multi-electrode stimulation patterns it reaches 0.906 mean per-cell accuracy and beats a plain neural network (Learning Biophysical Models of Large-Scale Multineuronal Data to Enable Precise Neurostimulation). The drawback is cost. Each candidate pattern for each cell requires integrating a stiff system of differential equations, and a 512-electrode array covers hundreds of cells.
We propose a cheap learned surrogate that inherits the detailed model's physics without paying its cost at run time. The surrogate is a small latent dynamical system, with a decoder that maps the latent state to voltages along the dendritic and axonal tree. During training, the decoded state is fed through the detailed simulator, which checks whether the surrogate's predicted rate of change matches the physics, in the spirit of Physics-informed Reduced Order Modeling of Time-dependent PDEs via Differentiable Solvers. The new ingredient handles spikes. Matching rates of change through a spike is hopeless, because the derivatives are enormous and set by fast sodium kinetics. We therefore apply the physics check only on the smooth parts of the trajectory, between spikes. Each spike is represented as a discrete event that triggers a learned, cell-specific spatial waveform. This split is reasonable because a spike's extracellular footprint, its "electrical image", is highly stereotyped. What varies across stimuli is whether and when the cell fires, and that is decided by the slow, smooth dynamics before threshold.
Core Claim
A reduced model trained this way should come within a small margin of the full biophysical fit on held-out multi-electrode stimulation, while using at least an order of magnitude less compute per prediction and per new-cell fit. We treat that ratio as a target, not a result.
The claim also covers three failure cases, each of which predicts a specific result:
- Applying the physics check everywhere. Training is dominated by stiff spike derivatives and either diverges or underfits threshold behaviour.
- Dropping the physics check (pure distillation from simulations). The surrogate fits the training stimulus families but degrades on stimulation patterns outside them. This is the same pattern seen in data-driven autoencoders, which drift over long horizons (the Φ-ROM paper above).
- Replacing the learned spatial state with a point neuron. The model loses the electrode-specific effect of stimulation along the axon.
Research Program
The work sits on top of JAXLEY, a differentiable multi-compartment simulator used by both Lotlikar et al. and Identifying multi-compartment Hodgkin-Huxley models with high-density extracellular voltage recordings. We would extend the public retinal code amrith1/rgc-ei-fit-hh.
Surrogate structure. The surrogate has four parts:
- A latent state $z(t)$ of a few dozen dimensions, which evolves under a learned vector field driven by the electrode currents.
- A decoder conditioned on compartment position along the reconstructed morphology. It maps $z$ to compartment voltages and slow gating variables, much as Φ-ROM's coordinate-based decoder maps a latent code to a continuous field.
- An event head. It fires a spike when a learned threshold function of $z$ is crossed, and then applies a learned jump to $z$. This is the same reset logic as the adaptive exponential integrate-and-fire neuron of Firing patterns in the adaptive exponential integrate-and-fire model, here acting on a learned spatial state rather than a single voltage.
- A waveform head. It emits the cell's electrical-image template at each event.
Training loss. Write $u_\theta(x,t)$ for the decoded compartment state at position $x$ and $F$ for the JAXLEY right-hand side, which includes cable coupling, channel currents and the stimulation-induced drive. The loss is
$$ \mathcal{L} = \mathcal{L}_{\text{data}} + \lambda \, \mathbb{E}_{x \sim S,\; t \notin \mathcal{W}} \big\| \partial_t u_\theta(x,t) - F(u_\theta)(x,t) \big\|^2 . $$
The data term covers spike times, thresholds and electrical-image amplitudes. In the physics term, $S$ is a random subset of 2–5% of compartments; this is the hyper-reduction fraction at which Φ-ROM still learned stable dynamics. $\mathcal{W}$ is the set of spike windows, detected from the reference simulation, in which the physics term is masked. $F$ is taken from one integrator step rather than a separately coded derivative, so the check uses exactly the simulator's discretisation.
This also fixes the gradient problem that hard resets create. Gradients flow through the smooth latent dynamics and the event timing. They do not flow through the spike's upstroke, where differentiable simulators have trouble. That trouble is why DiSECt had to smooth contact discontinuities.
Amortised fitting for large arrays. The surrogate is trained once across the biophysical parameter ranges that Lotlikar et al. fit: conductances, axon radius and axon trajectory. Morphology and parameters enter as conditioning inputs. Fitting a new cell then means optimising those few conditioning inputs against its recorded electrical image and single-electrode thresholds. Every gradient step is a surrogate rollout rather than a stiff multi-compartment integration. The fitted parameters can be passed back to the full model at any time to check them.
Related work and how this differs. Classical order reduction motivates the latent design. Order Reduction for Dynamical Systems Describing the Behavior of Complex Neurons collapses fast gating into equivalent potentials, and What Can a Single Neuron Compute? shows that single-neuron computation lives in a low-dimensional input subspace. Both reduce point dynamics analytically. Neither learns a spatially resolved state that can respond to extracellular electrodes.
Φ-ROM supplies the training mechanism, but it was tested only on smooth continuum flows such as Burgers', Navier–Stokes and lattice Boltzmann. Our spike masking and event head are the adaptation it lacks.
Lotlikar et al. and Tanoh et al. supply the physics, the data and the bar to beat. Both keep the full integrator in the loop, and the Kalman-filter variant reports only a 2x speedup over a full filter. Neither builds a reduced model.
Baselines
Naive reference. A per-electrode threshold model predicts a cell's response to a multi-electrode pattern from its single-electrode thresholds, assuming the currents combine linearly. It needs no simulation. Any model worth its cost must clearly beat it. No reported result was found on Lacuna for this specific baseline, so we would measure it on the same held-out split.
Strongest existing method: full biophysical fit. This is HH (GD) from Lotlikar et al.: multi-compartment Hodgkin–Huxley parameters fit by gradient descent through JAXLEY to electrical-image features and stimulation thresholds. It reports 0.906 mean per-cell accuracy on unseen multi-electrode stimulation patterns. We would rerun it from the released code on the identical calibration data and held-out patterns. We would record its wall-clock time per cell fit and per pattern prediction on the same GPU. Beating it means either matching its accuracy within about two points at ten times or more lower cost, or exceeding it at equal cost. The second would be possible only if amortisation lets us afford more optimisation restarts and so escape poor local fits.
Data-driven network. This is the MLP of Lotlikar et al., retrained on the same calibration minutes. The paper reports that HH (GD) outperforms it; the file gives no separate MLP accuracy, so we would report our own rerun.
Reduced-physics competitor. An adaptive exponential integrate-and-fire neuron, or the two-compartment soma-plus-dendrite model of Spike-timing prediction in a neuron model with active dendrites, receives electrode currents through a learned linear map from electrodes to effective drive. It is fit end to end by gradient descent with the same budget, rather than by the genetic algorithms used originally.
Ablations. Three ablations isolate the key ingredient, all with identical architecture, data and training steps:
- The physics term is removed (pure distillation from JAXLEY simulations).
- The physics term is applied everywhere, with no spike mask (the naive Φ-ROM transfer).
- The physics term is applied everywhere but with sodium kinetics smoothed (a DiSECt-style relaxation).
Why not just…?
Why not just distil JAXLEY into a neural network with lots of simulated data? This is the most serious alternative. If simulations are cheap enough to generate, a large enough network might fit the input–output map without any physics term. The Φ-ROM results show purely data-driven reduced models drifting outside their training horizon. Lotlikar et al. found that a data-driven MLP generalised worse to new stimulation patterns than the biophysical model. Neither result was obtained on distilled retinal surrogates, though. Our distillation ablation is the direct test. We would train it on the same number of simulations, then evaluate it on stimulation families withheld from training, such as more electrodes or opposite current polarities. If it matches the physics-informed surrogate there, the physics term is unnecessary and we would report that.
Why not just fit a point neuron with an electrode-to-drive map? This is cheaper still and has the right firing repertoire. Jolivet et al. show adaptive integrate-and-fire models capture about 65% of intrinsic reliability under somatic injection (Integrate-and-Fire models with adaptation are good enough). But extracellular stimulation acts at specific points along the axon. A linear electrode map cannot represent the effect of where along the axon the current lands, or interactions between electrodes acting at different sites. We expect this baseline to fail mainly on multi-electrode patterns whose electrodes sit at different axonal positions, and we would break down accuracy by that geometry. If it does not fail there, the spatial decoder is not earning its place and the proposal shrinks to "fit AdEx by gradient descent".
Why not just speed up the full simulator? Possible routes are a block-diagonal filter, coarser time steps, or fewer compartments. The block-diagonal filter of Tanoh et al. reports a 2x speedup while keeping accuracy. That still leaves stiff integration inside every optimisation step and every pattern evaluation. A coarsened JAXLEY model, with fewer compartments and a larger step, is an honest additional baseline that we would include on the cost–accuracy curve. The surrogate must sit above that curve, not merely beat the default settings.
Proposed Experiments
Synthetic stage. We start on the synthetic 122-compartment retinal ganglion cell and the 60-compartment CA1 pyramidal cell from Tanoh et al., where ground truth is known. Metrics are:
- subthreshold voltage error over long rollouts, to measure drift;
- the spike-timing coincidence factor of Jolivet et al., with a 2 ms window;
- threshold error under extracellular stimulation;
- recovery error for biophysical parameters fit through the amortised surrogate and then checked in the full model.
The first decisive check is the three-way comparison of masked, unmasked and smoothed physics terms. Our claim predicts that the masked version trains stably and has the lowest out-of-distribution threshold error.
Real-data stage. We then move to the isolated macaque retina recordings on the 512-electrode array used by Lotlikar et al. We calibrate on single-electrode stimulation and evaluate mean per-cell accuracy on the held-out multi-electrode patterns. Results are reported against the 0.906 of HH (GD), alongside wall-clock cost per fit and per prediction for every baseline.
The second decisive check is the cost–accuracy curve. It should include the coarsened simulator, the distilled network and the point-neuron competitor.
Limits. Two limits are stated in advance:
- The surrogate inherits the full model's misspecification relative to tissue.
- It cannot resolve the mirror-image morphology ambiguity that Tanoh et al. proved for planar arrays.
We therefore evaluate the surrogate on stimulation prediction, not on recovering true morphology.
References
- Learning Biophysical Models of Large-Scale Multineuronal Data to Enable Precise Neurostimulation
- Physics-informed Reduced Order Modeling of Time-dependent PDEs via Differentiable Solvers
- Identifying multi-compartment Hodgkin-Huxley models with high-density extracellular voltage recordings
- Firing patterns in the adaptive exponential integrate-and-fire model
- DiSECt: a differentiable simulator for parameter inference and control in robotic cutting
- Order Reduction for Dynamical Systems Describing the Behavior of Complex Neurons
- What Can a Single Neuron Compute?
- Spike-timing prediction in a neuron model with active dendrites
- Integrate-and-Fire models with adaptation are good enough