Quantum visual feature encoding revisited

Xuan-Bac Nguyen, Hoang-Quan Nguyen, Hugh Churchill, Samee U. Khan, Khoa Luu · DOI

Abstract

While Quantum Machine Learning (QML) offers transformative potential, its application to computer vision has been hindered by a fundamental mathematical "gap" in data translation. This research identifies the "Quantum Information Gap" (QIG), where essential visual feature relationships are lost during the transition from classical to quantum states. To address this, the authors propose a Quantum Information Preserving (QIP) loss function that optimizes classical models for quantum compatibility, alongside a novel "Quantum Clusformer" architecture.

Introduction

In classical computer vision, images are typically represented as high-dimensional vectors where similarity—often measured by cosine distance—is critical for tasks such as face recognition and clustering. Transitioning these vectors into the quantum realm involves encoding them into quantum states ($|\psi\rangle$) and extracting data via observables ($q$). However, this process inherently distorts data relationships. This study proves that the measurement step creates a "Quantum Information Gap," making it difficult for quantum neural networks to maintain the discriminative power of classical features.

Methodology: Bridging the Gap

The core innovation of this work is a shift from passive encoding to active information preservation.

The Hybrid Pipeline

The researchers developed a hybrid architecture that integrates classical deep learning with quantum processing. As shown in the pipeline below, classical features are extracted and then processed through Parameterized Quantum Circuits (PQCs).

The hybrid classical-quantum architecture, illustrating the flow from image input to quantum neural network processing.

Quantum Information Preserving (QIP) Loss

To mitigate the QIG, the authors introduced the QIP loss function. During the training of the classical feature extractor (e.g., a ResNet), this loss uses Kullback–Leibler (KL) divergence to force the similarity distribution in the quantum feature space to mirror that of the classical space. This "pre-formats" data to ensure its essential structure survives the quantum transition.

Comparison between standard quantum encoding strategies, which lead to non-discriminative features, and the proposed QIP approach that preserves feature representation.

Quantum Clusformer

The authors also introduced the "Quantum Clusformer," a transformer-based clustering architecture adapted for quantum systems. Standard self-attention layers are replaced with PQCs for Query, Key, and Value operations, allowing the model to leverage quantum hardware for complex clustering logic.

Experimental Results

The approach was evaluated on two large-scale benchmarks: MSCeleb-1M (face recognition) and Google Landmarks Dataset v2 (landmark recognition).

  • Face Clustering: On the MSCeleb-1M test set, the Quantum Clusformer with QIP loss achieved a Pairwise F-score ($F_P$) of 87.18%, significantly outperforming the baseline quantum model (83.68%) and nearly matching the purely classical performance (88.20%).
  • Landmark Clustering: In the more challenging Google Landmarks dataset, the QIP loss improved the $F_P$ from 13.20% to 19.02%, notably surpassing the classical version of the same architecture (17.74%).
  • Comparison with QSVM: The proposed method consistently outperformed traditional Quantum Support Vector Machines (QSVM), which often struggle with open-set unsupervised tasks.

Key Insights

  • Measurement Constraints: The paper demonstrates that no Pauli observable can perfectly preserve the inner product of quantum states, confirming the "gap" as an inherent property of quantum information extraction.
  • Quantum-Aware Classical Front-ends: Optimal performance requires the classical "front-end" to be aware of the quantum "back-end's" limitations rather than treating the quantum circuit as a black box.
  • Observable Selection: The Pauli-Z observable was found to be the most effective for these clustering tasks, particularly when paired with amplitude encoding.

Conclusion and Future Work

This research highlights that the bottleneck in QML for computer vision is not solely hardware noise but also the mathematical loss of information during encoding. While the QIP loss provides a robust solution, challenges remain regarding physical noise on Noisy Intermediate-Scale Quantum (NISQ) devices and the computational intensity of hybrid training. Future research will focus on enhancing the robustness of quantum-friendly features against specific hardware noise profiles.

Summary updated

BibTeX
@article{nguyen2024quantum,
  author = {Xuan-Bac Nguyen and Hoang-Quan Nguyen and Hugh Churchill and Samee U. Khan and Khoa Luu},
  title = {{Quantum visual feature encoding revisited}},
  journal = {Quantum Mach. Intell. 2024},
  year = {2024},
  doi = {10.1007/s42484-024-00192-x},
}
Figure