arXiv:2610.03149cs.NEOct 2026

Manuscript Offprint

arXiv:2610.03149

Learning While Inferring: Local and Parallel Learning for Edge SNNs across Sensing Modalities

Yanxun Zhang, Yifei Wang, Changze Lv, Jingwen Xu, Yiyang Lu, Xiaohua Wang, Di Yu, Xin Du, Xiaoqing Zheng

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Edge intelligence requires models to sense continuously in real time and to keep adapting on-device, all under tight compute, energy, and memory budgets. Although spiking neural networks (SNNs) enable efficient event-driven inference, standard surrogate-gradient backpropagation (BP) serializes updates and blocks ongoing inference. We investigate Bidirectional Spike-Based Distillation (BSD) as an on-device learning principle that lets edge SNNs learn while inferring. BSD couples a stimulus-driven forward network with an independent target-driven reverse network and aligns their intermediate representations through local objectives. Because the two pathways have disjoint computation graphs until alignment, forward inference, reverse inference, and stage-wise updates can run concurrently. On 25 benchmarks spanning the five sensing modalities of SOUL, BSD stays within 3.8 percentage points of matched BP baselines on average, while only its forward branch is needed at deployment. The learned representations also transfer well to few-shot class-incremental learning without replaying past data. By removing the dense floating-point backward chain, BSD reduces the projected training latency to 0.72×0.72\times and the estimated training energy to 0.36×0.36\times that of BP.

1 INTRODUCTION

Edge computing brings intelligent processing directly to the sensors and end users that generate continuous data streams (Shi et al., 2016; Zhou et al., 2019). A defining trait of such deployments—whether in visual monitoring, keyword spotting, or wearable activity tracking—is that devices must sense continuously and in real time; they cannot simply stop watching or listening. Meanwhile, the operational environment is inherently non-stationary: after initial deployment, devices frequently encounter novel situations, such as a new user's voice or an unfamiliar spatial layout (Zhou et al., 2019; Zhang et al., 2026), and must therefore keep updating their models (McMahan et al., 2017; Parisi et al., 2019). Standard gradient-based training, however, imposes a strict sequential dependency: every forward pass must be followed by a complete global backward pass, which blocks the device from processing new inputs during the update (Di Yu et al., 2024). Integrating continual adaptation into always-on sensors therefore requires the ability to learn while inferring, so that ongoing prediction and parameter updates overlap instead of blocking each other.

Spiking neural networks (SNNs) are particularly attractive for edge deployment because their sparse, event-driven communication and stateful temporal dynamics naturally suit sequential sensor streams (Roy et al., 2019; Davies et al., 2018). However, although SNNs greatly reduce overall inference cost on neuromorphic hardware, their standard training methods are at odds with concurrent learning. Surrogate-gradient backpropagation (BP) propagates continuous floating-point errors through every layer and time step (Neftci et al., 2019; Wu et al., 2018; Shrestha & Orchard, 2018). This

∗^{*}Equal Contribution. Correspondence to Xiaoqing Zheng (zhengxq@fudan.edu.cn).

Figure

Figure 1: Overview of edge learning with BSD. Left: heterogeneous edge sensing modalities. (a) BSD couples a stimulus-driven forward (inference) branch with a target-driven reverse (training) branch aligned by local ReCo objectives. (b) The training pipeline of BSD and BP. BSD executes inference, reverse inference, and local updates concurrently, unlike the strictly sequential BP pipeline below. (c) BSD achieves accuracy comparable to BP across the five modalities while requiring substantially less training energy and a shorter projected training time.

global dependency chain not only prevents inference during training but also incurs high latency and energy costs. Prior studies of on-device training show that naively ported, globally coupled training workloads are prohibitively slow and energy-intensive on battery-powered devices (Cai et al., 2020; Lin et al., 2022; Zhu et al., 2023). ANN-to-SNN conversion does not fundamentally avoid this problem either, since it adds a sequential two-stage pipeline that still relies on dense ANN computation (Deng et al., 2020). Sparse spiking inference alone therefore cannot remove the blocking behavior and resource bottleneck of standard gradient-based training workloads.

To enable learning while inferring, we studied Bidirectional Spike-Based Distillation (BSD) as a direct learning principle for edge SNNs. Originally proposed as a biologically plausible learning algorithm (Wang et al., 2026), BSD dispenses with the global error-backpropagation chain. Instead, it couples a stimulus-driven forward spiking network with an independent, target-driven reverse spiking network, and aligns their intermediate representations with local relaxed contrastive (ReCo) objectives (Lin et al., 2023) that provide layer-wise learning signals (Figure 1). Because the two branches run independently until their local losses are computed, neither depends on the other's intermediate outputs. This decoupling allows inference, reverse inference, and local updates to execute concurrently on parallel hardware, so that an edge SNN can learn while inferring.

Beyond concurrency, this independence also reduces training time and energy. By avoiding a floating-point error chain across all layers and time steps, BSD reduces the overall computational workload. Its layer-local gradient computations are mutually independent, which exposes parallelism and shortens the critical path of each training step. Moreover, replacing dense floating-point backpropagation with spike-based reverse inference substantially lowers the operation-level energy, bringing routine on-device adaptation within practical battery budgets.

Finally, the efficiency of local learning matters only if the learned representations remain strong. In dynamic edge scenarios, novel concepts typically arrive with only a few labels, and privacy constraints often preclude replaying historical data (Hersche et al., 2022). This setting is formalized as few-shot class-incremental learning (FSCIL) (Tao et al., 2020). Evaluating BSD under FSCIL, we show that even without global backpropagation, representations learned through local alignment remain discriminative and forward-compatible, supporting rapid adaptation to novel classes.

We evaluate BSD on the five edge-sensing modalities of the SOUL benchmark (Deng et al., 2025): vision, motion, acoustic, wireless, and neuromorphic sensing. Our contributions are:

• We propose using BSD to enable learning while inferring in edge SNNs, and show across multiple sensing modalities that its accuracy closely matches that of BP baselines.

• We characterize the resource advantages of BSD: branch-level and local-gradient parallelism yield a substantial projected reduction in training time, and spike-driven reverse inference yields a large reduction in operation-level training energy relative to BP.

• We show that BSD-trained representations support continual edge adaptation: In FSCIL, a BSD backbone learns novel classes from a few support examples through prototype-based adaptation.

References (55)