Abstract
Quantum neural networks (QNNs) and quantum kernels stand as prominent figures in the realm of quantum machine learning, poised to leverage the nascent capabilities of near-term quantum computers to surmount classical machine learning challenges. Nonetheless, the training efficiency challenge poses a limitation on both QNNs and quantum kernels, curbing their efficacy when applied to extensive datasets. To confront this concern, we present a unified approach: coreset selection, aimed at expediting the training of QNNs and quantum kernels by distilling a judicious subset from the original training dataset. Furthermore, we analyze the generalization error bounds of QNNs and quantum kernels when trained on such coresets, unveiling the comparable performance with those training on the complete original dataset. Through systematic numerical simulations, we illuminate the potential of coreset selection in expediting tasks encompassing synthetic data classification, identification of quantum correlations, and quantum compiling. Our work offers a useful way to improve diverse quantum machine learning models with a theoretical guarantee while reducing the training cost.
Introduction
Quantum machine learning (QML) is currently at an impasse. While models like Quantum Neural Networks (QNNs) and Quantum Kernels show theoretical "quantum advantage" for certain tasks, they are notoriously difficult to train at scale. Classical deep learning relies on mechanisms like back-propagation and batch gradient descent to handle millions of data points, which many QNNs lack. Quantum Kernels face an even steeper challenge: they require calculating a kernel matrix that grows quadratically ($O(N^2)$) with the number of training examples ($N$). This research addresses whether we can systematically reduce the amount of data needed without losing the model's predictive power.
Methodology: Coreset Selection
The authors propose a unified preprocessing strategy called Coreset Selection. Instead of training on the full dataset, a "judicious subset" (the coreset) is identified to capture the underlying geometry of the entire data distribution.
The selection process involves:
- The Greedy k-Center Algorithm: A geometry-based approach to pick $k$ points. The goal is to minimize the "covering radius" ($\delta_c$)—the maximum distance between any point in the original dataset and its nearest neighbor in the coreset.
- Weighted Training: Each point in the coreset is assigned a weight ($\gamma_s$) based on the density of original points it represents.
- Unified Application: For QNNs, the loss function is modified to include these weights. For Quantum Kernels, weights are integrated into the constraints of the Support Vector Machine (SVM) dual problem.
Theoretical Guarantees
A key contribution of this work is the mathematical proof showing that the generalization error for a model trained on a coreset is comparable to one trained on the full set. The total error is decomposed into "generalization error" (from finite samples) and "coreset error" (from the approximation). By carefully selecting the "prune rate," one can achieve tighter performance bounds than random sampling.
Experimental Results
The approach was validated across three distinct tasks:
- Synthetic Data Classification: Using a modified Fashion-MNIST dataset. A QNN trained on just 250 coreset samples achieved the same accuracy as a model trained on 400 randomly sampled points.
- Quantum Correlation Identification: Classifying 1,000 quantum states. Once the coreset reached ~18% of the original data size, it consistently outperformed random sampling.
- Quantum Compiling: For a 6-qubit system, only about 20 examples were needed to train a compiler effectively when selected via coreset methods.
For Quantum Kernels, the quadratic scaling $O(N^2)$ means that reducing the dataset size by a factor of $k$ results in a $O(k^2)$ speedup in constructing the kernel matrix—a significant advantage for near-term hardware.
Conclusion
Coreset selection represents a shift from model-centric to data-centric engineering in QML. It is independent of circuit design or optimizers, making it a versatile tool for efficiency. While finding the coreset involves initial classical overhead, the resulting reduction in quantum circuit executions provides a clear path toward scaling QML to larger, more complex datasets.
Summary updated