Invariance can prevent overfitting and shortcut learning in Quantum Neural Networks
Giuseppe D'Ambruoso, Giovanni Gramegna, Domenico Pomarico, Giuseppe Magnifico, Cosmo Lupo
Abstract
Many image classification tasks have labels that are unchanged by rotations and reflections. Equivariant quantum neural networks incorporate such symmetries by design, but the specific benefit of symmetry is difficult to isolate. Equivariant quantum circuits are usually compared with architectures that also differ in gates, structure or size. Here, we investigate the role of invariance in a controlled setting, classifying images whose labels are invariant under the dihedral group . We compare four eight-qubit models with identical encoding, circuit structure and number of trainable parameters, and equivalent dynamical Lie algebras, and benchmark invariant implementations against non-invariant ones in terms of generalization error, robustness to shortcut learning and resilience to a realistic noise model. On four binary tasks, including MNIST and two scientific data sets of galaxies and red blood cells, the invariant models trained on a few tens of images show better generalization than non-invariant ones. Invariance also makes the models immune to orientation shortcuts: when trained with a class-dependent corner watermark, the non-invariant models learn the watermark and often drop to chance level when it is moved. We show that the gain in accuracy of invariant models persists also under a realistic noise model.
Create a lesson
Related papers
Augmenting Quantum Neural Networks with Contractive Layers
Shared title terminologyquant-phBolin Huang, Pengfei Zhang
High-Accuracy Neural-Network Quantum States via Randomized Real-Time Dynamics
Shared title terminologyquant-phJohn M. Martyn, Rod Rofougaran, Samuel Stein et al.
Training quantum neural networks one job at a time
Shared title terminologyquant-phMuhammad Faryad, Rabab Alomairy
Feedback Control and Neural-Network-Based Prediction of Quantum Entanglement in Fano-mirror cavity optomechanics
Shared title terminologyquant-phYa-Feng Jiao, Ze-Yu Zhu, Jie Wang et al.
Multi-head Quantum Neural Networks: Replacing Transformer Blocks with NISQ Modules inside a 30-Billion-Parameter LLM
Shared title terminologyquant-phMaforikan Amoussou, Borja Aizpurua, Sukhbinder Singh et al.
What can a quantum network promise about the entangled pairs it delivers?
Shared title terminologyquant-phTanish Singh Rajpal, Michael Mattarock