Understanding Generalization in Quantum Machine Learning with Margins
Tak Hur, Daniel K. Park
TL;DR
This paper introduces a margin-based generalization bound for quantum neural networks (QNNs), addressing the shortcomings of uniform bounds in quantum machine learning. It adapts classical margin theory to the quantum setting, deriving a bound that depends on the sample margin and POVM norms, and validates it empirically on quantum phase recognition tasks using QCNNs. The results show that margin distributions strongly predict generalization better than parameter counts, and the work connects margins to quantum state discrimination via quantum embeddings, with Neural Quantum Embedding (NQE) achieving larger margins and better generalization. These insights guide the design of QML models and embeddings for improved generalization on both quantum and classical data.
Abstract
Understanding and improving generalization capabilities is crucial for both classical and quantum machine learning (QML). Recent studies have revealed shortcomings in current generalization theories, particularly those relying on uniform bounds, across both classical and quantum settings. In this work, we present a margin-based generalization bound for QML models, providing a more reliable framework for evaluating generalization. Our experimental studies on the quantum phase recognition (QPR) dataset demonstrate that margin-based metrics are strong predictors of generalization performance, outperforming traditional metrics like parameter count. By connecting this margin-based metric to quantum information theory, we demonstrate how to enhance the generalization performance of QML through a classical-quantum hybrid approach when applied to classical data.
