A Scalable Quantum Non-local Neural Network for Image Classification
Sparsh Gupta, Debanjan Konar, Vaneet Aggarwal
TL;DR
This work tackles the quadratic complexity of classical non-local neural networks by introducing a scalable hybrid quantum-classical non-local network (QNL-Net) that leverages quantum parallelism and entanglement to efficiently model long-range dependencies in images. It integrates a four-qubit quantum module (Encoder, VQC, measurement) into CNN- or PCA-driven pipelines (CNN-QNL-Net and PCA-QNL-Net), with three entanglement strategies (Ansatz-0/1/2) and a final Pauli-$Z$ readout to produce a binary decision. On MNIST (0 vs 1) and CIFAR-10 (birds vs ships), the CNN-QNL-Net achieves state-of-the-art-like accuracy while using only 4 qubits, outperforming several larger-qubit quantum baselines and illustrating a scalable path for quantum-assisted vision in the NISQ era. The results demonstrate that hybrid quantum-classical architectures can capture long-range structure more efficiently than purely classical NL blocks in low-qubit regimes, with potential applicability to broader image-classification tasks as quantum hardware advances.
Abstract
Non-local operations play a crucial role in computer vision enabling the capture of long-range dependencies through weighted sums of features across the input, surpassing the constraints of traditional convolution operations that focus solely on local neighborhoods. Non-local operations typically require computing pairwise relationships between all elements in a set, leading to quadratic complexity in terms of time and memory. Due to the high computational and memory demands, scaling non-local neural networks to large-scale problems can be challenging. This article introduces a hybrid quantum-classical scalable non-local neural network, referred to as Quantum Non-Local Neural Network (QNL-Net), to enhance pattern recognition. The proposed QNL-Net relies on inherent quantum parallelism to allow the simultaneous processing of a large number of input features enabling more efficient computations in quantum-enhanced feature space and involving pairwise relationships through quantum entanglement. We benchmark our proposed QNL-Net with other quantum counterparts to binary classification with datasets MNIST and CIFAR-10. The simulation findings showcase our QNL-Net achieves cutting-edge accuracy levels in binary image classification among quantum classifiers while utilizing fewer qubits.
