Quantum Perceptron Revisited: Computational-Statistical Tradeoffs

Mathieu Roget, Giuseppe Di Molfetta, Hachem Kadri

Abstract

Quantum machine learning algorithms could provide significant speed-ups over their classical counterparts; however, whether they could also achieve good generalization remains unclear. Recently, two quantum perceptron models which give a quadratic improvement over the classical perceptron algorithm using Grover’s search have been proposed. While the first model reduces the complexity with respect to the size of the training set, the second one improves the bound on the number of mistakes made by the perceptron. In this paper, we introduce a hybrid quantum-classical perceptron algorithm with lower complexity and better generalization ability than the classical perceptron. We show a quadratic improvement over the classical perceptron in both the number of samples and the margin of the data. We derive a bound on the expected error of the hypothesis returned by our algorithm, which compares favorably to the one obtained with the classical online perceptron.

Introduction

The Perceptron is a foundational algorithm in machine learning used for binary classification. Despite its simplicity, it faces significant computational hurdles when dealing with massive datasets (large $N$) or datasets with a small classification margin ($\gamma$). Previous quantum adaptations of the perceptron were often specialized: the Online Quantum Perceptron optimized for sample size but not mistake bounds, while the Version Space Quantum Perceptron improved mistake bounds but scaled poorly with dataset size. This work introduces the Hybrid Quantum Perceptron (HQP), bridging this gap to achieve efficiency in both dimensions simultaneously.

Methodology: The Hybrid Quantum Perceptron

The HQP algorithm leverages two primary strategies to achieve its performance gains:

  1. Version Space Strategy: Unlike the classical approach of iteratively updating a single boundary, the HQP explores the "version space"—the set of all hyperplanes that correctly classify the training data. It generates candidate separators and verifies them.
  2. Quantum Search (Grover’s Algorithm): The verification step—checking if a candidate hyperplane correctly classifies all $N$ points—is the computational bottleneck. While a classical check requires $O(N)$ operations, the HQP employs Grover’s search to identify misclassified points in $O(\sqrt{N})$ time.

By integrating these components, the HQP performs a quantum search over the training set for each randomly generated separator until a valid solution is found.

Theoretical Complexity and Generalization

The primary contribution of this work is the simultaneous quadratic improvement in both the number of samples $N$ and the margin $\gamma$. As summarized in the table below, the HQP achieves a complexity of $O(\frac{\sqrt{N}}{\gamma} \ln(1/\epsilon) \ln(1/\gamma\epsilon))$, a significant reduction from the classical $O(N/\gamma^2)$.

Comparison of complexity and expected risk across different perceptron algorithms.

Beyond speed, the HQP offers superior statistical guarantees. The paper provides the first formal proof that a version-space-based quantum perceptron can offer better generalization (lower expected risk) than the standard classical online perceptron, particularly as the number of samples increases.

Empirical Performance and Scaling

Numerical experiments on synthetic "Hard" datasets and the Iris benchmark confirm the theoretical scaling laws. The HQP demonstrates a clear advantage in the maximal number of steps required for convergence as $N$ increases and $\gamma$ decreases.

Scaling of the maximal number of steps with respect to (a) the number of points N and (b) the inverse of the margin 1/gamma.

The researchers also investigated the impact of quantum noise, such as bit-flip and depolarization errors. They identified a "noise sweet spot": increasing the number of quantum search steps improves the probability of finding a correct separator up to a point, after which noise-induced errors begin to dominate and degrade performance.

Conclusion and Future Outlook

The Hybrid Quantum Perceptron represents a significant step toward practical quantum machine learning, offering a rare combination of computational speedup and improved generalization. However, challenges remain for implementation on Noisy Intermediate-Scale Quantum (NISQ) devices. Future work may extend these results to non-linear classification via kernel methods and seek to strengthen generalization guarantees from "expected risk" to "high probability" bounds.

Summary updated

BibTeX
@inproceedings{roget2022quantum,
  author = {Mathieu Roget and Giuseppe Di Molfetta and Hachem Kadri},
  title = {{Quantum Perceptron Revisited: Computational-Statistical Tradeoffs}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=BuOcoU8jqxq},
}
Figure