Quantum Eigenfaces: Linear Feature Mapping and Nearest Neighbor Classification with Outlier Detection

Armando Bellante, William Bonvini, Stefano Vanerio, Stefano ZaneroQce 2023

Introduction

In the foundational era of computer vision, the eigenfaces approach revolutionized face recognition by utilizing Principal Component Analysis (PCA) to reduce high-dimensional image data into essential features. However, as datasets scale in both image resolution ($m$) and the number of subjects ($n$), classical nearest-neighbor classifiers face significant computational bottlenecks. This paper introduces a quantum machine learning (QML) pipeline that adapts the eigenfaces algorithm for the early fault-tolerant quantum era, offering a quasi-quadratic speedup over classical methods while maintaining high classification accuracy.

The Quantum Pipeline

The proposed framework mirrors the classical eigenfaces workflow but leverages quantum subroutines for computational efficiency. The pipeline consists of five primary stages:

  1. Data Access (QRAM): Classical image data is stored in Quantum Random Access Memory, allowing for retrieval in superposition.
  2. Linear Feature Mapping: Using block-encoding, the system represents non-unitary projection matrices within larger quantum operators to project input images onto the "eigenface" subspace.
  3. Norm-Based Outlier Detection: A critical innovation is the use of the retained norm as a proxy for "faceness." Since eigenfaces span the specific space of human faces, non-face images lose significant norm upon projection. If the retained norm falls below a threshold $\gamma$, the image is flagged as an outlier.
  4. Quantum Nearest Neighbor/Centroid: The algorithm calculates Euclidean distances between the projected features and stored templates in superposition.
  5. Quantum Minimum Finding: A Grover-style minimization routine identifies the closest match among known subjects.
Thresholding mechanism for outlier detection, illustrating the uncertainty regions (ξ) around the threshold γ.

Experimental Evaluation and Datasets

The authors evaluated the pipeline using standard computer vision benchmarks, including the ORL (Olivetti Research Lab) and Yale Face Extended B datasets. To test outlier detection, they utilized MNIST digits as the primary set and Fashion MNIST (clothing) as outliers. The table below summarizes the dataset parameters used in the simulations.

Summary of datasets, including feature dimensions (m), number of principal components (k), and sample distributions.

Key Insights and Results

  • Accuracy Preservation: Numerical simulations demonstrate that the quantum pipeline maintains high accuracy (approximately 94-95% on Yale and MNIST), even when accounting for the approximation errors ($ε$) inherent in quantum estimation.
  • Theoretical Speedups: The classical algorithm scales with $O(mk + pk)$, where $p$ is the number of classes. The quantum version scales roughly with $O(\sqrt{p})$ and $O(\sqrt{k})$, leading to measured theoretical runtime improvements of $10^2$ to $10^3$ for the tested datasets.
  • Robust Anomaly Detection: The norm-based filtering effectively identified non-face images, proving the system's utility for "open-set" recognition tasks where input data may not belong to any known class.

Limitations and Future Directions

While promising, the algorithm's practical implementation depends on the development of fault-tolerant quantum hardware and large-scale QRAM. Additionally, quantum estimation routines introduce an "uncertainty area" (as seen in Figure 3); if a measurement falls within $\pm ε$ of the threshold $\gamma$, the algorithm may require repeated runs with higher precision, potentially impacting the overall speedup. Future research will focus on optimizing block-encodings and testing the pipeline against realistic quantum noise models.

Summary updated

BibTeX
@inproceedings{bellante2023quantum,
  author = {Armando Bellante and William Bonvini and Stefano Vanerio and Stefano Zanero},
  title = {{Quantum Eigenfaces: Linear Feature Mapping and Nearest Neighbor Classification with Outlier Detection}},
  booktitle = {Qce},
  year = {2023},
  doi = {10.1109/qce57702.2023.00030},
}
Figure