---
title: Variable Spiking Neurons
url: https://www.emergentmind.com/topics/variable-spiking-neurons-vsns
type: topic
---

# Variable Spiking Neurons

Variable Spiking Neurons (VSNs) are a class of hybrid neural models and neuromorphic devices that combine the sparse, event-driven dynamics characteristic of biological spiking neurons with the information-rich and differentiable outputs of artificial neuron activations. Emerging from both theoretical modeling and device-level engineering, VSNs address the trade-off between energy efficiency and computational expressivity, enabling precise regression as well as classification, and providing a framework for both mathematical analysis and hardware implementation. They are characterized by mechanisms that produce spike events (discrete emissions when a membrane-like potential crosses a threshold) whose amplitude or information content is variable rather than strictly binary, and whose dynamics may depend on history, device physics, or explicit memory of variable length.

## 1. Hybrid Computational Model: Definition and Mathematical Structure

VSNs incorporate the intermittent firing of leaky integrate-and-fire (LIF) spiking neurons while introducing graded, continuous-valued outputs via a gating mechanism. Instead of binary 0/1 spikes, VSNs emit a continuous response conditioned on spiking events, which enables compatibility with both event-driven architectures and gradient-based optimizers. The generic VSN formulation may be expressed as follows for a discrete spike time-step $t$ [2311.09267, 2412.09379]:

- **Membrane integration with leak:**
  $$
  M^{(t)} = \beta M^{(t-1)} + z^{(t)}
  $$
  where $M^{(t)}$ is the membrane potential, $\beta\in[0,1]$ is the leakage factor, and $z^{(t)}$ is the weighted sum input.
- **Spike generation with reset:**
  $$
  \tilde y^{(t)} =
    \begin{cases}
      1 & \text{if}\ M^{(t)}\geq T \\
      0 & \text{otherwise}
    \end{cases}
    \quad\text{and if}\ \tilde y^{(t)}=1,\, M^{(t)}\gets 0
  $$
  where $T$ is the firing threshold.
- **Continuous activation gated by spike:**
  $$
  y^{(t)} = \sigma(z^{(t)} \cdot \tilde y^{(t)}),\quad \sigma(0) = 0
  $$
  where $\sigma(\cdot)$ is a smooth activation function (e.g., ReLU, GELU).

This architecture enables event-driven sparsity (outputs only when threshold is crossed) while preserving the rich signal processing and regression capacity of continuous-valued artificial neurons.

| Variable   | Description                                      |
|------------|--------------------------------------------------|
| $z^{(t)}$  | Input to the neuron at spike step $t$            |
| $M^{(t)}$  | Membrane potential at time $t$                   |
| $\tilde y^{(t)}$ | Binary spike indicator                 |
| $y^{(t)}$  | Gated continuous output at $t$                   |
| $\beta$    | Leakage parameter ($0\leq\beta\leq1$)            |
| $T$        | Spike threshold                                  |
| $\sigma(\cdot)$ | Continuous activation with $\sigma(0)=0$ |

In contrast to pure LIF units which produce only 0/1 spikes, the VSN transmits information proportional to the instantaneous input, conditioned on a thresholded firing event [2311.09267, 2412.09379].

## 2. Memory and Stochastic Processes with Variable Length

A variant of VSNs emerges in the literature as stochastic processes with explicit variable-memory dependency [1502.06446]. In these models, each neuron's spike probability or instantaneous firing rate at time $t$ is determined by the accumulated, weighted, and possibly decayed synaptic input received **since its last spike**, not a fixed-length window. Specifically:

- **For discrete time:** The probability of neuron $i$ spiking at time $t$ is
  $$
  P(X_t(i)=1 \mid \mathcal{F}_{t-1}) = \phi_i \left( \sum_{j\in I} W_{j\to i} \sum_{s=L^i_t}^{t-1} g_j(t-s)\, X_s(j) \right)
  $$
  where $L^i_t$ is the last time $s<t$ when neuron $i$ spiked, $g_j(\cdot)$ is the leak kernel, $W_{j\to i}$ are synaptic weights, and $\phi_i$ is a transfer function.

- **For continuous time:** The intensity of spikes is
  $$
  \lambda^i_t = M_i \cdot \phi_i \left( \sum_{j\in I} W_{j\to i} \int_{[L^i_t, t)} g_j(t-s)dZ^j_s \right)
  $$
  Here, the memory window $(L^i_t, t)$ varies stochastically, yielding a non-Markovian process. This structure enables the reproduction of realistic interspike interval statistics and “reset-and-forget” dynamics essential for biological plausibility [1502.06446].

## 3. Device-Level Realization in Neuromorphic Hardware

Variable spiking has been realized in a range of physical devices, notably spintronic and electromechanical elements. Examples include:

- **Spintronic Variable Spiking Devices:** Dual-free-layer perpendicular magnetic tunnel junctions (MTJs) are engineered to generate voltage-controlled spike trains. Firing is triggered when the magnetization configuration cycles between parallel and antiparallel states under DC bias. The output frequency and energy per spike are tunable via the applied voltage. The features include field-free operation, sub-100nm footprint, energy consumption of 4–16 pJ/spike, and device-level non-volatility [2309.07535].

- **Leaky Memcapacitive VSN Device:** Electromechanical neurons based on a movable-plate leaky memcapacitor combine a state-dependent capacitance and resistance controlled by nanoscale mechanical displacement. The integration of memcapacitive (energy storage) and memristive (leaky) branches enables rich spiking dynamics, including tonic, phasic, and bursting regimes, which are analytically tracked via phase-plane bifurcations. Spike frequency, amplitude, and variability are tuned by device geometry and drive parameters [2304.10899].

Such devices allow for analog control of spike shape, frequency, and event amplitude, tightly integrating computing and memory.

## 4. Training and Surrogate Gradient Methods

VSNs in deep learning networks are generally trained with backpropagation and surrogate gradients to handle the non-differentiable spike thresholding. The derivative of the step function $\tilde y^{(t)}$ with respect to the membrane potential $M$ is replaced by a smooth fast sigmoid:
$$
s'(M) = \frac{1}{\left[1+\exp(-\alpha(M-T))\right]^2}
$$
where $\alpha$ is typically set to 25 for sharpness [2311.09267].

- **Loss Functions:** Cross-entropy for classification, mean squared error (MSE) or normalized MSE for regression.
- **Optimizers and Hyperparameters:** ADAM optimizer with weight decay $1\times 10^{-4}$; learning rates $10^{-3}$ for AN/VSN, $10^{-4}$ for SNN; batch sizes 200–1000; epochs 500–1000; STS (spike time steps) 1 for VSN (continuous precision), 50–100 for SNN (binary encoding) [2311.09267, 2412.09379].

VSNs are often interleaved with standard message-passing operations in hybrid graph neural network architectures (HVS-GNN), where VSNs replace standard nonlinearities to promote event-driven sparsity while retaining regression performance [2412.09379].

## 5. Empirical Performance and Energy Efficiency

Benchmarks illustrate VSNs' efficacy in both supervised learning and energy-sensitive contexts:

- **Classification (MNIST):** VSN-1 achieves 98.05% $\pm$ 0.12 accuracy with average spike rates of 12–23% in hidden layers, matching artificial neurons (98.03% $\pm$ 0.11) while reducing synaptic energy to 81% of dense activations [2311.09267].
- **Regression (Feynman datasets):** VSNs with linear activation outperform both pure ANNs and LIF-SNNs in solving high-precision regression, at 10–39% average spike rates and 11–19% of ANN synaptic energy.
- **Graph Regression Tasks:** In materials simulation and stress prediction, HVS-GNNs with VSNs achieve mean squared errors within 3–10% of standard GNNs, with event sparsity of 18–59%, corresponding to up to 82% reduction in synaptic operations [2412.09379].

Binary LIF spiking neurons configured for similar sparsity levels consistently underperform VSNs on regression accuracy, underlining the utility of continuous, variable amplitude spikes.

## 6. Theoretical Properties, Limit Dynamics, and Mathematical Foundations

VSNs modeled as interacting processes with memory of variable length admit explicit mathematical analysis:

- **Stationary Solutions and Perfect Simulation:** Under boundedness and Lipschitz assumptions on weights and activation functions, VSN networks admit unique stationary solutions, with polynomial loss of memory quantified as $O(1/s)$ decay.
- **Decorrelation:** Successive interspike intervals rapidly decorrelate as network size increases—consistent with neuronal recordings. For appropriately random connectivity, the covariance between consecutive ISIs vanishes as $N\to\infty$.
- **Mean-Field Propagation of Chaos:** With appropriate scaling, the empirical law of membrane potentials converges to a deterministic trajectory governed by a nonlocal PDE. Individual neurons become asymptotically independent, each solving a nonlinear McKean–Vlasov equation [1502.06446].
- **Invariant Measures:** Explicit forms for mixed populations, extinction thresholds, and phase transitions (e.g., between quiescent and active states under varying leak or excitation parameters) are available.

The non-Markovian structure allows for statistical properties and dynamic transitions not possible in fixed-memory LIF or Hawkes processes and admits new avenues for perfect simulation algorithms and analysis of real biological spike data.

## 7. Application Domains and Implementation Considerations

VSNs are suited to domains requiring precise, energy-efficient, event-driven computation with support for regression capabilities:

- **Scientific and Mathematical Modeling:** Physics-informed neural operators, computational mechanics, and time-series regression tasks.
- **Edge-AI & Embedded Sensors:** Robotics, wearable medical devices, and Internet-of-Things nodes where the energy and communication budget is critical [2311.09267, 2412.09379].
- **Neuromorphic Hardware:** Spintronic VSNs, leaky memcapacitive elements, and CMOS-compatible devices enable dense integration and low-power operation [2309.07535, 2304.10899].
- **Statistical Simulation:** Non-Markovian spike-train simulation, inference of synaptic connectivity graphs, and studies of population synchrony [1502.06446].

VSNs furnish a flexible framework, combining rich dynamical repertoire (graded, phasic, and bursting activity), mathematical tractability, and compatibility with both classical ANNs and emerging neuromorphic devices. A plausible implication is that further development in adaptive thresholds and device-level tunability will extend their capability for online learning and real-time edge inference.

Source: https://www.emergentmind.com/topics/variable-spiking-neurons-vsns