[Paper Review] Random Quantum Neural Networks (RQNN) for Noisy Image Recognition
This paper proposes Random Quantum Neural Networks (RQNN), a hybrid classical-quantum model leveraging superposition and amplitude encoding to enhance noisy image recognition. By integrating variational quantum circuits with classical training via parameter shift rules, RQNN achieves 94.9% average accuracy on MNIST, FashionMNIST, and KMNIST, outperforming classical RNNs, SNNs, and AlexNet in noisy settings.
Classical Random Neural Networks (RNNs) have demonstrated effective applications in decision making, signal processing, and image recognition tasks. However, their implementation has been limited to deterministic digital systems that output probability distributions in lieu of stochastic behaviors of random spiking signals. We introduce the novel class of supervised Random Quantum Neural Networks (RQNNs) with a robust training strategy to better exploit the random nature of the spiking RNN. The proposed RQNN employs hybrid classical-quantum algorithms with superposition state and amplitude encoding features, inspired by quantum information theory and the brain's spatial-temporal stochastic spiking property of neuron information encoding. We have extensively validated our proposed RQNN model, relying on hybrid classical-quantum algorithms via the PennyLane Quantum simulator with a limited number of \emph{qubits}. Experiments on the MNIST, FashionMNIST, and KMNIST datasets demonstrate that the proposed RQNN model achieves an average classification accuracy of $94.9\%$. Additionally, the experimental findings illustrate the proposed RQNN's effectiveness and resilience in noisy settings, with enhanced image classification accuracy when compared to the classical counterparts (RNNs), classical Spiking Neural Networks (SNNs), and the classical convolutional neural network (AlexNet). Furthermore, the RQNN can deal with noise, which is useful for various applications, including computer vision in NISQ devices. The PyTorch code (https://github.com/darthsimpus/RQN) is made available on GitHub to reproduce the results reported in this manuscript.
Motivation & Objective
- To address the limitations of classical Random Neural Networks (RNNs) in pattern recognition, particularly their lower accuracy and poor noise resilience compared to deep learning models.
- To exploit quantum advantages—such as superposition and amplitude encoding—by designing a novel supervised Random Quantum Neural Network (RQNN) architecture.
- To develop a robust training strategy using variational quantum circuits and parameter shift rules to optimize quantum parameters in a hybrid classical-quantum framework.
- To evaluate RQNN’s performance on standard image datasets under noisy conditions, demonstrating superiority over classical counterparts in accuracy and noise resilience.
Proposed method
- The RQNN model employs a hybrid classical-quantum architecture with amplitude encoding of input data into quantum states and variational quantum circuits (VQC) for feature extraction.
- Quantum layers use RX and RY rotation gates with trainable parameters ρ and σ, updated via gradient descent using the parameter shift rule for efficient backpropagation.
- The loss function is defined as binary cross-entropy: 𝒪(θ) = Σⱼ [γⱼ log z(ωⱼ) + (1−γⱼ) log(1−z(ωⱼ))], where z(ωⱼ) is the predicted output for input ωⱼ.
- Gradients of the loss with respect to rotation angles are computed using the parameter shift rule: ∂z/∂ρⱼᶿ = ½[ℳᶿ₊₁₍ρ±π/₂₎ − ℳᶿ₍ρ±π/₂₎], with similar expressions for σ.
- The model is trained using the PennyLane quantum simulator with limited qubits, enabling efficient optimization of quantum circuit parameters.
- Input data from MNIST, FashionMNIST, and KMNIST are encoded via amplitude encoding into quantum states, preserving input structure for classification.
Experimental results
Research questions
- RQ1Can a hybrid classical-quantum neural network leveraging quantum superposition and amplitude encoding outperform classical RNNs in image recognition under noise?
- RQ2Does the integration of variational quantum circuits with random spiking neuron principles enhance robustness to noisy inputs?
- RQ3What is the achievable classification accuracy of RQNN on standard benchmark datasets like MNIST, FashionMNIST, and KMNIST under noisy conditions?
- RQ4How does the parameter shift rule enable effective backpropagation through quantum circuits in a supervised RQNN framework?
Key findings
- The proposed RQNN model achieves an average classification accuracy of 94.9% across the MNIST, FashionMNIST, and KMNIST datasets under standard conditions.
- RQNN demonstrates superior resilience to noise compared to classical RNNs, Spiking Neural Networks (SNNs), and AlexNet, maintaining higher accuracy in noisy environments.
- The use of amplitude encoding and variational quantum circuits enables efficient representation and processing of image data within a limited qubit framework.
- The parameter shift rule enables effective gradient computation for quantum parameters, supporting end-to-end training of the RQNN model.
- The RQNN framework effectively leverages the stochastic spiking behavior of biological neurons through quantum superposition, enhancing noise tolerance.
- The open-source PyTorch implementation on GitHub enables full reproducibility of the reported results.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.