Abstract
Exploration into quantum machine learning has grown tremendously in recent years due to the ability of quantum computers to speed up classical programs. However, these efforts have yet to solve unsupervised similarity detection tasks due to the challenge of porting them to run on quantum computers. To overcome this challenge, we propose SLIQ, the first open-sourced work for resource-efficient quantum similarity detection networks, built with practical and effective quantum learning and variance-reducing algorithms.
Introduction
While Quantum Machine Learning (QML) research has historically prioritized supervised classification, the practical utility of these models is often limited by the requirement for massive, labeled datasets. In domains such as medical imaging or recommendation systems, labels are frequently scarce or non-existent, making unsupervised similarity detection a critical alternative. However, implementing similarity detection on Noisy Intermediate-Scale Quantum (NISQ) hardware presents significant hurdles.
Current quantum computers suffer from high error rates and limited qubit counts. Traditional similarity detection architectures, such as Siamese networks, are resource-intensive when ported to quantum circuits because they require separate executions for every image in a triplet (Anchor, Positive, and Negative). Furthermore, hardware noise often obscures the subtle features necessary to distinguish between similar and dissimilar inputs. To address these challenges, we introduce SLIQ, a framework designed for resource-efficient, noise-resilient similarity detection.
The SLIQ Framework
SLIQ introduces several architectural innovations to make similarity detection viable on contemporary quantum hardware:
1. Superposition-Based Training
Rather than processing images sequentially, SLIQ encodes image pairs (Anchor-Positive and Anchor-Negative) into a single superimposed quantum state. This approach reduces the total number of quantum runs required and provides the Variational Quantum Circuit (VQC) with explicit "hints" regarding the relationships between data points directly within the Hilbert space.
2. Feature Interweaving
To maximize the utility of quantum entanglement, SLIQ interweaves the features of two images across physical qubits. This ensures that the entanglement effects captured during measurement represent the direct relationship between the two inputs, rather than isolated feature sets. This method has proven superior to simple layering, as it prevents the network from failing to learn comparisons between positionally equivalent features.
3. Projection Variance Mitigation (PVM)
A significant challenge in processing entangled pairs is that the "Anchor" image may project to different coordinates depending on whether it is paired with a "Positive" or "Negative" sample. SLIQ introduces a consistency loss function that penalizes this variance, forcing the network to generate stable and robust embeddings regardless of the pairing.
4. Resource-Lean VQC Design
To combat the "compounding error" effect seen in deep quantum architectures, SLIQ utilizes a minimal number of tunable parameters. For instance, the model uses only 48 parameters for the AIDS dataset, ensuring that gate errors do not overwhelm the learning signal.
Experimental Results
We evaluated SLIQ across four diverse datasets: Flickr Landscape (4,300 unlabeled images), NIH AIDS Antiviral Screen Data (50,000 molecular samples), MNIST, and Fashion-MNIST.
Similarity and Classification Performance
SLIQ achieved a 31% improvement in Spearman correlation over baseline quantum triplet networks on the unlabeled Flickr dataset. While primarily designed for similarity detection, SLIQ also proved highly effective at classification, averaging 96.44% accuracy on binary MNIST, which is competitive with state-of-the-art supervised quantum classifiers like PQK and Quilt.
NISQ Hardware Resilience
On real-world hardware (the IBM Oslo system), SLIQ demonstrated remarkable noise resilience. It maintained 68.8% accuracy on the AIDS dataset, significantly outperforming the Quilt architecture, which dropped to 21.4% accuracy due to the high gate count required by its more complex design. These results suggest that for NISQ-era hardware, model simplicity and parameter efficiency are more critical than architectural depth.
Conclusion and Future Work
SLIQ represents a significant step forward in making unsupervised QML practical for current hardware. By leveraging superposition as a feature-learning tool rather than just a speedup mechanism, SLIQ achieves high correlation and accuracy with minimal resources.
Future research will explore entangling larger sets of images (such as full Anchor-Positive-Negative triplets) in a single run to further enhance efficiency. Additionally, while SLIQ currently utilizes amplitude embedding, investigating alternative quantum embedding methods may optimize the framework for non-image data types and specific hardware topologies.
Summary updated