Heterogeneous Federated Learning with Convolutional and Spiking Neural Networks

Yingchao Yu, Yuping Yan, Jisong Cai, Yaochu JinarXiv 2024 · DOI

Abstract

Federated Learning (FL) typically assumes model homogeneity across all participating clients. However, real-world edge environments often feature a mix of high-performance devices and low-power IoT sensors, necessitating support for heterogeneous architectures. This paper investigates the integration of traditional Convolutional Neural Networks (CNNs) with energy-efficient Spiking Neural Networks (SNNs) within a unified FL framework. We propose a fusion approach (SC-SC) that enables a central server to aggregate updates from both CNN and SNN clients. Our findings reveal a "competitive suppression" phenomenon where architectures can interfere with each other's learning, yet the proposed SC-SC fusion demonstrates superior robustness and performance across diverse data distributions, including challenging Non-IID scenarios.

Introduction

Standard Federated Learning frameworks are built on the premise that every client trains an identical model architecture. This assumption of homogeneity is increasingly at odds with the diverse landscape of edge computing. While powerful devices can leverage the high accuracy of standard CNNs, resource-constrained IoT sensors benefit significantly from the low power consumption of biologically inspired SNNs.

The core challenge addressed in this research is heterogeneous aggregation: the process of combining the continuous, "analog" weights of a CNN with the discrete, "spiking" logic of an SNN. This paper explores the friction between these two neural paradigms and proposes a framework to enable collaborative learning while respecting device-level architectural preferences and data privacy.

Methods and Framework

To identify the most effective strategy for mixed-architecture FL, the researchers evaluated five distinct federated modes:

  1. C-C (Federated CNN): Homogeneous setup with only CNN clients.
  2. S-S (Federated SNN): Homogeneous setup with only SNN clients.
  3. C-SC: CNN models are trained, and their weights are broadcast to both CNN and SNN clients.
  4. S-SC: SNN models are trained, and their weights are broadcast to both.
  5. SC-SC (CNN-SNN Fusion): The proposed heterogeneous framework where CNN and SNN clients train independently on local data. The server aggregates all weights into a unified global model using Federated Averaging (FedAvg), which is then redistributed to all clients.
The proposed federated learning architecture for heterogeneous CNN and SNN clients.

For the SNN components, Leaky Integrate-and-Fire (LIF) neurons were employed. To overcome the non-differentiability of discrete spikes during training, a sigmoid surrogate gradient function was used to facilitate standard backpropagation.

Experimental Setup

The framework was benchmarked using the MNIST dataset. To simulate realistic edge conditions, two data distribution types were tested:

  • IID (Independent and Identically Distributed): Data is uniformly distributed across clients.
  • Non-IID: Data is partitioned using a Dirichlet distribution (parameter $\alpha$). A lower $\alpha$ indicates higher data skew (e.g., a client seeing only a few digit classes), increasing the difficulty of global model convergence.

Key Insights and Results

The experiments highlighted a phenomenon termed competitive suppression, where gradients from one architecture (often the SNN) can dominate and suppress the performance of the other during the fusion process. Interestingly, the researchers found a "Non-IID Paradox": while Non-IID data usually hinders FL, in this heterogeneous context, higher degrees of data skew actually helped mitigate competitive suppression, allowing for a more balanced global model.

Accuracy curves across different federated modes and data distributions (IID vs. Non-IID).

The SC-SC Fusion Mode emerged as the most robust heterogeneous strategy, consistently outperforming the hybrid "cross-weight" modes (C-SC and S-SC). Under IID conditions, the fusion framework achieved accuracies of 97.47% for CNNs and 95.69% for SNNs. In difficult Non-IID scenarios ($\alpha=0.5$), the model maintained a high accuracy of 97.5%, demonstrating its capability to handle statistical noise from diverse edge devices.

Conclusion

While the SC-SC fusion framework provides a viable path for heterogeneous FL, a performance gap remains compared to "pure" homogeneous systems due to the inherent misalignment between CNN and SNN information processing. Future work will focus on better alignment techniques to "translate" features between analog and spike-based domains and exploring more complex spatiotemporal datasets where SNNs can fully leverage their temporal processing advantages.

Summary updated

BibTeX
@misc{yu2024heterogeneous,
  author = {Yingchao Yu and Yuping Yan and Jisong Cai and Yaochu Jin},
  title = {{Heterogeneous Federated Learning with Convolutional and Spiking Neural Networks}},
  year = {2024},
  eprint = {2406.09680},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.09680},
}
Figure