Manuscript Offprint
arXiv:2610.03149Learning While Inferring: Local and Parallel Learning for Edge SNNs across Sensing Modalities
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 and the estimated training energy to 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 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.
Training spiking neural networks. Because SNN efficiency depends on event sparsity, simulation latency, and hardware support, low inference cost does not by itself imply efficient training (Deng et al., 2020). Direct training with surrogate gradients assigns credit across layers and time steps (Neftci et al., 2019; Wu et al., 2018; Shrestha & Orchard, 2018), and later work reduces its latency and memory footprint (Meng et al., 2022; 2023). Training cost has been further reduced through temporal gradient re-weighting (Deng et al., 2022), online updates that avoid storing the history (Xiao et al., 2022; Bellec et al., 2020), and sparsity-promoting objectives (Kundu et al., 2021). However, these methods remain tied to global backpropagation, whose cross-layer error chain serializes execution and blocks ongoing inference. Decoupled learning methods break this dependency through feedback alignment, direct feedback alignment, local error signals, synthetic gradients, and greedy layer-wise objectives (Lillicrap et al., 2016; Nøkland, 2016; Mostafa et al., 2018; Jaderberg et al., 2017; Belilovsky et al., 2019). For SNNs, DECOLLE learns from local readouts (Kaiser et al., 2020) and EC-SNN splits deep SNNs across edge devices (Di Yu et al., 2024); beyond SNNs, Counter-Current Learning trains two opposing networks (Kao & Hariharan, 2024). BSD (Wang et al., 2026) follows this direction with two opposing spiking pathways that are aligned locally at matched stages. Yet whether BSD is viable across edge sensing modalities, whether it supports concurrent inference and learning, and how well its representations generalize under few-shot incremental learning have not been systematically studied.
3 PRELIMINARIES
3.1 SPIKING NEURAL NETWORKS
We adopt the standard discrete-time leaky integrate-and-fire (LIF) neuron model (Maass, 1997). Let and denote the membrane potential at time step t immediately before and after the spike-triggered reset, respectively. The neuron dynamics are governed by
(3) where is the incoming external synaptic current, is the membrane time constant, is the firing threshold, is the reset potential, and indicates the emitted discrete binary spike. Because the derivative of the Heaviside step function is zero almost everywhere, we use surrogate-gradient learning (Neftci et al., 2019) and replace it with an arctangent (ATan) surrogate derivative with scale in both the forward and reverse pathways. The explicit forms of and the ATan surrogate derivative are given in Appendix A.
3.2 FEW-SHOT CLASS-INCREMENTAL LEARNING
Few-shot class-incremental learning (FSCIL) models settings in which the label space expands after deployment under tight supervision and storage constraints (Tao et al., 2020). Learning starts with a base session over a class set , which is used to learn the initial representation. The system then encounters an ordered sequence of incremental sessions . Each incremental session introduces a class set that is disjoint from all previously observed classes ( for ) and provides only labeled support samples for each of its new classes ( -way -shot). After session , the model must classify test samples over all classes seen so far, , without retraining on data from earlier sessions. FSCIL therefore requires transferable base features, discriminative decision boundaries learned from very few samples, and resistance to catastrophic forgetting of earlier classes, mirroring edge deployments in which adaptation must proceed without replaying past data. After each session , we report the seen accuracy on the test set restricted to and, to expose any bias toward data-rich base classes over data-scarce novel ones, the harmonic mean of the per-class accuracies (H score):
Unlike the arithmetic mean, the harmonic mean is sensitive to poorly recognized classes, so a high H score requires balanced performance on both base and novel classes.
4 METHODS
4.1 GENERALIZED BSD FOR FEEDFORWARD MODELS
Following Wang et al. (2026), BSD decouples computation into two independent pathways: a stimulus-driven forward branch that predicts target labels from incoming sensory inputs, and a target-driven reverse branch that reconstructs inputs from spike-encoded labels. Because the two branches have separate computation graphs until alignment, forward inference never waits for the reverse branch, which enables concurrent inference and training.
Let and denote the binary spike tensors at the -th hidden stage of the forward and reverse branches at time step , respectively. The stage dynamics are
where and are parameterized transformations, and are continuous pre-LIF activations, and the LIF function turns them into binary spikes. Here, is the input sequence and is the spike-encoded target label. The two branches need not be symmetric, but they must expose the same ordered alignment stages .
The ReCo objective is computed on the continuous pre-LIF activations, which carry richer information than binary spikes. Let and denote the normalized features of sample in a batch of size . The stage objective is
(6) where weights the penalty on non-corresponding pairs. The task loss is applied only to the final forward readout. Following the layer-wise update rule of BSD, parameters of stage i are updated as
The local derivative treats the input to stage i and the counterpart activations from the opposite branch as constants, so gradients stay within each stage and never cross layers.
4.2 BSD FOR TEMPORAL MODELS
For a input sequence with one-hot target label , temporal BSD runs the forward and reverse recurrences in opposite temporal directions. The forward RNN processes chronologically with spiking recurrent transitions :
In contrast, the reverse RNN receives the constant one-hot target label at every step and runs sequentially backward in time from to 1:
After the reverse hidden states are restored to chronological order, the overall training loss aligns the hidden states at every time step:
where scalar hyperparameters and balance the alignment and task terms. Multi-layer spiking LSTMs follow the same construction and align only the hidden states of every layer and time step, not the cell states. To control temporal credit assignment, the recurrent states can further be detached every n steps, where n = 1 gives a strictly time-local update and n > 1 permits truncated backpropagation through time; details are given in Appendix B.1.
4.3 PROTOTYPE-BASED FSCIL
To test whether representations learned by local alignment can accommodate label-space growth after deployment, we adopt the FSCIL protocol of Section 3.2. BSD first trains the SNN on all base-session data; the backbone is then frozen, and its forward features at layer are used directly to build class prototypes. For temporal inputs, keeps its time dimension during the forward pass and is averaged over time only at extraction, . The prototype of class is the normalized mean feature of its support set :
In each incremental session , novel prototypes are constructed only from the support set of . Base prototypes stay fixed and the backbone is not retrained, which avoids both catastrophic forgetting and computationally expensive updates. The classification score fuses cosine similarities from a set of intermediate layers and adds a calibration bias:
(14) where is a pre-configured scalar that takes different values for base and novel classes, compensating for the systematic score gap between well-estimated base prototypes and data-scarce novel prototypes. The final discrete class prediction is obtained via
To reduce the variance caused by the small support set, test-time augmentation (TTA) averages the extracted features of a set of augmented views before scoring, i.e., in Eq. (14) is replaced by . The same view averaging is used for both prototype construction and query inference, and all BSD backbone parameters remain unchanged. On-device adaptation thus reduces to forward feature extraction, prototype storage, and optional view averaging, all of which suit resource-constrained edge devices.
Following the subspace alignment idea of SAFA-SNN (Zhang et al., 2026), we pull each novel prototype toward the subspace spanned by the base prototypes. Let be an orthonormal basis of this subspace obtained by QR decomposition, and let be the projection strength. The calibrated novel prototype is
This projection moves few-shot prototypes toward the region well covered by base classes, suppressing support-set noise while retaining their class-discriminative components.
4.4 TIME- AND ENERGY-AWARE BSD EXECUTION
A BSD training step consists of four phases (Figure 2): forward inference ( ), reverse-branch inference ( ), local loss and gradient computation ( ), and parameter update ( ). The decoupled structure of BSD provides two sources of concurrency. First, because the forward and reverse branches have independent computation graphs until the ReCo objectives are formed, forward and reverse inference can run concurrently, so the branch latency on the critical path is rather than . This property underlies learning while inferring: an edge system can keep inferring on incoming sensor data while target-driven learning signals are computed alongside. Second, because each stage is trained by its own local loss (Section 4.1), the gradient computation of stage i (taking time ) depends only on the representations recorded at alignment point i and need not wait for error signals from later layers. Likewise, the disjoint parameter blocks can be updated independently (taking time ). In contrast, BP must propagate errors sequentially through the full network depth, which serializes the backward workload and yields a step latency of .
With P parallel workers assigned to stage-level tasks, local gradient computations and parameter updates can run concurrently, and the ideal BSD step latency becomes
where and are the serial sums of the per-stage times, and is the number of parallel gradient tasks (the number of alignment points in feedforward networks; it scales with the sequence length in recurrent models). Realized speedups on edge hardware depend on the available parallel resources and on synchronization overhead. Nevertheless, in practical deployments where inference runs continuously and parameter updates arrive in small bursts, processing gradients asynchronously alongside forward inference can yield substantial efficiency gains.
Locality also reduces energy. BP propagates continuous floating-point errors through every layer and time step, which requires dense multiply-accumulate (MAC) operations amounting to roughly twice the dense forward workload. BSD replaces this backward chain with event-driven reverse inference, whose synaptic operations act on binary spikes and therefore reduce to accumulations (ACs), plus local gradient computations confined to each stage. This substitution is the main source of the training-energy savings quantified in Section 5.4.
Table 1: Test accuracy (%) of BP and BSD with matched forward architectures (mean std, three runs). Models are convolutional SNNs unless marked R (spiking RNN) or L (spiking LSTM).
| Dataset | BP | BSD (Ours) |
|---|---|---|
| Vision | ||
| MNIST | 99.56 ±0.14 | 99.44 ±0.03 |
| Fashion-MNIST | 92.68 ±0.42 | 91.05 ±0.20 |
| CIFAR-10 | 87.12 ±1.76 | 84.13 ±0.34 |
| CIFAR-100 | 57.75 ±0.35 | 53.48 ±0.22 |
| SVHN | 94.36 ±0.73 | 90.81 ±0.11 |
| Tiny-ImageNet | 41.07 ±0.53 | 35.34 ±0.23 |
| Motion | ||
| UCI-HAR | 92.69 ±0.01 | 90.94 ±0.29 |
| HHAR | 98.54 ±0.12 | 96.37 ±0.05 |
| MotionSense | 98.95 ±0.58 | 96.30 ±0.06 |
| Shoaib | 98.17 ±0.06 | 94.86 ±0.29 |
| Acoustic | ||
| ESC-50 | 65.42 ±1.48 | 66.08 ±1.45 |
| UrbanSound8K | 77.68 ±0.69 | 74.15 ±1.11 |
| GSC | 92.33 ±0.37 | 84.03 ±0.88 |
| GTZAN | 62.67 ±0.62 | 62.17 ±1.25 |
| Dataset | BP | BSD (Ours) |
|---|---|---|
| Wireless | ||
| UT-HAR | 98.63 ±0.19 | 94.04 ±0.84 |
| NTU-Fi-HumanID | 93.47 ±0.31 | 92.37 ±0.99 |
| NTU-HAR | 99.24 ±0.31 | 98.48 ±0.62 |
| Widar3 | 78.51 ±0.41 | 65.82 ±0.32 |
| ARIL | 90.05 ±0.61 | 84.89 ±0.88 |
| BullyDetect | 69.23 ±2.31 | 60.54 ±1.22 |
| AOPHand | 84.72 ±1.54 | 80.09 ±0.19 |
| MMActivity | 94.59 ±0.04 | 90.29 ±0.25 |
| Neuromorphic | ||
| CIFAR10-DVS | 68.58 ±0.19 | 60.57 ±0.19 |
| DVS-Gesture | 86.46 ±0.57 | 83.45 ±0.82 |
| SHD | 99.66 ±0.05 | 98.33 ±0.09 |
| Average (25) | 84.89 | 81.12 |
5 EXPERIMENTS
5.1 DATASET PROCESSING
We evaluate BSD on the SOUL edge-sensing benchmark (Deng et al., 2025), which provides a unified, reproducible protocol for 25 tasks spanning five sensing modalities: vision (image classification), motion (activity recognition from inertial signals), acoustic sensing (environmental sound, keyword, and music-genre classification), wireless sensing (activity, identity, and gesture recognition from Wi-Fi channel state information, radar, and point clouds), and neuromorphic sensing (event-based vision and audio). The individual datasets are listed in Table 1.
To feed these heterogeneous raw streams to SNNs, we preprocess them into tensors of regular shape and scale. Images are normalized to and lightly augmented with standard spatial transforms. Motion signals are segmented into fixed windows (typically 128 time steps) that keep an explicit time axis for recurrent processing. Audio waveforms are converted into single-channel log-mel spectrograms. Wireless measurements are standardized and reshaped into matrices that follow the native antenna layout or into voxel grids. Event streams are binned in time and rasterized into polarity-separated frame sequences. Each BSD model and its matched BP baseline consume exactly the same preprocessed tensors and train/test splits (including the base and incremental sessions in FSCIL), so the learning rule is the only experimental variable. Dataset details, tensor layouts, and modality-specific augmentations are given in Appendix C.
5.2 EXPERIMENTAL SETTINGS
We choose the model family according to the structure of each input. Convolutional SNNs process two-dimensional inputs (images, spectrograms, wireless tensors, and accumulated event frames), with the forward and reverse pathways exposing matched intermediate stages for alignment. Sequential tasks use recurrent SNNs: the BSD RNN for UCI-HAR and MotionSense, and a spiking LSTM with an LIF recurrent interface for HHAR, Shoaib, and Google Speech Commands (GSC). Every BP baseline uses the same forward architecture and input pipeline as its BSD counterpart. Architectural details are given in Appendix C.
To balance temporal fidelity and energy, we simulate time steps on all benchmarks, beyond which the original BSD study observed no clear accuracy gain (Wang et al., 2026), and use only for the event-camera datasets (CIFAR10-DVS and DVS-Gesture), whose streams span longer time windows. All LIF neurons use a membrane time constant , a default firing threshold of 0.8, and the ATan surrogate with . For the BSD objective, we set the ReCo penalty weight

Figure 2: One CIFAR-10 training step drawn to scale (Table 5). BP runs its phases in sequence and blocks inference; BSD overlaps its branches and splits local work over P = 6 workers.

Figure 3: BSD/BP training-cost ratios on ten representative benchmarks (two per modality): operation-level energy (left) and projected time under concurrent execution (right); values below 1 mean that BSD is cheaper.
to , the layer-wise loss weight to 25.0, and the task-loss weight to 1.0. Both pathways are trained with AdamW, a cosine learning-rate schedule, gradient-norm clipping at 0.3, and early stopping with a patience of 50 epochs. Dataset-specific settings, including batch sizes, learning rates, and weight decay, are listed in Table 3 (Appendix C). We evaluate classification accuracy, firing sparsity, training latency, and operation-level energy to profile BSD across modalities.
5.3 MAIN EXPERIMENTAL RESULTS
Table 1 compares BSD with the matched BP baselines on all 25 SOUL tasks. Across these datasets, BSD is competitive with BP, staying within 3.8 percentage points of it on average (81.12% vs. 84.89%). The gap is small on most tasks: it is within 3 points on 11 of the 25 benchmarks and within 5 points on 19. BSD tracks BP most closely where the baseline accuracy is high; for example, it exceeds 90% on all motion benchmarks. The remaining gap is concentrated on noisier or data-limited tasks such as Widar3, BullyDetect, and GSC.
The results on wireless tasks are partly affected by batch-size constraints. Because of the memory footprint of their large input tensors, several wireless benchmarks were trained with small mini-batches of 4 to 16 samples. As analyzed in Appendix E, the contrastive term of ReCo needs enough instance pairs per batch to shape the intermediate representations effectively. Since deployment uses only the forward spiking branch and BSD substantially reduces training latency and energy (Section 5.4), we regard this level of accuracy as a favorable trade-off for real-time edge adaptation.
5.4 TRAINING TIME AND ENERGY ANALYSIS
Figure 3 compares the training cost of BSD and BP on ten representative benchmarks, two per modality. For latency, we profile the four phases of Section 4.4 on a GPU and project with Eq. (17). For energy, we count the per-sample MACs on continuous values and ACs on binary spikes with operation hooks, and convert them to energy with the model in Appendix D.1. Per-phase timings, operation counts, and ratios for all 25 benchmarks are listed in Appendix D.
When executed serially, a BSD iteration takes longer than a BP iteration on every dataset except NTU-Fi-HumanID, owing to the additional reverse-branch computation and the intermediate alignment losses. With the concurrent schedule of Section 4.4 (Figure 2), however, the projected iteration latency falls below that of BP on 20 of the 25 benchmarks, with a geometric-mean ratio of . The speedup depends on the available parallelism factor . It is largest on neuromorphic and motion benchmarks (geometric means of and , respectively): long simulation windows make the BP backward pass expensive on the former, and long recurrent horizons supply many independent gradient tasks on the latter. Conversely, shallow wireless models offer fewer concurrent stages; together with SVHN, which is essentially at parity (), they account for the five benchmarks whose projected ratio exceeds 1. These projections assume ideal concurrency (Section 4.4).
The energy advantage is even more consistent. The training-energy ratio is below 1 on all 25 datasets, with a geometric mean of . The reductions are largest in the wireless and neuromorphic domains (geometric means of and , respectively), where high-dimensional inputs and sparse temporal firing maximize the benefit of spike-driven reverse execution. The margin is narrower on the recurrent motion benchmarks (), where continuous recurrent state updates, including the LSTM gates, account for a large share of the arithmetic.
5.5 FSCIL PERFORMANCE
We next evaluate whether representations learned via local bidirectional distillation transfer effectively to FSCIL on CIFAR-100. Following Section 4.3, the base session comprises 75 classes and is followed by five incremental sessions, each introducing 5 novel classes with 5 labeled support samples per class (5-way 5-shot). The base model is trained for 50 epochs to limit overfitting; subsequently, the forward backbone is frozen, and emerging classes are integrated exclusively via metric prototype construction without historical data replay (details in Appendix C.4). For comparison, an identical SNN is trained end-to-end with backpropagation. We report both cumulative seen accuracy and the harmonic mean (H score) of per-class disparity between base and novel categories.

Figure 4: FSCIL on CIFAR-100: seen accuracy (left) and H score (right) per session, mean ± std over three runs.
accuracies, where the latter penalizes performance
Figure 4 plots both metrics across all sessions. BSD closely tracks the backpropagation baseline throughout. In the final session, BSD attains a seen accuracy of versus for backpropagation, alongside an score of versus . Notably, BSD achieves slightly higher scores in the first two incremental sessions, indicating that local contrastive alignment maintains well-separated feature clusters. These results confirm that decentralized local training establishes robust, forward-compatible representations capable of continual post-deployment class expansion.
5.6 ABLATION STUDIES
We ablate the three key components of our prototype adaptation framework on CIFAR-100 (75 base classes, 5-way 5-shot): test-time view averaging (prototype TTA), multi-layer feature fusion, and base-subspace projection. All variants share the identical BSD-trained backbone and evaluation protocol.
As Table 2 shows, removing any component degrades performance across both metrics. Multi-layer fusion has the largest impact on seen accuracy, which drops by 3.7 percentage points when restricted to the penultimate layer alone, confirming that intermediate spiking representations encode complementary semantic hierarchies. Prototype TTA
Table 2: Ablation of the adaptation components in the final FSCIL session (% , mean ± std over three runs).
| Variant | Seen Acc. | H Score |
|---|---|---|
| Full pipeline | 42.18 ±0.60 | 32.54 ±0.36 |
| w/o prototype TTA | 40.33 ±0.31 | 29.14 ±0.51 |
| w/o multi-layer fusion | 38.47 ±0.12 | 31.86 ±0.28 |
| w/o subspace proj. | 41.63 ±0.45 | 32.26 ±0.29 |
contributes most to the H score (+3.4 points) by mitigating sampling noise in scarce five-shot support sets. Finally, base-subspace projection provides consistent regularization by anchoring novel prototypes toward the subspace of established base features. Operating without backbone retraining, these mechanisms provide an effective, training-free adaptation strategy for edge deployment.
6 CONCLUSION
This work studies BSD as an on-device learning principle for edge SNNs. To avoid the blocking behavior and resource cost of surrogate-gradient BP, BSD splits computation into a stimulus-driven forward branch and a target-driven reverse branch aligned by local objectives. With disjoint computation graphs until alignment, the two branches and their local updates can run concurrently, letting edge devices learn while inferring. On 25 benchmarks spanning five edge sensing modalities, BSD stays within 3.8 percentage points of matched BP baselines on average while deploying only the forward branch, and its representations transfer well to 5-shot class-incremental learning. Branch-and stage-level parallelism reduces the projected step latency to that of BP, and the estimated training energy is lower on all 25 datasets (geometric mean ). These results position local bidirectional distillation as a promising foundation for always-on edge learning.
REPRODUCIBILITY STATEMENT
The authors have made extensive efforts to ensure the reproducibility of the empirical results reported in this paper. First, detailed dataset characteristics and preprocessing procedures are documented in Appendix C. Second, comprehensive implementation details, covering network architectures, hyperparameter settings, training procedures, and evaluation protocols, are provided in Appendices C and D. All accuracy results are averaged over three runs, and the source code, configurations, and plotting scripts will be released upon publication.
ETHICS STATEMENT
Our experiments use public benchmark datasets spanning human activity, identity, audio, wireless, and event-camera sensing; each dataset was collected under the protocols of its original study, and this work collects no new human data. Wireless and camera-free sensing can enable monitoring or identification without a subject's awareness, so applications built on such models should be deployed only with informed consent and appropriate access control. On-device processing reduces the need to transmit raw sensor data, but does not by itself guarantee privacy or prevent misuse. Finally, our efficiency figures are operation-level estimates and projections rather than measurements on specific hardware, and should be interpreted as such.
REFERENCES
Eugene Belilovsky, Michael Eickenberg, and Edouard Oyallon. Greedy layerwise learning can scale to imagenet. In International conference on machine learning, pp. 583–593. PMLR, 2019.
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.
Han Cai, Chuang Gan, Ligeng Zhu, and Song Han. Tinytl: Reduce memory, not parameters for efficient on-device learning. Advances in Neural Information Processing Systems, 33:11285–11297, 2020.
Ali Cheraghian, Shafin Rahman, Pengfei Fang, Soumava Kumar Roy, Lars Petersson, and Mehrtash Harandi. Semantic-aware knowledge distillation for few-shot class-incremental learning. 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 2534–2543, 2021. URL https://api.semanticscholar.org/CorpusID:232147521.
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, 38(1):82–99, 2018.
Lei Deng, Yujie Wu, Xing Hu, Ling Liang, Yufei Ding, Guoqi Li, Guangshe Zhao, Peng Li, and Yuan Xie. Rethinking the performance comparison between snns and anns. Neural networks, 121:294–307, 2020.
Shikuang Deng, Yuhang Li, Shanghang Zhang, and Shi Gu. Temporal efficient training of spiking neural network via gradient re-weighting. arXiv preprint arXiv:2202.11946, 2022.
Shuiguang Deng, Di Yu, Changze Lv, Xin Du, Linshan Jiang, Xiaofan Zhao, Wentao Tong, Xiaoqing Zheng, Weijia Fang, Peng Zhao, et al. Edge intelligence with spiking neural networks. arXiv preprint arXiv:2507.14069, 2025.
Xin Du Di Yu, Linshan Jiang, Wentao Tong, and Shuiguang Deng. Ec-snn: Splitting deep spiking neural networks for edge devices. In Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence, pp. 5389–5397, 2024.
Xin Du, Di Yu, Changze Lv, Yuqi Zhang, Zhuo Chen, Wentao Tong, Helin Zheng, Weisong Zhang, Xiaofan Zhao, Linshan Jiang, et al. Benchmarking spiking neural networks across sensing modalities on edge devices. arXiv preprint arXiv:2609.00026, 2026.
Song Han, Xingyu Liu, Huizi Mao, Jing Pu, Ardavan Pedram, Mark A Horowitz, and William J Dally. Eie: Efficient inference engine on compressed deep neural network. ACM SIGARCH Computer Architecture News, 44(3):243–254, 2016.
Michael Hersche, Geethan Karunaratne, Giovanni Cherubini, Luca Benini, Abu Sebastian, and Abbas Rahimi. Constrained few-shot class-incremental learning. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 9047–9057. IEEE, 2022.
Mark Horowitz. 1.1 computing’s energy problem (and what we can do about it). In 2014 IEEE international solid-state circuits conference digest of technical papers (ISSCC), pp. 10–14. Ieee, 2014.
Max Jaderberg, Wojciech Marian Czarnecki, Simon Osindero, Oriol Vinyals, Alex Graves, David Silver, and Koray Kavukcuoglu. Decoupled neural interfaces using synthetic gradients. In International conference on machine learning, pp. 1627–1635. PMLR, 2017.
Jacques Kaiser, Hesham Mostafa, and Emre Neftci. Synaptic plasticity dynamics for deep continuous local learning (decolle). Frontiers in Neuroscience, 14:424, 2020.
Chia-Hsiang Kao and Bharath Hariharan. Counter-current learning: A biologically plausible dual network approach for deep learning. Advances in Neural Information Processing Systems, 37:70905–70925, 2024.
Souvik Kundu, Gourav Datta, Massoud Pedram, and Peter A Beerel. Spike-thrift: Towards energy-efficient deep spiking neural networks by limiting spiking activity via attention-guided compression. In 2021 IEEE Winter Conference on Applications of Computer Vision (WACV), pp. 3952–3961. IEEE, 2021.
Timothy P Lillicrap, Daniel Cownden, Douglas B Tweed, and Colin J Akerman. Random synaptic feedback weights support error backpropagation for deep learning. Nature communications, 7(1):13276, 2016.
Ji Lin, Wei-Ming Chen, Yujun Lin, Chuang Gan, Song Han, et al. Mcunet: Tiny deep learning on iot devices. Advances in neural information processing systems, 33:11711–11722, 2020.
Ji Lin, Ligeng Zhu, Wei-Ming Chen, Wei-Chen Wang, Chuang Gan, and Song Han. On-device training under 256kb memory. Advances in Neural Information Processing Systems, 35:22941–22954, 2022.
Zudi Lin, Erhan Bas, Kunwar Yashraj Singh, Gurumurthy Swaminathan, and Rahul Bhotika. Relaxing contrastiveness in multimodal representation learning. In 2023 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), pp. 2226–2235. IEEE, 2023.
Wolfgang Maass. Networks of spiking neurons: the third generation of neural network models. Neural networks, 10(9):1659–1671, 1997.
Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and statistics, pp. 1273–1282. Pmlr, 2017.
Qingyan Meng, Mingqing Xiao, Shen Yan, Yisen Wang, Zhouchen Lin, and Zhi-Quan Luo. Training high-performance low-latency spiking neural networks by differentiation on spike representation. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 12434–12443. IEEE, 2022.
Qingyan Meng, Mingqing Xiao, Shen Yan, Yisen Wang, Zhouchen Lin, and Zhi-Quan Luo. Towards memory-and time-efficient backpropagation for training spiking neural networks. In 2023 IEEE/CVF International Conference on Computer Vision (ICCV), pp. 6143–6153. IEEE, 2023.
Hesham Mostafa, Vishwajith Ramesh, and Gert Cauwenberghs. Deep supervised learning using local errors. Frontiers in neuroscience, 12:608, 2018.
Emre O Neftci, Hesham Mostafa, and Friedemann Zenke. Surrogate gradient learning in spiking neural networks: Bringing the power of gradient-based optimization to spiking neural networks. IEEE Signal Processing Magazine, 36(6):51–63, 2019.
Arild Nøkland. Direct feedback alignment provides learning in deep neural networks. Advances in neural information processing systems, 29, 2016.
German I Parisi, Ronald Kemker, Jose L Part, Christopher Kanan, and Stefan Wermter. Continual lifelong learning with neural networks: A review. Neural networks, 113:54–71, 2019.
Kaushik Roy, Akhilesh Jaiswal, and Priyadarshini Panda. Towards spike-based machine intelligence with neuromorphic computing. Nature, 575(7784):607–617, 2019.
Weisong Shi, Jie Cao, Quan Zhang, Youhuizi Li, and Lanyu Xu. Edge computing: Vision and challenges. IEEE internet of things journal, 3(5):637–646, 2016.
Sumit B Shrestha and Garrick Orchard. Slayer: Spike layer error reassignment in time. Advances in neural information processing systems, 31, 2018.
Jake Snell, Kevin Swersky, and Richard Zemel. Prototypical networks for few-shot learning. Advances in neural information processing systems, 30, 2017.
Xiaoyu Tao, Xiaopeng Hong, Xinyuan Chang, Songlin Dong, Xing Wei, and Yihong Gong. Few-shot class-incremental learning. In 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 12180–12189. IEEE, 2020.
Yifei Wang, Changze Lv, Yiyang Lu, Jingwen Xu, Xiaohua Wang, Di Yu, Xin Du, Xuanjing Huang, and Xiaoqing Zheng. Biologically plausible learning via bidirectional spike-based distillation. In International Conference on Learning Representations, volume 2026, pp. 25662–25692, 2026.
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.
Mingqing Xiao, Qingyan Meng, Zongpeng Zhang, Di He, and Zhouchen Lin. Online training through time for spiking neural networks. Advances in neural information processing systems, 35:20717–20730, 2022.
Chi Zhang, Nan Song, Guosheng Lin, Yun Zheng, Pan Pan, and Yinghui Xu. Few-shot incremental learning with continually evolved classifiers. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 12450–12459. IEEE, 2021.
Huijing Zhang, Muyang Cao, Linshan Jiang, Xin Du, Di Yu, Changze Lv, and Shuiguang Deng. Safa-snn: Sparsity-aware on-device few-shot class-incremental learning with fast-adaptive structure of spiking neural network. In International Conference on Learning Representations, volume 2026, pp. 89023–89050, 2026.
Da-Wei Zhou, Fu-Yun Wang, Han-Jia Ye, Liang Ma, Shiliang Pu, and De-Chuan Zhan. Forward compatible few-shot class-incremental learning. In 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 9036–9046. IEEE, 2022.
Zhi Zhou, Xu Chen, En Li, Liekang Zeng, Ke Luo, and Junshan Zhang. Edge intelligence: Paving the last mile of artificial intelligence with edge computing. Proceedings of the IEEE, 107(8):1738–1762, 2019.
Ligeng Zhu, Lanxiang Hu, Ji Lin, Wei-Ming Chen, Wei-Chen Wang, Chuang Gan, and Song Han. Pockengine: Sparse and efficient fine-tuning in a pocket. In Proceedings of the 56th Annual IEEE/ACM International Symposium on Microarchitecture, pp. 1381–1394, 2023.
A ADDITIONAL PRELIMINARIES
A.1 SURROGATE GRADIENT AND HEAVISIDE STEP FUNCTION
In Section 3, the discrete firing activity of the LIF neuron is determined by the Heaviside step function , defined as
The discontinuous thresholding step results in a derivative that is zero almost everywhere and undefined at , preventing informative gradient backpropagation through discrete spike events.
Surrogate gradient learning circumvents this issue by introducing a smooth approximation only during backward gradient computation (Neftci et al., 2019; Wu et al., 2018; Shrestha & Orchard, 2018). In our experiments, we adopt the arctangent (ATan) surrogate. Its smooth primitive function and the corresponding surrogate derivative are
where controls the steepness of the derivative around the firing threshold. We use for all models. Activations remain strictly binary during the forward simulation, while non-zero surrogate gradients arise near .
B DETAILED BSD OBJECTIVES AND PSEUDOCODE
B.1 TEMPORAL BSD WITH SPIKING LSTMs
Figure 5 illustrates the temporal construction of Section 4.2. For an M-layer spiking LSTM with hidden states and cell states , the reverse LSTM likewise traverses the sequence backward in time, and ReCo alignment is applied to the hidden states and of the two LSTMs at every layer and time step:
Cell states act as internal memory and are not aligned.

Figure 5: Temporal BSD (Section 4.2) unrolled over time. The forward RNN runs from t = 1 to T on the inputs , the reverse RNN runs from t = T to 1 on the constant target , and ReCo aligns their hidden states and at every step; the task loss acts only on the time-averaged forward readout. Detaching the recurrent states every n steps limits temporal credit assignment to segments of length n.
To control temporal credit assignment, we split each sequence into segments of length n and detach the recurrent states only at segment boundaries,
(22) so that gradients propagate only within a segment. Setting gives a strictly time-local update, whereas permits truncated backpropagation through time within each segment without changing the alignment points.
B.2 PSEUDOCODE
Algorithms 1 and 2 give the complete BSD training step for feedforward (CNN) and temporal (RNN/LSTM) models, respectively. In both cases the two branches run concurrently, every aligned representation is detached after being recorded so that gradients never cross an alignment point, and the per-stage gradient tasks and parameter updates are independent and therefore parallelizable.
Algorithm 1 BSD training step for feedforward (CNN) models
Require: minibatch ; forward blocks with parameters ; backward blocks with parameters ; alignment points
1: (spike-encoded input); (spike-encoded label)
run concurrently:
2: forward: for do
; if : record and ; else
3: backward: for do
; if : record and ; else
4: ;
5: in parallel for :
6: Synchronize, then in parallel update every disjoint parameter block with its gradient
Algorithm 2 BSD training step for temporal (RNN/LSTM) models
Require: sequence ; label ; forward and backward recurrent cells , (RNN or LSTM) with parameters , ; segment length
1: ;
run concurrently:
2: forward: for do
; if :
3: backward: for do
; if :
4: Restore to chronological order
5: ;
6: in parallel for (and each layer ):
7: Synchronize and reduce gradients of the time-shared weights: ;
8: Update the disjoint parameter blocks (layers, branches) in parallel
LSTM cells additionally carry a cell state , which is detached at segment boundaries together with but never serves as a ReCo alignment target.
C DATASET AND TRAINING DETAILS
C.1 DATASET COMPOSITION AND PREPROCESSING
Vision. MNIST and Fashion-MNIST are loaded through torchvision and resized to single-channel images. CIFAR-10, CIFAR-100, and SVHN retain their native RGB format with the standard train/test partitions, and Tiny-ImageNet is used at its native resolution. All image tensors are normalized to , and light standard augmentation is applied during training.
Motion. UCI-HAR provides nine-channel inertial signals segmented into windows of length 128 with the official train/test split, yielding [128, 9] sequences for the recurrent models. HHAR uses accelerometer and gyroscope readings from the official CSV logs; records without labels are discarded, windows of length 128 and stride 64 are extracted, and one held-out user forms the test set, giving [128, 3] sequences. MotionSense provides twelve device-motion features per step and uses the same windowing, with subjects 21–24 forming the test set ([128, 12]). Shoaib is windowed identically, with participants 9 and 10 held out for testing.
Acoustic and Speech. ESC-50 (50 environmental sound classes), UrbanSound8K (urban sound events, official folds 9 and 10 held out for testing), GSC (keyword spotting), and GTZAN (music genres) are stored as waveform manifests at the preprocessing stage; each waveform is converted to a single-channel log-mel spectrogram when loaded, so all acoustic tasks share a common image-like input format.
Wireless. UT-HAR channel state information (CSI) samples are reshaped to [1, 250, 90], with the training and validation partitions merged for training. NTU-Fi-HumanID and NTU-HAR compress and rearrange the raw CSI amplitude into [3, 114, 500] tensors with fixed standardization. Widar3 standardizes the CSI features and reshapes them to [22, 32, 32]. ARIL uses the amplitude field only, giving [1, 52, 192] matrices. BullyDetect reshapes the CSI stream to and interpolates it to [3, 32, 500]. AOPHand reads per-gesture CSV feature sequences with an 80/20 per-class split and pads them to a common two-dimensional size (or keeps the [T, F] sequence for the recurrent variant). MMAActivity voxelizes the RadHAR point clouds into volumes over 60-frame windows.
Neuromorphic Sensing. CIFAR10-DVS events are accumulated into ten frames at resolution with two polarity channels. DVS-Gesture follows the official trial split and is accumulated into ten frames at . SHD spike trains are rasterized from the official HDF5 files into [1, 64, 64] tensors.
C.2 MODEL ARCHITECTURES
Feedforward models. Image, spectrogram, event-frame, and matrix-shaped inputs are processed by a convolutional SNN whose blocks comprise convolution, optional batch normalization, LIF dynamics, and pooling, followed by flattening and a linear readout. Channel widths, pooling locations, and kernel sizes are adapted to each input resolution (e.g., channels [128, 256, 256] for CIFAR10-DVS). The BSD reverse branch mirrors the forward block structure with nearest-neighbor unpooling and reverse convolutions, and the two branches are aligned at every block output.
Temporal models. Sequence tasks use the BSD RNN (a single recurrent layer with independent forward input/hidden/readout weights and reverse output/hidden/input weights), the spiking LSTM (whose analog hidden state passes through an LIF neuron so that the recurrent signal is spiking), or a GRU variant, all sharing the same forward/reverse alignment interface. Hidden states are aligned at every time step between the two branches, as defined in Section 4.2 and Appendix B.1.
BSD and BP correspondence. Every BP baseline reuses exactly the forward architecture of its BSD counterpart—same layer widths, kernels, pooling, and readout—and is trained end-to-end with the same surrogate gradient. BSD adds the label-driven reverse branch, which is used only during training and discarded at deployment, so the comparison isolates the effect of the learning rule.
C.3 TRAINING CONFIGURATIONS
Common training settings. Unless stated otherwise, all models are trained with AdamW ( , , ), a cosine learning-rate schedule with a 30-epoch warm-up over a 120-epoch horizon, at most 200 epochs, and early stopping with patience 50; gradients of both parameter sets are clipped to a maximum norm of 0.3. SNNs simulate time steps ( for CIFAR10-DVS and DVS-Gesture) with membrane constant , firing threshold 0.8, hard reset, and the ATan surrogate with slope . BSD uses ReCo penalty weight , layer-loss weight 25.0, task-loss weight 1.0, and numerical constant ; batch normalization has affine parameters in both branches. Image inputs are normalized to with standard light augmentation; audio and wireless experiments keep the SOUL augmentations; neuromorphic inputs additionally use event drop (), temporal drop (ratio 0.1), and spatial shifts of up to 2 pixels. Every configuration is run with three seeds.
Dataset-specific settings. Table 3 reports the model family, batch size, learning rate, weight decay, and firing thresholds for each dataset. The forward and reverse parameter sets always share the same optimizer settings (learning rate, weight decay, and gradient clipping); only the firing threshold differs between the two branches, on two datasets.
Table 3: Per-dataset training configurations. and are the firing thresholds of the forward and reverse branches. Rows marked follow the configurations of the original BSD paper (Wang et al., 2026).
| Modality | Dataset | Model | Batch size | Learning rate | Weight decay | |
|---|---|---|---|---|---|---|
| Vision | CNN | 128 | 0.8/0.8 | |||
| Fashion-MNIST | CNN | 128 | 0.8/0.8 | |||
| CIFAR-10 | CNN | 128 | 0.8/0.8 | |||
| CIFAR-100 | CNN | 128 | 0.8/0.8 | |||
| SVHN | CNN | 128 | 0.8/0.8 | |||
| Tiny-ImageNet | CNN | 128 | 0.8/0.8 | |||
| Motion | UCI-HAR | RNN | 128 | 0.8/0.8 | ||
| HHAR | Spiking LSTM | 128 | 0.8/0.8 | |||
| MotionSense | RNN | 128 | 0.8/0.8 | |||
| Shoaib | Spiking LSTM | 128 | 0.8/0.8 | |||
| Acoustic | ESC-50 | CNN | 32 | 0.8/0.8 | ||
| UrbanSound8K | CNN | 40 | 0.8/0.8 | |||
| GSC | Spiking LSTM | 128 | 0.6/0.6 | |||
| GTZAN | CNN | 32 | 0.8/0.8 | |||
| Wireless | UT-HAR | CNN | 14 | 0.8/0.8 | ||
| NTU-Fi-HumanID | CNN | 11 | 0.8/0.8 | |||
| NTU-HAR | CNN | 4 | 0.8/0.8 | |||
| Widar3 | CNN | 32 | 0.8/0.8 | |||
| ARIL | CNN | 32 | 0.8/0.8 | |||
| BullyDetect | CNN | 16 | 0.8/0.8 | |||
| AOPHand | WiFi-CNN | 128 | 0.6/0.8 | |||
| MMActivity | WiFi-CNN | 64 | 0.8/0.8 | |||
| Neuromorphic | CIFAR10-DVS | CNN | 25 | 0.8/0.8 | ||
| DVS-Gesture | CNN | 12 | 0.6/0.8 | |||
| SHD | CNN | 50 | 0.8/0.8 |
C.4 FSCIL CONFIGURATION
FSCIL experiments use CIFAR-100 with a fixed class order (split seed 2025): session 0 contains 75 base classes, and each of the five incremental sessions introduces 5 novel classes (5-way) with 5 labeled support examples per class (5-shot), sampled with support seed 2025. The base session trains the BSD CNN for 50 epochs on all base-class training samples; afterwards the forward backbone is frozen. Prototypes are compared with cosine similarity, and the scores of two feature levels ( and ) are fused with weights 0.85 and 0.15. Novel prototypes are built from view-averaged support features (the original and horizontally flipped views), optionally evaluated with the same view averaging at test time, and projected toward the subspace spanned by the base prototypes with strength , following the prototype-space projection of SAFA-SNN (Zhang et al., 2026). Figure 6 summarizes the resulting pipeline.
adaptation in incremental session s (5-way 5-shot, on device)

Figure 6: Prototype-based FSCIL on the frozen BSD forward branch (Section 4.3). In each incremental session, novel prototypes are built from view-averaged support features at two layers and projected toward the subspace of the base prototypes; a query is classified by its fused cosine scores against all prototypes. Numbered markers indicate the components ablated in Table 2.
D TRAINING COST MEASUREMENTS
D.1 ENERGY COUNTING RULES
Our energy estimates distinguish two classes of arithmetic. When the input of a layer is a binary spike train, each synaptic multiplication degenerates into an accumulation and is counted as one AC; when the input is continuous-valued (e.g., raw sensor inputs or pre-LIF activations), the operation is counted as one multiply-accumulate (MAC). Following the 45 nm operation-level model of Horowitz (2014), we assign pJ and pJ. All SNN time steps are included through the multi-step tensor shapes. For spike-driven layers, we measure the mean firing rate of the actual binary input on the recorded batch and count ACs as the layer's dense synaptic operations scaled by this rate, so no firing-rate assumption is needed.
For BP, we count the forward pass layer by layer using operation hooks on every convolution, linear, and recurrent-cell call. The backward pass is estimated as twice the forward dense workload, accounting for the weight gradient and the input gradient of every layer; this global backward chain is the dominant training cost of BP.
For BSD, the forward and reverse branches are each counted with the same rule. The reverse branch is driven by the spike-encoded label, so most of its operations are ACs, which is one source of BSD's energy advantage. Because each hidden level is updated only by its own local objective, the backward computation of a level stays within that level and is counted once per level; there is no cross-layer error chain. The ReCo objective adds the cost of its similarity matrices: at each alignment point we count MACs for the forward similarities, with B the batch size and D the representation dimension, and twice that for their backward pass.
Summing the two operation classes over all counted components gives the per-sample energy of one training step,
which is the energy model used in Section 5.4; Table 4 reports the resulting and for every dataset. These estimates are analytic, operation-level quantities: the constants come from a 45 nm literature model rather than measurements on a specific device, so the values should be read as a hardware-independent proxy for training cost, not as measured energy on edge or neuromorphic hardware.
D.2 PER-DATASET MEASUREMENTS
Tables 4 and 5 report the complete per-dataset measurements behind Figure 3. Table 4 lists operation counts and estimated training energy. MACs are multiply-accumulate operations on continuous-valued activations; ACs are accumulation-only operations on binary spike inputs; both are counted per sample over a full training step (forward, reverse, and local gradient computations; BP backward is counted as twice the forward dense workload). Energy follows the operation-level model of Horowitz (2014) (4.6 pJ per MAC and 0.9 pJ per AC). Table 5 lists the profiled stage times per training step (forward , reverse , gradient computation , parameter update ) together with the optimized BSD time , where is the gradient-parallelism factor (number of layers plus one for convolutional models, sequence length for recurrent models). Times are single-run wall-clock measurements in milliseconds. Energy values are given with three significant figures. Figure 2 in Section 5.4 draws one CIFAR-10 step of this schedule to scale.
A few exceptions are visible: five datasets (SVHN, BullyDetect, Widar3, AOPHand, and MMAActivity) have optimized time ratios above one, reaching 2.11 on BullyDetect. Apart from SVHN, which is essentially at parity (1.004), these are shallow or small-scale models that offer few parallel gradient tasks (small ), so the projected schedule cannot amortize the additional local losses. These exceptions should be read in context: the energy ratio is below one on all 25 datasets, the time ratio exceeds one on only 5 of 25, and the reductions achieved elsewhere are much larger than these increases (down to for energy and for time on NTU-Fi-HumanID). Because the ratios are multiplicative quantities, we summarize them with the geometric mean, for energy and for optimized time across all datasets, so BSD remains clearly cheaper than BP in aggregate. We further note that our models use generic multi-layer CNN, LSTM, and RNN architectures whose hyperparameters were tuned for accuracy rather than training cost. For the datasets with ratios above one, adjusting the architecture and efficiency-related hyperparameters (e.g., layer widths, alignment-point placement, or segment length) offers clear room to reduce the local-gradient overhead, which we leave to future work. Further limitations are discussed in Appendix F.
Table 4: Per-sample operation counts and estimated training energy of the matched BP and BSD models. MACs and ACs are given in millions and energy in mJ, all with three significant figures.
| Modality | Dataset | MACs () | ACs () | Energy (mJ) | Ratio | |||
|---|---|---|---|---|---|---|---|---|
| BP | BSD | BP | BSD | BP | BSD | BSD/BP | ||
| Vision | MNIST | 106 | 27.2 | 45.9 | 63.8 | 0.528 | 0.182 | 0.345 |
| Fashion-MNIST | 122 | 27.2 | 53.9 | 76.1 | 0.609 | 0.194 | 0.318 | |
| CIFAR-10 | 158 | 36.8 | 57.9 | 78.2 | 0.780 | 0.240 | 0.307 | |
| CIFAR-100 | 157 | 36.8 | 57.4 | 76.0 | 0.775 | 0.238 | 0.307 | |
| SVHN | 150 | 36.8 | 53.8 | 70.6 | 0.738 | 0.233 | 0.315 | |
| Tiny-ImageNet | 650 | 147 | 240 | 315 | 3.21 | 0.961 | 0.300 | |
| Motion | UCI-HAR | 12.8 | 7.37 | 2.96 | 9.55 | 0.0617 | 0.0425 | 0.689 |
| HHAR | 137 | 133 | 2.77 | 9.90 | 0.632 | 0.619 | 0.979 | |
| MotionSense | 13.9 | 8.29 | 2.81 | 9.55 | 0.0666 | 0.0467 | 0.702 | |
| Shoaib | 91.3 | 71.5 | 1.16 | 4.55 | 0.421 | 0.333 | 0.791 | |
| Acoustic | ESC-50 | 494 | 110 | 219 | 323 | 2.47 | 0.795 | 0.322 |
| UrbanSound8K | 483 | 110 | 213 | 311 | 2.42 | 0.784 | 0.325 | |
| GSC | 370 | 206 | 10.9 | 34.7 | 1.71 | 0.981 | 0.573 | |
| GTZAN | 613 | 110 | 278 | 370 | 3.07 | 0.838 | 0.273 | |
| Wireless | UT-HAR | 4,020 | 176 | 1,850 | 2,980 | 20.2 | 3.49 | 0.173 |
| NTU-Fi-HumanID | 14,900 | 470 | 6,280 | 1,050 | 74.3 | 3.10 | 0.042 | |
| NTU-HAR | 4,150 | 491 | 1,490 | 2,240 | 20.4 | 4.28 | 0.209 | |
| Widar3 | 192 | 128 | 18.2 | 58.6 | 0.900 | 0.642 | 0.713 | |
| ARIL | 1,760 | 147 | 813 | 1,400 | 8.85 | 1.93 | 0.218 | |
| BullyDetect | 1,060 | 304 | 374 | 1,940 | 5.21 | 3.14 | 0.603 | |
| AOPHand | 16.8 | 7.60 | 5.94 | 15.9 | 0.0826 | 0.0492 | 0.596 | |
| MMAActivity | 74.4 | 28.2 | 7.71 | 14.3 | 0.349 | 0.143 | 0.408 | |
| Neuromorphic | CIFAR10-DVS | 897 | 98.4 | 369 | 642 | 4.46 | 1.03 | 0.231 |
| DVS-Gesture | 1,310 | 229 | 373 | 990 | 6.37 | 1.94 | 0.305 | |
| SHD | 283 | 85.3 | 120 | 185 | 1.41 | 0.559 | 0.397 | |
E BATCH-SIZE SENSITIVITY
The off-diagonal term of the ReCo objective relies on negative sample pairs within a batch, so the contrastive signal weakens as the batch shrinks. Since edge devices may train with small batches under tight memory budgets, we measure how BSD accuracy varies with batch size. We evaluate one representative dataset per modality (CIFAR-10, MotionSense, GTZAN, AOPHand, and SHD),
Table 5: Profiled phase times per training step (ms) and the resulting step times, and . applies only to BSD, since BP has no reverse branch.
| Modality | Dataset | Ratio | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BP | BSD | BSD | BP | BSD | BP | BSD | BP | BSD | BSD/BP | ||
| Vision | MNIST | 16.0 | 21.6 | 21.9 | 17.7 | 62.6 | 2.08 | 2.63 | 35.8 | 32.8 | 0.915 |
| Fashion-MNIST | 18.8 | 14.8 | 20.6 | 18.8 | 64.0 | 2.09 | 2.48 | 39.7 | 31.7 | 0.798 | |
| CIFAR-10 | 14.9 | 12.5 | 14.1 | 21.2 | 71.2 | 1.76 | 2.42 | 37.8 | 26.4 | 0.697 | |
| CIFAR-100 | 16.4 | 16.1 | 17.8 | 23.7 | 77.8 | 1.84 | 3.06 | 41.9 | 31.3 | 0.747 | |
| SVHN | 12.4 | 12.9 | 14.8 | 17.3 | 99.4 | 2.01 | 2.68 | 31.7 | 31.8 | 1.004 | |
| Tiny-ImageNet | 24.9 | 29.8 | 24.6 | 48.5 | 113.1 | 2.74 | 2.58 | 76.1 | 49.1 | 0.645 | |
| Motion | UCI-HAR | 135.7 | 226.8 | 151.7 | 261.7 | 744.6 | 1.75 | 3.49 | 399.2 | 232.7 | 0.583 |
| HHAR | 85.6 | 103.3 | 111.0 | 83.8 | 425.0 | 1.28 | 2.76 | 170.7 | 114.3 | 0.670 | |
| MotionSense | 182.8 | 154.1 | 188.6 | 184.2 | 717.3 | 1.78 | 2.98 | 368.7 | 194.2 | 0.527 | |
| Shoaib | 40.4 | 49.3 | 53.4 | 40.0 | 198.0 | 1.06 | 2.34 | 81.4 | 56.8 | 0.697 | |
| Acoustic | ESC-50 | 26.6 | 20.5 | 23.8 | 49.3 | 94.5 | 1.52 | 2.17 | 77.4 | 43.1 | 0.557 |
| UrbanSound8K | 22.7 | 25.1 | 14.7 | 46.0 | 86.4 | 3.29 | 4.65 | 72.0 | 43.3 | 0.601 | |
| GSC | 58.6 | 70.9 | 71.0 | 70.6 | 315.1 | 0.99 | 2.29 | 130.2 | 74.1 | 0.569 | |
| GTZAN | 17.7 | 33.8 | 27.1 | 42.6 | 93.4 | 1.70 | 2.84 | 62.0 | 53.1 | 0.856 | |
| Wireless | UT-HAR | 16.5 | 24.3 | 19.5 | 39.0 | 82.6 | 1.93 | 2.44 | 57.5 | 41.3 | 0.718 |
| NTU-Fi-HumanID | 42.5 | 19.1 | 17.5 | 91.5 | 80.8 | 2.75 | 2.17 | 136.7 | 39.8 | 0.291 | |
| NTU-HAR | 23.7 | 25.6 | 26.0 | 45.6 | 69.9 | 2.59 | 3.50 | 71.9 | 44.3 | 0.616 | |
| Widar3 | 7.6 | 16.2 | 16.8 | 12.5 | 73.2 | 1.49 | 3.04 | 21.6 | 32.1 | 1.486 | |
| ARIL | 23.7 | 26.2 | 20.1 | 51.4 | 83.8 | 4.48 | 1.80 | 79.6 | 47.7 | 0.598 | |
| BullyDetect | 12.5 | 13.9 | 35.1 | 18.4 | 130.5 | 1.55 | 2.31 | 32.4 | 68.3 | 2.110 | |
| AOPHand | 10.4 | 12.7 | 14.2 | 11.8 | 44.9 | 2.39 | 2.65 | 24.6 | 26.1 | 1.063 | |
| MMActivity | 10.6 | 13.9 | 15.3 | 14.1 | 54.4 | 1.38 | 2.33 | 26.1 | 26.6 | 1.020 | |
| Neuromorphic | CIFAR10-DVS | 22.6 | 26.0 | 17.9 | 73.3 | 71.9 | 0.85 | 1.29 | 96.7 | 44.3 | 0.458 |
| DVS-Gesture | 41.6 | 29.9 | 36.3 | 71.6 | 99.0 | 1.98 | 4.03 | 115.2 | 56.9 | 0.494 | |
| SHD | 14.1 | 15.9 | 17.9 | 38.3 | 87.2 | 1.49 | 1.84 | 53.9 | 35.7 | 0.663 | |
training the BSD model with its per-dataset configuration from Table 3 and varying only the batch size over .
Table 6: BSD test accuracy (%) under different training batch sizes. Performance is largely preserved down to a batch size of 32 and degrades noticeably below 16.
| Modality | Dataset | Training batch size | ||||
|---|---|---|---|---|---|---|
| 64 | 32 | 16 | 8 | 4 | ||
| Vision | CIFAR-10 | 81.5 | 78.1 | 69.0 | 50.0 | 36.1 |
| Motion | MotionSense | 95.7 | 95.1 | 94.5 | 90.5 | 79.4 |
| Acoustic | GTZAN | 61.5 | 60.5 | 60.0 | 51.0 | 43.5 |
| Wireless | AOPHand | 80.6 | 76.8 | 75.8 | 71.2 | 60.1 |
| Neuromorphic | SHD | 98.5 | 96.5 | 93.9 | 84.9 | 83.0 |
Table 6 shows that accuracy is largely preserved down to a batch size of 32 and degrades noticeably below 16, confirming that ReCo needs a sufficient number of negative pairs per batch. Two observations put this requirement in context. First, the batch dimension is generally much smaller than the feature dimensions of the network, so the additional activation memory incurred by using a batch of 32 instead of a very small one is limited. Second, a batch of 32 is already relatively small for on-device training, and the performance at this size—at most a few points below the large-batch setting—remains acceptable.
F LIMITATIONS AND FUTURE DIRECTIONS
Our efficiency results are operation-level estimates and timing profiles collected on general-purpose GPUs; the models have not yet been deployed on actual edge devices. Validating the measured and projected costs on real hardware is therefore an important next step. In particular, the projected training-time reduction assumes that the two branches and the local-gradient tasks can execute concurrently, so approaching the theoretical optimum may require specialized compute devices or neuromorphic chips that expose this parallelism.
Second, the architectures to which BSD has been applied are still relatively limited. Our evaluation covers convolutional, recurrent, and gated-recurrent models, and it remains to be explored whether the same bidirectional construction can train larger families such as Transformers, where the attention-based reverse branch and its alignment points require a dedicated design.
G THE USE OF LARGE LANGUAGE MODELS
Large language models were used to assist with literature retrieval, text editing, and the preparation of plotting scripts during the writing of this paper. The authors reviewed, verified, and edited all generated content and take full responsibility for the final manuscript, including all reported claims, data, and citations.