Abstract
Standard deterministic Ordinary Differential Equation (ODE) solvers used in computational neuroscience often mask numerical uncertainty, potentially leading to artifacts such as shifted spike timings or missing action potentials. This paper introduces sampling-based probabilistic ODE solvers as a tool for quantifying these errors. By producing a distribution of possible trajectories rather than a single estimate, these solvers allow researchers to distinguish between biological phenomena and integration artifacts. We demonstrate that these solvers provide a structured view of numerical error with moderate computational overhead, offering a robust framework for solver selection and model validation.
Introduction
In computational neuroscience, the mechanistic behavior of neurons is typically described using systems of coupled non-linear ODEs, such as the Hodgkin–Huxley or Izhikevich models. Because analytical solutions for these systems are rare, researchers rely on numerical solvers like Forward Euler or Runge-Kutta to approximate trajectories. However, all numerical solvers introduce error due to finite time steps.
In highly non-linear neuron models, a minor numerical error at a single time step can cascade, resulting in significant shifts in spike timing or the complete disappearance of expected spikes. Deterministic solvers provide a single "best guess" but offer no intuitive way to gauge how much the specific results are jittered by numerical uncertainty. This paper proposes the adoption of probabilistic ODE solvers to make this "hidden" uncertainty visible and quantifiable.
Methods
The authors implement sampling-based probabilistic ODE solvers that generate a distribution (posterior) of possible solutions. Two primary perturbation methods were evaluated:
- State Perturbation: A small, calibrated noise term is added to the solution at each integration step.
- Step-size Perturbation: The integration step-size itself is stochastically jittered, treating the solver's temporal input as the source of randomness.
These methods serve as "wrappers" around standard algorithms like Forward Euler (FE), Exponential Euler (EE), and adaptive Runge–Kutta methods (RKBS, RKDP). This approach is particularly user-friendly as it does not require deep mathematical re-derivation of the model's kinetics; researchers simply run the simulation multiple times to generate a distribution of trajectories.
Key Insights and Results
Structured Numerical Uncertainty
Numerical error in neuron simulations is not merely random noise; it is highly structured. In Hodgkin–Huxley simulations, deterministic solvers were found to differ from reference solutions by as much as 4 ms. Probabilistic solvers successfully captured this uncertainty, showing a standard deviation of approximately 1 ms across samples. This "spike jitter" is critical for researchers studying precise temporal coding.
Fragility of Spikes and Qualitative Shifts
One of the most significant findings is that spikes are "fragile." A solver using a standard tolerance (e.g., $10^{-3}$) might show a spike that disappears entirely when the tolerance is tightened. Probabilistic solvers identify this threshold behavior immediately: if a fraction of the samples show zero spikes while others show one, the researcher is alerted to a high degree of numerical instability. In complex network models, such as the Stomatogastric Ganglion (STG), this uncertainty can drastically alter the duration of firing periods and the sequence of network activity.
Computational Overhead and Calibration
The computational cost of this approach is manageable. For higher-order adaptive solvers, the extra cost per sample is between +14% and +23%. While multiple samples are required (the authors suggest ~10 for a reliable estimate), the process is easily parallelized. Furthermore, the authors demonstrate that the perturbation parameters, once calibrated for a specific class of model kinetics, are often transferable, simplifying the setup for new studies.
Discussion and Future Work
Probabilistic solvers provide a new lens for solver selection. For instance, while Exponential Euler is often favored for its stability, probabilistic analysis reveals it may harbor higher uncertainty than Forward Euler for certain models at the same step size.
Future work is needed to extend these methods to "stiff" systems requiring implicit solvers, which are common in multi-compartment modeling. Additionally, while the sampling approach scales well for small networks, non-sampling "filtering" methods may be necessary for large-scale simulations involving thousands of neurons to maintain computational efficiency. Ultimately, these tools ensure that scientific conclusions in computational neuroscience are grounded in biology rather than integration artifacts.
Summary updated