Secure Spiking Intelligence: Homomorphic Encryption for Neuromorphic Systems

Modern AI walks a fine line: greater accuracy demands more data, yet that dependence amplifies privacy risks. Medical diagnoses, biometric data, and sensitive behavioral patterns flow through neural networks daily, yet current approaches leave this information vulnerable during processing. While homomorphic encryption offers a solution by allowing computation on encrypted data, applying it to low-power spiking neural networks is only now being explored. This area of study unites two frontiers: privacy-preserving computation and neuromorphic architecture.
Enter PRIVSPIKE, a new framework detailed in a recent study that addresses these dual concerns by introducing a privacy-preserving inference system for Spiking Neural Networks (SNNs) using the CKKS homomorphic encryption scheme—a method that enables encrypted computation on real-valued signals. Spiking Neural Networks mimic biological neurons by communicating through discrete spikes, making them inherently energy-efficient and temporally precise—ideal for edge and biomedical computing. The system supports arbitrary depth SNNs with two novel algorithms for evaluating the Leaky Integrate-and-Fire activation function. This research introduces a practical method for privacy-preserving computation in neuromorphic systems—a direction increasingly relevant as AI moves toward edge and biomedical devices. As neuromorphic chips move into decentralized, privacy-sensitive settings—from wearable health sensors to on-device biometrics—PRIVSPIKE provides a working model for secure edge inference on constrained devices.
The Core Problem
SNNs have emerged as resource-conscious alternatives to conventional deep learning approaches, with Intel’s Loihi 2 neuromorphic hardware showing measured energy reductions of up to 246× compared to standard CNN inference on MNIST. These brain-inspired networks excel at processing time-sensitive and event-based data, where information arrives as discrete events rather than static images, making them particularly well-suited for biomedical applications and sensory processing tasks where privacy concerns are paramount.
Like most deep learning systems, SNNs require substantial training data, inheriting critical data and model privacy issues. Although CKKS enables encrypted computation on real-valued signals, adapting it to spiking dynamics introduces distinct computational barriers. CKKS was selected due to its ability to perform approximate arithmetic efficiently, aligning well with the analog-style signal processing used in SNNs. This compatibility makes CKKS an appealing foundation—but integrating it into temporal spiking models introduces new computational layers. The efficient evaluation of non-linear functions such as the Leaky Integrate-and-Fire (LIF) activation function remains a demanding task. Additionally, SNNs’ temporal encoding across multiple time-steps further increases computational and memory requirements.
Two Paths to Secure Computation
To address these computational bottlenecks, the authors devised two complementary strategies for encrypted neuron activation—balancing mathematical approximation and cryptographic precision. Addressing these issues required a fundamental rethink of how encrypted computations track time and neuron activity. The research team developed two distinct methods for handling the LIF activation function in encrypted form, each with distinct trade-offs in speed and precision. CKKS offers faster linear computation but struggles with non-linear thresholds, while TFHE handles precise bitwise comparisons at higher computational cost.
The first procedure employs polynomial approximation to handle non-linear components of the LIF. The second applies scheme switching, using TFHE—a fully homomorphic encryption method specialized for bit-level operations—for spike evaluation on encrypted inputs.
The polynomial approach leverages Chebyshev polynomials, which approximate non-linear behavior using polynomial functions with high precision. By expressing the comparison operation within LIF as a series of polynomials, the researchers made it compatible with CKKS encryption. The team found that a degree-50 polynomial strikes an optimal balance between computational complexity and accuracy across their test models.
The scheme-switching method takes a hybrid approach, combining CKKS for efficient linear computation and TFHE for high-precision non-linear evaluation. In practice, the membrane potential and threshold are converted into TFHE ciphertexts, and a Boolean comparison circuit determines whether neurons should spike. This approach reflects biological neurons’ own selective behavior—exchanging discrete spikes while shielding internal signals.
Performance Across Diverse Datasets
Across all datasets, PRIVSPIKE maintained strong accuracy with only marginal slowdowns relative to plaintext inference. The framework underwent rigorous testing across four datasets: MNIST, CIFAR-10, Neuromorphic MNIST (N-MNIST), and CIFAR-10 DVS, using models based on LeNet-5 and ResNet-19 architectures. Depending on model complexity, inference times ranged from 28 seconds for MNIST to about 30 minutes for CIFAR-10 DVS on a consumer CPU with multithreaded processing.
The accuracy results delivered consistent performance across tasks. Encrypted inference accuracies reached 98.10% on MNIST, 79.3% on CIFAR-10, 98.1% on Neuromorphic MNIST, and 66.0% on CIFAR-10 DVS. Notably, the scheme-switching LIF method retained higher accuracy consistency, with encrypted inference results deviating by only 0.8% from plaintext outputs in the LeNet-5 model using MNIST.
Architectural Innovations
Several design choices contributed to PRIVSPIKE’s performance. The system precomputes and generates evaluation keys during an offline stage by analyzing input tensor shapes, kernel dimensions, and channel configurations, then reuses these keys throughout inference to avoid redundancy and memory overhead. This ensures consistent memory usage regardless of the number of time steps processed.
Instead of completing all layers per time step, the system processes each layer over all time steps first, improving cache reuse and computation speed. From a design perspective, this allows on-demand loading of model weights to reduce memory requirements.
At runtime, the framework achieves memory stability through deliberate ciphertext scheduling. For the LeNet-5 architecture, models using polynomial approximation required approximately 4.3 GB per inference on MNIST, while scheme-switching variants needed 9.4 GB due to additional keys for cross-scheme operations. ResNet-19 models showed similar scaling, with memory footprints ranging from 18.7 GB to 93.7 GB depending on dataset complexity and LIF evaluation method.
Comparative Advantages
Relative to prior research, PRIVSPIKE achieves faster inference and stronger accuracy retention. The baseline SNN LeNet-5 model achieved 95.70% accuracy on MNIST using only two time steps with an inference time of 28 seconds per image. This offers about a 34-fold improvement in inference time compared to prior work by Farzad et al. that required 40 time steps and 930 seconds. Against FHE-DiCNN, which required approximately 1,500 seconds to process 60,000 neurons, PRIVSPIKE accomplished the same computation in just 28 seconds on consumer-grade hardware.
The scheme-switching approach does introduce higher computational costs—the LeNet-5 model using this method took 110 seconds on MNIST compared to 28 seconds for the polynomial version. However, this trade-off preserves near-identical accuracy, within about one percentage point of the plaintext baseline.
Why It Matters
The implications extend beyond laboratory benchmarks. Secure neuromorphic AI has growing applications in wearables, healthcare devices, and edge robotics—environments where both energy efficiency and data privacy are non-negotiable. Consider a smart hearing aid that uses SNNs to filter speech in real-time, a portable ECG monitor that detects arrhythmias locally, or a household security sensor analyzing motion signatures locally. PRIVSPIKE enables these devices to process sensitive biosignals without transmitting raw data to cloud servers, maintaining patient privacy while delivering responsive, low-power inference.
The framework also opens possibilities for federated neuromorphic learning, where multiple edge devices could collaboratively improve shared models without exposing individual user data. As regulation around health data tightens and consumers demand greater control over personal information, privacy-preserving neuromorphic computation is shifting from academic concept to practical need. By combining encryption with event-driven computation, PRIVSPIKE mirrors the biological brain’s balance between selective communication and internal privacy.
Looking Forward
The work establishes PRIVSPIKE as a viable solution for secure SNN inference, connecting low-power neural designs with robust cryptographic privacy while outperforming prior encrypted SNN solutions. The open-source framework enables researchers and practitioners to deploy brain-inspired neural networks in privacy-sensitive domains, from medical diagnostics to biometric systems, without compromising on data security.
This work hints at what secure, biologically inspired computation could look like as AI integrates deeper into medical and personal-device environments. The study creates opportunities for continued research, particularly in exploring end-to-end encrypted training and inference of SNNs. Future work may include direct implementation on neuromorphic hardware such as Intel’s Loihi or SpiNNaker. Integrating encryption primitives with event-driven digital neurons could further accelerate secure, low-power AI—bringing neuromorphic privacy from concept to reality.
Citation: Njungle, N. B., Jahns, E., Stojkov, M., & Kinsy, M. A. (2025). PrivSpike: Employing Homomorphic Encryption for Private Inference of Deep Spiking Neural Networks. arXiv preprint arXiv:2510.03995v1.
