arXiv:2610.06520cs.LGOct 2026

Manuscript Offprint

arXiv:2610.06520

Conditional Flow Matching for Single-Neuron Electrophysiology: Capturing Multimodal Responses Across Stimuli

Cameron Schofield, Luca Ghafourpour, Philip H. Wong, Costas A. Anastassiou, Richard E. Turner

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

Cameron Schofield1,∗^{1,*}, Luca Ghafourpour1,∗,†^{1,*,\dagger}, Philip H. Wong2^{2}, Costas A. Anastassiou2,3,4^{2,3,4} and Richard E. Turner1^{1}

1^{1}University of Cambridge, 2^{2}Cedars-Sinai Medical Center, 3^{3}California Institute of Technology, 4^{4}Archimedes AI, Athena Research Center

∗^{*}These authors contributed equally to this work

†^{\dagger}Corresponding author: ldg34@cam.ac.uk

Neurons of the brain exhibit a rich repertoire of electrophysiology dynamics with the same repeated stimulus eliciting very different voltage responses from the same cell. One common approach in biophysically detailed models is to capture this variability through ensembles of deterministic parametrizations, at a cost of hundreds of thousands of CPU hours. Existing machine learning surrogates inherit the same limitation, where a stimulus is mapped to a single voltage response. We address this challenge by learning a conditional generative model for single-neuron electrophysiology, using flow matching with a velocity field conditioned on the input current. On biophysically detailed models of two human cortical interneuron types, the generated responses closely reproduce the electrophysiological feature distributions, spike-time structure, and excitability profiles, even matching the experimental recordings from the corresponding human cortical neurons. Near the firing threshold, firing and non-firing responses coexist at the same stimulus amplitude, and at high amplitudes, ensembles may split into low- and high-firing modes near depolarization block. We show that our model recovers both modes in each case, while a neural operator baseline suppresses spiking near threshold and blurs the gap between modes at depolarization block.

1. Introduction

Neurons in the mammalian brain exhibit a wide range of electrophysiological responses that are area-, type-, state-, and time-specific. This is also reflected in trial-to-trial variability where the same input to the same cell typically results in very different responses in terms of spike timing, firing rate, and burstiness [1–4]. Capturing such diverse dynamics faithfully is essential for any single-neuron model intended to support bio-realistic circuit-level modeling [5–7], and especially so for the human brain, where cell types differ in transcriptomic, morphological, and electrophysiological identity [8–11].

Biophysically detailed, multi-compartment PDE models grounded in cable theory provide an avenue to study these dynamics under perturbations that are experimentally infeasible in humans [12, 13], with ion channel conductances tuned by evolutionary optimization to match multimodal experimental recordings [14–17]. Because many parametrizations perform comparably along the Pareto front [18], an ensemble of “hall-of-fame” (HoF) parametrizations is retained for each neuron and is often treated as a representation of the neuron’s variability. This substitution is imperfect: each HoF model is itself deterministic, so the ensemble reflects uncertainty in the model parametrization rather than genuine trial-to-trial variability. Obtaining it also requires on the order of hundreds of thousands of CPU hours [16, 17]. An alternative introduces stochasticity directly into the mechanistic model [19–21], but this requires making assumptions on the noise source and form and relies on repeated numerical integration of the underlying dynamical system.

These limitations have motivated machine learning surrogates for single-neuron electrophysiology. Neural networks, physics-informed neural networks [22–24], and neural operators [25–27] have been applied to canonical point-neuron models such as FitzHugh-Nagumo [28, 29] and Hodgkin-

Conditional Flow Matching for Single-Neuron Electrophysiology: Capturing Multimodal Responses Across Stimuli

Huxley [30], with promising results for predicting spiking membrane potentials [31–38]. These approaches are largely deterministic, producing a single voltage response per stimulus, and are evaluated predominantly within the regular firing regime, with performance in the highly nonlinear transition around firing threshold less clear. NOBLE [39] addresses both limitations, learning a neural operator conditioned on an embedding of interpretable electrophysiological descriptors that identifies each member of a HoF ensemble. Interpolating this embedding yields responses for models beyond the finite set obtained through optimization, something the underlying biophysical models do not support in parameter space. The operator nevertheless remains deterministic given a stimulus and embedding: variability arises from sampling the embedding space rather than from learning a conditional distribution over membrane potentials.

Generative modeling provides a natural alternative in which the voltage response distribution itself becomes the target. Rather than introducing variability through an intermediate model representation, single-neuron electrophysiology can be formulated as the conditional generation of a membrane potential V given an applied current I, directly targeting p(V∣I)p(V \mid I). Learning this distribution requires a model to represent multimodality in spike timing and spike count, preserve translation equivariance to shifts in the applied stimulus, resolve both sharp action potentials and smooth subthreshold dynamics across multiple temporal scales, and generate a coherent full voltage trace. Denoising generative models such as diffusion and flow matching are well suited to these requirements as they generate complete high-dimensional samples from noise while conditioning on auxiliary inputs [40–42]. In particular, flow matching [42] learns a continuous velocity field that transports samples from a simple source distribution to the target data distribution. Conditioning this velocity field on the time-aligned applied current yields a direct model of p(V∣I)p(V \mid I), where different samples from the source noise produce different membrane potential trajectories for the same stimulus. Variability is therefore represented directly within the response distribution, without requiring an explicit neuron-model embedding. This distinction matters most where the conditioning input places the underlying deterministic dynamics near a bifurcation. There, the response distribution becomes genuinely multimodal, and a surrogate trained with a pointwise objective moves towards an intermediate response that belongs to neither mode.

References (58)