Training robust and generalizable quantum models

Julian Berberich, Daniel Fink, Daniel Pranjić, Christian Tutschku, Christian Holm
11/20/2023
41 citations
quant-phcs.LGmath.OC

Official code: daniel-fink-de/training-robust-and-generalizable-quantum-models (2 stars, Python, last commit 2023-12-04).

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.

Show full abstract

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. Our theoretical findings give rise to a practical strategy for training robust and generalizable quantum models by regularizing the Lipschitz bound in the cost. Further, we show that, for fixed and non-trainable 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.

View on arXivView PDF

Code Implementations(1)

The repository containing the code and data for the paper "Training robust and generalizable quantum models"

21PythonNov 19, 20232 years ago

Similar Papers

Cite this paper

@article{berberich2023training,
  title  = {Training robust and generalizable quantum models},
  author = {Julian Berberich and Daniel Fink and Daniel Pranjić and Christian Tutschku and Christian Holm},
  year   = {2023},
  eprint = {2311.11871},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.11871v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.11871.svg)](https://codeofpaper.com/paper/2311.11871)

Discussion