Stability and Generalization of Quantum Neural Networks
Jiaqi Yang, Wei Xie, Xiaohua Xu
TL;DR
This paper tackles the generalization behavior of quantum neural networks (QNNs) by importing algorithmic stability from classical learning theory. It develops high-probability generalization bounds based on uniform stability for SGD-trained QNNs and extends the analysis to depolarizing noise on NISQ devices, revealing that quantum noise can act as a regularizer. A refined, optimization-dependent bound via on-average stability complements the worst-case results and links generalization to initialization and gradient variance, with empirical results on real datasets supporting the theory. The work provides practical guidance on how to balance model complexity (e.g., number of trainable gates) against training dynamics (step sizes, iterations) to achieve robust generalization in quantum settings, and it highlights the potential of noise-aware training as a design knob.
Abstract
Quantum neural networks (QNNs) play an important role as an emerging technology in the rapidly growing field of quantum machine learning. While their empirical success is evident, the theoretical explorations of QNNs, particularly their generalization properties, are less developed and primarily focus on the uniform convergence approach. In this paper, we exploit an advanced tool in classical learning theory, i.e., algorithmic stability, to study the generalization of QNNs. We first establish high-probability generalization bounds for QNNs via uniform stability. Our bounds shed light on the key factors influencing the generalization performance of QNNs and provide practical insights into both the design and training processes. We next explore the generalization of QNNs on near-term noisy intermediate-scale quantum (NISQ) devices, highlighting the potential benefits of quantum noise. Moreover, we argue that our previous analysis characterizes worst-case generalization guarantees, and we establish a refined optimization-dependent generalization bound for QNNs via on-average stability. Numerical experiments on various real-world datasets support our theoretical findings.
