betaFeedback

WorksComputer Science

Common-Mode Errors Limit Low-Timestep Deep Spiking Q-Networks

Abstract

Spiking neural networks (SNNs) offer sparse and event-driven computation, making them attractive for energy-constrained reinforcement learning (RL) on edge devices. In value-based RL, deep spiking Q-networks (DSQNs) combine such efficiency with action-value estimation for decision making. However, existing DSQNs often require multiple simulation timesteps for competitive performance, increasing computational and energy costs, whereas reducing the timesteps can cause substantial performance degradation. We investigate this degradation from the perspective of Q-value estimation errors. By decomposing errors across actions into common-mode and differential-mode components, we find that low-timestep DSQNs suffer disproportionately from common-mode errors shared across action values, which are particularly detrimental to temporal-difference learning through bootstrapped targets. Based on this finding, we propose Common-Mode Compensation Deep Spiking Q-Network (CMC-DSQN), which uses an auxiliary ANN to compensate for common-mode errors in the SNN outputs. At inference, greedy action selection can be performed directly from the SNN outputs, allowing the auxiliary ANN to be completely removed and preserving the energy efficiency of SNNs. Extensive experiments on Atari and MiniAtar environments demonstrate substantial performance improvements under low-timestep settings. CMC-DSQN outperforms state-of-the-art DSQN baselines by nearly 20%20\% at T=2T=2 and further surpasses the ANN baseline at T=4T=4.

Introduction

Spiking neural networks (SNNs) process information through sparse binary spikes, providing an event-driven alternative to conventional artificial neural networks (ANNs) [23, 13]. When deployed on neuromorphic hardware, such sparse computation can substantially reduce the computational cost and inference latency [24, 6, 7]. These properties are particularly attractive for reinforcement learning (RL), where agents repeatedly interact with the environment and continuously make decisions. Combining SNNs with RL therefore provides a promising route toward energy-efficient sequential decision making on resource-constrained edge devices [47].

RL has achieved remarkable success in sequential decision-making tasks [26, 31, 21, 16]. Among different RL paradigms, value-based methods learn action values that estimate the expected long-term returns of candidate actions. Deep Q-Networks (DQNs) combine Q-learning with ANNs for function approximation [25, 26], achieving human-level

control on Atari games and establishing a fundamental framework for value-based RL [26, 41, 30, 17]. However, conventional DQNs require dense ANN computation to estimate Q-values at every decision step. Replacing the ANN-based Q-function approximator with an SNN gives rise to Deep Spiking Q-Networks (DSQNs), which aim to improve the energy efficiency of value-based RL.

DSQNs have been developed through both ANN-to-SNN conversion [27, 35, 20] and direct gradient-based training [22, 28, 29, 32, 3, 15], achieving competitive performance or even surpassing ANNs. However, such performance often relies on a relatively large number of SNN simulation timesteps. For each RL decision, a DSQN must simulate its neuronal dynamics for TT internal timesteps before outputting Q-values. A larger TT therefore increases inference latency and computational cost. Although reducing TT is highly desirable, we find that low-timestep DSQNs suffer from substantial performance degradation.

In this work, we investigate this degradation from the perspective of Q-value estimation errors. We decompose the errors across actions into common-mode and differential-mode components. While ANN Q-networks exhibit relatively balanced errors between the two modes, low-timestep DSQNs are dominated by common-mode errors. We further show theoretically that common-mode errors affect temporal-difference learning more directly than differential-mode errors. Experiments on the CliffWalking environment [34] confirm their greater impact, showing that removing common-mode errors is more effective than removing differential-mode errors. Together, these results identify common-mode error as a major bottleneck of low-timestep DSQNs.

Motivated by these findings, we propose Common-Mode Compensation Deep Spiking Q-Network (CMC-DSQN). To suppress common-mode errors in the low-timestep SNN, CMC-DSQN replaces the action-wise mean of the SNN outputs with a common-mode estimate produced by an auxiliary ANN. The SNN and ANN are jointly optimized through temporal-difference learning, allowing the ANN to provide a more reliable estimate of the common-mode component. Since this common-mode correction does not change the greedy action, the auxiliary ANN is needed only during training and can be removed entirely at inference. CMC-DSQN therefore improves Q-value estimation without introducing additional computational overheads during deployment.

We evaluate CMC-DSQN on both Atari [25] and MiniAtar [49] environments. Under low-timestep settings, CMC-DSQN consistently achieves strong performance and substantially outperforms both directly trained DSQNs and ANN-to-SNN conversion baselines. As shown in Figure 1, at T=2T = 2, CMC-DSQN exceeds state-of-the-art DSQN baselines by nearly 20%. With T=4T = 4, CMC-DSQN further surpasses the ANN baseline on both Atari and MiniAtar environments. These results demonstrate that mitigating common-mode estimation errors is particularly effective for closing the performance gap of low-timestep DSQNs.

Figure 1. Comparison of existing directly trained DSQNs on the MiniAtar environments [49], including DSQN [22], pbLN [32], DATSQN [15], CaRe-BN [46], and TP-DSQN [5]. Performance is averaged across all environments and normalized by the ANN.

Related Work

Spiking Neural Networks for Policy-Based Reinforcement Learning

SNNs have been applied to RL through biologically motivated synaptic plasticity [9, 10, 14, 11, 48] and gradient-based learning [1]. For continuous control, numerous studies have developed spiking policies through ANN-to-SNN conversion [45] or actor-critic learning [36, 37, 50, 4, 8, 44 c] (Van den Berghe et al. 2026). These studies primarily focus on policy learning, whereas our work investigates value-based RL through DSQNs.

Spiking Neural Networks for Value-Based Reinforcement Learning

For value-based RL, SNNs have been integrated into Deep Q-Networks through both ANN-to-SNN conversion and direct training. Conversion-based methods transform pretrained DQNs into spiking networks [27, 35, 20], whereas directly trained DSQNs use surrogate gradients such as STBP [43] to optimize spiking Q-functions end-to-end [22, 28]. Subsequent work has improved DSQNs through recurrent mechanisms [29], normalization [32, 46], and enhanced spiking-neuron designs [3, 15]. However, Q-value estimation errors in low-timestep DSQNs remain insufficiently understood.

Value Decomposition in Deep Q-Learning

Value decomposition exploits structures shared across actions. Dueling architectures and their extensions decompose Q-values into a state-dependent shared component and action-dependent advantages [42, 17, 39], while VA-learning further studies value–advantage learning under bootstrapping and its relation to the behavior policy [38]. In contrast to these methods that decompose the Q-function itself, we decompose its estimation errors into common-mode and differential-mode components, and show that common-mode errors dominate in low-timestep DSQNs. Beyond this distinction, CMC-DSQN adopts a hybrid architecture in which a training-only auxiliary ANN estimates the common-mode component without sharing the SNN encoder, differing from typical dueling-style shared-encoder architectures.

Preliminaries

Deep Q-Learning

Reinforcement learning (RL) considers a Markov decision process (MDP) ⟨S,A,P,R,γ⟩\langle\mathcal{S}, \mathcal{A}, P, R, \gamma\rangle [34], where S\mathcal{S} and A\mathcal{A} denote the state and action spaces, P(s′∣s,a)P(s' \mid s, a) is the transition probability, R(s,a)R(s, a) is the reward function, and γ∈[0,1)\gamma\in[0, 1) is the discount factor. At interaction step ii, the agent observes state sis_i, selects action aia_i, receives reward rir_i, and transitions to si+1s_{i+1}. The discounted return GiG_i and the action-value function Qπ(s,a)Q^\pi(s, a) under policy π\pi are defined as

Gi=∑k=0∞γkri+k,(1)G_i = \sum_{k=0}^{\infty} \gamma^k r_{i+k}, \tag*{(1)}
Qπ(s,a)=Eπ[Gi∣si=s,ai=a].(2)Q^\pi(s, a) = \mathbb{E}_\pi[G_i \mid s_i = s, a_i = a]. \tag*{(2)}

The objective is to learn the optimal action-value function Q∗Q^*, which satisfies the Bellman equation

Q∗(si,ai)=E[ri+γmax⁡a′Q∗(si+1,a′)].(3)Q^*(s_i, a_i) = \mathbb{E}\left[r_i + \gamma\max_{a'} Q^*(s_{i+1}, a')\right]. \tag*{(3)}

Deep Q-Networks (DQNs) [25, 26] approximate Q∗Q^* using a neural network Qθ(s,a)Q_\theta(s, a) parameterized by θ\theta. Given a transition (si,ai,ri,si+1,di)(s_i, a_i, r_i, s_{i+1}, d_i), the network is optimized by minimizing the temporal-difference (TD) loss

L=E[(Qθ(si,ai)−yi)2],(4)\mathcal{L} = \mathbb{E}\left[\left(Q_\theta(s_i, a_i) - y_i\right)^2\right], \tag*{(4)}
yi=ri+γ(1−di)max⁡a′Qθ(si+1,a′),(5)y_i = r_i + \gamma(1-d_i)\max_{a'} Q_\theta(s_{i+1}, a'), \tag*{(5)}

where yiy_i is the bootstrapped TD target and di∈{0,1}d_i \in\{0,1\} indicates whether the transition terminates the episode. During inference, the agent follows the greedy policy ai=arg⁡max⁡a∈AQθ(si,a)a_i = \arg\max_{a \in\mathcal{A}} Q_\theta(s_i, a). Because the TD target depends on estimated Q-values at the next state, estimation errors can propagate through successive bootstrapped updates, which motivates our analysis in § 4.

Spiking Neural Networks

Spiking neural networks (SNNs) process information through discrete spikes over multiple simulation timesteps. We adopt the commonly used leaky integrate-and-fire (LIF) neuron with hard reset [12]. At SNN timestep tt, its dynamics are

u~t=λut−1+It,ot=H(u~t−vth),ut=u~t(1−ot),(6)\tilde{u}^{t} = \lambda u^{t-1} + I^{t}, \qquad o^{t} = H(\tilde{u}^{t} - v_{\mathrm{th}}), \qquad u^{t} = \tilde{u}^{t}(1-o^{t}), \tag*{(6)}

where u~t\tilde{u}^{t} and utu^{t} denote the membrane potentials before and after reset, λ\lambda is the membrane decay factor, ItI^{t} is the synaptic input, vthv_{\mathrm{th}} is the firing threshold, and H(⋅)H(\cdot) denotes the Heaviside function.

A deep spiking Q-network (DSQN) replaces the ANN-based Q-network with an SNN. For each RL observation, the SNN runs for TT simulation timesteps to output the action values. A larger TT generally improves value representation at higher computational cost, whereas a smaller TT makes accurate Q-value estimation more challenging.

Common-Mode Errors in Deep Spiking Q-Networks

We begin with a case study on the deterministic CliffWalking environment shown in Figure 2(a), where all transitions are deterministic and entering a cliff cell terminates the episode. Its small state space allows both the optimal action-value function Q∗Q^* and the action-value function QπQ^\pi of any policy to be computed exactly from the Bellman equations [2]. This enables direct analysis of Q-value estimation errors and their effects on TD bootstrapping [33].

Analysis of deterministic CliffWalking showing the environment, ANN and SNN trajectories, and common-mode error ratios

Figure 2. Analysis on deterministic CliffWalking. (a) Environment. (b,c) Greedy trajectories of the ANN and low-timestep SNN, respectively, aggregated over 20 random seeds. Yellow segments denote trajectories, and red crosses mark states leading to infinite loops. (d,e) State-wise common-mode error ratios of the ANN and SNN with respect to the optimal action-value function Q∗Q^*.

Common- and Differential-Mode Error Decomposition

Consider a discrete action space A\mathcal{A} with ∣A∣=K|\mathcal{A}| = K. Given a reference action-value function QrefQ^{\mathrm{ref}}, we decompose the estimation error e(s,a)=Q^(s,a)−Qref(s,a)e(s, a) = \hat{Q}(s, a) - Q^{\mathrm{ref}}(s, a) across actions as

ec(s)=1K∑a∈Ae(s,a),(7)e_c(s) = \frac{1}{K} \sum_{a \in\mathcal{A}} e(s, a), \tag*{(7)}
ed(s,a)=e(s,a)−ec(s),(8)e_d(s, a) = e(s, a) - e_c(s), \tag*{(8)}

where ece_c is the common-mode error, representing the error shared across actions, and ede_d is the differential-mode error, capturing errors in the relative differences among actions.

We further define the common-mode error ratio ρc(s)\rho_c(s) to quantify the relative magnitude of the common-mode error compared with the two error components at each state:

ρc(s)=Ec(s)Ec(s)+Ed(s),Ec(s)=∣ec(s)∣,Ed(s)=1K∑aed(s,a)2.(9)\rho_c(s) = \frac{E_c(s)}{E_c(s) + E_d(s)}, \qquad E_c(s) = |e_c(s)|, \qquad E_d(s) = \sqrt{\frac{1}{K} \sum_a e_d(s, a)^2}. \tag*{(9)}

Common-Mode Error Dominance in Low-Timestep SNNs

We first compare a conventional ANN with a low-timestep SNN (T=2T = 2) under the same DQN framework over 20 random seeds. Because both the environment and the greedy evaluation policy are deterministic, each seed either succeeds or fails at each evaluation point. As shown in Figure 3(a) and (Figure 3b), the ANN rapidly learns a stable solution, whereas the SNN is substantially less stable. Although many SNN seeds eventually discover a successful policy, only a small fraction remain successful at any given evaluation point, indicating difficulty in maintaining stable value estimates.

Learning dynamics and Q-value estimation errors on CliffWalking environment

Figure 3. Learning dynamics and Q-value estimation errors on CliffWalking environment. (a) Fraction of successful seeds at each evaluation point. (b) Cumulative fraction of seeds that have solved the task at least once. Curves in (a) and (b) are smoothed for visual clarity. (c) Common- and differential-mode RMSEs with respect to the exact QπQ^\pi of each learned deterministic greedy policy.

Common-mode error dominance. To separate estimation error from policy suboptimality, Figure 3(c) measures the common- and differential-mode RMSEs with respect to the exact QπQ^\pi of each learned greedy policy. The SNN exhibits substantially larger errors than the ANN in both modes. More importantly, its common-mode error is much larger than its differential-mode error, whereas the two are relatively balanced in the ANN. Thus, low-timestep SNNs exhibit not only larger Q-value estimation errors, but also a common-mode dominance.

State-wise common-mode dominance. We further examine the spatial distribution of these errors using the optimal action-value function Q∗Q^* as the reference. Figure 2(d) and (Figure 2e) show the state-wise common-mode error ratio ρc(s)\rho_c(s) for the ANN and SNN, respectively. The ANN maintains a relatively balanced error composition, whereas the SNN is dominated by common-mode errors at nearly every state, particularly in the upper-left region. This region also coincides with the cyclic trajectories frequently observed in unsuccessful SNN policies (Figure 2(c)), suggesting a close association between common-mode error dominance and unstable policy.

Error Propagation through Temporal-Difference Bootstrapping

To determine whether common-mode errors contribute to performance degradation, we next analyze how common-mode and differential-mode errors propagate through TD bootstrapping. Consider the one-step target in Eq. (5) for a non-terminal transition (di=0d_i = 0). Given a reference Q-function QrefQ^{\mathrm{ref}}, let Q^(s,a)=Qref(s,a)+ec(s)+ed(s,a)\hat{Q}(s,a) = Q^{\mathrm{ref}}(s,a) + e_c(s) + e_d(s,a). Substituting this decomposition into the TD target gives

y^i=ri+γec(si+1)+γmax⁡a[Qref(si+1,a)+ed(si+1,a)],yiref=ri+γmax⁡aQref(si+1,a).(10)\begin{aligned} \hat{y}_i &= r_i + \gamma e_c(s_{i+1}) + \gamma\max_a \left[Q^{\mathrm{ref}}(s_{i+1},a) + e_d(s_{i+1},a)\right],\\ y_i^{\mathrm{ref}} &= r_i + \gamma\max_a Q^{\mathrm{ref}}(s_{i+1},a). \tag*{(10)} \end{aligned}

Thus, the error propagated to the bootstrapped target is:

y^i−yiref=γec(si+1)+γΔd(si+1).(11)\hat{y}_i - y_i^{\mathrm{ref}} = \gamma e_c(s_{i+1}) + \gamma\Delta_d(s_{i+1}). \tag*{(11)}
Δd(s)=max⁡a[Qref(s,a)+ed(s,a)]−max⁡aQref(s,a).(12)\Delta_d(s) = \max_a\left[Q^{\mathrm{ref}}(s,a) + e_d(s,a)\right] - \max_a Q^{\mathrm{ref}}(s,a). \tag*{(12)}

The common-mode error shifts all action values equally and therefore enters the bootstrap target directly, whereas the differential-mode error affects it only through maximization, with ∣Δd(s)∣≤max⁡a∣ed(s,a)∣|\Delta_d(s)| \le\max_a |e_d(s,a)|. Common-mode errors thus have a more direct pathway into successive TD updates.

Removing Bootstrap Errors. To isolate the effects of the two modes, we modify only the next-state Q-values used for bootstrapping:

Q^CM(s,a)=Q^(s,a)−ecπ(s),Q^DM(s,a)=Q^(s,a)−edπ(s,a),Q^Q∗(s,a)=Q∗(s,a).(13)\begin{aligned} \hat{Q}_{\mathrm{CM}}(s,a) &= \hat{Q}(s,a) - e_c^\pi(s),\\ \hat{Q}_{\mathrm{DM}}(s,a) &= \hat{Q}(s,a) - e_d^\pi(s,a),\\ \hat{Q}_{Q^*}(s,a) &= Q^*(s,a). \tag*{(13)} \end{aligned}

where ecπe_c^\pi and edπe_d^\pi are computed with respect to the exact QπQ^\pi of the current learned greedy policy. These variants are denoted as SNN-CM, SNN-DM, and SNN-Q*, respectively.

Learning dynamics. As shown in Figure 3(a) and (Figure 3b), replacing the next-state estimate with exact Q∗Q^* substantially improves learning, confirming the importance of bootstrap Q-value accuracy.

Algorithm 1 CMC-DSQN

  1. Training:

  2. for each sampled transition (si,ai,ri,si+1)(s_i, a_i, r_i, s_{i+1}) do

  3. Compute Qϕ,θCMC(si,⋅)Q_{\phi,\theta}^{\mathrm{CMC}}(s_i,\cdot) and Qϕ,θCMC(si+1,⋅)Q_{\phi,\theta}^{\mathrm{CMC}}(s_{i+1},\cdot) using Eq. (16)

  4. Construct the TD target yiy_i using Eq. (5)

  5. Update θ\theta and ϕ\phi by minimizing L=(Qϕ,θCMC(si,ai)−yi)2\mathcal{L} = \left(Q_{\phi,\theta}^{\mathrm{CMC}}(s_i,a_i)-y_i\right)^2

  6. end for

  7. Inference:

  8. Compute only QθSNN(si,⋅)Q_{\theta}^{\mathrm{SNN}}(s_i,\cdot)

  9. Select ai=arg⁡max⁡aQθSNN(si,a)a_i = \arg\max_a Q_{\theta}^{\mathrm{SNN}}(s_i,a)

Removing only the common-mode error also yields a clear improvement, whereas removing the differential-mode error does not improve learning1. This indicates that common-mode errors play a more critical role than differential-mode errors in destabilizing TD learning in low-timestep SNNs.

Q-value estimation errors. The Q-value estimation errors in Figure 3 (c) further support this observation. Using the exact optimal Q-value Q∗Q^* achieves the lowest estimation errors. Removing either the common-mode or differential-mode error reduces both error components, but correcting the common mode leads to a relatively larger reduction. Together, these results show that common-mode errors have a substantially greater impact on TD learning than differential-mode errors.

Common-Mode Compensation for Deep Spiking Q-Networks

The analysis in § 4 shows that common-mode estimation errors can directly bias bootstrapped TD targets and degrade learning in low-timestep DSQNs. In the simple CliffWalking environment, such errors can be explicitly removed because exact reference Q-functions are available. In practical RL tasks, however, neither QπQ^\pi nor Q∗Q^* is accessible during training.

A straightforward alternative is to introduce an auxiliary ANN to estimate and compensate for the entire Q-value estimation error. However, this requires the auxiliary network to model both common- and differential-mode components, introducing unnecessary complexity. As shown in § 6.3, this design improves over the vanilla DSQN but underperforms CMC-DSQN.

CMC-DSQN

Motivated by the analysis in § 4, we propose Common-Mode Compensation Deep Spiking Q-Network (CMC-DSQN), which introduces an auxiliary ANN CϕANN(s)C_{\phi}^{\mathrm{ANN}}(s) parameterized by ϕ\phi to estimate the common-mode component.

Let QθSNN(s,a)Q_{\theta}^{\mathrm{SNN}}(s,a) denote the raw Q-value produced by the SNN with parameters θ\theta. Its common-mode estimation error ec(s)e_c(s) with respect to a reference Q-function QrefQ^{\mathrm{ref}} is

ec(s)=1K∑a∈A(QθSNN(s,a)−Qref(s,a)).(14)e_c(s) = \frac{1}{K}\sum_{a\in\mathcal{A}}\left(Q_{\theta}^{\mathrm{SNN}}(s,a)-Q^{\mathrm{ref}}(s,a)\right). \tag*{(14)}

Directly predicting ec(s)e_c(s) is undesirable because the SNN evolves continuously during training, making the residual error itself a moving target. Instead, the auxiliary ANN directly estimates the corresponding common-mode Q-value component,

CϕANN(s)≈1K∑a∈AQref(s,a).(15)C_{\phi}^{\mathrm{ANN}}(s) \approx\frac{1}{K}\sum_{a\in\mathcal{A}}Q^{\mathrm{ref}}(s,a). \tag*{(15)}

Note that QrefQ^{\mathrm{ref}} is unavailable during training. Thus, the auxiliary ANN is learned jointly with the SNN solely through TD learning by constructing the CMC Q-value as

Qϕ,θCMC(s,a)=QθSNN(s,a)−1K∑a′∈AQθSNN(s,a′)+CϕANN(s).(16)Q_{\phi,\theta}^{\mathrm{CMC}}(s,a) = Q_{\theta}^{\mathrm{SNN}}(s,a) - \frac{1}{K}\sum_{a'\in\mathcal{A}}Q_{\theta}^{\mathrm{SNN}}(s,a') + C_{\phi}^{\mathrm{ANN}}(s). \tag*{(16)}

Thus, CMC-DSQN removes the common component of the SNN outputs and replaces it with the estimate produced by the auxiliary ANN. The ANN and SNN process the observation independently without sharing an encoder, and are jointly optimized through the DQN objective in Eq. (4). The overall training and inference procedures of CMC-DSQN are summarized in Algorithm 1.

An important property of Eq. (16) is that the auxiliary ANN does not affect greedy action selection:

arg⁡max⁡aQϕ,θCMC(s,a)=arg⁡max⁡aQθSNN(s,a).(17)\arg\max_{a} Q_{\phi,\theta}^{\mathrm{CMC}}(s,a) = \arg\max_{a} Q_{\theta}^{\mathrm{SNN}}(s,a). \tag*{(17)}

Therefore, the auxiliary ANN is required only during training and can be removed entirely at inference, where actions are selected directly from the original SNN outputs. CMC-DSQN therefore introduces no additional computational overhead and preserves the energy efficiency of SNNs.

Understanding Common-Mode Compensation

We revisit CliffWalking to examine whether CMC-DSQN alleviates the error characteristics identified in § 4. As shown in Figure 4(a) and (Figure 4b), CMC-DSQN substantially improves learning stability over the vanilla SNN and enables nearly all seeds to solve the task. Figure 4(c) further shows that CMC-DSQN markedly reduces both common- and differential-mode Q-value errors.

Figure 4. Learning dynamics and Q-value estimation errors on CliffWalking. (a) Fraction of successful seeds at each evaluation point. (b) Cumulative fraction of seeds that have solved the task at least once. Curves in (a) and (b) are smoothed for visual clarity. (c) Common- and differential-mode RMSEs with respect to the exact optimal Q-function Q∗Q^*. Unlike Figure 3(c), which uses the exact QπQ^\pi of each learned policy as the reference, this panel evaluates all methods against Q∗Q^*.

Interestingly, CMC-DSQN achieves even lower estimation errors than SNN-Q*, despite the latter using the exact optimal Q-values for bootstrapping. SNN-Q* still requires a single low-timestep SNN to reduce both common- and differential-mode errors, whereas CMC-DSQN assigns the common-mode error reduction to the ANN and allows the SNN to focus on reducing differential-mode errors. This reduces the representational burden on the SNN and improves estimation of both error modes.

Experiments

Experimental Setup

We evaluate CMC-DSQN on two commonly used benchmarks: Atari Mnih et al., [25] and Mini-Atar Young & Tian, [49]. For Atari, we consider seven games evaluated in the original DQN study Mnih et al., [25]: BeamRider, Breakout, Enduro, Pong, Q*bert, Seaquest, and SpaceInvaders. For MiniAtar, we evaluate on all five environments: Asterix, Breakout, Freeway, Seaquest, and SpaceInvaders. We use T∈{2,3,4}T \in\{2, 3, 4\} for Atari and T∈{2,4,6}T \in\{2, 4, 6\} for MiniAtar. All models are trained for 30M environment transitions on Atari and 5M transitions on MiniAtar. Results are averaged over three random seeds for Atari and five random seeds for MiniAtar. The main hyperparameters follow Mnih et al. [26] and Young & Tian [49], respectively. Detailed implementation settings are provided in the Appendix.

We compare CMC-DSQN with both ANN-to-SNN conversion methods and directly trained DSQNs. The conversion baselines include vanilla ANN-to-SNN conversion with integrate-and-fire (IF) neurons (DSQN-CVT), differential coding with multi-threshold neurons (DCGS) [19, 18], and cross-step residual potential initialization (CRPI) Xu et al., [45] compared with

DCGS. The directly trained baselines include vanilla DSQN (Liu et al., [22]), potential-based layer normalization (pbLN) (Sun et al., [32]), deep asymmetric ternary spiking Q-network (DATSQN) (Ghoreishee et al., 2022), confidence-adaptive and re-calibration batch normalization (CaRe-BN) (Xu et al., [46]), and DSQN with temporal pruning (TP-DSQN) (Chowdhury et al., [5]).

In addition to raw scores, we report the average performance ratio (APR):

APR⁡m=1∣E∣∑e∈ESm,e−SRandom,eSANN,e−SRandom,e×100%,(18)\operatorname{APR}_{m} = \frac{1}{\lvert\mathcal{E} \rvert} \sum_{e \in\mathcal{E}} \frac{S_{m,e} - S_{\mathrm{Random},e}}{S_{\mathrm{ANN},e} - S_{\mathrm{Random},e}} \times100\%, \tag*{(18)}

where E\mathcal{E} denotes the set of environments and Sm,eS_{m,e} is the evaluation score of method mm on environment ee. An APR of 100% corresponds to the ANN baseline (DQN) on average.

Main Results

As shown in Table 1, CMC-DSQN consistently improves the aggregated performance of low-timestep DSQNs across the seven Atari games. The improvement is particularly evident at T=2T = 2, where CMC-DSQN increases the average performance ratio (APR) by more than 16 percentage points over the vanilla DSQN. The advantage persists as the simulation horizon increases.

TimestepsMethodBeamRiderBreakoutEnduroPongQ*bertSeaquestSpaceInvadersAPR
—Random354.640.970.00-20.26162.0860.20127.830.00%
—DQN(ANN)6842.99364.51295.7919.869224.171960.441492.50100.00%
T=2T = 2DSQN4279.90276.11280.9717.601300.212101.49806.3670.75%
T=2T = 2CMC-DSQN4136.44382.90316.8718.344186.332358.571183.4087.06%
T=3T = 3DSQN4705.58292.41273.8317.234076.252863.83935.9683.32%
T=3T = 3CMC-DSQN5284.37398.73313.5519.598782.831766.931401.1095.57%
T=4T = 4DSQN4676.82318.01266.1516.134306.673589.00883.2188.76%
T=4T = 4CMC-DSQN5904.69411.70311.7319.988941.172399.731491.77103.45%

Table 1. Average maximum return over three random seeds and average performance ratio (APR) on Atari environments after 30M environment transitions.

Similar improvements are observed on MiniAtar, where we further compare CMC-DSQN with recent directly trained DSQNs and ANN-to-SNN conversion methods, as summarized in Table 2 and Figure 1. CMC-DSQN consistently outperforms both categories of baselines across different simulation timesteps. At T=2T = 2, CMC-DSQN reaches an APR of 90.30%, nearly 20 percentage points higher than CaRe-BN [46], the strongest competing DSQN baseline.

TimestepsmethodsAsterixBreakoutFreewaySeaquestSpaceInvadersAPR
—Random0.493 ± 0.9020.366 ± 0.6180.370 ± 0.5860.116 ± 0.4274.057 ± 3.1990.00%
—DQN (ANN)32.22 ± 4.9427.76 ± 4.9862.58 ± 0.3449.70 ± 8.15138.34 ± 3.87100.00%
T=2T = 2DSQN-CVT1.89 ± 1.144.11 ± 2.4019.17 ± 17.721.36 ± 0.753.82 ± 3.7710.12%
T=2T = 2DCGS18.36 ± 3.5511.64 ± 2.2159.22 ± 0.7726.17 ± 2.8460.56 ± 20.8957.33%
T=2T = 2CRPI21.02 ± 2.3614.92 ± 0.8959.70 ± 0.6428.56 ± 2.4482.02 ± 21.3865.72%
T=2T = 2DSQN14.50 ± 3.0423.90 ± 1.2256.92 ± 1.0622.84 ± 15.67100.76 ± 11.5167.76%
T=2T = 2pbLN16.20 ± 1.4026.43 ± 2.5655.57 ± 0.3513.87 ± 2.6992.70 ± 1.8765.43%
T=2T = 2DATSQN14.67 ± 1.2923.93 ± 3.3758.47 ± 0.842.33 ± 0.2199.17 ± 19.2859.88%
T=2T = 2CaRe-BN17.46 ± 1.9921.38 ± 2.1358.04 ± 0.2934.76 ± 5.1397.42 ± 4.2372.46%
T=2T = 2TP-DSQN19.06 ± 4.4023.34 ± 2.5458.38 ± 0.7730.38 ± 10.8469.02 ± 14.3769.01%
T=2T = 2CMC-DSQN27.30 ± 4.9423.50 ± 5.0956.74 ± 1.1241.06 ± 14.90150.92 ± 36.3190.30%
T=4T = 4DSQN-CVT5.56 ± 3.226.67 ± 2.0750.97 ± 3.633.98 ± 2.0114.29 ± 9.3527.15%
T=4T = 4DCGS21.65 ± 6.9613.83 ± 3.9660.77 ± 0.7033.43 ± 6.4178.50 ± 17.7567.11%
T=4T = 4CRPI26.42 ± 3.6517.87 ± 2.3661.28 ± 0.7643.06 ± 8.84102.76 ± 17.6680.72%
T=4T = 4DSQN22.04 ± 5.5422.96 ± 4.5657.04 ± 1.1033.10 ± 6.95109.50 ± 15.9977.31%
T=4T = 4pbLN15.70 ± 0.3625.03 ± 2.2355.57 ± 0.6723.20 ± 2.46107.67 ± 2.6470.08%
T=4T = 4DATSQN26.96 ± 3.7025.06 ± 1.9958.76 ± 3.1335.96 ± 14.9287.38 ± 11.3880.35%
T=4T = 4CaRe-BN19.82 ± 2.9827.92 ± 3.2058.56 ± 0.7031.88 ± 5.39122.38 ± 10.2181.44%
T=4T = 4TP-DSQN28.74 ± 4.3426.66 ± 2.3160.62 ± 0.5145.04 ± 6.24105.72 ± 14.2789.64%
T=4T = 4CMC-DSQN35.40 ± 2.3626.92 ± 4.3459.78 ± 0.3755.78 ± 8.78131.44 ± 13.50101.92%
T=6T = 6DSQN-CVT7.60 ± 2.829.15 ± 2.7256.46 ± 2.098.27 ± 2.5619.27 ± 12.4934.48%
T=6T = 6DCGS23.56 ± 4.8415.68 ± 3.8860.33 ± 1.1438.57 ± 7.7689.98 ± 18.4973.30%
T=6T = 6CRPI25.65 ± 3.7218.41 ± 2.1761.08 ± 0.9547.63 ± 10.11111.13 ± 16.1183.66%
T=6T = 6DSQN20.98 ± 1.9828.50 ± 2.1957.04 ± 0.8233.98 ± 10.87115.14 ± 11.3981.88%
T=6T = 6pbLN18.70 ± 3.4229.23 ± 2.4956.07 ± 0.2533.00 ± 8.51102.57 ± 11.4278.39%
T=6T = 6DATSQN29.20 ± 3.2423.24 ± 2.9357.00 ± 6.3138.56 ± 12.7398.04 ± 16.5982.51%
T=6T = 6CaRe-BN20.43 ± 1.6326.33 ± 1.2258.10 ± 0.5332.47 ± 2.76129.83 ± 17.0681.87%
T=6T = 6TP-DSQN33.62 ± 5.3324.90 ± 2.3561.20 ± 0.8246.74 ± 13.35115.82 ± 24.0993.80%
T=6T = 6CMC-DSQN35.44 ± 3.6326.88 ± 2.7559.38 ± 0.5050.12 ± 10.59131.48 ± 13.9499.51%

Table 2. Average maximum return over five random seeds and average performance ratio (APR) on MiniAtar environments after 5M environment transitions, where ± denotes one standard deviation.

Overall, CMC-DSQN achieves average normalized performance exceeding the ANN baseline at T=4T = 4 on both Atari and MiniAtar. These results show that common-mode compensation effectively alleviates the performance degradation caused by reducing the number of SNN simulation timesteps.

Ablation Studies

Is the improvement simply due to additional parameters? We replace the auxiliary ANN with an SNN, denoted as S-CMC. Figure 5(a)–(Figure 5c) show that S-CMC consistently underperforms CMC-DSQN across different TT, indicating that the improvement is not due to introducing additional trainable parameters and highlighting the importance of reliable common-mode compensation.

Figure 5. Average normalized return across MiniAtar environments. (a)–(c) Comparison of different DSQN variants at T=2T = 2, 4, 6, respectively. (d) Comparison of the vanilla ANN DQN and its common-mode compensated variant. All curves are smoothed uniformly for visual clarity.

Why compensate only the common mode? We further consider using the auxiliary ANN to compensate the Q-value error rather than only its common-mode component, denoted as QEC-DSQN. Figure 5(a)–(Figure 5c) show that QEC-DSQN improves over the vanilla DSQN but consistently underperforms CMC-DSQN, validating the design choice of compensating only the common-mode errors.

Does common-mode compensation also benefit ANN-based DQNs? We apply the same compensation mechanism to an ANN-based DQN, denoted as CMC-DQN. Figure 5(d) shows that CMC-DQN closely matches the vanilla DQN with little additional benefit. This is consistent with § 4, where common-mode error dominance is observed in low-timestep SNNs but not in ANNs. This suggests that the improvement of CMC-DSQN primarily addresses an SNN-specific estimation problem rather than arising from a generic improvement to the underlying RL algorithm.

Conclusion

We investigated the performance degradation of low-timestep DSQNs from the perspective of Q-value estimation errors and found that common-mode errors dominate and affect TD bootstrapping more strongly than differential-mode errors. Based on this finding, we proposed Common-Mode Compensation Deep Spiking Q-Network (CMC-DSQN), which replaces the SNN common-mode component with an estimate from an auxiliary ANN. Since the auxiliary ANN can be removed entirely at inference, CMC-DSQN preserves the energy-efficiency advantages of SNNs. Experiments on Atari and MiniAtar environments show that CMC-DSQN substantially outperforms state-of-the-art DSQN baselines in low-timestep settings and surpasses the ANN baseline at T=4T = 4.

References

  1. [1]Guillaume Bellec, Franz Scherr, Anand Subramoney, Elias Hajek, Darjan Salaj, Robert Legenstein, and Wolfgang Maass. A solution to the learning dilemma for recurrent networks of spiking neurons. Nature Communications, 11(1):3625, 2020.DOI
  2. [2]Richard Bellman. Dynamic programming. Science, 153(3731):34–37, 1966.pubmed.ncbi.nlm.nih.gov/17730601
  3. [3]Ding Chen, Peixi Peng, Tiejun Huang, and Yonghong Tian. Deep reinforcement learning with spiking q-learning. arXiv preprint arXiv:2201.09754, 2022.arxiv.org/abs/2201.09754
  4. [4]Ding Chen, Peixi Peng, Tiejun Huang, and Yonghong Tian. Fully spiking actor network with intra-layer connections for reinforcement learning. IEEE Transactions on Neural Networks and Learning Systems, 36(2):2881–2893, 2024.arxiv.org/abs/2401.05444
  5. [5]Sayeed Shafayet Chowdhury, Nitin Rathi, and Kaushik Roy. Towards ultra low latency spiking neural networks for vision and sequential tasks using temporal pruning. In European Conference on Computer Vision, pp. 709–726. Springer, 2022.DOI
  6. [6]Mike Davies, Narayan Srinivasa, Tsung-Han Lin, Gautham Chinya, Yongqiang Cao, Sri Harsha Choday, Georgios Dimou, Prasad Joshi, Nabil Imam, Shweta Jain, et al. Loihi: A neuromorphic manycore processor with on-chip learning. IEEE Micro, 2018.DOI
  7. [7]Michael V DeBole, Brian Taba, Arnon Amir, Filipp Akopyan, Alexander Andreopoulos, William P Risk, Jeff Kusnitz, Carlos Ortega Otero, Tapan K Nayak, Rathinakumar Appuswamy, et al. TrueNorth: Accelerating from zero to 64 million neurons in 10 years. Computer, 2019.DOI
  8. [8]Jianchuan Ding, Bo Dong, Felix Heide, Yufei Ding, Yunduo Zhou, Baocai Yin, and Xin Yang. Biologically inspired dynamic thresholds for spiking neural networks. Advances in Neural Information Processing Systems, 35:6090–6103, 2022.arxiv.org/abs/2206.04426
  9. [9]Răzvan V Florian. Reinforcement learning through modulation of spike-timing-dependent synaptic plasticity. Neural Computation, 19(6):1468–1502, 2007.pubmed.ncbi.nlm.nih.gov/17444757
  10. [10]Nicolas Frémaux and Wulfram Gerstner. Neuromodulated spike-timing-dependent plasticity, and theory of three-factor learning rules. Frontiers in Neural Circuits, 9:85, 2016.DOI
  11. [11]Nicolas Frémaux, Henning Sprekeler, and Wulfram Gerstner. Reinforcement learning using a continuous time actor-critic framework with spiking neurons. PLoS Computational Biology, 9(4):e1003024, 2013.DOI
  12. [12]Wulfram Gerstner and Werner M Kistler. Spiking neuron models: Single neurons, populations, plasticity. Cambridge University Press, 2002.
  13. [13]Wulfram Gerstner, Werner M Kistler, Richard Naud, and Liam Paninski. Neuronal dynamics: From single neurons to networks and models of cognition. Cambridge University Press, 2014.DOI
  14. [14]Wulfram Gerstner, Marco Lehmann, Vasiliki Liakoni, Dane Corneil, and Johanni Brea. Eligibility traces and plasticity on behavioral time scales: experimental support of neohebbian three-factor learning rules. Frontiers in Neural Circuits, 12:53, 2018.DOI
  15. [15]Aref Ghoreishee, Abhishek Mishra, John MacLaren Walsh, Anup Das, and Nagarajan Kandasamy. Improving performance of spike-based deep q-learning using ternary neurons. In Proceedings of the International Conference on Neuromorphic Systems, pp. 44–51, 2026.DOI
  16. [16]Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In International conference on machine learning, pp. 1861–1870. Pmlr, 2018.arxiv.org/abs/1801.01290
  17. [17]Matteo Hessel, Joseph Modayil, Hado Van Hasselt, Tom Schaul, Georg Ostrovski, Will Dabney, Dan Horgan, Bilal Piot, Mohammad Azar, and David Silver. Rainbow: Combining improvements in deep reinforcement learning. In Proceedings of the AAAI conference on artificial intelligence, volume 32, 2018.arxiv.org/abs/1710.02298
  18. [18]Zihan Huang, Xinyu Shi, Zecheng Hao, Tong Bu, Jianhao Ding, Zhaofei Yu, and Tiejun Huang. Towards high-performance spiking transformers from ann to snn conversion. In Proceedings of the 32nd ACM international conference on multimedia, pp. 10688–10697, 2024.arxiv.org/abs/2502.21193
  19. [19]Zihan Huang, Wei Fang, Tong Bu, Peng Xue, Zecheng Hao, Wenxuan Liu, Yuanhong Tang, Zhaofei Yu, and Tiejun Huang. Differential coding for training-free ann-to-snn conversion. arXiv preprint arXiv:2503.00301, 2025.arxiv.org/abs/2503.00301
  20. [20]Aakash Kumar, Lei Zhang, Hazrat Bilal, Shifeng Wang, Ali Muhammad Shaikh, Lu Bo, Avinash Rohra, and Alisha Khalid. Robust path planning of mobile robot based on deep spiking q-network. Neurocomputing, 634:129916, 2025.
  21. [21]Timothy P Lillicrap, Jonathan J Hunt, Alexander Pritzel, Nicolas Heess, Tom Erez, Yuval Tassa, David Silver, and Daan Wierstra. Continuous control with deep reinforcement learning. arXiv preprint arXiv:1509.02971, 2015.arxiv.org/abs/1509.02971
  22. [22]Guisong Liu, Wenjie Deng, Xiurui Xie, Li Huang, and Huajin Tang. Human-level control through directly trained deep spiking q-networks. IEEE Transactions on Cybernetics, 53(11):7187–7198, 2022.
  23. [23]Wolfgang Maass. Networks of spiking neurons: the third generation of neural network models. Neural networks, 10(9):1659–1671, 1997.
  24. [24]Paul A Merolla, John V Arthur, Rodrigo Alvarez-Icaza, Andrew S Cassidy, Jun Sawada, Filipp Akopyan, Bryan L Jackson, Nabil Imam, Chen Guo, Yutaka Nakamura, et al. A million spiking-neuron integrated circuit with a scalable communication network and interface. Science, 345(6197):668–673, 2014.
  25. [25]Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Alex Graves, Ioannis Antonoglou, Daan Wierstra, and Martin Riedmiller. Playing atari with deep reinforcement learning. arXiv preprint arXiv:1312.5602, 2013.arxiv.org/abs/1312.5602
  26. [26]Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusı, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. nature, 518(7540):529–533, 2015.DOI
  27. [27]Devdhar Patel, Hananel Hazan, Daniel J Saunders, Hava T Siegelmann, and Robert Kozma. Improved robustness of reinforcement learning policies upon conversion to spiking neuronal network platforms applied to atari breakout game. Neural Networks, 120:108–115, 2019.
  28. [28]Lang Qin, Rui Yan, and Huajin Tang. A low latency adaptive coding spiking framework for deep reinforcement learning. arXiv preprint arXiv:2211.11760, 2022.
  29. [29]Lang Qin, Ziming Wang, Runhao Jiang, Rui Yan, and Huajin Tang. Grsn: Gated recurrent spiking neurons for pomdps and marl. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pp. 1483–1491, 2025.
  30. [30]Tom Schaul, John Quan, Ioannis Antonoglou, and David Silver. Prioritized experience replay. arXiv preprint arXiv:1511.05952, 2015.arxiv.org/abs/1511.05952
  31. [31]John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. ArXiv, abs/1707.06347, 2017.arxiv.org/abs/1707.06347
  32. [32]Yinqian Sun, Yi Zeng, and Yang Li. Solving the spike feature information vanishing problem in spiking deep q network with potential based normalization. Frontiers in Neuroscience, 16:953368, 2022.
  33. [33]Richard S Sutton. Learning to predict by the methods of temporal differences. Machine Learning, 3:9–44, 1988.
  34. [34]Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT Press, 2018.
  35. [35]Weihao Tan, Devdhar Patel, and Robert Kozma. Strategy and benchmark for converting deep q-networks to event-driven spiking neural networks. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pp. 9816–9824, 2021.
  36. [36]Guangzhi Tang, Neelesh Kumar, and Konstantinos P Michmizos. Reinforcement co-learning of deep and spiking neural networks for energy-efficient mapless navigation with neuromorphic hardware. In 2020 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 6090–6097. IEEE, 2020.arxiv.org/abs/2003.01157
  37. [37]Guangzhi Tang, Neelesh Kumar, Raymond Yoo, and Konstantinos Michmizos. Deep reinforcement learning with population-coded spiking neural network for continuous control. In Conference on Robot Learning, pp. 2016–2029. PMLR, 2021.arxiv.org/abs/2010.09635
  38. [38]Yunhao Tang, Rémi Munos, Mark Rowland, and Michal Valko. Va-learning as a more efficient alternative to q-learning. In International Conference on Machine Learning, pp. 33739–33757. PMLR, 2023.arxiv.org/abs/2305.18161
  39. [39]Arash Tavakoli, Fabio Pardo, and Petar Kormushev. Action branching architectures for deep reinforcement learning. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelligence and Thirtyeth Innovative Applications of Artificial Intelligence Conference and Eighth AAAI Symposium on Educational Advances in Artificial Intelligence, pp. 4131–4138, 2018.arxiv.org/abs/1711.08946
  40. [41]Hado Van Hasselt, Arthur Guez, and David Silver. Deep reinforcement learning with double q-learning. In Proceedings of the AAAI conference on artificial intelligence, volume 30, 2016.
  41. [42]Ziyu Wang, Tom Schaul, Matteo Hessel, Hado Van Hasselt, Marc Lanctot, and Nando De Freitas. Dueling network architectures for deep reinforcement learning. In Proceedings of the 33rd International Conference on Machine Learning, pp. 1995–2003, 2016.arxiv.org/abs/1511.06581
  42. [43]Yujie Wu, Lei Deng, Guoqi Li, Jun Zhu, and Luping Shi. Spatio-temporal backpropagation for training high-performance spiking neural networks. Frontiers in Neuroscience, 12:331, 2018.DOI
  43. [44]Zijie Xu, Tong Bu, Zecheng Hao, Jianhao Ding, and Zhaofei Yu. Proxy target: Bridging the gap between discrete spiking neural networks and continuous control. Advances in Neural Information Processing Systems, 38:159158–159184, 2026a.arxiv.org/abs/2505.24161
  44. [45]Zijie Xu, Zihan Huang, Yiting Dong, Kang Chen, Wenxuan Liu, and Zhaofei Yu. Error amplification limits ann-to-snn conversion in continuous control. arXiv preprint arXiv:2601.21778, 2026b.arxiv.org/abs/2601.21778
  45. [46]Zijie Xu, Xinyu Shi, Yiting Dong, Zihan Huang, and Zhaofei Yu. CaRe-BN: Precise moving statics for stabilizing spiking neural networks in reinforcement learning. In The Fourteenth International Conference on Learning Representations, 2026c.arxiv.org/abs/2509.23791
  46. [47]Kashu Yamazaki, Viet-Khoa Vo-Ho, Darshan Bulsara, and Ngan Le. Spiking neural networks and their applications: A review. Brain Sciences, 12(7):863, 2022.DOI
  47. [48]Zhile Yang, Shangqi Guo, Ying Fang, Zhaofei Yu, and Jian K Liu. Spiking variational policy gradient for brain inspired reinforcement learning. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2024.DOI
  48. [49]Kenny Young and Tian Tian. Minatar: An atari-inspired testbed for thorough and reproducible reinforcement learning experiments. arXiv preprint arXiv:1903.03176, 2019.arxiv.org/abs/1903.03176
  49. [50]Duzhen Zhang, Tielin Zhang, Shuncheng Jia, and Bo Xu. Multi-sacle dynamic coding improved spiking actor network for reinforcement learning. In Proceedings of the AAAI conference on artificial intelligence, volume 36, pp. 59–67, 2022.

Paper details

vlnc:W_qw3p6gtc
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents