Get started
Overview
Learned surrogates of biological neurons, and a GPU runtime that runs them in connected populations of more than half a million neurons in real time.
AxoSim provides learned surrogates of biological neurons, trained on AxoBench, and runs them in connected populations on a GPU. A model maps the synaptic input of a neuron, an excitatory and an inhibitory channel for each of 639 dendritic sites at 1 ms, to its spike probability and somatic voltage. One model covers all 15 AxoBench cells, because each cell enters through an embedding that is affine in the cell’s known features, and it therefore also predicts the three held-out cells.
The axes show (i) inference throughput, counting 1-ms neuron predictions per second; (ii) event fidelity and (iii) subthreshold fidelity, one minus the event and the subthreshold error relative to predicting each trace's mean voltage; (iv) spike F1 averaged over 0–5 ms matching tolerances; and (v) history throughput, counting input milliseconds processed per second for a 2-second history. Fidelity is measured on the AxoBench v2 test split of the 12 training cells. CoreNEURON stands for the detailed simulator, which defines the top of every fidelity axis; Branch-ELM, one model per cell, and the TCN, with a cell-identity input, are the AxoBench baselines, trained on 2,000 traces per cell, while the AxoSim models saw 8,000 per cell plus 16,000 (small, medium) or 24,000 to 28,000 (large) simulated ones. Larger radii are better; the values are in the table under choose a model and in the technical report's appendix.
Models
The small model (34,466 parameters) is the one the population runtime executes; the medium model (525,058 parameters) is the more accurate single neuron. Both exceed the AxoBench baselines on all three metrics; they saw AxoBench’s 8,000 training traces per cell and 16,000 more per Allen cell, simulated with the same cell models and input statistics, while the baselines were trained on the 2,000 traces per cell of the minimal variant, with the clipped voltage as target. A large model follows. Choose a model compares them, and run a neuron model shows the input format, the outputs and the step-by-step execution.
Populations
Population advances every neuron of a population in one GPU kernel per block of 1, 2 or 4 ms and routes its spikes over procedural contacts whose delays grow with distance; homeostatic thresholds pull the firing rates towards a target, and the external drive enters as precomputed input or is generated inside the kernel. On an RTX 5090 with the small model and 4 ms blocks, in ms of computation per simulated ms:
| Neurons | Contacts per neuron | Drive as input | Drive in the kernel |
|---|---|---|---|
| 99,856 | 2,500 | 0.164 (6.1× faster than real time) | 0.179 |
| 524,176 | 2,500 | 0.933 | 1.03 |
| 1,048,576 | 500 | 0.965 | 1.13 |
The reference network runs any steppable model, including the medium one, on an explicit contact graph and records the input of every neuron.
Contact adaptation
ContactAdaptation learns one efficacy per contact through the frozen model, with full backpropagation through time, so a learned solution is a set of synaptic strengths that a detailed simulator can check. With 1,000 contacts per neuron, one update over a 256 ms window runs in real time for up to about 58,000 neurons.
Evaluation
axosim.neuron.evaluate scores a model on AxoBench v2 with AxoBench’s metric set: Mean F1 over 0 to 5 ms tolerances, the event error and the subthreshold error, on the test split and on 15 out-of-distribution conditions.
Start here
- Install AxoSim with the GPU dependencies.
- Choose a model and run it on a neuron’s input.
- Simulate a population of the small model, or use the reference network for explicit graphs and recorded inputs.
- Adapt contacts towards target outputs.
- Evaluate a model on AxoBench.
- Look up signatures and defaults in the API reference.
Cite AxoSim
The technical report is by Davide Wiest and Jonathan Schäfer, Axym Labs.
@techreport{wiest2026axosim,
title = {AxoSim: Learned Neuron Models for Population Simulation at Scale},
author = {Wiest, Davide and Schäfer, Jonathan},
institution = {Axym Labs},
year = {2026}
}