Math Reference¶
Exponential Decay and Time Constants¶
Because spiking neural networks represent stateful systems that change over time, the notion of exponential decay frequently comes up. Exponential decay is defined as a phenomenon where the rate at which a quantity decreases is proportional to its current value. It can be described by the differential equation
with a solution of
where \(N_0 = N(0)\).
This phenomenon is oft-used in spiking neural networks. When used in simulations involving discrete time steps, such as those performed with Inferno, they will often appear in the form of
when the underlying differential equation was solved analytically and
when a solution was approximated via Euler’s method. In both of these equations, \(\Delta t\) represents the length of the simulated time step. When selecting model hyperparameters, an important way of considering time constants is in terms of how long “lived” the corresponding quantity is under exponential decay. In general, this relation can be described as:
That is, after \(k\) repeated applications (simulation steps), the quantity \(N\) will be reduced to \(1/e\) of its starting value. This can be extended beyond representing \(1/e\) life to any \(1/b\) life for \(b \in \mathbb{R}_{> 0}\). To do this, we convert the time constant into our desired base, \(\tau_b = \tau \ln(b)\). Then the equation
will express \(N\) in terms of \(1/b\) life instead. Sometimes exponential decay will instead be represented with a “rate” parameter \(\lambda\), such that \(\lambda = \tau^{-1}\).
Dirac Delta and Heaviside Step Functions¶
Although spiking neural networks are modelled as differential equations, spike events themselves are represented discretely. Because of this, the Dirac delta function \(\delta\) and Heaviside step function \(\Theta\) frequently arise in this context. These two functions are related as follows.
Dirac Delta Function¶
The Dirac delta function \(\delta\) is a generalized function in which the following properties hold.
This is frequently shows up when a spike event should trigger some change in the model state, especially in the form \(\delta(t - t^f)\) when in a in a differential equation over time \(t\), where \(t_f\) is the time of the most recent spike.
Heaviside Step Function¶
The Heaviside step function \(\Theta\) is a function which evaluates to \(0\) for negative arguments and \(1\) for non-negative arguments.