arXiv:2609.35268cs.LGSep 2026

Manuscript Offprint

arXiv:2609.35268

SpikeCredit: Temporal Credit Carrier for Reinforcement Learning with Sparse Rewards

Yingchao Yu, Pengfei Sun, Wenxuan Pan, Wei Chen, Yitian Hong, Kuangrong Hao, Yaochu Jin

Abstract

Reinforcement learning (RL) with sparse rewards is challenging because delayed outcomes provide little guidance about which intermediate computations caused success or failure. We argue that reliable credit assignment requires policy dynamics that preserve and expose credit-relevant information over time, a role we formalize as Temporal Credit Carriers (TCCs) and that spiking neural networks (SNNs) naturally fulfill through graded membrane traces and event-driven spikes. Based on this hypothesis, we propose SpikeCredit, an SNN-based framework for RL with sparse rewards that first performs task-adaptive TCC selection and then closes the loop between a fast TCC-reading pathway, where self-motion feedback constraint uses local behavior-grounded cues to constrain transition-level credit recovery, and a slow TCC-writing pathway, where credit-targeted trace alignment feeds recovered credit back into the actor to make future TCC dynamics more credit-readable. Across sparse-reward MuJoCo tasks, SpikeCredit improves Last10 return over sparse SNN baselines by +1169% on Ant, +953% on Hopper, +723% on Swimmer, and +1781% on Walker2d, and exceeds the dense-reward baseline on Swimmer by +113%. Mechanistic analyses further show substantially stronger alignment with dense rewards than the sparse SNN baseline. These results position spiking dynamics as credit-preserving substrates for sparse-reward RL.

Introduction

Sparse rewards remain a fundamental challenge in reinforcement learning (RL), particularly in long-horizon control (Pignatelli et al. 2024; Sutton and Barto 1998). When meaningful feedback is delayed until the end of a trajectory, the learner knows whether the overall behavior succeeded or failed but receives little guidance about which intermediate states, actions, or computations were responsible. This creates a temporal credit-assignment problem: many different step-wise explanations are compatible with the same episodic outcome, making it difficult to distinguish causally useful behavior from incidental correlations. The resulting weak learning signal impedes exploration and forces value estimates or policy gradients to propagate information across long temporal distances (Andrychowicz et al. 2017; Arjona-Medina et al. 2019).

Figure

Figure 1: Motivation and core idea of SpikeCredit. Inspired by biological fast-slow learning, SpikeCredit treats spiking actor dynamics as task-adaptive temporal credit carriers (TCCs): the fast pathway reads credit from current dynamics, while the slow pathway writes recovered targets to reshape future dynamics, forming a closed read-write loop.

A broad line of work addresses this difficulty by constructing more informative supervision from sparse outcomes. Hindsight methods relabel past experience to expose otherwise unavailable successes (Andrychowicz et al. 2017); return-decomposition and reward-redistribution methods assign delayed outcomes to selected portions of a trajectory (Arjona-Medina et al. 2019; Patil et al. 2022; Kapoor et al. 2025); and reward-shaping approaches learn auxiliary reward functions or models that provide denser feedback (Ng, Harada, and Russell 1999; Ma et al. 2024; Venugopal et al. 2026). Despite their different implementations, these approaches primarily focus on how to infer, redistribute, or reconstruct transition-level learning signals from trajectory-

∗^{*}Corresponding author.

level outcomes. However, a delayed outcome contains little temporal structure by itself and cannot recover transition-level information that was not preserved in the policy or its interaction history. Rather than asking only how delayed outcomes should be redistributed, we ask a prior question: where is the credit-relevant temporal information required for reliable redistribution preserved in the first place?

We posit that reliable credit recovery depends on policy dynamics that preserve and expose credit-relevant structure. We define such internal dynamics as Temporal Credit Carriers (TCCs): neural states whose temporal evolution preserves information that can later support transition-level credit inference from delayed outcomes. Spiking neural network (SNN) actors provide a particularly suitable instantiation of TCCs through two complementary temporal dynamics. Membrane potentials integrate information over time, providing graded temporal traces that can preserve slowly evolving behavioral dependencies relevant to credit assignment. By contrast, spikes provide sparse and localized markers of salient behavioral events, which may expose event-specific temporal evidence for credit assignment.

Building on this insight, we propose SpikeCredit, a credit-aware temporal dynamics learning framework for sparse-reward RL, as illustrated in Figure 1. SpikeCredit instantiates TCCs through task-adaptive selection between membrane traces and spike events according to the temporal characteristics of the task. However, selecting a suitable carrier is insufficient: a useful TCC should not only preserve temporal information, but also make such information readable for delayed credit inference and become adaptable through learning. SpikeCredit therefore couples two complementary operations: reading transition-level credit from current TCC dynamics and writing the recovered signals back to shape future dynamics.

This read-write mechanism draws inspiration from the complementary timescales of biological motor learning: rapid sensorimotor feedback constrains ongoing movement and provides local behavioral guidance, whereas delayed reward-related teaching signals reshape future control (Wolpert, Diedrichsen, and Flanagan 2011; Scott 2004; Schultz, Dayan, and Montague 1997). We translate this principle into a closed loop between credit reading and credit writing. The fast pathway, implemented by Self-Motion Feedback Constraint (SMF), uses local behavior-grounded cues as temporal anchors to constrain credit inference from the actor's current TCC dynamics. The slow pathway, implemented by Credit-Targeted Trace Alignment (CTT), feeds recovered credit targets back into the actor, shaping future TCC dynamics to become more readable for credit assignment. The updated dynamics are then reused by SMF in subsequent episodes, forming a closed loop in which credit inference and representation shaping mutually reinforce each other. This read-write loop reduces the ambiguity of return-only credit assignment while progressively improving future temporal credit recovery. To sum up, our contributions are as follows:

• We formulate Temporal Credit Carriers (TCCs), which consider internal policy dynamics as learnable substrates for preserving and exposing temporal evidence required for credit assignment. We instantiate TCCs in SNN actors through complementary membrane traces and spike events.

• We propose SpikeCredit, a fast-read and slow-write framework in which Self-Motion Feedback Constraint (SMF) uses behavior-grounded temporal anchors to recover credit from current TCC dynamics, while Credit-Targeted Trace Alignment (CTT) feeds the recovered targets back into the actor to improve the credit readability of future dynamics.

• Experiments on four sparse-reward MuJoCo tasks show consistent gains over sparse-reward artificial neural network (ANN) and SNN baselines. Mechanistic analyses and controlled ablations further demonstrate meaningful alignment with dense-reward structure and verify the complementary roles of carrier selection, SMF, and CTT.

References (47)