NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Understanding quantum machine learning also requires rethinking generalization

Elies Gil-Fuster, Jens Eisert, Carlos Bravo-Prieto

Abstract

Quantum machine learning models have shown successful generalization performance even when trained with few data. In this work, through systematic randomization experiments, we show that traditional approaches to understanding generalization fail to explain the behavior of such quantum models. Our experiments reveal that state-of-the-art quantum neural networks accurately fit random states and random labeling of training data. This ability to memorize random data defies current notions of small generalization error, problematizing approaches that build on complexity measures such as the VC dimension, the Rademacher complexity, and all their uniform relatives. We complement our empirical results with a theoretical construction showing that quantum neural networks can fit arbitrary labels to quantum states, hinting at their memorization ability. Our results do not preclude the possibility of good generalization with few training data but rather rule out any possible guarantees based only on the properties of the model family. These findings expose a fundamental challenge in the conventional understanding of generalization in quantum machine learning and highlight the need for a paradigm shift in the study of quantum models for machine learning tasks.

The Generalization Crisis in Quantum Machine Learning

In machine learning, generalization is the ability of a model to perform well on new, unseen data after being trained on a limited set. To explain why models generalize, researchers traditionally use "uniform generalization bounds"—mathematical tools like the VC dimension or Rademacher complexity. These theories suggest that if a model is "simple" enough, it shouldn't be able to fit random noise, and therefore any patterns it finds must be real.

However, classical deep learning hit a crisis in 2017 when researchers showed that massive neural networks could perfectly memorize completely random labels. This paper investigates whether Quantum Machine Learning (QML) faces a similar crisis. Currently, many QML researchers rely on these same "simplicity" arguments to prove their models are robust. If quantum models can also "memorize" noise while still being "simple," then our current mathematical proofs for why QML works are essentially vacuous.

Methodology: Randomization Tests

The authors employ randomization tests, a technique borrowed from non-parametric statistics, to probe the limits of quantum model expressivity. They take a state-of-the-art QML architecture—the Quantum Convolutional Neural Network (QCNN)—and put it through three rigorous tests:

  1. Random Labels: Training the QCNN on real physical data but with scrambled labels.
  2. Partially Corrupted Labels: Gradually increasing label noise to observe the model's ability to distinguish signal from noise.
  3. Random States: Replacing structured physical data with randomized quantum states.
Overview of empirical experiments and the failure of uniform generalization bounds.

Beyond experiments, the researchers provide a theoretical proof showing that Parameterized Quantum Circuits (PQCs) possess "finite sample expressivity." This means they can be mathematically constructed to fit any arbitrary set of labels to a given set of quantum states, provided the states are somewhat distinguishable.

Experimental Setup: Classifying Quantum Phases

The study focuses on a quintessential problem in quantum physics: Classifying quantum phases of matter.

  • The Data: Ground states of the generalized cluster Hamiltonian, a system exhibiting four distinct symmetry-protected topological phases.
  • Scale: Systems ranging from 8 to 32 qubits.
  • Training Size: Small training sets (5 to 20 samples), the regime where QML is often touted to have a significant advantage.

Key Insights: The Memorization Paradox

The experiments revealed several striking findings:

  • High Expressivity: The QCNN—despite having a restricted, "simple" architecture with logarithmic depth and parameter sharing—was able to achieve ~100% training accuracy on totally random labels.
  • Vacuous Bounds: Because the model can fit random noise, any mathematical bound that only looks at the properties of the model family (uniform bounds) must be "loose." If a bound says the error is "at most 0.99" on a task where random guessing is 0.25, the bound provides zero useful information.
  • Speed of Learning: Surprisingly, the QCNN often converged to a solution faster when fitting random noise than when fitting real, structured data. This suggests that "memorization" is a path of least resistance for these models.

Conclusion: A Necessary Paradigm Shift

It is important to note that these results do not mean QML doesn't generalize well—it often does. Rather, it means that we cannot explain that success using current complexity-based theories. The "generalization gap" on random labels hit ~0.75, effectively maximal since the model perfectly fit the training data but performed like a random guesser on test data.

Future work in QML must move toward non-uniform measures, such as the "sharpness" of the loss landscape or algorithmic convergence time, as better predictors of performance. Understanding how symmetries and equivariance influence learning beyond simple complexity counts will be crucial for building a robust theory of quantum generalization.

Summary updated

BibTeX
@inproceedings{gilfuster2024understanding,
  author = {Elies Gil-Fuster and Jens Eisert and Carlos Bravo-Prieto},
  title = {{Understanding quantum machine learning also requires rethinking generalization}},
  booktitle = {Nature Communications},
  year = {2024},
  doi = {10.1038/s41467-024-45882-z},
}
Figure