SLIQ: Quantum Image Similarity Networks on Noisy Quantum Computers

Daniel Silver, Tirthak Patel, Aditya Ranjan, Harshitta Gandhi, William Cutler, Devesh Tiwari

Abstract

In the pursuit of quantum advantage, supervised learning has dominated the research landscape. However, real-world applications often lack labeled data, requiring unsupervised methods for similarity detection. This paper presents SLIQ (Quantum Image Similarity Networks), an open-source framework optimized for unsupervised similarity tasks on Noisy Intermediate-Scale Quantum (NISQ) hardware. SLIQ utilizes quantum superposition and a novel consistency loss to achieve a 31% performance improvement over baseline quantum networks while maintaining high resilience to hardware noise.

Introduction

While quantum machine learning (QML) has shown promise in classification, many domains—such as medical imaging and forensic analysis—rely on identifying similarities between unlabeled data points. Classical solutions often employ Siamese or Triplet networks to map similar images into close proximity within a latent space. Porting these architectures to quantum systems faces significant hurdles: high resource consumption and the pervasive noise of current NISQ devices.

The SLIQ hybrid quantum-classical workflow, integrating input datasets with a variational quantum circuit and classical optimization.

The SLIQ Framework

SLIQ addresses these challenges through three primary innovations designed to maximize efficiency and noise robustness.

Superimposed Training and Feature Interweaving

Rather than processing images sequentially, SLIQ creates a quantum superposition of image pairs (e.g., Anchor and Positive samples). These pairs are fed into a Variational Quantum Circuit (VQC) simultaneously, reducing the required quantum runs by 33%. Furthermore, SLIQ "interweaves" features across qubits, ensuring that image data is entangled throughout the learning process. This allows the circuit to directly learn distances in Hilbert space.

The multi-layer architecture of the SLIQ Variational Quantum Circuit, showing feature interweaving and measurement projections.

Projection Variance Mitigation (PVM)

A critical challenge in entangled QML is that an "Anchor" image may project to different coordinates depending on its paired sample (Positive or Negative). SLIQ introduces Projection Variance Mitigation (PVM), a consistency loss function that forces the network to maintain stable anchor positions across different runs. This method reduces projection variance by an average of 80%, significantly stabilizing the model against noise.

Experimental Evaluation

The researchers benchmarked SLIQ across several datasets:

  • Flickr Landscape: 4,300 unlabeled images for unsupervised similarity testing.
  • NIH AIDS Antiviral Screen: 50,000 molecular feature samples.
  • MNIST & Fashion-MNIST: Standard benchmarks for evaluating embedding quality via clustering.

Key Results

SLIQ demonstrated substantial improvements in both accuracy and efficiency:

  • Performance Gain: On the Flickr dataset, SLIQ achieved a 31% point improvement in Spearman correlation over baseline quantum triplet networks.
  • Resource Efficiency: For the AIDS dataset, SLIQ utilized only 48 parameters, compared to 1,633 required by competing models like PQK. This simplicity is vital for reducing error accumulation on noisy hardware.
  • Hardware Resilience: In real-world tests on the IBM Oslo quantum computer, SLIQ maintained 68.8% accuracy on the AIDS dataset, whereas more complex models like Quilt saw performance drop to 21.4%.
  • Clustering Accuracy: When applied to binary MNIST, SLIQ’s embeddings enabled a Gaussian Mixture Model (GMM) to reach 96.44% classification accuracy.

Conclusion

SLIQ represents a significant advancement in unsupervised QML, providing a resource-efficient and noise-resilient framework for similarity detection. By leveraging quantum-specific properties like superposition and entanglement, SLIQ outperforms traditional QML architectures on contemporary hardware. Future work will explore scaling these techniques to full quantum triplet states and addressing the classical optimization bottleneck in hybrid systems.

Summary updated

BibTeX
@inproceedings{silver2023sliq,
  author = {Daniel Silver and Tirthak Patel and Aditya Ranjan and Harshitta Gandhi and William Cutler and Devesh Tiwari},
  title = {{SLIQ: Quantum Image Similarity Networks on Noisy Quantum Computers}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i8.26175},
}
Figure