面向脉冲神经网络的生物启发式脉冲编码与优化

arXiv cs.LG 论文

摘要

该论文将受生物学启发的脉冲编码器(频率编码、延迟编码、增量调制、高斯差分(DoG))与 Rouser 自适应阈值替代梯度和 K-FAC 二阶优化相结合,以提高脉冲神经网络(SNN)在 MNIST 和 Fashion-MNIST 上的参数效率和准确率,在准确率相当的情况下,参数量最多可缩减至原来的 1/8。

arXiv:2611.23242v1 Announce Type: new Abstract: Spiking Neural Networks (SNNs) offer theoretical energy-efficiency advantages over conventional deep networks, but realizing these advantages on vision tasks requires sparse spike representations that naive rate-coding methods fail to provide. We combine biologically motivated spike-encoding schemes with two training improvements: Rouser adaptive-threshold surrogate gradients and Kronecker-Factored Approximate Curvature (K-FAC) second-order optimization. The spike encoding schemes experimented with are rate coding, latency coding, DVS-style delta modulation, and Difference-of-Gaussians (DoG) filtering. Experiments on MNIST and Fashion-MNIST demonstrate that biologically inspired encoders yield the largest accuracy gains in capacity-constrained regimes and serve as an effective parameter-efficiency lever. DoG and delta modulation encoders produce significantly sparser spike trains than rate coding. K-FAC yields modest but consistent accuracy improvements over Adam-trained baselines, and Rouser's learnable per-neuron thresholds improve Fashion-MNIST accuracy from 87.37% to 88.13% by enabling homeostatic firing-rate regulation. Biologically grounded pre-processing methods can help close the accuracy gap between SNNs and non-spiking baselines without increasing model size.
查看原文
查看缓存全文

缓存时间: 2026/11/19 08:58

# Biologically-Inspired Spike Encoding and Optimization for Spiking Neural Networks
Source: [https://arxiv.org/html/2611.23242](https://arxiv.org/html/2611.23242)
###### Abstract

Spiking Neural Networks \(SNNs\) offer theoretical energy efficiency advantages over conventional deep networks, but to realize such advantages on vision tasks requires sparse spike representations that naive rate coding methods fail to provide\. We combine biologically\-motivated spike encoding schemes with two training improvements: Rouser adaptive threshold surrogate gradients and Kronecker\-Factored Approximate Curvature \(K\-FAC\) second\-order optimization\. The spike encoding schemes experimented with are rate coding, latency coding, DVS\-style delta modulation, and Difference\-of\-Gaussians \(DoG\) filtering\. Experiments on MNIST and Fashion\-MNIST demonstrate biologically\-inspired encoders provide the largest accuracy gains in capacity\-constrained regimes, and is demonstrated as an effective parameter\-efficiency lever\. DoG and delta modulation encoders produce significantly sparser spike trains than rate coding\. K\-FAC yields modest but consistent accuracy improvements over Adam\-trained baselines, and Rouser’s learnable per\-neuron thresholds improve Fashion\-MNIST accuracy from 87\.37% to 88\.13% by enabling homeostatic firing\-rate regulation\. Biologically\-grounded pre\-processing methods can take steps to close the accuracy gap between SNNs and non\-spiking baselines without increasing model size\.

## 1Introduction

Spiking Neural Networks \(SNNs\) are a biologically\-inspired class of artificial neural networks that process information via discrete, asynchronous spike events rather than continuous activations\. This computational paradigm mirrors the operation of biological neurons and offers potential advantages in energy efficiency since computation only occurs when a spike is generated\.

However, applying SNNs to complex computer vision tasks remain a challenge\. Standard benchmark datasets such as MNIST\[[2](https://arxiv.org/html/2611.23242#bib.bib2)\]already allow conventional SNNs to achieve near\-ceiling accuracy \(OPEN≥98%\)\\geq 98\\%\)\. In contrast, richer datasets such as Fashion\-MNIST\[[3](https://arxiv.org/html/2611.23242#bib.bib3)\]expose weaknesses in naive rate\-coded SNNs, where dense spike representations consume more energy and erode the efficiency advantage\. The central question is whether biologically\-inspired pre\-processing of inputs can allow smaller networks to match the performance of larger networks operating on raw pixel values\. We compare three techniques: how static images are converted to temporal spike trains \(spike encoding\), how to backpropagate through non\-differentiable spike functions \(surrogate gradient learning\), and whether curvature information can accelerate or improve learning \(second\-order optimization\)\.

This paper makes three contributions\. First, a controlled parameter\-efficiency study of four spike encoders: rate, latency, delta modulation, and DoG, which found encoder choice may save up to 8×\\timestrainable parameters at matched accuracy for the capacity\-constrained networks\. Second, an evaluation of Rouser’s adaptive threshold mechanism on the same backbone spiking MLP, showing modest yet consistent accuracy gains from essentially one extra learnable parameter per neuron\. Third, a comparison of Adam and K\-FAC as optimizers for surrogate\-gradient SNN training\. The three threads each moves SNN training toward its theoretical efficiency advantage\.

## 2Background

### 2\.1Leaky Integrate\-and\-Fire Neurons

The foundational building block of our SNNs is the Leaky Integrate\-and\-Fire \(LIF\) neuron, a simplified model of biological membrane dynamics\. The subthreshold membrane potential evolves as:

u⁡\(t\+1\)=β⋅u⁡\(t\)\+I⁡\(t\)u\(t\+1\)=\\beta\\cdot u\(t\)\+I\(t\)\(1\)
whereβ∈\(0,1\)\\beta\\in\(0,1\)is the membrane decay constant that controls how quickly charge leaks away andI⁡\(t\)I\(t\)is the synaptic input current at timett\. A spike is emitted when the membrane potential crosses a thresholdϑ\\vartheta:

s⁡\(t\)=Θ⁡\(u⁡\(t\)−ϑ\)s\(t\)=\\Theta\(u\(t\)\-\\vartheta\)\(2\)
whereΘ⁡\(⋅\)\\Theta\(\\cdot\)is the Heaviside step function\. After spiking, the membrane potential is reset:

u⁡\(t\)←u⁡\(t\)−ϑ⋅s⁡\(t\)u\(t\)\\leftarrow u\(t\)\-\\vartheta\\cdot s\(t\)\(3\)
In our implementation \(using snntorch\),ϑ=1\\vartheta=1\(fixed\) andβ=0\.9\\beta=0\.9, with a subtractive reset mechanism\.

### 2\.2Problems with Gradient Descent on SNNs

Direct training of Spiking Neural Networks \(SNNs\) via backpropagation is fundamentally complicated by the discontinuous, non\-differentiable nature of the spike\-generation functionΘ⁡\(⋅\)\\Theta\(\\cdot\), where the true gradient is zero almost everywhere and undefined at the threshold\[[4](https://arxiv.org/html/2611.23242#bib.bib4)\]\.

Extensive research has focused on bridging this gap between discrete spiking dynamics and continuous optimization frameworks\. For example, the surrogate gradient approach resolves this by substituting a smooth approximationσ~′\\tilde\{\\sigma\}^\{\\prime\}in the backward pass while retaining the hard threshold in the forward pass\[[5](https://arxiv.org/html/2611.23242#bib.bib5)\]:

∂ℒ∂u≈∂ℒ∂s⋅σ~′​\(u−ϑ\)\\frac\{\\partial\\mathcal\{L\}\}\{\\partial u\}\\approx\\frac\{\\partial\\mathcal\{L\}\}\{\\partial s\}\\cdot\\tilde\{\\sigma\}^\{\\prime\}\(u\-\\vartheta\)\(4\)
This effectively decouples the forward \(spiking\) computation from the backward \(learning\) computation, enabling end\-to\-end gradient\-based training\. However, the problem known as the ’Dead Neuron’ arises because gradient flow is severed for silent neurons asσ~′​\(u−ϑ\)≈0\\tilde\{\\sigma\}^\{\\prime\}\(u\-\\vartheta\)\\approx 0when the membrane potentialuuis consistently far below the thresholdϑ\\vartheta\.

### 2\.3Spike Encoding

An SNN requires a binary spike train defined acrossTTsimulation timesteps rather than standard real\-valued vectors as inputs\. Each pixel of an image must be converted into a spike patterns∈\{0,1\}T×D′s\\in\\\{0,1\\\}^\{T\\times D^\{\\prime\}\}whereD′D^\{\\prime\}is the encoder’s effective channel count\. Conventional MLPs and CNNs have no analog to this conversion step\. The spike encoding process is a fixed, non\-differentiable preprocessing stage sitting between the input data and the trainable section of the architecture\. It determines whether any information reaches the network at all\.

Four design parameters characterize the encoder space\.Spike densityis the number of spikes per pixel per timestep\. Higher density carries more bits but costs more synaptic events per inference\.Spike timingdetermines when within theTT\-step window a spike arrives\. A latency\-coded pixel fires once, with timing as a function of pixel intensity, while a rate\-coded pixel fires uniformly across time\.Channel polarityrefers to whether positive and negative deviations are carried by separate non\-negative channels\. This ON/OFF splitting doubles the effective input dimension\.Temporal structuredetermines whether time is treated as identically\-distributed sampling or as a meaningful axis carrying frame\-difference or saccade\-trajectory information\.

These parameters are not independent\. A single pixel cannot be both sparsely\-encoded in time and densely\-encoded in space\. Encoder choices determine the spike budget per sample, spike train dimensionality, and temporal characteristics of the spike train\.

The most common choice is rate coding\. Each pixel drives a Bernoulli draw, with probability equal to the normalized pixel intensity\. Rate coding is parameter\-free and serves as the standard baseline in SNN literature\[[6](https://arxiv.org/html/2611.23242#bib.bib6)\], but it is spike\-inefficient\. In Section[5](https://arxiv.org/html/2611.23242#S5)we treat spike encoding as a meaningful optimization surface in its own right, distinct from the network\-side optimizations that concern how a spike train is processed\.

### 2\.4Biological Inspirations in Spike Encoding

SNNs find their origin in biological plausibility\. The majority of neurons in the brain communicate via discrete action potentials\. Many neurons also process in the continuous membrane potential domain, as seen in the largely non\-spiking early vision system of invertebrates\[[7](https://arxiv.org/html/2611.23242#bib.bib7)\]\. This opens the door for encoding designs that exploit analog\-domain preprocessing\.

Three mechanisms from biological vision are directly relevant\. The first is center\-surround filtering by retinal ganglion cells \(RGCs\)\. RGC receptive fields are commonly characterized as a difference of Gaussians \(DoG\), where a center Gaussian responding to local light is antagonized by a wider surround Gaussian\[[8](https://arxiv.org/html/2611.23242#bib.bib8)\]\. The output is sensitive to local contrast rather than absolute intensity, suppressing spatial redundancy in natural images\. The second is ON\-OFF pathway separation\. Bipolar cells split the center\-surround signal into two non\-negative streams\. ON\-center cells fire for bright\-center/dark\-surround stimuli, and OFF\-center cells fire for the inverse\. The two streams travel in parallel via the optic nerve and converge only in the thalamus and cortex\. An equivalent ON/OFF separation appears in the fly visual system via lamina monopolar cells, in an entirely different lineage\[[7](https://arxiv.org/html/2611.23242#bib.bib7)\]\. The third is microsaccadic sampling\. The eye undergoes∼\\sim1–2 Hz microsaccades even during fixation\[[9](https://arxiv.org/html/2611.23242#bib.bib9)\]\. Microsaccades act as temporal\-contrast generators on otherwise\-static stimuli, driving transient ganglion cells whose responses encode change rather than persistence\.

Each mechanism provides direct design inspiration for artificial spike encoders\. Center\-surround filtering motivates DoG\-based encoders\. ON\-OFF splitting motivates dual\-polarity encoders\. Microsaccadic motion motivates frame\-difference inputs, allowing delta/DVS\-style encoders to function on static images\.

### 2\.5An Information\-Theoretic View of Spike Encoding

From an information\-theoretic perspective, a spike encoder choice is essentially a different information allocation strategy\. It determines how efficiently the signal is represented in the spike domain, such as how many bits per spike the code carries, signal\-to\-noise ratio \(SNR\) and how much spatial or temporal redundancy it discards before encoding the spikes\. Since SNN energy costs scale with total spike count∑t∑ist​\(i\)\\sum\_\{t\}\\sum\_\{i\}s\_\{t\}\(i\)\[[10](https://arxiv.org/html/2611.23242#bib.bib10)\], a well\-designed encoder is a mechanical necessity for efficiency\. We will elaborate on each explored spike encoder’s tradeoff in detail in Section[3\.1](https://arxiv.org/html/2611.23242#S3.SS1)\.

#### 2\.5\.1Spatial Whitening and Mutual Information per Spike

Natural images have a non\-uniform power spectrumP⁡\(f\)∝1/f2P\(f\)\\propto 1/f^\{2\}\[[11](https://arxiv.org/html/2611.23242#bib.bib11)\]\. Most of the power lives in low spatial frequencies \(e\.g\. slowly\-varying regions, homogeneous background\), while high\-frequency content \(e\.g\. edges, textures\) is rare and carries the bulk of the semantics\. As such, pixel\-by\-pixel transmission wastes bandwidth on highly predictable signal components\. Following the efficient\-coding hypothesis\[[12](https://arxiv.org/html/2611.23242#bib.bib12)\], a sensory system should remove this redundancy, transmitting only the unpredictable residual\.

The linear filterK⁡\(f\)K\(f\)that maximizes mutual informationI⁡\(x,y\)I\(x;y\)under a fixed output\-power budget is:

K⁡\(f\)∝1P⁡\(f\)\+N⁡\(f\)K\(f\)\\propto\\frac\{1\}\{\\sqrt\{P\(f\)\+N\(f\)\}\}\(5\)For realistic noise regimes, this yields a center\-surround DoG kernel\[[13](https://arxiv.org/html/2611.23242#bib.bib13)\]\. By pre\-filtering with DoG, an encoder avoids wasting spikes on the predictable1/f21/f^\{2\}component, extracting more bits per spike than raw rate\-coding\.

#### 2\.5\.2ON/OFF Rectification and Fisher Information per Spike

Spike trains are inherently non\-negative, thus transmitting a zero\-mean signalssthrough a single channel requires biasing or rectification, which discards information\. Research has shown splitting the signal into two channels doubles the Fisher informationℱ\\mathcal\{F\}per spike under a Poisson spiking model with a fixed total firing\-rate budget\[[14](https://arxiv.org/html/2611.23242#bib.bib14)\]:

ℱON/OFFℱsingle≤2\\frac\{\\mathcal\{F\}\_\{\\text\{ON/OFF\}\}\}\{\\mathcal\{F\}\_\{\\text\{single\}\}\}\\leq 2\(6\)This2×2\\timesgain is attained only when the signal is genuinely zero\-mean and symmetric\. For strictly non\-negative inputs \(like raw pixels\), the OFF channel is redundant and the gain disappears\. For a zero\-mean symmetric input, the ON/OFF split therefore doubles Fisher information per spike, meaning it halves the spike count required to reach a given decoding precision\.

#### 2\.5\.3Composition of Spatial Whitening and ON/OFF Rectification

The two aforementioned techniques complement each other by design\. The whitening filter produces the zero\-mean substrate required for the ON\-OFF Fisher information gain\. An encoder implementing DoG filtering followed by ON\-OFF rectification is predicted to extract close to2×2=4×2\\times 2=4\\timesas much information per spike as a standard rate code\.

### 2\.6Neuromorphic Hardware Considerations

A key motivation for SNNs is their compatibility with neuromorphic hardware platforms such as Intel Loihi, IBM TrueNorth, and SpiNNaker\. On such platforms, energy consumption scales with synaptic event count rather than with the number of neurons or time steps, meaning that sparse spike trains translate directly into lower power draw\[[10](https://arxiv.org/html/2611.23242#bib.bib10)\]\. Conventional deep neural networks executing matrix multiplications at every layer on every sample have no analogous mechanism for exploiting input sparsity at the hardware level\. Such asymmetry motivates encoding schemes that maximize sparsity as a primary objective, treating classification accuracy as a constraint rather than the sole optimization target\.

## 3Methodology

### 3\.1Encoder Formulations

We summarize the encoder formulations in the following table\. LetI∈\[0,1\]H×WI\\in\[0,1\]^\{H\\times W\}denote a normalized input image andTTthe simulation time steps\. Each encoder produces a spike tensors∈0,1T×D′s\\in\{0,1\}^\{T\\times D^\{\\prime\}\}whereD′D^\{\\prime\}depends on the encoder\.

Table 1:Summary of Evaluated Spike EncodersEach of the four encoders carries its own tradeoff\.Rate codinghas the highest spike density\. The same information is retransmitted at every time step, with each spike carrying little novel information\. This redundancy does make the integrated signal robust to noise\.Latency codingconcentrates information into the precise timing of a single spike per neuron, approaching the theoretical minimum of one bit per spike for binary stimuli\. Small timing perturbations corrupt the encoded value, and the code is unreadable untilTTsteps have elapsed\.Delta modulationencodes change events rather than absolute values\. This is efficient for signals with smooth temporal structure or structured motion, such as the microsaccade trajectory used here, where successive frames are highly correlated and the differential signal carries more information per spike than the raw signal\. ON\-OFF rectification splits the signed event stream into two non\-negative channels\.DoG encodingadds a spatial redundancy\-reduction step prior to rate coding, removing the low\-frequency correlations that dominate natural\-image statistics before encoding begins\. The reduction translates directly into fewer spikes per sample at matched network accuracy\. As with delta, ON/OFF rectification splits the signed filter output into two channels\.

Two of the four encoders, delta and DoG, double the effective input dimensionalityD′D^\{\\prime\}via dual\-polarity rectification, and therefore double the parameter count of the downstream MLP’s first layer relative to single\-polarity encoders\. An ON/OFF\-split encoder hands the network a wider, more informative representation at the cost of more trainable parameters for the same network architecture and hidden layer width\.

Figure[1](https://arxiv.org/html/2611.23242#S3.F1)illustrates how the same input, one MNIST digit and one Fashion\-MNIST, is converted into spike trains by each of the four encoders\. Each panel is a spike raster ofT=25T=25timesteps \(horizontal axis\) over a 64\-neuron subset\(vertical axis\), generated using snntorch\.spikeplot\.raster\.

![Refer to caption](https://arxiv.org/html/2611.23242v1/figures/encoding_diagram.png)Figure 1:Example spike trains generated from the four encoders on MNIST digit and Fashion\-MNIST datasets
### 3\.2Network Architecture

Our core SNN is a three\-layer feedforward network \(SpikingMLP\) with fully\-connected layers mappingDDinput dimensions through hidden layers of width 256 and 128 before projecting toCCoutput classes\. The first layer applies a SparseLinear transformation fromDDto 256 followed by a LIF nonlinearity, the second applies SparseLinear from 256 to 128 followed by LIF, and the third applies a standard Linear projection from 128 toCCfollowed by LIF\. The SparseLinear layer applies a fixed random binary mask to the weight matrix:

𝐲=\(𝐖⊙𝐌\)​𝐱,Mi​j∼Bernoulli​\(pconn\)\\mathbf\{y\}=\(\\mathbf\{W\}\\odot\\mathbf\{M\}\)\\mathbf\{x\},\\quad M\_\{ij\}\\sim\\text\{Bernoulli\}\(p\_\{\\text\{conn\}\}\)\(7\)
wherepconn=1\.0p\_\{\\text\{conn\}\}=1\.0controls the connectivity fraction \(fully connected by default\), but sparsity can be induced to reduce computation\.

For comparison, we also train a traditional neural network \(NN\), a convolutional neural network \(CNN\), and a zero\-shot converted SNN \(ConvertedSNN\), in which the weights of a trained NN are directly transplanted into an LIF architecture by replacing ReLU activations with LIF neurons and removing dropout\.

Three readout modes are supported\. The spike count readout computesy^=∑t=1Tsout​\(t\)\\hat\{y\}=\\sum\_\{t=1\}^\{T\}s\_\{\\text\{out\}\}\(t\)and is appropriate for dense \(rate\) codes\. The membrane sum readout computesy^=∑t=1Tuout​\(t\)\\hat\{y\}=\\sum\_\{t=1\}^\{T\}u\_\{\\text\{out\}\}\(t\)and is appropriate for sparse \(latency and delta\) codes\. The final membrane readout computesy^=uout​\(T\)\\hat\{y\}=u\_\{\\text\{out\}\}\(T\)and is appropriate for late\-spike codes\.

### 3\.3Weight Initialization and Connectivity

Weight initialization has outsized importance in SNNs relative to conventional networks because the spiking nonlinearity is not scale\-invariant\. A weight matrix initialized too large will drive all neurons to fire on every time step \(saturating the code\), while one initialized too small will produce silence\. We initialize weights using Kaiming uniform initialization scaled by the inverse square root of the fan\-in, which maintains stable firing rates near 0\.1 spikes per neuron per time step at initialization\. The sparse connectivity mask is fixed after initialization and is not updated during training, so the effective fan\-in for each neuron ispconn×dinp\_\{\\text\{conn\}\}\\times d\_\{\\text\{in\}\}\.

### 3\.4Surrogate Gradient and Rouser Adaptive Threshold Learning

Direct backpropagation through an SNN is difficult because the spike function is a hard threshold:

s⁡\(t\)=Θ⁡\(u⁡\(t\)−ϑ\),s\(t\)=\\Theta\(u\(t\)\-\\vartheta\),\(8\)whereu⁡\(t\)u\(t\)is the membrane potential andϑ\\varthetais the firing threshold\. The forward rule is easy to read, a neuron fires once its membrane potential crosses the threshold\. The trouble appears in the backward pass\. The derivative ofΘ⁡\(⋅\)\\Theta\(\\cdot\)is zero almost everywhere and undefined at the threshold, so direct gradient descent receives little usable signal through the spike output\.

Surrogate\-gradient learning handles this by keeping the hard binary spike in the forward pass and replacing its derivative with a smooth approximation in the backward pass\. For a fixed\-threshold SNN, this gives

∂s∂u≈ϕ⁡\(u−ϑ\)\.\\frac\{\\partial s\}\{\\partial u\}\\approx\\phi\(u\-\\vartheta\)\.\(9\)In our baseline SNN, we use the fast\-sigmoid surrogate gradient from snntorch:

σ~′​\(u−ϑ\)=k\(1\+k​\|u−ϑ\|\)2,k=25\.\\tilde\{\\sigma\}^\{\\prime\}\(u\-\\vartheta\)=\\frac\{k\}\{\(1\+k\|u\-\\vartheta\|\)^\{2\}\},\\qquad k=25\.\(10\)The spike computation remains discrete, while the optimizer receives a local slope near the firing boundary\[[5](https://arxiv.org/html/2611.23242#bib.bib5),[4](https://arxiv.org/html/2611.23242#bib.bib4)\]\.

Rouser extends the same surrogate\-gradient framework by making the threshold learnable\. A standard surrogate\-gradient SNN learns synaptic weights with a fixed threshold\. Rouser learns both weights and thresholds, allowing each neuron to tune its firing sensitivity during training\[[15](https://arxiv.org/html/2611.23242#bib.bib15)\]\. Its forward spike rule remains

s=Θ⁡\(u−ϑ\),s=\\Theta\(u\-\\vartheta\),\(11\)and the backward pass assigns surrogate gradients to bothuuandϑ\\vartheta:

∂s∂u=s0τr​exp⁡\(−\|u−ϑ\|τr\),∂s∂ϑ=−s0τr​exp⁡\(−\|u−ϑ\|τr\)\.\\frac\{\\partial s\}\{\\partial u\}=\\frac\{s\_\{0\}\}\{\\tau\_\{r\}\}\\exp\\\!\\left\(\-\\frac\{\|u\-\\vartheta\|\}\{\\tau\_\{r\}\}\\right\),\\qquad\\frac\{\\partial s\}\{\\partial\\vartheta\}=\-\\frac\{s\_\{0\}\}\{\\tau\_\{r\}\}\\exp\\\!\\left\(\-\\frac\{\|u\-\\vartheta\|\}\{\\tau\_\{r\}\}\\right\)\.\(12\)The two gradients have the same shape and opposite signs\. Increasing membrane potential makes a spike more likely; increasing the threshold makes a spike harder to trigger\.

The threshold update is then

ϑ←ϑ−ηϑ​∂ℒ∂ϑ\.\\vartheta\\leftarrow\\vartheta\-\\eta\_\{\\vartheta\}\\frac\{\\partial\\mathcal\{L\}\}\{\\partial\\vartheta\}\.\(13\)This gives the model a second adjustment path\. The weights determine how much membrane potential is accumulated, and the threshold determines when that accumulated potential becomes a spike\. In practice, this can help rouse inactive neurons whose membrane potentials remain too far below threshold\. It also makesηϑ\\eta\_\{\\vartheta\}important\. A small value behaves close to a fixed\-threshold SNN, while a large value can move thresholds too aggressively and make spike dynamics less stable\. We evaluate this threshold learning\-rate effect in Section[5\.2\.2](https://arxiv.org/html/2611.23242#S5.SS2.SSS2)\.

### 3\.5Adam Optimization

Adam stands for Adaptive Moment Estimation, is a first\-order stochastic optimization method, commonly used for training neural networks\. Unlike the standard gradient descent method, which only uses the current gradient to update the parameters, Adam maintains two exponential moving averages simultaneously\. The first averagemtm\_\{t\}is used to estimate the average value of the gradient direction, and the second averagevtv\_\{t\}is used to estimate the average squared value of the gradient magnitude\[[16](https://arxiv.org/html/2611.23242#bib.bib16)\]\.

gt←∇θft​\(θt−1\)g\_\{t\}\\leftarrow\\nabla\_\{\\theta\}f\_\{t\}\(\\theta\_\{t\-1\}\)\(14\)mt←β1​mt−1\+\(1−β1\)​gt,vt←β2​vt−1\+\(1−β2\)​gt2m\_\{t\}\\leftarrow\\beta\_\{1\}m\_\{t\-1\}\+\(1\-\\beta\_\{1\}\)g\_\{t\},\\quad v\_\{t\}\\leftarrow\\beta\_\{2\}v\_\{t\-1\}\+\(1\-\\beta\_\{2\}\)g\_\{t\}^\{2\}\(15\)
Thegtg\_\{t\}represents the gradient at steptt\.β1\\beta\_\{1\}andβ2\\beta\_\{2\}represent exponential decay rates for the moment estimates\. In our SNN experiments, Adam was used as the main first\-order benchmark optimizer for training the alternative gradient spiking neural network\. Since SNN contains non\-differentiable spike activation functions, we used alternative gradients during the backpropagation process, enabling the model to be trained using standard gradient\-based optimizers\. Adam is highly applicable as it is specifically designed for stochastic optimization and uses adaptive estimates of the first and second moments of the gradients, making it relatively stable even in the presence of noisy gradients\.

### 3\.6Limitations of Adam

As Adam is a first\-order optimizer, it does not explicitly model the curvature of the loss landscape and only uses gradient information\. Although the surrogate gradient makes backpropagation possible, this gradient is only an approximation of the true spike derivative\. Adam can smooth this noisy gradient by using the moving average method, but it cannot correct the mismatch between the hard spike function used in the forward propagation and the surrogate derivative used in the backpropagation\.

### 3\.7K\-FAC Optimization

Standard first\-order optimizers \(SGD, Adam\) use only gradient information\. Kronecker\-Factored Approximate Curvature \(K\-FAC\)\[[17](https://arxiv.org/html/2611.23242#bib.bib17)\]incorporates second\-order curvature information through a tractable approximation to the Fisher Information Matrix\.

Before we introduce this optimization method, it is worth noting that K\-FAC is an optimization method designed to make neural network training more efficient by approximating the natural gradient\. In standard gradient descent, the formula of standard gradient can be described as follows:

θt\+1=θt−η​∇θL\\theta\_\{t\+1\}=\\theta\_\{t\}\-\\eta\\nabla\_\{\\theta\}L\(16\)
where L is the loss function,θ\\thetarepresents the model parameters, andη\\etais the learning rate\. However, the standard decent gradient does not account for the geometry of the model’s output distribution, which can make optimization slow or poorly conditioned\. For better performance, Natural gradient methods improve this by using F which is the Fisher Information Matrix\. This approach captures curvature information about the model\. The natural\-gradient update is:

θt\+1=θt−η​F−1​∇θL\\theta\_\{t\+1\}=\\theta\_\{t\}\-\\eta F^\{\-1\}\\nabla\_\{\\theta\}L\(17\)
This update rescales the gradient using curvature information, allowing the optimizer to take more meaningful steps in parameter space\. It is computationally expensive to store and invert Fisher Information Matrix because of its extremely larger size for neural network\. K\-FAC is able to solve this issue by approximating the Fisher matrix in a structured and efficiently invertible form\.

For a linear layer with weight matrix𝐖∈ℝdout×din\\mathbf\{W\}\\in\\mathbb\{R\}^\{d\_\{\\text\{out\}\}\\times d\_\{\\text\{in\}\}\}, the exact Fisher block is:

Fℓ=𝔼⁡\[𝐠𝐠⊤⊗𝐚𝐚⊤\]F\_\{\\ell\}=\\mathbb\{E\}\\\!\\left\[\\mathbf\{g\}\\mathbf\{g\}^\{\\top\}\\otimes\\mathbf\{a\}\\mathbf\{a\}^\{\\top\}\\right\]\(18\)
where𝐚∈ℝdin\\mathbf\{a\}\\in\\mathbb\{R\}^\{d\_\{\\text\{in\}\}\}is the layer’s input activation and𝐠∈ℝdout\\mathbf\{g\}\\in\\mathbb\{R\}^\{d\_\{\\text\{out\}\}\}is the gradient of the loss with respect to the layer output\. K\-FAC approximates this asFℓ≈𝐆⊗𝐀F\_\{\\ell\}\\approx\\mathbf\{G\}\\otimes\\mathbf\{A\}, where𝐀=𝔼⁡\[𝐚𝐚⊤\]\\mathbf\{A\}=\\mathbb\{E\}\[\\mathbf\{a\}\\mathbf\{a\}^\{\\top\}\]and𝐆=𝔼⁡\[𝐠𝐠⊤\]\\mathbf\{G\}=\\mathbb\{E\}\[\\mathbf\{g\}\\mathbf\{g\}^\{\\top\}\]are computed separately\. This factorization makes inversion tractable via the Kronecker identity\(𝐆⊗𝐀\)−1=𝐆−1⊗𝐀−1\(\\mathbf\{G\}\\otimes\\mathbf\{A\}\)^\{\-1\}=\\mathbf\{G\}^\{\-1\}\\otimes\\mathbf\{A\}^\{\-1\}\[[17](https://arxiv.org/html/2611.23242#bib.bib17)\]\.

Within every pre\-designed size batches,𝐀\\mathbf\{A\}and𝐆\\mathbf\{G\}are updated as exponential moving averages with factor decayρ=0\.95\\rho=0\.95\[[17](https://arxiv.org/html/2611.23242#bib.bib17)\]:

𝐀←ρ​𝐀\+\(1−ρ\)​1B​𝐚aug⊤​𝐚aug,𝐆←ρ​𝐆\+\(1−ρ\)​1B​𝐠⊤​𝐠\\mathbf\{A\}\\leftarrow\\rho\\mathbf\{A\}\+\(1\-\\rho\)\\frac\{1\}\{B\}\\mathbf\{a\}\_\{\\text\{aug\}\}^\{\\top\}\\mathbf\{a\}\_\{\\text\{aug\}\},\\quad\\mathbf\{G\}\\leftarrow\\rho\\mathbf\{G\}\+\(1\-\\rho\)\\frac\{1\}\{B\}\\mathbf\{g\}^\{\\top\}\\mathbf\{g\}\(19\)Here,𝐚aug\\mathbf\{a\}\_\{\\text\{aug\}\}is the activation matrix augmented with a column of ones to include the bias parameters\. To enhance numerical stability, each factor is inverted by using the Tikhonov regularization method based on the Cholesky decomposition with initial dampingλ=10−3\\lambda=10^\{\-3\}\. The damping increases exponentially \(by10×10\\times\) up to six times if Cholesky fails, with a fallback to the Moore\-Penrose pseudo\-inverse\. The natural gradient update for the weight matrix is:

Δ𝐖=−η⋅𝐆−1∇𝐖ℒ⋅𝐀−1\\Delta\\mathbf\{W\}=\-\\eta\\cdot\\mathbf\{G\}^\{\-1\}\\nabla\_\{\\mathbf\{W\}\}\\mathcal\{L\}\\cdot\\mathbf\{A\}^\{\-1\}\(20\)
In some situation, if A or G is noisy, nearly singular, or poorly estimated, then their inverses can make the update extremely large\. Therefore, we applied a clipping function to our weight matrix:

Δ​W~←Δ​W~⋅min⁡\(1,r‖Δ​W~‖\)\\Delta\\tilde\{W\}\\leftarrow\\Delta\\tilde\{W\}\\cdot\\min\\left\(1,\\frac\{r\}\{\\left\\lVert\\Delta\\tilde\{W\}\\right\\rVert\}\\right\)\(21\)
This will avoid negative impacts including unstable loss, poor accuracy and Null values due to the large difference after weight updating\.

K\-FAC proved to be useful as it enabled investigations into how curvature\-aware optimization affects the training behavior of neural networks and spiking neural networks\. It conducted a meaningful comparison with Adam by demonstrating how second\-order information influences convergence speed, stability, and final accuracy\. For spiking neural networks, K\-FAC is more powerful because it creates a differentiable approximation of the spiking model by replacing gradient training, thus making curvature\-aware optimization possible\.

### 3\.8K\-FAC Across Time Steps

One known limitation of applying K\-FAC to recurrent computations is that its Fisher decomposition assumes that the input activations and output gradients are independent of each other\. However, when the same weight matrix is applied in multiple time steps, and the gradients in subsequent time steps are dependent on the activations from earlier time steps through time backpropagation, this assumption is violated\. In our implementation, we only apply K\-FAC to the spatial weight matrix, accumulating the activation and gradient statistics along the time dimension, as if the time steps were independent samples\. This approximation is equivalent to treating time steps as independent samples in a batch dimension, which underestimates the true Fisher curvature\. However, in shallow SNNs\[[17](https://arxiv.org/html/2611.23242#bib.bib17),[18](https://arxiv.org/html/2611.23242#bib.bib18)\], this is computationally feasible and performs well in practical applications\. A completely correct approach requires performing Fisher decomposition on time\-dependent structures, but for LIF networks, this remains an unsolved research problem\.

## 4Experimental Setup

### 4\.1Datasets

All experiments use an 80/20 train/test split with no separate validation set and a fixed random seed of 0 for reproducibility\. MNIST is loaded from CSV, normalized to\[0,1\]\[0,1\], and flattened into784784\-dimensional vectors; the 60,000\-sample training set and 10,000\-sample test set are re\-split at the 80/20 ratio\. Fashion\-MNIST is loaded via torchvision with the official 60,000/10,000 split similarly re\-partitioned\.

### 4\.2Encoder Hyperparameters

Two hyperparameters must be set empirically before comparisons across encoders are meaningful\. The first is the simulation lengthTTper encoder, and the second is the DoG center Gaussianσc\\sigma\_\{c\}\.

Each encoder uses the time axis differently, as described in Section[3\.1](https://arxiv.org/html/2611.23242#S3.SS1), which leads to a different optimalTTper encoder\. These values are shown in Table[2](https://arxiv.org/html/2611.23242#S4.T2)\. The optimalσc\\sigma\_\{c\}also varies between datasets, as shown in Table[3](https://arxiv.org/html/2611.23242#S4.T3)\. Fashion\-MNIST silhouettes discriminate via fine high\-frequency edges such as collars and hems, and prefer sub\-pixel center kernels\. MNIST discriminates via stroke geometry, requiringσc\\sigma\_\{c\}to exceed the stroke half\-width so the surround Gaussian extends beyond the stroke and the DoG produces a strong response\. For canonical comparisons we use oneσc\\sigma\_\{c\}per dataset, taking the value optimal at the parameter\-Pareto sweet spoth=32h=32\(Fashion\-MNIST: 0\.5; MNIST: 1\.5\)\.

We compare four spike encoders, rate, latency, delta \(dual polarity\), and DoG \(dual polarity\), on two image\-classification datasets \(Fashion\-MNIST, MNIST\) using the fixed three\-layer feedforward SpikingMLP \(see Section[3\.2](https://arxiv.org/html/2611.23242#S3.SS2)\) with a vanilla Adam optimizer\. The baseline spiking MLP uses hidden layer widths\(D′→h→h/2→10\)\(D^\{\\prime\}\\to h\\to h/2\\to 10\), with hidden widthhhas the primary swept axis \(h∈\{4,8,16,32,64,128,256\}h\\in\\\{4,8,16,32,64,128,256\\\}\) to evaluate performance per parameter\.

Tables[4](https://arxiv.org/html/2611.23242#S4.T4)and[5](https://arxiv.org/html/2611.23242#S4.T5)summarize the combination of simulation durationTTand center scaleσc\\sigma\_\{c\}that yielded peak absolute accuracy for each hidden layer widthhhacross both Fashion\-MNIST and MNIST\.

Table 2:Optimal Simulation Time \(TT\) by EncoderTable 3:Optimalσc\\sigma\_\{c\}per \(dataset,hh\)Table 4:Fashion\-MNIST Accuracy Comparison \(RateT=50T=50; LatencyT=10T=10; DeltaT=10T=10; DoGσc=0\.5,T=25\\sigma\_\{c\}=0\.5,T=25\)Table 5:MNIST Accuracy Comparison \(All encodersT=25T=25; DoGσc=1\.5\\sigma\_\{c\}=1\.5\)
### 4\.3Network Hyperparameters

All model families share a common set of base hyperparameters\. Training is performed for 10 epochs with a mini\-batch size of 64\. The base learning rate isηw=10−3\\eta\_\{w\}=10^\{\-3\}using the Adam optimizer with default PyTorch settings \(β1=0\.9\\beta\_\{1\}=0\.9,β2=0\.999\\beta\_\{2\}=0\.999,ϵ=10−8\\epsilon=10^\{\-8\}\)\. For Rouser, thresholds are optimized through a separate parameter group\. We sweepηϑ∈\{0,10−3,5×10−3,10−2\}\\eta\_\{\\vartheta\}\\in\\\{0,10^\{\-3\},5\\times 10^\{\-3\},10^\{\-2\}\\\}, whereηϑ=0\\eta\_\{\\vartheta\}=0corresponds to the fixed\-threshold baseline\. The best single\-run Rouser setting isηϑ=5×10−3\\eta\_\{\\vartheta\}=5\\times 10^\{\-3\}\. All SNN simulations run forT=25T=25time steps with LIF membrane decayβ=0\.9\\beta=0\.9and fixed initial spike thresholdϑ=1\\vartheta=1\.

Each encoder also requires its own parameters\. Latency coding usesτ=1\.0\\tau=1\.0and a minimum\-activation threshold ofϑlat=0\.01\\vartheta\_\{\\text\{lat\}\}=0\.01\. Neurons withpi≤ϑlatp\_\{i\}\\leq\\vartheta\_\{\\text\{lat\}\}do not fire, and spike times exceedingT−1T\-1are suppressed\. Delta modulation uses a change threshold ofδ=0\.1\\delta=0\.1and a saccade amplitude ofA=2A=2pixels\. DoG encoding usesσc=0\.5\\sigma\_\{c\}=0\.5andσs=1\.0\\sigma\_\{s\}=1\.0\. K\-FAC uses an initial damping ofλ=10−3\\lambda=10^\{\-3\}, a factor decay ofρ=0\.95\\rho=0\.95, and curvature updates every 10 mini\-batches\.

### 4\.4Hardware and Software

All experiments were run on a single NVIDIA GeForce RTX 3060 GPU under Python 3\.12\. The implementation uses PyTorch and snntorch with no version constraints beyond those required by Python 3\.12 compatibility\. No multi\-GPU or distributed training is employed\.

## 5Results

### 5\.1Parameter Efficiency Experiment: Spike Encoding as a Parameter\-Efficiency Lever

We compare four spike encoders on two image\-classification datasets \(Fashion\-MNIST, MNIST\) under a fixed three\-layer feedforward SpikingMLP with vanilla Adam optimizer\. The architecture, training procedure, and hardware are identical across encoders; encoder choice is the only experimental variable\. We use the vanilla Adam optimizer atlr=10−3\\text\{lr\}=10^\{\-3\}, batch size 64,80%80\\%train /20%20\\%test split, 5 epochs\. Two seeds per configuration used in reported error bars\. Where the rest of the paper studies network\-side optimization, this section isolates the contribution of the encoder itself\.

Figure[2](https://arxiv.org/html/2611.23242#S5.F2)shows test accuracy against trainable parameter count on Fashion\-MNIST and MNIST for all four encoders, withhhswept across rangeOPENh∈4,8,16,32,64,128,256\)h\\in\{4,8,16,32,64,128,256\}\)\. This generates for each encoder a curve from 6k parameters to 436k parameters, with dual\-polarity encoders at any givenhhrequiring twice the first hidden layer weights than single\-polarity encoders\. For control purposes, Fashion\-MNIST uses uniformT=10T=10across all four encoders and MNIST uses uniformT=10T=10; holdingTTconstant compares encoders at matched simulation\-time budget\.

![Refer to caption](https://arxiv.org/html/2611.23242v1/figures/encoding_pareto_for_slides.png)Figure 2:Test accuracy vs trainable parameters for four spike encoders on a simple SNN MLPFigure[2](https://arxiv.org/html/2611.23242#S5.F2)shows that DoG encoders hit a sweet spot ath=32h=32\. Beyond that point, returns to capacity diminish faster than returns to encoder choice\. The interpretation is that a sufficiently\-wide MLP trained on enough samples can learn a DoG\-like spatial filter from data, which makes the explicit DoG kernel redundant for raw accuracy\. To reach DoG ath=32h=32accuracy with rate coding requiresh≥64h\\geq 64on MNIST and is unachievable on Fashion\-MNIST at any testedhh\. On Fashion\-MNIST relative to delta, DoG shows a 4×\\timesparameter saving at matched accuracy \(DoG ath=16h=16with 25k params≈\\approxdelta ath=64h=64with 103k params\) and an 8\.6×\\timesparameter saving at\+2\.7\+2\.7pp higher accuracy \(DoG ath=32h=32with 51k params versus delta ath=256h=256with 436k params\)\. The accuracy gap between encoders is large at small parameter counts and narrows ashhgrows, and the encoder advantage is recoverable by scaling the model, but at significant parameter cost\.

We conclude that encoder choice is not an absolute\-accuracy level, but a parameter\-efficiency lever\. Its leverage is largest when facing the energy consumption and network size constraint, which is exactly where biological neural systems and low\-power neuromorphic hardware operate\.

### 5\.2Network Optimizer Experiment

#### 5\.2\.1Initial Neural Network Model

We evaluate four model families on MNIST and Fashion\-MNIST\. Key metrics include test accuracy, test loss, training accuracy, training loss, parameter count, model size, and peak memory usage\.

Before applying optimizer and using the surrogate\-gradient, we want to see the performance of our initial spike neural network:

![Refer to caption](https://arxiv.org/html/2611.23242v1/figures/rate_latency_ini.png)Figure 3:Training accuracy/loss vs\. Testing accuracy/loss for rate and latency encoding![Refer to caption](https://arxiv.org/html/2611.23242v1/figures/delta_dog_ini.png)Figure 4:Training accuracy/loss vs\. Testing accuracy/loss for delta and dog encodingFigure[3](https://arxiv.org/html/2611.23242#S5.F3)and Figure[4](https://arxiv.org/html/2611.23242#S5.F4)show the baseline behavior of the SNN before applying the optimizer improvements such as K\-FAC and before using the surrogate\-gradient training method effectively\. Overall, these results indicate that the model has not learned meaningful features for distinguishing different categories\. Most of the curves in these figures stay close to 10% to 18%, which suggests that the network output is only slightly better than random and that the training signal is weak or unstable\. The DoG encoding result is the weakest\. The accuracy stays almost constant around 10%, and the loss remains close to the random\-guessing region\.

#### 5\.2\.2Rouser Adaptive Threshold Results

We also evaluate Rouser on Fashion\-MNIST using the same three\-layer SNN backbone\. This experiment asks a narrow question: does a learnable threshold improve a simple surrogate\-gradient SNN compared with a fixed\-threshold version? The input images are converted into spike trains using internal Bernoulli rate coding\. For each normalized pixel valuex∈\[0,1\]x\\in\[0,1\], the input spike at timettis sampled as

xt∼Bernoulli⁡\(x\)\.x\_\{t\}\\sim\\mathrm\{Bernoulli\}\(x\)\.\(22\)The model runs forT=25T=25time steps, and the predicted class is selected by accumulated output spike count:

y^=arg⁡max⁡∑t=1Tc⁡sc​\(t\)\.\\hat\{y\}=\\arg\\max\_\{c\}\\sum\_\{t=1\}^\{T\}s\_\{c\}\(t\)\.\(23\)
Table 6:Threshold learning\-rate sweep on Fashion\-MNIST\.The sweep shows that adaptive threshold learning improves over the fixed\-threshold baseline in the best single\-run results\. The best setting isηϑ=5×10−3\\eta\_\{\\vartheta\}=5\\times 10^\{\-3\}, which reaches 88\.13% test accuracy\. The larger value,10−210^\{\-2\}, also performs well, although the learned first\-layer thresholds become less stable in our run\. This matches the role ofηϑ\\eta\_\{\\vartheta\}in the update rule because it directly scales the new threshold\-gradient path\.

![Refer to caption](https://arxiv.org/html/2611.23242v1/figures/lr_accuracy_curves.png)Figure 5:Test accuracy over epochs under different threshold learning rates\.Because Bernoulli rate coding introduces randomness, we repeat the key comparison across three random seeds\. We compare the fixed\-threshold baseline with the best Rouser setting from the sweep:

ηϑ∈\{0,5×10−3\}\.\\eta\_\{\\vartheta\}\\in\\\{0,5\\times 10^\{\-3\}\\\}\.\(24\)
Table 7:Multi\-seed comparison between fixed threshold and Rouser\.The multi\-seed result is more conservative than the best single run, yet the direction stays positive\. Rouser improves mean best accuracy from 87\.44% to 87\.75%, and the mean best loss drops from 0\.3686 to 0\.3556\. The gain is modest, which is expected because Fashion\-MNIST is a static image dataset rather than a native event\-based dataset\. Still, the result supports the main mechanism: adaptive thresholds give the SNN a small but measurable optimization benefit\.

#### 5\.2\.3Adam&\\&K\-FAC

Next, we will try applying surrogate gradient method into our SNN model\. At this time, we will use Adam optimization to improve the performance of our model\. The results are shown below:

![Refer to caption](https://arxiv.org/html/2611.23242v1/figures/rate_latency_adam.png)Figure 6:Training accuracy/loss vs\. Testing accuracy/loss for rate and latency encoding \(Adam\)![Refer to caption](https://arxiv.org/html/2611.23242v1/figures/delta_dog_adam.png)Figure 7:Training accuracy/loss vs\. Testing accuracy/loss for delta and dog encoding \(Adam\)These curves show a clear improvement after applying surrogate\-gradient training and Adam optimization\. Compared to the previous result, the network now reaches roughly 80–85% accuracy for several encoding methods\. Once the hard spike function is trained using surrogate gradients and Adam is used to stabilize the noisy updates, the SNN begins to learn meaningful class\-discriminative representations\. Next we will change the optimization method from Adam to K\-FAC:

![Refer to caption](https://arxiv.org/html/2611.23242v1/figures/rate_latency_KFAC.png)Figure 8:Training accuracy/loss vs\. Testing accuracy/loss for rate and latency encoding \(K\-FAC\)![Refer to caption](https://arxiv.org/html/2611.23242v1/figures/delta_dog_KFAC.png)Figure 9:Training accuracy/loss vs\. Testing accuracy/loss for delta and dog encoding \(K\-FAC\)K\-FAC raised accuracy slightly over the Adam\-trained SNN baseline; the improvement was consistent across runs but small in absolute terms, consistent with the expectation that second\-order methods provide the most benefit on harder tasks where the loss landscape is less well\-conditioned\.

#### 5\.2\.4Comparison to Non\-Spiking Baselines

An important context for interpreting SNN accuracy numbers is the gap relative to non\-spiking baselines of equivalent parameter count\. On MNIST, a two\-layer MLP with 256 and 128 hidden units achieves around 95% accuracy, which the rate\-coded SNN at highTTandhhmatches closely\. On Fashion\-MNIST, the same MLP architecture achieves approximately 89–90%, while the SNN with rate coding achieves approximately 85–87%, a gap of 3\-4 percentage points that represents the cost of the spiking nonlinearity under first\-order optimization\.

#### 5\.2\.5Failure Modes and Limitations

Several failure modes were observed across experimental configurations\. Latency coding proved sensitive to the choice of time constantτ\\tau: values well\-matched to one dataset’s intensity distribution caused either silent neurons \(whenτ\\tauwas too small and the threshold was never reached for dim pixels\) or near\-simultaneous firing \(whenτ\\tauwas too large and all neurons fired within the first few time steps\)\. The Cholesky algorithm of K\-FAC sometimes fails even when the damping mechanism is employed when dealing with very small batch sizes\. In such cases, it is necessary to switch to using the pseudo\-inverse, but the pseudo\-inverse has poorer numerical stability\. Rouser’s threshold learning was observed to be unstable in early training epochs when the learning rate ratioηϑ/ηw\\eta\_\{\\vartheta\}/\\eta\_\{w\}was set above approximately 5, suggesting that the threshold adaptation dynamics are more sensitive to initialization than the weight dynamics\. These failure modes motivate future work on adaptive damping for K\-FAC in the SNN setting and warm\-start procedures for Rouser threshold initialization\.

## 6Conclusions

### 6\.1Key Insights

The central thesis of this work is that biologically\-motivated input encoding can enablesmaller SNNs to match larger conventional networksvia efficient encoding and network optimization\. Our experiment results support three concrete claims\.

Encoder choice is a parameter\-efficiency lever, not an absolute\-accuracy lever\.On Fashion\-MNIST, a DoG\-encoded SNN ath=16h\{=\}16\(25k parameters\) matches a delta\-encoded SNN ath=64h\{=\}64\(103k\), which represents a 4×\\timesparameter saving at matched accuracy\. Ath=32h\{=\}32\(51k\), the DoG\-encoded SNN exceeds the delta\-encodedh=256h\{=\}256network \(436k\) by\+2\.7\+2\.7percentage points while using 8\.6×\\timesfewer parameters\. This becomes advantageous in energy and capacity constrained scenarios such as neuromorphic hardware and biological systems\.

Adaptive thresholds \(Rouser\) provide a modest, consistent accuracy improvement at negligible additional cost\.On Fashion\-MNIST, adaptive thresholds raise mean accuracy from 87\.44% to 87\.75% across three seeds by adding one learnable parameter per neuron\. The gain is modest because Fashion\-MNIST is a static\-image dataset; we expect larger benefits on event\-based or motion inputs, where per\-neuron threshold adaptation can track the input distribution dynamically\.

K\-FAC yields a consistent, modest improvement over Adam at this scaleThe improvement in accuracy achieved by K\-FAC is in line with theoretical expectations: for simple datasets that are already close to saturation, the additional signal provided by the second\-order curvature information is limited\. It is expected that its benefits will be greater in more difficult tasks and in environments with complex loss surfaces\. Rouser’s adaptive threshold mechanism enables individual neurons to adjust their excitability, which is particularly beneficial when neural networks must process input with changing statistical characteristics\. The dual learning rate scheme can accelerate the adjustment of the threshold without compromising the stability of weight learning\.

Taken together, these three observations move SNNs toward the operational regime where their efficiency advantages become genuinely realisable on non\-trivial image and vision tasks\.

### 6\.2Future Work

Future work should evaluate our encoder\-efficiency and optimization performance on more complex vision tasks\. One such tasks would be content\-rich complex image datasets such as like Oxford\-IIIT Pet dataset, which would demand fine\-feature extraction and warrant the detailed evaluatoin of convolutional SNNs\. Continued work can examine the temporal mechanisms behind delta\-based encoders and Rouser’s adaptive thresholds to exploit sparsity inherent of event\-based datasets, potentially yielding significant gains in energy efficiency without compromising inference accuracy\.

## References

- \[2\]Y\. LeCun, “The MNIST database of handwritten digits,” 1998\.
- \[3\]H\. Xiao, K\. Rasul, and R\. Vollgraf, “Fashion\-mnist: a novel image dataset for benchmarking machine learning algorithms,”*arXiv preprint arXiv:1708\.07747*, 2017\.
- \[4\]F\. Zenke and S\. Ganguli, “SuperSpike: Supervised learning in multi\-layer spiking neural networks,”*Neural Computation*, vol\. 30, no\. 6, pp\. 1514–1541, 2018\.
- \[5\]E\. O\. Neftci, H\. Mostafa, and F\. Zenke, “Surrogate gradient learning in spiking neural networks,”*IEEE Signal Processing Magazine*, vol\. 36, no\. 6, pp\. 51–63, 2019\.
- \[6\]M\. Pfeiffer and T\. Pfeil, “Deep learning with spiking neurons: Opportunities and challenges,”*Frontiers in Neuroscience*, vol\. 12, p\. 409662, 2018\.
- \[7\]A\. Borst and L\. N\. Groschner, “How flies see motion,”*Annual Review of Neuroscience*, vol\. 46, no\. 1, pp\. 17–37, 2023\.
- \[8\]R\. W\. Rodieck, “Quantitative analysis of cat retinal ganglion cell response to visual stimuli,”*Vision Research*, vol\. 5, no\. 12, pp\. 583–601, 1965\.
- \[9\]S\. Martinez\-Conde, S\. L\. Macknik, and D\. H\. Hubel, “The role of fixational eye movements in visual perception,”*Nature Reviews Neuroscience*, vol\. 5, no\. 3, pp\. 229–240, 2004\.
- \[10\]M\. Davies*et al\.*, “Loihi: A neuromorphic manycore processor with on\-chip learning,”*IEEE Micro*, vol\. 38, no\. 1, pp\. 82–99, 2018\.
- \[11\]J\. J\. Atick and A\. N\. Redlich, “What does the retina know about natural scenes?”*Neural Computation*, vol\. 4, no\. 2, pp\. 196–210, 1992\.
- \[12\]H\. B\. Barlow*et al\.*, “Possible principles underlying the transformation of sensory messages,”*Sensory Communication*, vol\. 1, no\. 01, pp\. 217–233, 1961\.
- \[13\]J\. J\. Atick, “Could information theory provide an ecological theory of sensory processing?”*Network: Computation in Neural Systems*, vol\. 3, no\. 2, pp\. 213–251, 1992\.
- \[14\]J\. Gjorgjieva, H\. Sompolinsky, and M\. Meister, “Benefits of pathway splitting in sensory coding,”*Journal of Neuroscience*, vol\. 34, no\. 36, pp\. 12127–12144, 2014\.
- \[15\]S\. M\. Takaghaj and J\. Sampson, “Rouser: Robust SNN training using adaptive threshold learning,” in*2025 IEEE International Conference on Artificial Intelligence Circuits and Systems \(AICAS\)*, 2025\.
- \[16\]D\. P\. Kingma and J\. Ba, “Adam: A method for stochastic optimization,”*arXiv preprint arXiv:1412\.6980*, 2014\.
- \[17\]J\. Martens and R\. Grosse, “Optimizing neural networks with Kronecker\-factored approximate curvature,” in*Proceedings of the 32nd International Conference on Machine Learning \(ICML\)*, 2015, pp\. 2408–2417\.
- \[18\]W\. Guo, M\. E\. Fouda, A\. M\. Eltawil, and K\. N\. Salama, “Efficient training of spiking neural networks with temporally\-truncated local backpropagation through time,”*Frontiers in Neuroscience*, vol\. 17, p\. 1047008, 2023\.

相似文章