Skip to contentSkip to Content
DocsUser GuideNeuron ModelsDiffusive Fractional LIF

Diffusive Fractional LIF

The Diffusive Fractional Leaky Integrate-and-Fire model provides an alternative numerical approach to fractional-order neuron dynamics. Instead of storing and summing a long voltage history (as in the GL and Caputo methods), it represents the fractional derivative through a set of auxiliary diffusion variables, yielding a system of ordinary differential equations that can be integrated with standard methods.

Diffusive Representation

The core idea behind the diffusive representation is to express the fractional derivative as a weighted integral over an infinite family of exponentially decaying modes. For a function x(t)x(t) and fractional order α(0,1)\alpha \in (0, 1):

CDtαx(t)=0μα(ω)ϕ(ω,t)dω{}_C D_t^\alpha x(t) = \int_0^\infty \mu_\alpha(\omega)\, \phi(\omega, t)\, d\omega

where ϕ(ω,t)\phi(\omega, t) satisfies the first-order ODE:

ϕt(ω,t)=ωϕ(ω,t)+x˙(t),ϕ(ω,0)=0\frac{\partial \phi}{\partial t}(\omega, t) = -\omega\, \phi(\omega, t) + \dot{x}(t), \qquad \phi(\omega, 0) = 0

and the weight function (diffusive kernel) is:

μα(ω)=sin(απ)πωα\mu_\alpha(\omega) = \frac{\sin(\alpha\pi)}{\pi} \cdot \omega^{-\alpha}

Each mode ϕ(ω,t)\phi(\omega, t) is a simple exponential integrator with decay rate ω\omega. The collection of all modes, weighted by μα(ω)\mu_\alpha(\omega), exactly reproduces the fractional derivative. Intuitively, the power-law memory of the fractional derivative is decomposed into a spectrum of exponential memories with different time scales.

Quadrature Approximation

In practice, the continuous integral over ω\omega is replaced by a finite quadrature with MM nodes {ωj}j=1M\{\omega_j\}_{j=1}^M and weights {wj}j=1M\{w_j\}_{j=1}^M:

CDtαx(t)j=1Mwjϕj(t){}_C D_t^\alpha x(t) \approx \sum_{j=1}^{M} w_j\, \phi_j(t)

where each mode evolves as:

dϕjdt=ωjϕj(t)+x˙(t)\frac{d\phi_j}{dt} = -\omega_j\, \phi_j(t) + \dot{x}(t)

The quadrature nodes are typically chosen on a logarithmic grid spanning many decades of frequency, ensuring that both fast and slow dynamics are captured. Common choices include Gauss-Laguerre quadrature or optimized log-spaced grids.

Application to the FLIF

For the fractional LIF equation:

CDtαV(t)=1τm(V(t)Vrest)+I(t)+b{}_C D_t^\alpha V(t) = -\frac{1}{\tau_m}\bigl(V(t) - V_{\text{rest}}\bigr) + I(t) + b

the diffusive representation converts the single fractional-order equation into a system of M+1M + 1 first-order ODEs:

dVdt=f(V,I)\frac{dV}{dt} = f(V, I) dϕjdt=ωjϕj+f(V,I),j=1,,M\frac{d\phi_j}{dt} = -\omega_j\, \phi_j + f(V, I), \qquad j = 1, \ldots, M

with the constraint:

j=1Mwjϕj=1τm(VVrest)+I+b\sum_{j=1}^{M} w_j\, \phi_j = -\frac{1}{\tau_m}(V - V_{\text{rest}}) + I + b

Each ϕj\phi_j can be integrated with standard forward Euler, implicit Euler, or any other ODE integrator. The per-step cost is O(M)O(M) per neuron, where MM is the number of quadrature nodes.

Comparison with GL Approach

PropertyGL DiscretizationDiffusive Representation
Memory per neuronO(L)O(L) voltage historyO(M)O(M) diffusion modes
Cost per stepO(L)O(L)O(M)O(M)
Typical LL or MM100—50010—30
AccuracyExact up to truncation at LLApproximate (quadrature error)
Memory of pastExplicit history bufferEncoded in mode amplitudes
ImplementationCircular buffer + dot productArray of ODEs
Coefficient precomputationO(L)O(L) onceO(M)O(M) once (nodes + weights)

The diffusive approach trades exactness for speed: it can approximate the fractional derivative with far fewer auxiliary variables (MLM \ll L) than the GL method requires in history length. For example, M=20M = 20 quadrature nodes can approximate the behavior that would require L=200L = 200 or more GL history terms, depending on the accuracy requirements and the frequency content of the signal.

Parameters

ParameterSymbolDescriptionTypical Range
Fractional orderα\alphaOrder of the fractional derivative0.1—1.0
Number of modesMMQuadrature nodes for diffusive approx.10—30
Membrane time constantτm\tau_mGoverns the decay rate10—50 ms
Resting potentialVrestV_{\text{rest}}Equilibrium potential-65 mV
ThresholdVthV_{\text{th}}Spike threshold-50 mV
Reset potentialVresetV_{\text{reset}}Post-spike reset value-65 mV
BiasbbConstant offset current-0.1 to 0.1

SPIRES API

cfg.neuron_type = SPIRES_NEURON_FLIF_DIFFUSIVE;

Example Configuration

spires_flif_diffusive_params params = { .alpha = 0.6, .num_modes = 20, .tau_m = 20.0, .v_rest = -65.0, .v_th = -50.0, .v_reset = -65.0, .bias = 0.0, }; spires_reservoir_config cfg = { .num_neurons = 500, .num_inputs = 1, .num_outputs = 1, .spectral_radius = 0.9, .ei_ratio = 0.8, .input_strength = 0.1, .connectivity = 0.1, .dt = 1.0, .connectivity_type = SPIRES_CONN_RANDOM, .neuron_type = SPIRES_NEURON_FLIF_DIFFUSIVE, .neuron_params = &params, };

Accuracy Considerations

The accuracy of the diffusive approximation depends on:

  1. Number of modes MM: More modes capture a wider frequency range and reduce quadrature error. Diminishing returns typically set in around M=20M = 203030.

  2. Quadrature node placement: Log-spaced nodes cover more decades of frequency than linearly spaced nodes. The minimum and maximum frequencies should span the time scales relevant to the problem (ωmin1/Tmax\omega_{\min} \sim 1/T_{\max}, ωmax1/Δt\omega_{\max} \sim 1/\Delta t).

  3. Fractional order α\alpha: For α\alpha close to 1, fewer modes are needed because the kernel is more localized. For small α\alpha, the broad power-law kernel requires more modes for accurate approximation.

The quadrature error is typically O(Mp)O(M^{-p}) for some p>0p > 0 that depends on the quadrature rule. For optimized log-spaced grids, convergence is rapid, and M=20M = 20 often provides errors below 1% relative to the exact fractional derivative.

When to Use Diffusive FLIF

Choose the diffusive FLIF when:

  • Speed is critical with fractional dynamics: The O(M)O(M) cost with M20M \approx 20 can be significantly cheaper than the O(L)O(L) cost with L200L \approx 200 for the GL method.
  • Memory is constrained: Each neuron stores MM mode amplitudes instead of LL voltage history values. For large reservoirs, this difference is significant.
  • Approximate memory suffices: If the task does not require exact reproduction of the fractional dynamics and an approximation is acceptable.
  • Long simulation times: The diffusive method’s cost does not grow with simulation length (unlike the non-truncated Caputo method), making it efficient for very long time series.

For tasks where exact fractional memory behavior is important or where you need to validate against analytical results, the GL method is preferred.

Reset Behavior

When a spike occurs (VnVthV_n \geq V_{\text{th}}), the membrane potential is reset to VresetV_{\text{reset}}. The diffusion modes ϕj\phi_j are also partially reset to maintain consistency. Specifically, the modes are scaled to reflect the discontinuity in VV caused by the reset, preventing the accumulation of spurious memory from pre-spike dynamics.

This reset protocol is handled internally by SPIRES and requires no user intervention. It ensures that the diffusive representation remains an accurate approximation of the true fractional dynamics across spike events.


← GL Fractional LIF | Network Topologies: Erdos-Renyi →

Last updated on