Quantum Superposition Spiking Neural Network

Yinqian Sun, Yi Zeng, Tielin Zhang

Abstract

Traditional artificial neural networks (ANNs) exhibit significant performance degradation when faced with simple image transformations, such as background color inversion, which human vision handles with ease. This paper introduces the Quantum Superposition Spiking Neural Network (QS-SNN), an architecture that leverages quantum information theory and biologically plausible spiking dynamics to achieve robust visual recognition. By encoding images and their color-inverted complements into quantum superposition states, the model translates spatial information into spatio-temporal spike trains. Our results demonstrate that the QS-SNN maintains near-perfect accuracy on fully color-inverted and highly noisy datasets where standard deep learning models fail, offering a promising path toward more resilient artificial intelligence.

Introduction

Modern deep learning models, despite their power, are notoriously brittle. Because they rely heavily on statistical pattern matching, a simple transformation—such as inverting an image's background from black to white—drastically shifts the data distribution and often leads to a complete collapse in performance. In contrast, human vision inherently recognizes objects regardless of such inversions. The Quantum Superposition Spiking Neural Network (QS-SNN) aims to bridge this gap by creating a neural architecture that understands complementary states, making it robust to severe statistical shifts and heavy noise.

Methodology

The QS-SNN architecture merges quantum-inspired encoding with the temporal processing capabilities of Spiking Neural Networks (SNNs).

Quantum Superposition Encoding

Inspired by quantum image processing, the authors encode an original image and its color-inverted complement into a single quantum superposition state. This approach ensures that the network simultaneously considers both the primary visual information and its logical opposite, preventing the model from over-fitting to specific background statistics.

Spike Train Translation

Because SNNs process discrete events over time, the complex numbers defining the quantum state (amplitude and phase) are translated into the firing rate and firing phase of neuronal spike trains. This transformation converts spatially variant information into time-differential information, a process that aligns with the natural dynamics of biological neurons.

Two-Compartment SNN Architecture

The network utilizes a hidden layer of biologically plausible two-compartment neurons, featuring both a soma and a dendrite. These neurons are equipped with time-differential convolution (TCK) synapses, allowing the network to process the complex spatio-temporal phase information inherent in the incoming spikes. Unlike standard models that use backpropagation, the QS-SNN is trained using a dendrite prediction rule and proximal gradient methods.

Experimental Evaluation

The model was evaluated using MNIST (handwritten digits) and Fashion-MNIST (clothing items) across several challenging conditions:

  • Color-Inverted Variants: Images where the background color is inverted to varying degrees, parameterized by $\theta$.
  • Reverse-Pixel Noise: Images where a random percentage of pixels are flipped to their complementary color.
  • Gaussian Noise (AWGN): Images corrupted with Additive White Gaussian Noise at various standard deviations.

Key Results and Insights

The "U-Shaped" Recovery Curve

A critical finding of this research is the "U-shaped" recovery curve. When testing on images with increasing levels of background inversion, traditional ANNs and CNNs see their accuracy drop and remain low. The QS-SNN's accuracy initially drops when the image is a 50/50 blurry mix of original and inverted states, but it recovers to near-perfect levels as the image approaches full inversion. This behavior closely mimics the adaptability of human visual perception.

Performance Benchmarks

  • Color Inversion: On fully color-inverted MNIST images, the QS-SNN achieved 97.3% accuracy, matching its performance on original images. In comparison, VGG16 dropped to 48.8% and a standard CNN dropped to 46.9%. Similar results were observed on Fashion-MNIST, where the QS-SNN maintained 84.7% accuracy while VGG16 plummeted to 19.0%.
  • Noise Resilience: When 100% of pixels were randomly flipped (full reverse noise), the QS-SNN maintained 97.2% accuracy on MNIST. Furthermore, at a Gaussian noise standard deviation of 0.4, the QS-SNN retained 90.2% accuracy, whereas traditional models like ResNet and DenseNet fell below 60%.

Discussion and Future Work

The QS-SNN demonstrates that SNNs are a natural fit for quantum concepts. The spatio-temporal nature of spiking neurons maps elegantly to the complex number representations used in quantum superposition. By maintaining original and reversed information in a superposition state, the network learns the underlying structural identity of an object rather than memorizing pixel-level statistics.

Currently, the model is simulated on classical hardware, which is resource-intensive and does not benefit from quantum speedups. Future work will focus on adapting the SNN architecture to run natively on quantum computers. Since qubits naturally mirror the probabilistic distributions of neuronal spike trains, mapping SNNs directly to quantum bits represents a significant frontier for both neuroscience and artificial intelligence.

Summary updated

BibTeX
@inproceedings{sun2021quantum,
  author = {Yinqian Sun and Yi Zeng and Tielin Zhang},
  title = {{Quantum Superposition Spiking Neural Network}},
  booktitle = {iScience},
  year = {2021},
  doi = {10.1016/j.isci.2021.102880},
}
Figure