Near-optimal Prediction Error Estimation for Quantum Machine Learning Models

Qiuhao Chen, Yuling Jiao, Yinan Li, Xiliang Lu, Jerry Zhijian YangarXiv 2025 · DOI

Abstract

Understanding the theoretical capabilities and limitations of quantum machine learning (QML) models is crucial to advancing both quantum software and hardware developments. Similarly to the classical setting, the performance of QML models can be significantly affected by the limited access to the underlying data set. Previous studies have focused on proving generalization error bounds for any QML models trained on a limited finite training set. We focus on the optimal QML models obtained by training them on a finite training set and establish a tight prediction error bound in terms of the number of trainable gates and the size of training sets. We support our theoretical findings by numerically simulating the QML strategies for function approximation and quantum phase recognition.

The Challenge of Prediction Error

In supervised machine learning, models are trained on limited datasets with the goal of accurately predicting unseen data. The performance of these models is typically analyzed through three components: approximation error (model capacity), optimization error (algorithm efficiency), and prediction error (impact of limited training data).

Error decomposition in the QML hypothesis space, highlighting the prediction error of the optimal model.

Historically, QML research has focused on generalization error—the gap between training and true loss for any possible model configuration. These bounds often suggested a scaling of $O(\sqrt{T \log T / N})$, where $T$ is the number of trainable gates and $N$ is the number of samples. However, empirical results often outperformed these pessimistic theoretical predictions. This paper addresses this gap by focusing on the optimal QML model found during training, rather than a worst-case scenario.

Theoretical Methodology

The authors utilize advanced statistical learning theory to derive tighter bounds:

  • Covering Numbers for Upper Bounds: By measuring the complexity of the QML model's hypothesis space and employing a "ghost sample" technique with Bernstein's inequality, they bound the expected prediction error for data re-uploading and linear QML models.
  • Packing Numbers for Lower Bounds: To ensure the bound is tight, they establish a matching "packing number" lower bound using Fano's inequality, proving that no QML strategy can fundamentally surpass their proposed scaling.

Empirical Validation

The theoretical findings were validated using two primary tasks: univariate analytic function fitting and quantum phase recognition for 9-qubit states.

Numerical simulations of function fitting showing how prediction error scales with sample size $N$ and gate count $T$.

As shown in the simulations, the empirical error perfectly matches the theoretical linear scaling of $1/N$ and $T$. Specifically, for function fitting, the QML output converges to the target function as $N$ increases, and the estimated population risk follows a linear trend with $1/N$ and $T$.

Key Insights: A Quadratic Improvement

The most significant contribution is the proof that prediction error for the optimal QML model scales with $O(T/N)$. This represents a quadratic improvement over the previously accepted $O(\sqrt{T/N})$. This implies that researchers need significantly less data—or can utilize larger quantum circuits—than older theories suggested to achieve specific accuracy targets.

This exact scaling is highly practical for the NISQ era. It allows researchers to calculate required training set sizes and maximum gate counts before running experiments, ensuring circuits remain within the coherence limits of current hardware.

Limitations and Future Outlook

While this work provides a near-optimal bound for prediction error, it assumes the training process successfully identifies the optimal model. It does not account for optimization error, such as the challenges posed by local minima or barren plateaus. Future research into the interplay between optimization error, over-parameterization, and double descent is necessary to complete the theoretical picture of QML performance.

Summary updated

BibTeX
@misc{chen2025near,
  author = {Qiuhao Chen and Yuling Jiao and Yinan Li and Xiliang Lu and Jerry Zhijian Yang},
  title = {{Near-optimal Prediction Error Estimation for Quantum Machine Learning Models}},
  year = {2025},
  eprint = {2510.18208},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.18208},
  howpublished = {arXiv},
}
Figure