Manuscript Offprint
arXiv:2611.12530K-prop: Deep Online Learning by Backpropagating Temporal Kernels
Abstract
Self-recurrence represents an important component for temporal processing in neural networks, both artificial and biological, where it appears naturally in the form of leaky integration. However, due to the complex temporal dependencies of the gradient, an efficient and effective method of online training is still lacking. Here we propose K-prop, a novel online learning method for leaky neural networks. It dramatically reduces the computational and memory cost of real time recurrent learning (RTRL) by propagating kernel gains. K-prop also outperforms existing RTRL approximations and achieves performance comparable to backpropagation through time in sequence learning, classification, and reinforcement learning tasks. We further analyze how its sole approximation affects gradient quality and identify conditions under which K-prop remains accurate and effective.
1 Introduction
Temporal processing is fundamental to both biological and artificial intelligence, requiring systems to transform continuous inputs into structured internal representations. Effective training for temporal dynamics relies on accurate credit assignment over time, commonly addressed by backpropagation through time (BPTT, Werbos [2002]). However, BPTT requires storing and replaying full trajectories, limiting its applicability to online settings. In contrast, many natural and real-world systems operate continuously, where learning must occur in real time without access to stored past states, motivating the need for efficient online learning mechanisms. Prior research [Irie et al., 2024] suggests that online learning can also improve sample efficiency in reinforcement learning settings.
Artificial neural networks typically employ instantaneous neurons, whose activations depend only on the current input. In contrast, leaky (integrating) neurons evolve according to continuous dynamics of the type , where the membrane potential decays with time constant while integrating presynaptic input through weights . These dynamics emulate biological membrane potentials and have therefore been widely adopted in computational neuroscience [Dayan and Abbott, 2005]. Beyond biological inspiration, leaky neurons offer an intrinsic mechanism for temporal processing: each neuron implements a low-pass filter, and networks of such units naturally construct rich temporal kernels in an online manner. Unlike Temporal Convolutional Networks (TCN, Bai et al. [2018]), which require access to full input sequences, leaky networks have the potential to process streaming data continuously while maintaining a distributed, multi-timescale memory, a power that has recently been demonstrated in models [Spieler et al., 2024, Ebato et al., 2024]. Moreover, their dynamics align naturally with analog hardware, where voltage-based circuits exhibit leaky integration [Stoliar et al., 2017, Yang et al., 2020].
40th Conference on Neural Information Processing Systems (NeurIPS 2026).
Despite these advantages, online training of feedforward leaky networks remains fundamentally challenging. Due to temporal integration, activity at each layer influences future downstream responses, making the gradient depend jointly on spatial pathways and temporal dynamics, analogous to recurrent networks. In principle, exact gradients can be computed by BPTT or real-time recurrent learning (RTRL, Williams and Zipser [1989]). RTRL, while online, incurs prohibitive computational complexity of order , rendering it impractical beyond very small networks. Existing RTRL approximations either reduce complexity at the expense of gradient quality or fail to scale to deep architectures. As a result, investigating online learning in large and deep leaky networks remains challenging.
In this work, we introduce Kernel propagation (K-prop), a novel learning algorithm for feedforward leaky networks that achieves efficient, online, and accurate gradient approximation. The central idea is to express gradient contributions as a decomposition over exponential temporal kernels, and to propagate only their gain coefficients backward through the network. This transforms the combinatorial explosion of possible temporal pathways into a tractable, layer-wise computation analogous to standard backpropagation.
K-prop offers the following key contributions:
Efficiency and effectiveness: K-prop significantly reduces the quartic complexity of RTRL to near-quadratic scaling, while maintaining a close approximation to the exact gradient. It achieves best-in-class task performance, close to the exact RTRL/BPTT solutions, in deep architectures.
Continuous formulation: Derived directly in continuous time, K-prop is robust to arbitrarily small time steps and naturally suited for analog systems and for dealing with continuous or sparse data.
Layer-wise locality: K-prop remains layer-wise local during training, facilitating practical implementation without requiring global information pathways.
Alternatively, methods such as random feedback local online learning (RFLO, Murray [2019]) and e-prop [Bellec et al., 2020] are specifically designed for leaky neurons and emphasize biological plausibility. These methods rely on local eligibility traces but discard inter-neuron dependencies, which prevents effective credit assignment in deep layers. Zucchet et al. [2023] derived online learning for complex-valued leaky-like memory, and is also limited to a single memory layer. Online spatio-temporal learning (OSTL, Bohnstingl et al. [2022]), partially addresses this by propagating instantaneous errors to deep layers whose temporal dependencies are still missing. Following an energy-based approach, generalized latent equilibrium (GLE, Ellenberger et al. [2025]) assumes a sufficiently smooth error signal , so that the prospective error can be used to estimate temporal gradients. Beyond previous online methods, K-prop preserves the temporal structure of the deep layer gradient by deploying a novel decompositions of both temporal kernels and spatial paths.
3 Theory
3.1 K-prop: Propagating kernel gains
We consider a feedforward leaky neural network with nonlinear activation . From the output loss function , gradients propagate backward to each hidden neuron through the downstream network along all possible directed paths (as shown in Fig. 1a). The gradient of each path constains a temporal term accounting for its temporal contribution. For a postsynaptic neuron in the last leaky layer , this temporal term is represented by a vector of synaptic eligibility traces ,

Figure 1: Kernel propagation. (a) Calculating gradients involves hierarchical filters along paths of neuron connections. (b) Illustration of kernel decomposition. The complicated temporal structure in the true gradient can be approximated by a sum over weighted by -dependent coefficients . Every (solid) is weighted by corresponding as a component (dashed in the same color). The sum of all components aligns well with the exact term computed by RTRL.
where denotes a low-pass filtering of the vector-valued temporal variable with the exponential kernel , where is the Heaviside function. Moving one layer upstream to neuron introduces an additional filtering , and an arbitrary neuron in deeper layers generates more iterative hierarchical filters . Therefore, each path induces a hierarchical temporal kernel characterized by the leaky dynamics of all neurons along the path, and the exact gradient requires summing over all combinations of such path-dependent kernels.
K-prop simplifies this involved computation in three steps.
Step 1: Separating nonlinearity from filtering
K-prop approximates by a surrogate as default), such that it can be moved outside of the filter: . We can therefore approximate a hierarchical filter by a nested filter: . The assumption that varies slowly relative to the filtering time scale is the only approximation required by K-prop.
Step 2: Collapsing nested filters into basis kernels
Lemma 1: Nested exponential filters can be rewritten as a linear combination of single filters. is a set of mutually distinct . A proof is given in Section A.
In this work, we treat identical across layers as slightly perturbed, which yields an equivalent temporal horizon while avoiding singularities in Eq. (2). Consequently, each appears once in a path. Applying the lemma, each path-specific nested kernel is converted into a linear combination of basis kernels. Together with Step 1, the path gradient can then be approximated as , which sums over all neurons in the path except the initial . The term is the path weight, a product of all synaptic weights, nonlinear surrogates , and the output error along path (see Eq. (37) in Supplement).
Step 3: Propagating kernel gains through layers
Despite the reduction above, explicitly summing over paths remains intractable given: (1) exponential growth in the number of paths; (2) dependence on detailed network topology; (3) dependence on

Figure 2: Kernel propagation operation. Example propagation from layer with 3 neurons to layer with 4 neurons. The gray box works as a bracket.
global downstream variables (weights, activities, errors). The key observation is that the number of distinct time constants is much smaller than the number of paths. Let denote the set of all downstream paths and represent the set of all distinct time constants in downstream neurons. We can rearrange the summation over paths and group coefficients by their shared time constant, , where is a kernel gain that aggregates all path contributions associated with time constant . This transformation converts the sum over all combinations of paths and their neurons to a sum over a small set of kernels.
Another central insight of K-prop is that , which implicitly depends on all downstream paths, satisfies a layer-wise recursive relation, i.e., can be derived from , in a way analogous to backpropagation. For a compact notation, we define as the set of all distinct in the network, and define -related transformation factors at neuron :
This definition for is based on fully connected feedforward networks, and is further elaborated and extended in Section A. With , let denote the kernel gain at layer , the corresponding transformation matrix, and . The external error captured by the loss enters from the output layer as the gain , and propagates backward according to (Fig. 2)
We consider the eligibility matrix for layer , with the eligibility vector appearing in the th row. With this we define deep eligibility traces for all downstream time constants . Each synapse thus tracks a number of eligibility traces equal to the number of different neuronal time constants that appear in the downstream network. This can be done locally and online through simple leaky integrator dynamics in a matrix form:
Finally, the total gradient sums up the contribution from all kernel components
K-prop replaces explicit path enumeration by propagating kernel coefficients. Each neuron tracks local temporal features , while carries error information across layers (Fig. 1b). This yields a fully online and continuous time learning rule that avoids combinatorial complexity while preserving the structure of the path-based gradient (see pseudocode in Algorithm 1). In order to enable this mechanism, global information is used at initialization to construct and . During training, all computations remain layer-wise local. Consequently, K-prop can be straightforward to implement by integrating feed-forward network techniques, treating as the gradient in standard backpropagation. Normalization or dropout simply scales or drops out , and convolutional or residual architectures only change the matrix operation during propagation.

Figure 3: Gradient cosine dissimilarity between K-prop and exact (BPTT/RTRL) gradients in randomly initialized networks, measured with respect to each neuron given a sample of the MNIST1D dataset (see Section 4.2). Dissimilarity ranges from 0 to 2 with 0 indicating complete alignment, 1 orthogonality, and 2 complete anti-alignment. Error bars show median, 1st, and 3rd quartiles. (a) Gradient mismatch increases towards earlier layers, as an increasing number of need to be approximated as constant. The mismatch depends on the type of nonlinearity present in the network, and works better than as surrogate . (b) Scatter plots show the distribution of outliers. ReLU leads to more outlier neurons than sigmoid nonlinearities. (c) Gradient mismatch increases, then decreases for larger . All plots show sigmoid functions performing better than ReLU.
3.2 Quality of the gradient approximation
The accuracy of K-prop is governed by its sole approximation , which assumes that varies slowly over the relevant timescales determined by the inputs. Deviations from this assumption introduce a mismatch between the true gradient and its K-prop estimate. Understanding how this mismatch depends on network and model properties is key to improving K-prop performance.
We quantify gradient quality using the cosine dissimilarity between K-prop and BPTT gradients:
Across configurations, the median dissimilarity remains low ( ), indicating that most neurons receive well-aligned gradients.
Depth. As shown in Fig. 3a, gradient dissimilarity increases with distance from the output layer. The last layers are computed exactly, while upstream layers accumulate approximation errors through repeated propagation. This is consistent with the layer-wise structure of K-prop, where small local mismatches compound along depth.
Time constants. The approximation error is directly linked to the timescales of the input (and thus the network) variation. When all , K-prop reduces to standard backpropagation and is exact. As increases, dissimilarity grows due to longer temporal integration windows. In the limit of very large , network dynamics become slower, reducing temporal variation in and improving the K-prop approximation. Note that this limit only serves as a cross-check for our intuition: while gains become more constant over time, networks also lose functionality as they become incapable of meaningfully processing incoming signals.
Nonlinearity. The choice of activation function determines the smoothness of . Functions with slowly varying derivatives (e.g., logistic sigmoid) yield lower dissimilarity. Although tanh is an offset and scaled logistic function, its derivative has larger magnitude and varies more rapidly, leading to increased mismatch. ReLU presents a distinct regime: is piecewise constant but discontinuous at zero. As a result, gradients are either highly accurate or highly inaccurate, leading to low median error but significantly higher variance, as reflected by the outlier distribution.
Surrogate derivative. The design of directly controls the approximation. For example, a low-pass-filtered version improves gradient alignment compared to using the instantaneous , and the used to filter shifts the gradient alignment tradeoff across network depth (Section C.2). Exploring surrogate replacements is a promising direction for further improving K-prop.

Figure 4: N-sum task evaluated with various online learning methods. ProspE only considers prospective errors in GLE [Ellenberger et al., 2025], without further augmentations. (a) Training loss over time. K-prop achieves substantially lower error than other approximation methods and closely matches RTRL. (b) Temporal response of hidden neurons to a step input before and after learning. K-prop develops more structured and contrastive temporal kernels. (c) Example input and corresponding outputs. Before learning, all models produce non-informative outputs. After learning, K-prop and RTRL closely align with the target sequence, while other methods deviate in both timing and amplitude.
Overall, these results show that gradient quality in K-prop is determined by the interaction between temporal dynamics and nonlinearity, and can be systematically improved through appropriate choices of network timescales, activation functions, and surrogate design.
4 Experiments
4.1 Continuous signal processing with memory
We first evaluate K-prop on a clearly defined non-episodic task, the N-sum problem with . The model receives a continuous binary stream (e.g., ) without truncation and must output the sum of the most recent three bits in binary form using two output units (). Each bit is presented for 5 ms, requiring the model to maintain a memory of at least ms. Note that the time units are, in principle, arbitrary, and what matters is the ratio between time constants and bit duration.
Despite its simple formulation, the task presents two key challenges: (1) the model is not informed of the temporal horizon or the bit duration, and must infer the relevant memory timescale purely from delayed error signals; (2) the least significant output bit effectively implements a parity function over recent inputs, which is a class of problems known to be difficult for gradient-based learning [Abbe and Boix-Adsera, 2022, Shalev-Shwartz et al., 2017].
The loss is defined as the mean squared error and is delivered 2 ms after the onset of each input bit (reaction latency). Gradients are computed online at every time step, accumulated into , and
Table 1: Test accuracy (%) of BPTT, OSTL, and K-Prop across the evaluated datasets. Results are reported as mean ± standard deviation.
| Method | MNIST1d-Lk4 | MNIST1d-Lk5 | GSC |
|---|---|---|---|
| BPTT Werbos [2002] | 96.60 0.20 | 97.69 0.21 | 92.47 0.21 |
| OSTL Bohnstingl et al. [2022] | 96.08 0.30 | 97.03 0.16 | 90.61 0.20 |
| K-prop (Ours) | 96.53 0.54 | 97.56 0.19 | 91.52 0.10 |

Figure 5: Sequential Classification Benchmark learning. (a) Mean, minimum, and maximum validation accuracy during training on GSC Warden [2018] 20-command task. K-prop outperforms OSTL Bohnstingl et al. [2022] in final accuracy, convergence speed, and training stability. (b) Depth ablation by freezing early layers shows decreasing accuracy with less trained layers. The accuracy loss is similar between K-prop and BPTT, indicating that K-prop provides effective gradients for deep layers. (c) Noise robustness evaluation of the Lk4 in MNIST1d (see Section 5.2 and B.6). K-prop maintains high accuracy under a broad range of noise levels .
applied periodically, after which the accumulator is reset (see weight update period in Section 5.3 and Supplement Table 3). This update scheme is shared across all methods.
To emphasize learning under constrained capacity, we use a small architecture (6-6-6-2) with logistic output units. In this setting, exact RTRL remains tractable, allowing for a controlled comparison where all methods share identical initialization and learning rates. K-prop achieves performance nearly indistinguishable from RTRL, while significantly outperforming other online approximation methods. The advantage becomes more pronounced on the more difficult parity component , where K-prop better matches the target in both timing and amplitude (Fig. 4). In N-sum, the correct output depends on integrating information over a precise temporal window ( 15 ms) while simultaneously performing a nonlinear transformation (parity-like mapping). This requires assigning credit not only locally in time, but also across combinations of temporal filters.
Beyond output accuracy, we analyze the temporal responses of hidden neurons (layer L3) in Fig. 4. During training, neurons develop diverse temporal kernels that extract task-relevant features. Compared to initialization, the learned responses to step inputs become both more expressive and temporally structured. For instance, neurons exhibiting sign changes around 10 ms, effectively compute differences between recent and earlier inputs, resembling temporal filtering operations. Such structured temporal responses have been widely observed in biological systems, including retina [Trenholm and Krishnaswamy, 2020], visual cortex [Zhaoping, 2014], and auditory system [Lesica and Grothe, 2008, Zhao and Zhaoping, 2011], suggesting convergent strategies for temporal feature extraction.
4.2 Sequential Classification Tasks Benchmark
We next verify K-prop in deeper and wider networks on benchmark sequential classification task MNIST1D [Greydanus and Kobak, 2024]. Prior benchmarks [Beebe et al., 2026, Ellenberger et al., 2025] report accuracies of approximately 94% for temporal convolutional networks, 91% for GRU, and 96% for human performance. For comparable leaky neural networks trained with GLE [Ellenberger et al., 2025], performance reaches 91% with 15K parameters and 93% with 42K parameters. Using K-prop, we achieve with a 4-layer leaky network (Lk4, 14K parameters) and with a 5-layer configuration (Lk5, 21K parameters), outperforming

Figure 6: Motor-skill acquisition through online reinforcement learning. Learning curves for (a) CartPole and (c) LunarLander. Faded traces in the background represent individual runs, while solid curves show the corresponding smoothed learning trajectories. Red dashed lines indicate the task-specific success thresholds, and black dashed lines show the performance of an instantaneous, memoryless network. (b) Animation of LunarLander.
previously reported leaky network baselines while remaining parameter-efficient. Moreover, K-prop closely matches the BPTT loss, whereas OSTL converges to a substantially higher loss (Fig. 8).
To evaluate K-prop at a larger scale and on a more realistic dataset, we perform classification on Google Speech Commands (GSC) [Warden, 2018]. This task requires substantially longer temporal dependencies to distinguish acoustically similar words such as 'eight' and 'right', making long-range credit assignment critical. On the 20-command task, K-prop achieves an accuracy comparable to that reported for GLE on the 10-command task, despite using approximately half as many parameters (0.55M, Table 1). K-prop also outperforms OSTL in accuracy, convergence speed, and training stability. These results suggest that K-prop more effectively propagates credit across long temporal dependencies than OSTL instantaneous error signals (Fig. 5a).
To assess whether K-prop effectively trains deep layers, we perform a layer ablation study on Lk5 (Fig. 5b). Progressively freezing early layers degrades performance, indicating that K-prop provides meaningful training signals throughout the network depth. Together, these results demonstrate that K-prop scales to deeper architectures and larger, more realistic sequential-learning tasks, supporting its use as an online alternative for training leaky models.
4.3 Motor learning through real-time reinforcement learning
Motor adaptation in biological systems relies heavily on continuous, online learning, where behavior is adjusted in real time. With online learning, we can adapt faster to new environments and make efficient explorations based on learning. Such scenarios often provide observations that fall into the regime of a partially observable Markov decision process [Kaelbling et al., 1998], requiring agents to construct memory for internal state representations.
To emulate this setting, we use the CartPole and LunarLander tasks from OpenAI Gymnasium [Towers et al., 2024]. We partially mask the observations by removing both positional variables in CartPole and the horizontal position in LunarLander, which makes the instantaneous observation insufficient for optimal control. Although the missing positions can, in principle, be estimated by integrating the observed velocities over time, the agents need to collect historical information correctly without any supervision signal for reconstructing hidden variables. The temporal state inference thus becomes an implicit prerequisite of the reward-maximization task.
We employ an online actor-critic framework similar to [Bellec et al., 2020], using TD( ) for value estimation. Both actor and critic are implemented as leaky neural networks trained with K-prop. Across multiple runs, the agents consistently succeed in reward maximizing, demonstrating that K-prop supports stable policy and value function learning under partial observability of the system and online updates. Unlike conventional episodic training [Bellec et al., 2020], our setting emphasizes online adaptation during ongoing interaction without batched updates across episodes. In CartPole, in particular, the weights are updated every 3s of interaction. These results show that K-prop provides effective online optimization beyond supervised learning.
5 Discussion
5.1 Computational and memory efficiency
K-prop significantly reduces both memory and computation cost compared to RTRL, whose memory cost scales with the number of neurons as and computational cost is . K-prop maintains deep eligibility traces with size . In practice, we divide neurons within each layer into "fast" and "slow" groups (Table 2), leading to . Since , this yields a substantial reduction in memory requirement.
The computational cost of K-prop consists of two parts: (i) updating local eligibility traces and (ii) propagating . Both operations scale as per time step, resulting in an overall complexity of the same order. Except for GLE with an extremely efficient memory footprint of , approximation methods such as RFLO, e-prop, UORO, and OSTL achieve complexity in both memory and computation (Fig. 7). K-prop introduces only a modest additional factor , while providing a more accurate gradient that translates into improved empirical performance.
5.2 Robustness against noise in learning
Because K-prop implements low-pass filters at all dynamical stages, both for neurons and synaptic eligibility traces, it has a built-in protection against temporal noise. This is essential for physical networks, both biological and artificial (neuromorphic), where such noise is near-ubiquitous. We evaluate learning under noise by adding Gaussian noise to . K-prop retains an average MNIST1D accuracy of 94.5% at noise variance and 92.3% at (Fig. 5), which are strong noise levels relative to (bounded within ). These results demonstrate that K-prop remains robust even under substantial perturbations.
5.3 Weight updating during online learning
In practice, we observe that applying weight updates at discrete intervals, rather than continuously at every time step, is important for stable learning. This observation reflects several fundamental challenges in online gradient-based learning, including exact RTRL.
First, online gradients implicitly assume that past contributions are evaluated using the current weights, whereas the weights evolve over time. This mismatch introduces inconsistencies between the accumulated eligibility traces and the current parameter state. Second, continuously updating weights interferes with the forward dynamics: the network is simultaneously required to maintain a stable temporal memory while its parameters are being modified, which can disrupt the memory dynamics that generate useful network output. Third, instantaneous gradients are inherently noisy, as they depend on transient activity and error signals; aggregating gradients over a temporal window can reduce variance, analogous to batch averaging in standard stochastic gradient descent.
6 Conclusion
We introduced K-prop, a novel online learning algorithm for feedforward networks of leaky neurons. K-prop significantly reduces the computational and memory cost of RTRL while maintaining a close approximation to the exact gradient, as evidenced by strong directional alignment. Empirically, K-prop achieves performance comparable to RTRL and BPTT on temporal tasks such as N-sum and MNIST1D, and further demonstrates its applicability in reinforcement learning through continuous control in the Cartpole balancing task. K-prop outperforms other approximation methods, which we attribute to more accurate temporal credit assignment across multiple time scales and layers.
From an engineering perspective, K-prop serves as a practical surrogate for RTRL, enabling the study and deployment of online gradient learning in deeper and wider networks. By avoiding the prohibitive cost of RTRL and the severe performance degradation of prior approximations, which potentially conceals the intrinsic limitations, it allows a clearer assessment of online gradient learning methodological properties. Its layer-wise structure and compatibility with standard architectures and techniques, such as residual connections, convolutions, normalization and drop-out, make it a viable candidate for integrating online temporal learning into modern deep learning pipelines.
From a neuroscience perspective, K-prop provides insight into how eligibility traces may operate in deeper neural circuits. In particular, it suggests a framework in which multiple eligibility traces coexist at each synapse, each selectively interacting with different error-related signals, with reward signals provided by distinct neuro-modulators. Such a mechanism could support more flexible and expressive temporal credit assignment as compared to simple three-factor learning rules Gerstner et al. [2018]. Meanwhile, K-prop can be extended to other neuron models that include, for example, multiple dendritic compartments or adaptive mechanisms by adding structured auxiliary kernels.
Finally, our analysis highlights a key direction for future improvement: the approximation of the activation derivative through . The accuracy of K-prop critically depends on the assumption that varies slowly in time. Relaxing this assumption, especially in regimes with discontinuous or highly non-smooth activations, remains an open challenge. In particular, extending K-prop to spiking neural networks, where is inherently impulsive, will require more refined surrogate formulations. Addressing this limitation could further broaden the applicability of K-prop to a wider class of temporal and biologically grounded models.
Acknowledgements
We gratefully acknowledge funding from the European Union under grant agreement #101147319 (EBRAINS 2.0). WS and BL acknowledge the Swiss National Science Foundation (SNF) for Project funding (Project #10004971). We would like to express particular gratitude for the ongoing support from the Manfred Stärk Foundation.
Competing interests
The authors declare there are no competing interests.
References
Emmanuel Abbe and Enric Boix-Adsera. On the non-universality of deep learning: quantifying the cost of symmetry. Advances in Neural Information Processing Systems, 35:17188–17201, 2022.
Shaojie Bai, J Zico Kolter, and Vladlen Koltun. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv preprint arXiv:1803.01271, 2018.
Michael Beebe, GodsGift Uzor, Manasa Chepuri, Divya Sree Vemula, and Angel Ayala. Exploring the performance of ml/dl architectures on the mnist-1d dataset. arXiv preprint arXiv:2602.13348, 2026.
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.
Frederik Benzing, Marcelo Matheus Gauy, Asier Mujika, Anders Martinsson, and Angelika Steger. Optimal kronecker-sum approximation of real time recurrent learning. In International Conference on Machine Learning, pages 604–613. PMLR, 2019.
Thomas Bohnstingl, Stanisław Woźniak, Angeliki Pantazi, and Evangelos Eleftheriou. Online spatiotemporal learning in deep neural networks. IEEE Transactions on Neural Networks and Learning Systems, 34(11):8894–8908, 2022.
Simon Brandt, Mihai Alexandru Petrovici, Walter Senn, Katharina Anna Wilmes, and Federico Benitez. Prospective and retrospective coding in cortical neurons. arXiv preprint arXiv:2405.14810, 2024.
Claudia Clopath, Lorric Ziegler, Eleni Vasilaki, Lars Büsing, and Wulfram Gerstner. Tag-trigger-consolidation: a model of early and late long-term-potentiation and depression. PLoS computational biology, 4(12):e1000248, 2008.
Peter Dayan and Laurence F Abbott. Theoretical neuroscience: computational and mathematical modeling of neural systems. MIT press, 2005.
Alain Destexhe, Michael Rudolph, and Denis Paré. The high-conductance state of neocortical neurons in vivo. Nature reviews neuroscience, 4(9):739–751, 2003.
Yudai Ebato, Sou Nobukawa, Yusuke Sakemi, Haruhiko Nishimura, Takashi Kanamaru, Nina Sviridova, and Kazuyuki Aihara. Impact of time-history terms on reservoir dynamics and prediction accuracy in echo state networks. Scientific Reports, 14(1):8631, 2024.
Benjamin Ellenberger, Paul Haider, Federico Benitez, Jakob Jordan, Kevin Max, Ismael Jaras, Laura Kriener, and Mihai A Petrovici. Backpropagation through space, time and the brain. Nature Communications, 2025.
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.
Samuel James Greydanus and Dmitry Kobak. Scaling down deep learning with MNIST-1d. In Forty-first International Conference on Machine Learning, 2024. URL https://openreview.net/forum?id=n9pru4bJU9.
Paul Haider, Benjamin Ellenberger, Laura Kriener, Jakob Jordan, Walter Senn, and Mihai A Petrovici. Latent equilibrium: a unified learning theory for arbitrarily fast computation with arbitrarily slow neurons. Advances in neural information processing systems, 34:17839–17851, 2021.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 770–778, 2016.
Kazuki Irie, Anand Gopalakrishnan, and Jürgen Schmidhuber. Exploring the promise and limits of real-time recurrent learning. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=V2cBKtdC3a.
Leslie Pack Kaelbling, Michael L Littman, and Anthony R Cassandra. Planning and acting in partially observable stochastic domains. Artificial intelligence, 101(1-2):99–134, 1998.
Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 2002.
Nicholas A Lesica and Benedikt Grothe. Efficient temporal processing of naturalistic sounds. PLoS One, 3(2):e1655, 2008.
Asier Mujika, Florian Meier, and Angelika Steger. Approximating real-time recurrent learning with random kronecker factors. Advances in neural information processing systems, 31, 2018.
James M Murray. Local online learning in recurrent networks with random feedback. eLife, 8:e43299, may 2019. ISSN 2050-084X. doi: 10.7554/eLife.43299. URL https://doi.org/10.7554/eLife.43299.
John D Murray, Alberto Bernacchia, David J Freedman, Ranulfo Romo, Jonathan D Wallis, Xinying Cai, Camillo Padoa-Schioppa, Tatiana Pasternak, Hyojung Seo, Daeyeol Lee, et al. A hierarchy of intrinsic timescales across primate cortex. Nature neuroscience, 17(12):1661–1663, 2014.
Cian O'Donnell. Nonlinear slow-timescale mechanisms in synaptic plasticity. Current opinion in neurobiology, 82:102778, 2023.
Daniel S Park, William Chan, Yu Zhang, Chung-Cheng Chiu, Barret Zoph, Ekin D Cubuk, and Quoc V Le. Specaugment: A simple data augmentation method for automatic speech recognition. arXiv preprint arXiv:1904.08779, 2019.
Walter Senn, Dominik Dold, Akos F Kungl, Benjamin Ellenberger, Jakob Jordan, Yoshua Bengio, João Sacramento, and Mihai A Petrovici. A neuronal least-action principle for real-time learning in cortical circuits. ELife, 12:RP89674, 2024.
Shai Shalev-Shwartz, Ohad Shamir, and Shaked Shammah. Failures of gradient-based deep learning. In International Conference on Machine Learning, pages 3067–3075. PMLR, 2017.
Aaron Spieler, Nasim Rahaman, Georg Martius, Bernhard Schölkopf, and Anna Levina. The expressive leaky memory neuron: an efficient and expressive phenomenological neuron model can solve long-horizon tasks. In International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=vE1e1mLJ0U.
Pablo Stoliar, Julien Tranchant, Benoit Corrazze, Etienne Janod, Marie-Paule Besland, Federico Tesler, Marcelo Rozenberg, and Laurent Cario. A leaky-integrate-and-fire neuron analog realized with a mott insulator. Advanced Functional Materials, 27(11):1604740, 2017.
Corentin Tallec and Yann Ollivier. Unbiased online recurrent optimization. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=rJQDjk-0b.
Mark Towers, Ariel Kwiatkowski, Jordan Terry, John U Balis, Gianluca De Cola, Tristan Deleu, Manuel Goulão, Andreas Kallinteris, Markus Krimmel, Arjun KG, et al. Gymnasium: A standard interface for reinforcement learning environments. arXiv preprint arXiv:2407.17032, 2024.
Stuart Trenholm and Arjun Krishnaswamy. An annotated journey through modern visual neuroscience. Journal of Neuroscience, 40(1):44–53, 2020.
Pete Warden. Speech commands: A dataset for limited-vocabulary speech recognition. arXiv preprint arXiv:1804.03209, 2018.
Paul J Werbos. Backpropagation through time: what it does and how to do it. Proceedings of the IEEE, 78(10):1550–1560, 2002.
Ronald J Williams and David Zipser. A learning algorithm for continually running fully recurrent neural networks. Neural computation, 1(2):270–280, 1989.
Ronald J Williams and David Zipser. Gradient-based learning algorithms for recurrent networks and their computational complexity. In Backpropagation, pages 433–486. Psychology Press, 2013.
Jia-Qin Yang, Ruopeng Wang, Zhan-Peng Wang, Qin-Yuan Ma, Jing-Yu Mao, Yi Ren, Xiaoyang Yang, Ye Zhou, and Su-Ting Han. Leaky integrate-and-fire neurons based on perovskite memristor for spiking neural networks. Nano Energy, 74:104828, 2020.
Lingyun Zhao and Li Zhaoping. Understanding auditory spectro-temporal receptive fields and their changes with input statistics by efficient coding principles. PLoS computational biology, 7(8): e1002123, 2011.
Li Zhaoping. Understanding Vision: Theory, Models, and Data. Oxford University Press, Oxford, UK, 2014.
Nicolas Zucchet, Robert Meier, Simon Schug, Asier Mujika, and Joao Sacramento. Online learning of long-range dependencies. Advances in Neural Information Processing Systems, 36:10477–10493, 2023.
A Mathematical proofs
Hierarchical exponential kernels are equivalent to linear combinations of kernels
Before analyzing gradients in the network, we first derive a fundamental lemma for this theory. Hierarchical exponential kernels can be expressed as a linear summation of exponential kernels. This result can be derived using Laplace transforms; however, here we provide a derivation based on elementary calculus. Consider a double exponential kernel over a temporal variable x:
This rule can be applied iteratively to additional exponential kernels. For example, for three exponential kernels:
Then, this lemma can be generalized to an arbitrary number of exponential kernels (a set of distinct time constants ), where when , which allows a more compact representation:
The limitation arises when multiple time constants are identical, in which case the expression reduces to the special case of the alpha function, which cannot be written as a simple linear combination. We therefore assume for any .
Exact gradient for 2-leaky-layer networks
To begin with, we transform the ODE into its solution form with the initial condition . We use bold symbols to denote vectors and matrices. Consider a network architecture with two hidden layers (and widths of the input, hidden and output layer denoted by , , and ), where neurons have exponential filters with different time constants , except for the instantaneous output neurons (formally, we only need that neurons from different layers have different time constants). For the last leaky layer, the gradient for minimizing the objective function can be written as:
Here without superscript is a matrix of shape where each column is filtered by corresponding post-synaptic . Since the output layer is instantaneous, we can directly compute the error arriving at the last leaky layer: , which can be readily obtained. The exact gradient can then be computed online . This reduces to RFLO Murray [2019] and E-prop Bellec et al. [2020] for the last hidden layer, which is in fact equivalent to considering downstream instantaneous neurons.
For the deeper layer L1, the simple eligibility traces with local are no longer enough, since the temporal gradient . The gradient must integrate over temporal contributions , which are scaled by the decay term :
Since we aim to rearrange these terms according to time constants, it becomes difficult to proceed directly with matrix operations. To compute this explicitly, we replace matrix operations with summations. We start by focusing on an arbitrary neuron in L1, denote its input weight vector by , the corresponding eligibility trace by and the weight to neuron in L2 by . We then calculate
Equation 21 can be considered as the closed-form solution of the RTRL sensitivity in continuous time, which accounts for the contribution of parameters in to each L2 neuron where the error arrives. We next group L2 neurons that share the same time constant and collect all distinct 's into the set . This allows us to merge the coefficients within each group as the kernel gain and rewrite the expression as:
where compactly replaces the selection condition . Therefore, we construct a specialized version of K-prop in which the exact gradient can be computed in two layers networks more efficiently than RTRL.
To three and more leaky layers
In the same manner, we can compute the gradient for networks with more leaky layers. To maintain consistent layer indexing for the back-propagation process, we use to denote layers by their distance from the output, and indices follow this order, with still as the error signal arrives at the last leaky layer. We write the chain rule in an order that facilitates the later transformation into summation form:
To reduce this triple exponential kernel to a double exponential form, we can follow the computation in Equation 9. However, in this case, we encounter an intractable expression due to the temporally varying .
\overline{{\rho_{j}^{\prime}\overline{{\mathcal{Z}_{\star}^{\tau_{j}}}}^{\tau_{i}}}(t)=\int_{t_{0}}^{t}d t^{\prime}\frac{1}{\tau_{i}}e^{\frac{t^{\prime}-t}{\tau_{i}}}\rho_{j}^{\prime}(t^{\prime})\int_{t_{0}}^{t^{\prime}}d t^{\prime\prime}\frac{1}{\tau_{j}}e^{\frac{t^{\prime\prime}-t^{\prime}}{\tau_{j}}}\mathbf{z}_{\star}(t^{\prime\prime}) \tag{28}This expression can be approximately handled by extracting from the integral and introducing a surrogate variable , such that for recent times . This approximation effectively requires to vary slowly over time, which is better satisfied by smooth activation functions.
\overline{{\rho_{j}\overline{{\mathcal{Z}_{\star}^{\tau_{j}}}}}^{\tau_{i}}}(t)=\hat{\rho_{j}^{\prime}}(t)\overline{{\frac{\rho_{j}^{\prime}}{\rho_{j}^{\prime}(t)}}^{\tau_{i}}\overline{{\mathcal{Z}_{\star}^{\tau_{j}}}}(t) \tag{30}Then, according to Equation 11, we can convert the double exponential kernel into a summation:
(32)
(33)
In the same sense, we can derive a similar expression for the -4 hidden layer by introducing an additional summation over the k-th neuron in the additional layer.
To generalize this result to arbitrary depth, we define a path as synaptic chain passing from a initial neuron at layer to a next neuron at layer until we end a neuron in the output layer, . The path weight is defined as the product of all synaptic weights, the rate derivatives and the error entering the path ,
where i runs through the components of the path p up to the second last.
We next define the set of paths as set of paths that start at neuron in a hidden layer . By we denote the subset of paths starting at and containing along its path a neuron that low-pass filters the input with , i.e. . Using these path sets, we can rewrite the hierarchical summation over layers as a single summation over paths:
Thus, we obtain an approximation of the gradient for all neurons in a network of arbitrary depth, expressed in terms of paths. The remaining question is how to compute this efficiently, since the number of paths in grows exponentially , with running across all layers downstream of neuron .
Kernel gain by regrouping summation over
The first observation is that a single can participate in multiple paths, and this multiplicity becomes even larger when the same is shared within a layer. This suggests that maximizing the reuse of is beneficial. Therefore, we aim to group the coefficients with respect to by changing the order of summation. We define the set of all downstream time constants and rewrite Eq. (38) by
Three challenges arise when computing : 1. The number of paths in grows exponentially with increasing depth. 2. Using requires neurons to access distant downstream information, such as feedback error, synaptic weights, and activations. 3. Neurons must be aware of the precise downstream network structure, i.e., which neurons belong to a given . Since can be tracked locally in an online manner, it is crucial to determine how can be computed efficiently.
Layer-wise propagation of K
To address the above challenges, we note that can be propagated from layer to , and that this leads to an efficient computational scheme. In a feedforward architecture, each hidden neuron inherits and extends all paths from layer . Define as the path obtained from by removing neuron in layer and instead starting from neuron in layer . Then we have and
Since many paths share the same node in layer , we can rearrange the summation to first sum over neuron i in the next layer:
Note that must be defined for every and every neuron in the network to support this iterative computation. This equation can be written in matrix form as in Equation 4, which highlights its strong similarity to instantaneous gradient backpropagation.
T in other network architectures
Under a rigorous definition, when does not occur on any path through neuron . In a fully connected feedforward network, this applies only to time constants associated with other neurons in the same layer as and distinct from . Other architectures can also contain time constants that do not occur on any path through in different situations.
Residual networks [He et al., 2016] provide one example where skip connections can provide pathways with faster temporal responses than the residual pathway. To apply K-prop to a residual network, we propagate each kernel gain along both the skip and residual pathways, then sum the contributions at the merge point for each . The eligibility traces are unchanged. Along the skip pathway, set for time constants that occur only along the residual pathway, since they do not occur on any path through a neuron on the skip pathway.
More generally, consider a direct connection matrix from a source layer m to target layer n, with neuron j in layer m. Kernels contained by any other, more indirect paths between layers m and n (via other intermediate layers) will neither affect nor be affected by kernels along the direct connection from to , so their contribution to should be zero. More formally, let denote the set of time constants associated with layers whose indices satisfy , and let denote the set associated with layers whose indices satisfy . The transformation factor for this connection is
This allows us to create the transformation matrices efficiently before training without having to evaluate all possible paths.
Identical or zero
A special case arises when identical time constants appear across multiple layers. As discussed in the main text, this leads to singularities in the kernel decomposition. The singularity can be resolved either by grouping identical into a single basis component or by introducing infinitesimal perturbations. The grouping approach suggests replacing with higher-order kernels built from nested identical , such as the alpha function . The transformation factor and the propagation rule would then need to be modified accordingly to accommodate the new basis. While the grouping approach is theoretically valid, it introduces additional complexity in both the kernel representation and the propagation rules. To prevent grouping, we consider infinitesimal perturbations for simplicity and consistency with the main formulation.
Biologically, different time constants across layers are consistent with the hierarchical increase of time constants in the primate cortex [Murray et al., 2014]. Empirically, we do not observe any benefit from using identical or near-identical time constants across layers. In our experiments, time constants are chosen to be distinct across layers. We further verify that small perturbations (e.g., differences on the order of 0.1) do not affect numerical stability or performance.
Another special case is . This case is taken into account because for any neuron including . An instantaneous pathway with co-existence of neurons across layers does not cause any singularity, which collapses into simple backpropagation.
Practical implementation of K-prop
A few notes for practical implementation: 1. We define , so each layer can omit tracking the upstream components of . 2. A special case arises for the first leaky layer: its does not need to be included in (since there are no upstream neurons), and its nonlinearity does not affect the approximation. 3. propagation is only required when an external error signal is present (otherwise all ). In many tasks, including real world scenarios, error signals are sparse in time, allowing propagation to be triggered in an event-based manner. Altogether, in practical implementations, K-prop has both computational and memory costs on the order of half of . Under this efficient implementation, we can plot the cost comparison:
This reduction is well illustrated in the CartPole task, where K-prop reduces RTRL memory cost by and computational cost by , turning an otherwise intractable method into a practical one. Although BPTT is computationally efficient, it incurs a memory cost that scales with sequence length , as it requires storing the full trajectory. In comparison, K-prop reduces memory usage by up to , at the expense of a moderate () increase in computation relative to BPTT, demonstrating a classical space-time trade-off. Simulations are programmed in Python with PyTorch. Code is available through https://github.com/Baskin-LIU/Kernel-Propagation#

Figure 7: Compare the cost under multi-layer architecture. Left: Memory cost Middle: Computational cost per time step. GLE has memory and computational cost. All costs are computed in optimal layer-wise implementations instead of directly from scaling law. Right: Wall-clock release time and maximum memory allocation per epoch on the MNIST1D dataset, measured across an increasing number of leaky neurons in 5-layer networks. Experiments were conducted on a local machine equipped with an NVIDIA RTX 4060 Laptop GPU (8 GB). Overall running time reflects additional latency introduced by temporal loop overhead.
Algorithm 1 Kernel Propagation (K-prop) for Online Learning in Leaky Networks
1: Initialization: Network with layers, time constants , step size 2: Initialize weights randomly bias is treated as weight for 3: Construct transformation factor matrices 4: for each iteration / episode do 5: Reset 6: for each time step do 7: for layer to do 8: 9: 10: 11: 12: end for 13: if then 14: 15: for layer down to 1 do 16: 17: 18: 19: end for 20: end if 21: if Update weight then 22: for layer to do 23: 24: 25: end for 26: end if 27: end for 28: end for
B Experimental details
B.1 MNIST1D dataset
MNIST1D converts digit patterns analogous to the handwritten images in MNIST [LeCun et al., 2002] into one-dimensional temporal sequences. Each sample spans 360ms and contains a digit pattern of approximately 90ms embedded at a random temporal position, requiring both temporal

Figure 8: Learning curves on MNIST1D. Left: Mean, minimum, and maximum training loss. K-prop closely matches the loss achieved by BPTT, whereas OSTL converges to a substantially higher loss. Right: Mean test error for the Lk4 and Lk5 networks. Curves are smoothed for visualization.
localization and pattern recognition. Apart from increasing the number of time steps, we use the default sample-generation settings of Greydanus and Kobak [2024], including the default training/test split of 4000/1000 samples.
B.2 GSC dataset
The Google Speech Commands (GSC) dataset [Warden, 2018] comprises utterances lasting approximately 0.8-1s, recorded from multiple speakers. We evaluate the 20-class command-label subset, rather than the 12-class subset used in Ellenberger et al. [2025]. The selected commands are ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'nine', 'eight', 'yes', 'no', 'up', 'down', 'left', 'right', 'on', 'off', 'stop', 'go']. We use the default training, validation, and test splits provided by the PyTorch dataset. The original audio waveforms are converted into 80-channel log-Mel spectrograms and interpolated to 500 time frames, corresponding to a time step of approximately 2ms. We apply data augmentation based on SpecAugment [Park et al., 2019], including frequency masking over four channels, temporal shifts of up to 25ms, and temporal warping of up to 25ms.
B.3 Loss and Optimizer
In all experiments, we use with , making it behave similarly to a centered sigmoid. The learning rate decays exponentially in N-sum and follows a cosine annealing schedule (180 epochs total) in MNIST1D. All methods share the same learning rate scheduler. We use standard gradient descent for N-sum and the Adam optimizer for all other tasks. For Adam, are set to for BPTT and for K-prop to reduce momentum and encourage stronger averaging. We have verified that on BPTT yields worse performance, excluding the advantage brought by the optimizer setup.
The loss is defined online in all experiments. For N-sum, we use logistic output units with a mean-squared-error loss. For MNIST1D and GSC, cross-entropy loss is evaluated at every time step within a designated response period: the entire sequence for MNIST1D and the final 600ms for GSC. The total loss is therefore the sum over all answering time steps , .
We use a set of random seeds 0, 42, 428, 781, 3407, 115, 256, 666 for training.
B.4 Reinforcement learning tasks
For the Cartpole environment, we extend the termination boundaries to (from ) for pole angle and (from ) for cart position, allowing longer and more variable episode. To obtain more continuous inputs, observations from each environment step (20 ms) are interpolated by inserting 3 intermediate frames to obtain . Actor has two output neurons with softmax activation, producing the probability of Left and Right. The action choice at each step is sampled by a Bernoulli distribution with the possibility.
In LunarLander, the agent must smoothly land a spacecraft within a target zone using four discrete actions: do nothing, fire left engine, fire main engine, and fire right engine. The environment follows the default OpenAI Gymnasium configuration, except that the horizontal position is masked from the observation. Frame interpolation is not required, and actions are sampled in the same manner as in CartPole. The task is considered successfully learned when the recent average reward exceeds 205.
The reinforcement learning algorithm follows Bellec et al. [2020], which transforms TD(λ) . The critic propagates a scalar value signal, while the actor propagates a cross-entropy loss using the chosen action as the target label. The propagated gradient is first accumulated in an auxiliary term that decays with , and is then scaled by , where is the discount rate. is computed by a target critic network that is softly updated toward the critic with a factor of 0.05. We devices a special learning rate scheduler: After each episode, the learning rate is decreased by a factor of if the episodic reward is lower than the running average, and increased by +0.001 when episodic reward is larger. otherwise. Due to the inherent instability of actor-critic methods and the absence of batch learning, we clip both and the gradient norm to prevent value explosion.
B.5 Implementation configurations
| Model | dt (ms) | Leaky layers | L1 | L2 | L3 | L4 | L5 |
|---|---|---|---|---|---|---|---|
| N-sum | 0.25 | 3 | [0, 6.28] | 0.25, 3, 6 | 2, 4, 10 | ||
| Lk4 | 1 | 4 | [0, 10] | 3, 6 | 2, 7 | 2.5, 8 | |
| Lk5 | 1 | 5 | [0, 10] | 3, 6 | 2, 7 | 1, 8 | 2.5, 6.6 |
| GSC | 2 | 4 | [0, 40] | 3,12, 24 | 4, 16, 36 | 50, 400 | |
| Cartpole | 5 | 3 | [0, 40] | 5, 10 | 11, 24 | ||
| Lunarlander | 5 | 3 | [0, 20] | 5, 20 | 6, 10 |
Table 2: Network time constants (ms). Since the first layer does not need to be included in , it is preferable to use a wider range of time constants in the first layer and fewer in downstream layers. Accordingly, we assign the first-layer time constants to be evenly spaced in log space. In the other layers, we use two distinct values per layer, divided into two equal groups. We find that introducing more distinct values within a layer does not yield notable improvements, as long as both a group of “fast” and a group of “slow” neurons are present. Square brackets indicate the log-space range for L1.
The issues from online weight updating Section 5.3 can be mitigated either by using very small learning rates or by accumulating gradients over a time interval and applying periodic updates. We find the latter more effective, as it preserves learning speed while improving stability. This design choice is also consistent with biological observations, where long-term synaptic plasticity operates on slower timescales rather than instantaneously [Clopath et al., 2008, O'Donnell, 2023].
Meanwhile, our experiments indicates a necessity of "fast" neurons with much shorter than typical neuron membrane potential time constants. Such range of time constants could be achieved through modulation of the membrane conductance [Destexhe et al., 2003] or prospective coding [Haider et al., 2021, Senn et al., 2024, Brandt et al., 2024].
Both N-sum, Cartpole, and LunarLander simulations can run on CPU hardware within 20 minutes. MNIST1D and GSC benefits from GPU acceleration due to larger matrix operations. A mid-range GPU such as a GTX 4060 reduces MNIST1D training time from approximately 4 hours on CPU to around 1.5 hours. Additional experimental details are provided below.
| Model | Network width | Learning rate | Update Period | Batch size | |
|---|---|---|---|---|---|
| N-sum | 6-6-6-2 | 0.6 | 0.1 | 50 ms | 1 |
| Lk4 | 36-54-60-60-72-10 | 0.6 | 0.01 | 180 ms | 100 |
| Lk5 | 54-60-60-60-60-72-10 | 0.5 | 0.01 | 180 ms | 100 |
| GSC | 240-360-360-400-400-20 | 0.5 | 0.001 | 1s | 256 |
| Cartpole | 32-40-30-20-2 | 0.6 | 0.01 | 3 s | 1 |
| Lunarlander | 120-120-80-20-4 | 0.6 | 0.0002 | - | 1 |
Table 3: Network configurations

Figure 9: Further investigation of how the surrogate and nonlinearity affect K-prop approximation. (Left) Gradient cosine similarity check with BPTT like Fig. 3 on and another surrogate. The dissimilarity increased when bigger enhance nonlinearity. Here while Srg2 uses the neurons' local for and Srg3 uses as a summation of downstream layers' . Srg3 shows an advantage in early layers while slightly degrading layers close to the output. (Mid) Investigating the practical tradeoff between nonlinearity and K-prop gradient quality by tuning in MNIST1D, which shows the different sweet spots on Lk4 and Lk5. (Right) Comparing with networks with and trained with BPTT. Enhanced nonlinearity does not boost final performance.
B.6 Learning under noise
To investigate the sensitivity of K-prop to noise in its eligibility dynamics, we inject an independent Gaussian perturbation into each integration step of Eq. (5), with . We evaluate the Lk4 network on MNIST1D using noise levels . K-prop remains effective across a broad range of noise levels. Given that is bounded within , the results indicate that the perturbations must be large relative to the driving signal before learning performance deteriorates substantially.
We attribute this robustness to two properties of K-prop:
-
Independent Gaussian perturbations are smoothed by the leaky integration dynamics. When driven by white noise, these dynamics produce an Ornstein–Uhlenbeck-like process in which the gradient signal contributes to the drift.
-
The resulting noisy gradient estimates are further averaged over time through gradient accumulation and the optimizer dynamics.
These results provide preliminary evidence that K-prop can tolerate the noisy dynamics expected in physical computing substrates.
C Robustness of the approximation
C.1 Tuning the non-linearity
In terms of nonlinearity, the K-prop approximation works better for smoother and flatter functions such as logistic and tanh. Scaling down the input , slows down the variation and thus improves the approximation. However, a smaller reduces the expressiveness of the nonlinearity, which may degrade performance. Therefore, there is a trade-off between approximation quality and nonlinearity, and a “sweet spot” typically exists that yields the best performance. The sweet spot depends on the network depth and configuration, as illustrated in the MNIST1D experiment.
In Lk4, the test accuracy increases significantly from and reaches an optimum around . The performance slightly decreases as approaches 1, while still maintaining an accuracy of 94%, suggesting that K-prop preserves a usable gradient quality. In Lk5, the sweet spot shifts to . We therefore choose for Lk4 and for Lk5. Meanwhile, models with trained with BPTT do not show significant improvement, indicating that scaling is an effective hyperparameter that can be tuned for K-prop.
C.2 Surrogate choice
The choice of surrogate derivative has an important effect on K-prop performance. In all experiments, we use the low-pass-filtered surrogate which consistently improves performance over the instantaneous choice .
For all tasks except GSC, we set the filtering time constant to the local time constant of each neuron. For GSC, at each layer is instead set to the sum of the time constants in its downstream layers. This produces stronger smoothing in earlier layers, reflecting the cumulative temporal filtering along their longer paths to the output. The gradient-alignment analysis in Fig. 9 shows that this cumulative surrogate improves gradient quality in the earlier layers.