Quantum advantage for learning shallow neural networks with natural data distributions
Laura Lewis, Dar Gilboa, Jarrod R. McClean
TL;DR
This work investigates quantum advantages in learning real-valued, Fourier-sparse functions under non-uniform data. It develops a two-stage quantum algorithm that first uses period-finding to recover the inner linear map $w\star$ and then applies gradient methods to learn the outer periodic coefficients $\beta^{\star}$, achieving exponential quantum speedups over classical gradient-based learners for broad distribution families (Gaussian, generalized Gaussian, logistic). The analysis extends Hallgren-type irrational period finding to pseudoperiodic and non-uniform settings via a tailored verification procedure, enabling efficient learning with QSQ access to discretized quantum example states. The results close part of the gap between uniform-distribution advantages and distribution-free impossibility by showing exponential quantum gains for a natural real-valued function class—periodic neurons—across practically relevant distributions. The work also discusses practical considerations for quantum data encoding, potential applicability to real-world models, and several open questions around hardness strengthening and broader distribution classes.
Abstract
The application of quantum computers to machine learning tasks is an exciting potential direction to explore in search of quantum advantage. In the absence of large quantum computers to empirically evaluate performance, theoretical frameworks such as the quantum probably approximately correct (PAC) and quantum statistical query (QSQ) models have been proposed to study quantum algorithms for learning classical functions. Despite numerous works investigating quantum advantage in these models, we nevertheless only understand it at two extremes: either exponential quantum advantages for uniform input distributions or no advantage for potentially adversarial distributions. In this work, we study the gap between these two regimes by designing an efficient quantum algorithm for learning periodic neurons in the QSQ model over a broad range of non-uniform distributions, which includes Gaussian, generalized Gaussian, and logistic distributions. To our knowledge, our work is also the first result in quantum learning theory for classical functions that explicitly considers real-valued functions. Recent advances in classical learning theory prove that learning periodic neurons is hard for any classical gradient-based algorithm, giving us an exponential quantum advantage over such algorithms, which are the standard workhorses of machine learning. Moreover, in some parameter regimes, the problem remains hard for classical statistical query algorithms and even general classical algorithms learning under small amounts of noise.
