Skip to main content
QUICK REVIEW

[Paper Review] PrivateSNN: Privacy-Preserving Spiking Neural Networks

Youngeun Kim, Yeshwanth Venkatesha|arXiv (Cornell University)|Apr 7, 2021
Advanced Memory and Neural ComputingEngineering5 citations
TL;DR

PrivateSNN proposes a privacy-preserving framework for converting pre-trained artificial neural networks (ANNs) into energy-efficient spiking neural networks (SNNs) without exposing sensitive training data or class information. It uses data-free conversion with synthetic data generation and applies temporal spike-based learning to encrypt SNN weights, achieving near-identical accuracy (within ~2% drop) and 55× energy efficiency gain over standard ANNs while eliminating data and class leakage risks.

ABSTRACT

How can we bring both privacy and energy-efficiency to a neural system? In this paper, we propose PrivateSNN, which aims to build low-power Spiking Neural Networks (SNNs) from a pre-trained ANN model without leaking sensitive information contained in a dataset. Here, we tackle two types of leakage problems: 1) Data leakage is caused when the networks access real training data during an ANN-SNN conversion process. 2) Class leakage is caused when class-related features can be reconstructed from network parameters. In order to address the data leakage issue, we generate synthetic images from the pre-trained ANNs and convert ANNs to SNNs using the generated images. However, converted SNNs remain vulnerable to class leakage since the weight parameters have the same (or scaled) value with respect to ANN parameters. Therefore, we encrypt SNN weights by training SNNs with a temporal spike-based learning rule. Updating weight parameters with temporal data makes SNNs difficult to be interpreted in the spatial domain. We observe that the encrypted PrivateSNN eliminates data and class leakage issues with a slight performance drop (less than ~2) and significant energy-efficiency gain (about 55x) compared to the standard ANN. We conduct extensive experiments on various datasets including CIFAR10, CIFAR100, and TinyImageNet, highlighting the importance of privacy-preserving SNN training.

Motivation & Objective

  • To address privacy vulnerabilities in ANN-to-SNN conversion, particularly data leakage when real training data is accessed during conversion.
  • To mitigate class leakage, where attackers can reconstruct class-specific features from SNN parameters using gradient-based methods.
  • To maintain high model accuracy and energy efficiency in resource-constrained edge environments despite privacy-preserving transformations.
  • To develop a secure, data-free SNN conversion pipeline that does not require access to original training data.

Proposed method

  • Generate synthetic training data from the pre-trained ANN to eliminate the need for real training data during SNN conversion, preventing data leakage.
  • Apply a temporal spike-based learning rule to encrypt SNN weights, making them difficult to interpret in the spatial domain due to non-differentiable spiking activation.
  • Use knowledge distillation from the pre-trained ANN to stabilize SNN training with minimal real data, enabling robust performance on small datasets.
  • Train the SNN using backpropagation through time with spiking LIF neurons, which prevents exact gradient computation and thwarts spatial domain reconstruction.
  • Optimize the SNN for low spike rate across layers to enhance energy efficiency, leveraging the inherent sparsity of spike-based computation.
  • Apply a three-stage pipeline: data-free conversion (DC), class encryption training (CET), and output distillation (OD) to balance privacy, accuracy, and efficiency.

Experimental results

Research questions

  • RQ1Can we eliminate data leakage during ANN-to-SNN conversion without accessing the original training dataset?
  • RQ2To what extent does temporal spike-based learning prevent class leakage through gradient inversion attacks?
  • RQ3How does the combination of synthetic data generation and spike-based weight encryption affect model accuracy and energy efficiency?
  • RQ4Can knowledge distillation enable stable and accurate SNN training with minimal real data during the encryption phase?
  • RQ5What is the trade-off between privacy, accuracy, and energy efficiency in SNNs compared to standard ANNs?

Key findings

  • PrivateSNN reduces data leakage by eliminating the need for real training data during conversion through synthetic data generation.
  • The use of temporal spike-based learning effectively prevents class leakage, as shown by high Fréchet Inception Distance (FID) scores (e.g., 448.2 in Attack Scenario 1) indicating minimal feature similarity between generated and real class images.
  • PrivateSNN achieves a 55.8× energy efficiency gain over standard ANNs on VGG16-CIFAR10, with inference energy significantly lower than both ANNs and standard SNN conversion methods.
  • The model maintains high accuracy, with only a ~2% performance drop compared to the original ANN, achieving 89.2% top-1 accuracy on CIFAR10.
  • The method is robust against both gradient-based reconstruction attacks (Attack Scenario 1) and gradient approximation attacks (Attack Scenario 2), with encrypted SNNs showing no meaningful class feature recovery in visualizations.
  • The framework demonstrates strong privacy guarantees across multiple datasets, including CIFAR10, CIFAR100, and TinyImageNet, validating its generalizability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.