Inverse Modeling of Neural Recordings via Differentiable Biophysical Simulation
Frithjof Gressmann, Ngoc Hau Pham, Lawrence Rauchwerger
NeurIPS 2026
TL;DR. We perform gradient-based inverse modeling of multi-electrode neural recordings using end-to-end differentiable biophysical neuron and extracellular signal simulations
Abstract. Inferring the latent processes that generate observable neural activity is a central challenge in neuroscience, with direct implications for brain-machine interfaces and neural engineering. Existing inverse approaches typically summarize the recording into low-dimensional features or learn black-box latents that lack a direct biophysical interpretation. A promising alternative is to fit a differentiable biophysical simulator end-to-end against the full extracellular signal, using direct and scalable gradient optimization. In practice, however, recovering a per-neuron input via backpropagation through neuronal dynamics is difficult because the loss landscape is nearly flat in the subthreshold regime and jumps sharply at spike threshold, leaving gradient descent without a useful signal. We observe that per-neuron spike times, routinely available from spike sorting, expose discrete millisecond-scale anchors at which the loss does carry information. Gradients from these anchors flow back in time through the differentiable simulator and shape the subthreshold drive that produced each spike. Building on this, we present a fully differentiable pipeline coupling biophysical membrane dynamics to a volume conductor model of the multi-electrode array. For each neuron in a recorded population, the method jointly recovers a time-varying latent input current and a probe-relative position consistent with both the extracellular trace and the observed spike times. No explicit likelihood or posterior estimation is required, and every fitted latent corresponds to a named biophysical quantity. On paired patch-clamp / Neuropixels SPE-1 data, the model localizes the patched neuron to within on average across cells, while reproducing observed spatio-temporal activity patterns under realistic noise. These results position scalable differentiable biophysical simulation as a practical route to mechanistic, gradient-based analysis of high-density neural recordings.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:44 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Summary The authors propose a novel, differentiable pipeline coupling biophysical membrane dynamics with an extracellular volume conductor model. By using spike times as discrete anchors in the loss function, the method jointly infers a time-varying input current and probe-relative position for recorded neurons.
Strengths
- Novel Concept: A highly creative, physically grounded approach well-suited for the Concept and Feasibility track.
- Transparency: Honest and clear presentation of limitations, specifically regarding subthreshold voltage drift.
Key Weaknesses & Areas for Rebuttal
- Missing Quantitative Evaluation (Reviewer QgVJ): The core biophysical claim is recovering per-neuron input current. The authors must provide quantitative metrics (e.g., correlation or MSE) comparing the inferred drive against the known ground-truth current on the synthetic data.
- Practical Value vs. Compute Cost (Reviewer Ee7H): Localization gains are marginal over fast baselines (39.7 µm vs 42.8 µm) despite vastly higher compute costs (~1 GPU hour/cell). Please better articulate the practical payoff of this expensive joint-fit approach.
- Scalability & Robustness (Reviewers QgVJ, Ee7H): Address the sharp accuracy drop when scaling from 2 to 4 jointly fitted units. Additionally, test robustness by inverting synthetic data using a different neuron model than the one used to generate it.
- Clarification (Reviewer 21gh): Briefly clarify the relationship between this smoothing/anchoring scheme and standard surrogate gradient methods in SNNs.
Final justification
The reviewers reached a positive consensus on this submission (scores: 5, 4, 4), agreeing that it presents a highly novel, physically grounded approach well-suited for the Concept and Feasibility track. While reviewers initially raised valid concerns regarding computational costs, scalability, and the lack of quantitative evaluation on synthetic data, the authors' rebuttal and additional ablations (such as testing alternative cell models) sufficiently addressed these reservations. Given the innovative nature of the end-to-end differentiable pipeline and the authors' transparent discussion of its limitations, I recommend acceptance.
Read meta-review
Meta-review
Summary The authors propose a novel, differentiable pipeline coupling biophysical membrane dynamics with an extracellular volume conductor model. By using spike times as discrete anchors in the loss function, the method jointly infers a time-varying input current and probe-relative position for recorded neurons.
Strengths
- Novel Concept: A highly creative, physically grounded approach well-suited for the Concept and Feasibility track.
- Transparency: Honest and clear presentation of limitations, specifically regarding subthreshold voltage drift.
Key Weaknesses & Areas for Rebuttal
- Missing Quantitative Evaluation (Reviewer QgVJ): The core biophysical claim is recovering per-neuron input current. The authors must provide quantitative metrics (e.g., correlation or MSE) comparing the inferred drive against the known ground-truth current on the synthetic data.
- Practical Value vs. Compute Cost (Reviewer Ee7H): Localization gains are marginal over fast baselines (39.7 µm vs 42.8 µm) despite vastly higher compute costs (~1 GPU hour/cell). Please better articulate the practical payoff of this expensive joint-fit approach.
- Scalability & Robustness (Reviewers QgVJ, Ee7H): Address the sharp accuracy drop when scaling from 2 to 4 jointly fitted units. Additionally, test robustness by inverting synthetic data using a different neuron model than the one used to generate it.
- Clarification (Reviewer 21gh): Briefly clarify the relationship between this smoothing/anchoring scheme and standard surrogate gradient methods in SNNs.
Final justification
The reviewers reached a positive consensus on this submission (scores: 5, 4, 4), agreeing that it presents a highly novel, physically grounded approach well-suited for the Concept and Feasibility track. While reviewers initially raised valid concerns regarding computational costs, scalability, and the lack of quantitative evaluation on synthetic data, the authors' rebuttal and additional ablations (such as testing alternative cell models) sufficiently addressed these reservations. Given the innovative nature of the end-to-end differentiable pipeline and the authors' transparent discussion of its limitations, I recommend acceptance.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 2/4
- Originality
- 2/4
- Contribution type
- concept_feasibility
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This article proposes a differentiable inverse modeling method for extracellular electrophysiology: starting from a multichannel MEA/Neuropixel recording and action potential-sorted units, it jointly adjusts a time-varying input current for each neuron and a 3D probe position , by backpropagation through a biophysical membrane model coupled to a differentiable volume conductor. The main technical contribution lies in addressing the poor conditioning of the trace adjustment loss (flat below the threshold, discontinuous at the action potential threshold) and correcting it with two additional anchoring losses. The evaluation is based on synthetic LIVN recordings and the SPE-1 patch-clamp/paired neuropixel dataset, including a comparison with the localization baselines of Zhao et al. and a modality consistency check against a whole-cell patch-clamp trace.
Strengths and weaknesses
I find the overall idea interesting and definitely worth pursuing. Figure 1 is very clear and convincing. The synthetic single- and two-unit ablations are also encouraging, with sub-30µm localization and 100% accuracy within 50µm, showing the anchoring mechanism works cleanly in the easy regime. That being said, I find the experimental results quite underwhelming: the gains over center-of-mass are modest at a much higher computational cost, the subthreshold voltage reconstruction would be unusable, and the performance drop in the four-unit case poses questions about the scalability of the approach. The authors are very frank about the limitations of their work, which they frame as a proof-of-concept, and I really appreciate this honesty. I however do not think that the originality and significance of the proposed approach are high enough to justify publication as a concept paper. The novelty claims as compared to Tanoh et al. mostly rely on the loss design with spike-anchoring, which is a good idea, but not groundbreaking. In this shape, I fear that the impact of the paper would sit well below its potential. I strongly suggest the authors to improve the implementation and experimental validation, and submit a revise version as a classical paper. I understand that my assessment can be discouraging, and I am of course open to discussion.
Questions
Could you please clarify why you believe the paper should be published at a "concept and feasibility" paper, even with very modest experimental results?
Limitations
Yes, the paper is extremely forthright about its limitations, which is very much appreciated.
Final justification
The authors have properly answered my comments during the author-reviewer discussion, but I still have minor reservations. I have updated my score to a 4.
Formatting concerns
None.
5 comments
I thank the authors for their responses. I concede that I may have underestimated the originality of the approach, though I remain unconvinced that it is groundbreaking enough for a "concept and feasibility" track. That judgment is admittedly subjective, and since I appear to be in the minority on this point, I will not let it affect my final score.
I still have concerns about the limited scope of the experimental section, even for a proof of concept. I find the argument that localization is not the end goal a somewhat convenient way to sidestep the discussion of gains versus computational cost. This deserves more discussion, even if only in the manuscript itself. I have two follow-up questions for the authors:
- You note that the sub-threshold voltage reconstruction currently achieved is modest. Would you argue that it meaningfully resembles a neuronal voltage trace, and that it would be useful in this form?
- You chose a Morris–Lecar model for your experiments. Could you discuss how impactful the model choice is to your framework, and how the strategy for selecting the right model would differ from (or align with) an SBI-based approach?
To be clear, I am not requesting additional experiments, which would be unreasonable given the short rebuttal window. I will also factor the additional ablation experiment into my final recommendation.
Thanks for raising these follow ups, we will expand the discussion of this in the manuscript as suggested.
Would you argue that [the sub-threshold voltage reconstruction] meaningfully resembles a neuronal voltage trace, and that it would be useful in this form?
It is meaningful in so far as it is produced by solving biophysical voltage equations, so it is within possible trajectories of typical Morris-Lecar dynamics and thus biophysically plausible. For reference, Figure 1 in [Meier2015] plots a canonical spike of the Morris-Lecar cell, and our recovered trace shows a similiar qualitative profile aligned at the recorded spike time, albeit with much stronger depolarization during the refactory period. Notably, many other trajectories could give rise to the same signal, so this represents just a guess about the cells actual trajectory. However, the concrete prediction is practically valuable because it gives us an idea about the firing regime that the cells might have been in, e.g. whether they were in a bursting state or just spontanously depolarizing.
[Meier2015] Meier et al., 2015 "Bursting Regimes in a Reaction-Diffusion System with Action Potential-Dependent Equilibrium". PLOS.
You chose a Morris–Lecar model for your experiments. Could you discuss how impactful the model choice is to your framework, and how the strategy for selecting the right model would differ from (or align with) an SBI-based approach?
Yes, the ablation is insightful here. We re-ran the inverse fit using the Motoneuron model, reported below. The choice of model does not significantly affect the localization performance, although small differences exist for some cells (e.g. c19 where Morris-Lecar achives better localization, or c26 where the Motoneuron outperforms). This suggests that the inverse algorithm does not leverage the ion-channel level differences of the cell models in a meaningful way. Thus, choosing a cell type is more akin to choosing a prior belief of what cells are likely in the system , not something that can be inferred from the quality of the fit (e.g. SPE-1 is an in vivo system likely better described by Morris-Lecar than the in vitro motoneuron model even if it does not make a difference for the localization fit). This differs from problem settings that are common in SBI where an explicit goal is to figure out ion-channel level quantities and the cell model thus plays a more significant role in the optimization outcome (e.g. Tanoh et al. where the input current to the cell is kept constant to be able to infer channel-level quantities). We will discuss this in more detail in the revised manuscript.
SPE-1 localization on the Zhao 11 using different cell models
Morris-Lecar as included in the paper, copied here for easy reference:
| c14 | c15 | c16 | c19 | c24 | c26 | c28 | c29 | c37 | c45 | c46 | mean | median | std | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MAE | 40.84±0.03 | 26.39±0.05 | 5.19±0.20 | 49.00±0.05 | 260.49±0.02 | 243.91±0.00 | 25.65±0.05 | 62.17±0.02 | 37.77±0.00 | 25.48±0.10 | 39.76±0.04 | 74.24 | 39.76 | 85.12 |
| Accuracy | 100.0±0.0 | 100.0±0.0 | 100.0±0.0 | 100.0±0.0 | 0.0±0.0 | 0.0±0.0 | 100.0±0.0 | 0.0±0.0 | 100.0±0.0 | 100.0±0.0 | 100.0±0.0 | 72.7 | 100.0 | 44.5 |
| Train Time | 3:53 | 2:04 | 2:49 | 2:01 | 2:28 | 2:28 | 3:13 | 1:23 | 0:40 | 3:18 | 2:42 | 2:27 | 2:28 | 0:52 |
Re-fit using Motoneuron model:
| c14 | c15 | c16 | c19 | c24 | c26 | c28 | c29 | c37 | c45 | c46 | mean | median | std | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MAE | 40.01±0.03 | 25.48±0.01 | 3.17±0.25 | 56.76±0.49 | 260.46±0.02 | 230.49±0.02 | 25.49±0.13 | 60.05±0.09 | 36.50±0.00 | 23.98±0.01 | 39.71±0.02 | 72.92 | 39.71 | 82.96 |
| Accuracy | 100.0±0.0 | 100.0±0.0 | 100.0±0.0 | 0.0±0.0 | 0.0±0.0 | 0.0±0.0 | 100.0±0.0 | 0.0±0.0 | 100.0±0.0 | 100.0±0.0 | 100.0±0.0 | 63.6 | 100.0 | 48.1 |
| Train Time | 3:27 | 1:26 | 1:12 | 2:37 | 2:24 | 2:50 | 1:10 | 1:07 | 0:01 | 1:28 | 1:51 | 1:47 | 1:28 | 0:56 |
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- concept_feasibility
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work shows forward model - fully differentiable extraceullar electrophysiology. The model turns a neuron's input current into membrane dynamics and then into the voltage an electrode array would actually record. Because every step is differentiable authors run it in reverse given real multi-electrode recording they use gradient descent to infer, for each neuron, its time-varying input current and its position relative to the probe. Main obstacle is that the fitting signal is almost flat between spikes and jumps at each spike, so plain gradient descent gets stuck. Their key idea is to use spike times (which spike sorting already provides) as anchors that inject a useful gradient and shape the inferred current in the milliseconds before each spike, aided by three matched loss terms and a reparameterization that removes scale ambiguities.
Strengths and weaknesses
- the paper fits the type well showing feasibility instead of claiming complete results, explicit/honest about failure modes
Quality What's good: honest description of where the model fails; appendix has enough information to reproduce the work W: - You claim that the model can recover a neuron's "input current" over time, but its never actually measured how well the model do it with a number so you say "we recover the drive," but there is no score. On synthetic data you already know the true input current so compare recovered current to the true one and report a similarity number (e.g., correlation) once for the moments around spikes, once for the quiet periods between spikes
- As I mentioned in the limitations bellow you generated data and analyzed it with the same model so generate data with one neuron model analyze it with a different one to show it still works reasonably. Or at least say openly that this is a limitation.
Clarity What's good: effective figures, explicit limitations - overall accessible to ML audience
- W: section 2 has dense math so add one plain sentence before each equation saying what it's for in simpler words.
Significance What's good: the vision/idea in general is great replacing black-box AI with physics-based model where every learned quantity has a real biological meaning as its relevant to brain recording tech W: I would make the future payoff more concrete in the discussion to show where the big idea is going more explicitly
Originality What's good: Combination of using spike times as "anchors" to make physics simulator trainable in reverse is a novel idea W: it could also be viewed that you are only combining existing tools so I would additionally explain in 2 sentences why the idea is novel not just a combination of existing tools and what kind of new problems it solves I would also add a simple comparison method for the current-recovery on synthetic data so your novelty is backed by numbers compared to some kind of baseline
Questions
- Again - synthetic data are generated and inverted with the same model family which may inflate accuracy - can you generate with one neuron model and invert with another to test robustness? On synthetic data can you report quantitative score comparing recovered input current to the true input current, separately around spikes and between spikes?
- Localization only matches cheaper existing methods, so what does the joint fit add beyond a fast localizer and what would success on the amortized/multi-compartment extension look like?
- Accuracy drops sharply from 100% to 58% within 50 μm when going from 2 to 4 jointly fitted units - is this template overlap or some deeper scaling limit? How do you expect it to behave at the population scale the intro motivates?
Limitations
yes - one thing that could be added is that model-match circularity of synth benchmark so data generated and inverted with the same family and that could affect how strong feasiblilty transfers to real recordings
Formatting concerns
None
1 comment
Rebuttal
Thank you for your thoughtful comments and feedback!
For discussion of novelty and application, please refer to our response to the review by Reviewer Ee7H.
1. Missing Quantitative evaluation on synthetic data
This gets at a subtle issue that deserves better discussion in the manuscript. We do not have access to the true input current even on synthetic data. The synthetic recordings are produced by a noisy network of neurons coupled through thousands of excitatory and inhibitory synapses. The current delivered is a time-varying conductance times the driving force between the cell's own membrane potential and the synapse's reversal potential. The resulting current is therefore not an input to the simulated cell but a function of the cells own state trajectory. Our forward map marginalizes all of this into one effective somatic current drive . Extracting a ground-truth from the simulated cell's state trajectory would itself be an inverse problem, and an ill-posed one, since which drive is "best" depends on whether one scores traces, membrane potential, or spike times. Location ground truth, by contrast, is available model-free, and is thus what we report. We will clarify why ground-truth latents are not available and revise the manuscript to remove any suggestion that we are able to recover drive in the ground-truth sense, as our empirical validation rests on proxies only.
As for the model family match, it is true that both data generator and inverse model use the same differential equations that govern the ion-channel physics (i.e. BRK Motoneuron). However, the synthetic data adds synaptic dynamics and noise so it arguably constitutes a different effective model. We do appreciate the concern, however, so we will add an ablation to the manuscript that explores the performance for different cell models.
2. What does the fit and amortized extension add?
Since the fit provides a full differentiable biophysical simulation of neurons in the system it can be used to understand and control the dynamics. For example, a common question is how to stimulate the electrode to induce bursting behavior (i.e. brief intense spiking). The localizers cannot help with such a question because they only determine how close neurons are to the electrode, not what the current level of excitation is. A successful amortized extension with realistic multi-compartment models could allow experimentalist to continuously infer what electrode stimulation is needed to get neurons to a desired state. More generally, the inferred simulation can serve as a system-level surrogate to estimate gradients of real biophysical cultures. We will expand the discussion of this potential in the revised manuscript.
3. Sharp accuracy drop when scaling
Thanks for raising this. First, the sharp 42% drop is to some degree an artifact of Zhao's 50um cutoff and appears drastic because n=2 happened to sit close under it (maximum was at 42um, see Table 3 in A.9). The median that does not have an arbitrary cutoff moves from 28.5 to 36.2 representing a 27% relative degradation. The per-region breakdown in Table 3 suggests this degradation is configuration-dependent rather than a smooth function of . In region ch26, the two units carried over from the two-unit setting retain their errors exactly (median 21.9um). The tail comes entirely from the added units, whereas in ch30 the carried-over units degrade as well.
This is consistent with the identifiability of resting on temporal sparsity and on the diversity of the per-unit spatial profiles. For the synthetic data, every unit is being assigned the same canonical waveform and a fixed dipole orientation (Appendix A.1), so co-active units within the 80um radius are distinguished almost entirely by their spike times and by a near-collinear family of 1/r profiles observed on only six channels. These factors are properties of this benchmark and of our channel-selection rule rather than of the method. By the same argument, the scaling behavior on real recordings will likely dependent on the quality of the spike sorting, but only multi-unit measurement on real recordings can confirm this.
We will expand the discussion of this result explicitly and promote the regional variability into the main table.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- concept_feasibility
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper advocates the use of biophysical models, rather than black-box surrogate models, in estimating neural dynamics behind recorded data. In order to overcome the difficulty the flat error surface in applying gradient-based methods to spike recordings, the authors proposes utilizing the continuous waveforms estimated in spike sorting. The performance of the proposed method is tested by artificial data and actual recordings from NeuroPixels and patch clamp electrodes.
Strengths and weaknesses
The proposed framework based on the gradient of three loss functions appears to overcome the issue of flat error surface. The estimated cellular membrane potential has a large deviation from the measured ground truth.
Questions
How is the smoothing scheme here related to the surrogate gradient method: Neftci EO, Mostafa H, Zenke F (2019). Surrogate Gradient Learning in Spiking Neural Networks: Bringing the Power of Gradient-Based Optimization to Spiking Neural Networks. IEEE Signal Processing Magazine, 36, 51-63. https://doi.org/10.1109/msp.2019.2931595 In the experiment with the artificial data, were the same parameters for the tissue conductance, electrode surface resistance, etc. used? How are the estimates affected when those for data generation and estimation are different. Or are they also estimated from data?
Limitations
The performance has been tested in a small number of examples.
Final justification
I appreciate the authors' clarification. The corresponding revision would help readers' understanding.
Formatting concerns
none
1 comment
Rebuttal
Thank you for your review and insightful questions!
Relationship with surrogate gradient optimization
Neftci+2019 surrogates are motivated by the difficult-to-differentiate binary spike emission of SNN models. Our conductance-based cell models are smooth, and spike times are supplied from the spike sorter rather than inferred as latent events, so backprop yields an exact gradient. The difficulty is conditioning rather than differentiablity, which we address with a loss-side fix rather than a surrogate derivative. However, the underlying problem of the non-informative loss below threshold is indeed the same failure mode discussed throughout the SNN literature. plays a role comparable to a surrogate derivative in that it supplies most of the signal through a frozen, unblurred template rather than the full simulation. Unlike a pseudo-derivative, however, it is an additive term so the total update remains an exact gradient. We will revise the manuscript to discuss this relationship with Neftci+2019 and the broader surrogate literature more explicitly.
Parameters of artificial data and inverse model
The artificial data is generated with a different forward model using a different simulator engine. Specifically, the artificial data uses a purely resistive point-source while the inverse volume conductor leverages temporal shaping designed to work on real recordings (Section 2.1). The value for the tissue conductance was the same in both implementations, however, different values do not affect the estimate because the inverse model can simply absorb this global scalar into the normalization. Thanks for raising this point; we will add it to the manuscript revision.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
Thanks for the review and the honest feedback!
For discussion of the performance drop in the four-unit case, please refer to our response to the review by Reviewer QgVJ.
We agree that the added computational cost would not be justified by the localization gains if localization were the end goal. In our setting, however, the localization benchmark serves primarily as an evaluation proxy for the quality of the inverse fit, which is what matters for our actual objective of deriving a simulation that explains the recorded signal in terms of differentiable physics.
Simulation fitting in neuroscience has largely proceeded either by black-box optimization against hand-designed features or by simulation-based inference targeting a principled posterior, both of which reduce the recorded signal to low-dimensional summaries. We are aiming for a third route by fitting the simulator directly to the recorded signal as a point estimate, with a loss and forward model designed to keep the problem well conditioned. This trades uncertainty quantification for directness, and we present it as a research direction rather than a finished method. The appeal is that a differentiable parameters-to-signal path is amortizable, opening a route to inverse inference at a scale per-recording optimization cannot reach.
Finally, we would emphasize where we think the significance of this work lies. Simulation-based inference is predominantly validated on synthetic benchmarks, in which the generating simulator and the inverted simulator coincide, as in Tanoh et al. That is the right regime for assessing calibration, but it leaves open whether a mechanistic inverse fit is feasible on real recordings, where the simulator is misspecified and no ground truth is available to tune against. By fitting directly to the SPE-1 recordings, we show that an end-to-end differentiable inverse fit of a mechanistic simulator is possible on real data even if the sub-threshold voltage reconstruction it currently attains is modest. It is that feasibility, and the forward-model and loss design that make it attainable, that we believe justifies the direction.