Training robust and generalizable quantum models
Open Access
- 27 December 2024
- journal article
- research article
- Published by American Physical Society (APS) in Physical Review Research
- Vol. 6 (4)
Abstract
Adversarial robustness and generalization are both crucial properties of reliable machine learning models. In this paper, we study these properties in the context of quantum machine learning based on Lipschitz bounds. We derive parameter-dependent Lipschitz bounds for quantum models with trainable encoding, showing that the norm of the data encoding has a crucial impact on the robustness against data perturbations. Further, we derive a bound on the generalization error which explicitly involves the parameters of the data encoding. Based on these theoretical results, we propose a practical strategy for training robust and generalizable quantum models by regularizing the Lipschitz bound in the cost. Moreover, we show that, for fixed and nontrainable encodings, as those frequently employed in quantum machine learning, the Lipschitz bound cannot be influenced by tuning the parameters. Thus trainable encodings are crucial for systematically adapting robustness and generalization during training. The practical implications of our theoretical findings are illustrated with numerical results. Published by the American Physical Society 2024Keywords
All Related Versions
Funding Information
- Deutsche Forschungsgemeinschaft (2075-390740016)
- Stuttgart Center for Simulation Science, Universität Stuttgart
- German Federal Ministry of Economic Affairs and Climate Action (01MQ22002A)
This publication has 39 references indexed in Scilit:
- Shadows of quantum machine learningNature Communications, 2024
- Understanding quantum machine learning also requires rethinking generalizationNature Communications, 2024
- Quantum angle encoding with learnable rotation applied to quantum–classical convolutional neural networksApplied Soft Computing, 2023
- Quantum machine learning beyond kernel methodsNature Communications, 2023
- Optimal provable robustness of quantum classification via quantum hypothesis testingnpj Quantum Information, 2021
- Power of data in quantum machine learningNature Communications, 2021
- Machine Learning with Quantum Computers2021
- Regularisation of neural networks by enforcing Lipschitz continuityMachine Learning, 2020
- Supervised learning with quantum-enhanced feature spacesNature, 2019
- Robustness and generalizationMachine Learning, 2011