ECC-SNN: Cost-Effective Edge-Cloud Collaboration for Spiking Neural Networks

Di Yu, Changze Lv, Xin Du, Linshan Jiang, Wentao Tong, Zhenyu Liao, Xiaoqing Zheng, Shuiguang Deng

Introduction

The Internet of Things (IoT) landscape presents a persistent challenge: balancing high classification accuracy with the strict energy and latency constraints of edge devices. While cloud-based Artificial Neural Networks (ANNs) provide high precision, they incur significant communication overhead and energy drain. Conversely, Spiking Neural Networks (SNNs) offer brain-inspired energy efficiency due to discrete spike processing but often lag in accuracy and struggle with "catastrophic forgetting" when encountering new data distributions in dynamic environments.

The ECC-SNN Framework

ECC-SNN introduces a collaborative architecture that leverages the strengths of both SNNs and ANNs. The framework operates in three distinct stages to ensure continuous learning and efficient inference.

Overview of the ECC-SNN framework, illustrating the Setup Stage (Cloud), Execution Stage (Edge-Cloud), and Update Stage (Edge).

1. Setup Stage: Joint Training

To initialize the edge SNN, it undergoes knowledge distillation from a powerful cloud ANN teacher. A key technical challenge is bridging the gap between the floating-point activations of ANNs and the discrete spike trains of SNNs. ECC-SNN addresses this by using external linear modules to align features in a shared space, allowing the SNN to inherit nuanced knowledge from the teacher beyond simple classification labels.

2. Execution Stage: Ambiguity-Aware Inference

During real-time operation, the edge SNN processes incoming data and calculates a normalized entropy for its predictions. This serves as a confidence metric. If the entropy is below a predefined threshold $\delta$, the edge device handles the classification locally. If the entropy is high, indicating an "ambiguous" or difficult sample, the image is offloaded to the cloud ANN for high-precision processing.

The ambiguity-aware filtering strategy utilizes a normalized entropy threshold to identify difficult samples for cloud offloading.

3. Update Stage: On-Device Incremental Learning

Difficult samples labeled by the cloud are stored in a local buffer. The edge SNN then performs exemplar-free incremental learning. By employing a self-distillation loss, the model learns from these new samples while preserving its performance on previously mastered "simple" cases, effectively mitigating catastrophic forgetting without requiring expensive cloud-side retraining.

Experimental Results

The framework was evaluated on standard benchmarks including CIFAR-10, CIFAR-100, Caltech, and Tiny-ImageNet in class-incremental settings. Experimental results demonstrate that ECC-SNN provides a superior balance of performance and efficiency:

  • Accuracy: Improved average Top-1 accuracy by 4.15% compared to standalone models.
  • Efficiency: Achieved a 79.4% reduction in energy consumption and a 39.1% reduction in processing latency.
  • Adaptability: Outperformed state-of-the-art incremental learning methods (e.g., FeTrIL) by 5.32% on CIFAR-100.

Notably, in some scenarios, the collaborative system outperformed a standalone cloud ANN by 13.3%, as the edge model continuously optimized itself on the specific local data distributions it encountered.

Conclusion and Future Work

ECC-SNN demonstrates that edge-cloud collaboration can significantly enhance the utility of SNNs in dynamic IoT environments by using the cloud as a high-precision "safety net." While the current framework excels at handling class-incremental drift, future work will explore more complex concept drifts and hardware-specific optimizations for various neuromorphic platforms to further reduce communication dependency.

Summary updated

BibTeX
@inproceedings{yu2025ecc,
  author = {Di Yu and Changze Lv and Xin Du and Linshan Jiang and Wentao Tong and Zhenyu Liao and Xiaoqing Zheng and Shuiguang Deng},
  title = {{ECC-SNN: Cost-Effective Edge-Cloud Collaboration for Spiking Neural Networks}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/768},
}
Figure