- Open Access
Quantum-inspired weight-constrained neural network: Reducing variable numbers by compared to standard neural networks
Phys. Rev. Research 8, 013142 – Published 9 February, 2026
DOI: https://doi.org/10.1103/wb1b-ntpc
Abstract
Although quantum machine learning has shown great promise, the practical application of quantum computers remains constrained in the noisy intermediate-scale quantum era. To take advantage of quantum machine learning, we investigate the underlying mathematical principles of these quantum models and find that the quantum neural network with amplitude encoding is equivalent to a weight-constrained neural network. Motivated by this discovery, we develop a classical weight-constrained neural network. We find that this approach can reduce the number of variables in a classical neural network by a factor of 135 while preserving its accuracy. In addition, we develop a dropout method to enhance the robustness of quantum machine learning models, which are highly susceptible to adversarial attacks. This technique can also be applied to improve the adversarial robustness of the classical weight-constrained neural network, which is essential for industry applications, such as self-driving vehicles. Our work offers an approach to reduce the complexity of large classical neural networks, addressing a critical challenge in machine learning.
Physics Subject Headings (PhySH)
Article Text
References (66)
- M. Soori, B. Arezoo, and R. Dastres, Artificial intelligence, machine learning and deep learning in advanced robotics, a review, Cognit. Rob. 3, 54 (2023).
- R. Gozalo-Brizuela and E. C. Garrido-Merchan, ChatGPT is not all you need. A state of the art review of large generative AI models, arXiv:2301.04655.
- A. J. Thirunavukarasu, D. S. J. Ting, K. Elangovan, L. Gutierrez, T. F. Tan, and D. S. W. Ting, Large language models in medicine, Nat. Med. 29, 1930 (2023).
- B. Min, H. Ross, E. Sulem, A. P. B. Veyseh, T. H. Nguyen, O. Sainz, E. Agirre, I. Heintz, and D. Roth, Recent advances in natural language processing via large pre-trained language models: A survey, ACM Comput. Surv. 56, 1 (2023).
- Y. Liu, T. Han, S. Ma, J. Zhang, Y. Yang, J. Tian, H. He, A. Li, M. He, Z. Liu, Z. Wu, L. Zhao, D. Zhu, X. Li, N. Qiang, D. Shen, T. Liu, and B. Ge, Summary of ChatGPT-related research and perspective towards the future of large language models, Meta-Radiology 1, 100017 (2023).
- J. Qiu, L. Li, J. Sun, J. Peng, P. Shi, R. Zhang, Y. Dong, K. Lam, F. P.-W. Lo, B. Xiao, W. Yuan, N. Wang, D. Xu, and B. Lo, Large AI models in health informatics: Applications, challenges, and the future, IEEE J. Biomed. Health. Inf. 27, 6074 (2023).
- J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, BERT: Pre-training of deep bidirectional transformers for language understanding, in Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), Minneapolis, Minnesota, USA (Association for Computational Linguistic, 2019), pp. 4171–4186.
- J. Jumper, R. Evans, A. Pritzel, T. Green, M. Figurnov, O. Ronneberger, K. Tunyasuvunakool, R. Bates, A. Žídek, A. Potapenko, et al., Highly accurate protein structure prediction with AlphaFold, Nature(London) 596, 583 (2021).
- M. Varadi, D. E. V. Pires, S. Nair, D. Yeh, K. Tunyasuvunakool, D. Ochoa, J. Leman, G. R. Bickerton, et al., AlphaFold protein structure database in 2024: Providing structure coverage for over 214 million protein sequences, Nucl. Acids Res. 52, D368 (2024).
- Z. Allen-Zhu, Y. Li, and Y. Liang, Learning and generalization in overparameterized neural networks, going beyond two layers, in Advances in Neural Information Processing Systems (British Columbia, Vancouver, Canada, 2019), Vol. 32.
- D. Erhan, P.-A. Manzagol, Y. Bengio, S. Bengio, and P. Vincent, The difficulty of training deep architectures and the effect of unsupervised pre-training, in Proceedings of the 12th International Conference on Artificial Intelligence and Statistics, Proceedings of Machine Learning Research, edited by D. van Dyk and M. Welling (PMLR, Hilton Clearwater Beach Resort, Clearwater Beach, Florida, 2009), Vol. 5, pp. 153–160.
- T. Bachlechner, B. P. Majumder, H. Mao, G. Cottrell, and J. McAuley, ReZero is all you need: Fast convergence at large depth, in Proceedings of the 37th Conference on Uncertainty in Artificial Intelligence, edited by C. de Campos and M. H. Maathuis (PMLR, 2021), Vol. 161, pp. 1352–1361.
- F. Arute, K. Arya, R. Babbush, D. Bacon, J. C. Bardin, R. Barends, R. Biswas, S. Boixo, F. G. S. L. Brandao, D. A. Buell, et al., Quantum supremacy using a programmable superconducting processor, Nature (London) 574, 505 (2019).
- M. Schuld and N. Killoran, Is quantum advantage the right goal for quantum machine learning? PRX Quantum 3, 030101 (2022).
- Y. Du, M.-H. Hsieh, T. Liu, and D. Tao, Expressive power of parametrized quantum circuits, Phys. Rev. Res. 2, 033125 (2020).
- J. Alcazar, M. G. Vakili, C. B. Kalayci, and A. Perdomo-Ortiz, Enhancing combinatorial optimization with classical and quantum generative models, Nat. Commun. 15, 2761 (2024).
- M. Cerezo, G. Verdon, H.-Y. Huang, L. Cincio, and P. J. Coles, Challenges and opportunities in quantum machine learning, Nat. Comput. Sci. 2, 567 (2022).
- Y. Liu, S. Arunachalam, and K. Temme, A rigorous and robust quantum speed-up in supervised machine learning, Nat. Phys. 17, 1013 (2021).
- G. D. Paparo, V. Dunjko, A. Makmal, M. A. Martin-Delgado, and H. J. Briegel, Quantum speedup for active learning agents, Phys. Rev. X 4, 031002 (2014).
- N. Wiebe, D. Braun, and S. Lloyd, Quantum algorithm for data fitting, Phys. Rev. Lett. 109, 050505 (2012).
- H.-Y. Huang, M. Broughton, M. Mohseni, R. Babbush, S. Boixo, H. Neven, and J. R. McClean, Power of data in quantum machine learning, Nat. Commun. 12, 2631 (2021).
- H.-Y. Huang, M. Broughton, J. Cotler, S. Chen, J. Li, M. Mohseni, H. Neven, R. Babbush, R. Kueng, J. Preskill, and J. R. McClean, Quantum advantage in learning from experiments, Science 376, 1182 (2022).
- M. S. Salek, S. Li, and M. Chowdhury, A hybrid quantum-classical AI-based detection strategy for generative adversarial network-based deepfake attacks on an autonomous vehicle traffic sign classification system, arXiv:2409.17311.
- P. Rebentrost, M. Mohseni, and S. Lloyd, Quantum support vector machine for big data classification, Phys. Rev. Lett. 113, 130503 (2014).
- J. Biamonte, P. Wittek, N. Pancotti, P. Rebentrost, N. Wiebe, and S. Lloyd, Quantum machine learning, Nature (London) 549, 195 (2017).
- C. Ciliberto, M. Herbster, A. D. Ialongo, M. Pontil, A. Rocchetto, S. Severini, and L. Wossnig, Quantum machine learning: A classical perspective, Proc. R. Soc. A 474, 20170551 (2018).
- K. Beer, D. Bondarenko, T. Farrelly, T. J. Osborne, R. Salzmann, D. Scheiermann, and R. Wolf, Training deep quantum neural networks, Nat. Commun. 11, 808 (2020).
- M. Schuld, Supervised quantum machine learning models are kernel methods, arXiv:2101.11020.
- C. Blank, D. K. Park, J.-K. K. Rhee, and F. Petruccione, Quantum classifier with tailored quantum kernel, npj Quantum Inf. 6, 41 (2020).
- C. Zoufal, A. Lucchi, and S. Woerner, Quantum generative adversarial networks for learning and loading random distributions, npj Quantum Inf. 5, 103 (2019).
- V. Havlíček, A. D. Córcoles, K. Temme, A. W. Harrow, A. Kandala, J. M. Chow, and J. M. Gambetta, Supervised learning with quantum-enhanced feature spaces, Nature (London) 567, 209 (2019).
- K. Huang, Z.-A. Wang, C. Song, K. Xu, H. Li, Z. Wang, Q. Guo, Z. Song, Z.-B. Liu, D. Zheng, D.-L. Deng, H. Wang, J.-G. Tian, and H. Fan, Quantum generative adversarial networks with multiple superconducting qubits, npj Quantum Inf. 7, 165 (2021).
- D. Tancara, H. T. Dinani, A. Norambuena, F. F. Fanchini, and R. Coto, Kernel-based quantum regressor models learning non-Markovianity, Phys. Rev. A 107, 022402 (2023).
- L. Slattery, R. Shaydulin, S. Chakrabarti, M. Pistoia, S. Khairy, and S. M. Wild, Numerical evidence against advantage with quantum fidelity kernels on classical data, Phys. Rev. A 107, 062417 (2023).
- M. Benedetti, J. Realpe-Gómez, and A. Perdomo-Ortiz, Quantum-assisted Helmholtz machines: A quantum–classical deep learning framework for industrial datasets in near-term devices, Quantum Sci. Technol. 3, 034007 (2018).
- A. Perdomo-Ortiz, M. Benedetti, J. Realpe-Gómez, and R. Biswas, Opportunities and challenges for quantum-assisted machine learning in near-term quantum computers, Quantum Sci. Technol. 3, 030502 (2018).
- M. S. Rudolph, N. B. Toussaint, A. Katabarwa, S. Johri, B. Peropadre, and A. Perdomo-Ortiz, Generation of high-resolution handwritten digits with an ion-trap quantum computer, Phys. Rev. X 12, 031010 (2022).
- Z. Krunic, F. Flother, G. Seegan, N. Earnest-Noble, and S. Omar, Quantum kernels for real-world predictions based on electronic health records, IEEE Trans. Quantum Eng. 3, 2500311 (2022).
- S. Moradi, C. Brandner, M. Coggins, R. Wille, W. Drexler, and L. Papp, Error mitigation for quantum kernel based machine learning methods on IonQ and IBM quantum computers, arXiv:2206.01573.
- B. M. Terhal, Quantum error correction for quantum memories, Rev. Mod. Phys. 87, 307 (2015).
- E. Knill, R. Laflamme, and L. Viola, Theory of quantum error correction for general noise, Phys. Rev. Lett. 84, 2525 (2000).
- E. Tang, A quantum-inspired classical algorithm for recommendation systems, in Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, STOC 2019 (Association for Computing Machinery, New York, 2019), pp. 217–228.
- T. Felser, M. Trenti, L. Sestini, A. Gianelle, D. Zuliani, D. Lucchesi, and S. Montangero, Quantum-inspired machine learning on high-energy physics data, npj Quantum Inf. 7, 111 (2021).
- T. Q. Duong, J. A. Ansere, B. Narottama, V. Sharma, O. A. Dobre, and H. Shin, Quantum-inspired machine learning for 6G: Fundamentals, security, resource allocations, challenges, and future research directions, IEEE Open J. Veh. Technol. 3, 375 (2022).
- C. Ding, T.-Y. Bao, and H.-L. Huang, Quantum-inspired support vector machine, IEEE Trans. Neural Networks Learn. Syst. 33, 7210 (2022).
- M. L. Wall and G. D’Aguanno, Tree-tensor-network classifiers for machine learning: From quantum inspired to quantum assisted, Phys. Rev. A 104, 042408 (2021).
- S. Li, M. S. Salek, Y. Wang, and M. Chowdhury, Quantum-inspired activation functions and quantum Chebyshev-polynomial network, arXiv:2404.05901.
- P. Tiwari and M. Melucci, Towards a quantum-inspired binary classifier, IEEE Access 7, 42354 (2019).
- Y. Chen, P. Griffin, P. Recchia, L. Zhou, and H. Zhang, Hybrid quantum neural networks with amplitude encoding: Advancing recovery rate predictions, arXiv:2501.15828.
- E. Hassan, M. S. Hossain, A. Saber, S. Elmougy, A. Ghoneim, and G. Muhammad, A quantum convolutional network and ResNet (50)-based classification architecture for the MNIST medical dataset, Biomed. Signal Process. Control 87, 105560 (2024).
- K. Sun, M. Li, D. Liu, and J. Wang, IGCV3: Interleaved low-rank group convolutions for efficient deep neural networks, in Proceedings of the British Machine Vision Conference 2018 (BMVC 2018), Newcastle upon Tyne, UK (BMVA Press, 2018), p. 101.
- Y. Lin, M. Wang, Z. Zhang, X. Wang, T. Xiao, and J. Zhu, Understanding parameter sharing in transformers, arXiv:2306.09380.
- N. Liu and P. Wittek, Vulnerability of quantum classification to adversarial perturbations, Phys. Rev. A 101, 062331 (2020).
- W. Gong and D.-L. Deng, Universal adversarial examples and perturbations for quantum classifiers, Natl. Sci. Rev. 9, nwab011 (2022).
- Y. Du, M.-H. Hsieh, T. Liu, D. Tao, and N. Liu, Quantum noise protects quantum classifiers against adversaries, Phys. Rev. Res. 3, 023153 (2021).
- S. Lu, L.-M. Duan, and D.-L. Deng, Quantum adversarial machine learning, Phys. Rev. Res. 2, 033212 (2020).
- I. J. Goodfellow, J. Shlens, and C. Szegedy, Explaining and harnessing adversarial examples, arXiv:1412.6572.
- A. Chowdhury, G. Karmakar, J. Kamruzzaman, A. Jolfaei, and R. Das, Attacks on self-driving cars and their countermeasures: A survey, IEEE Access 8, 207308 (2020).
- Y. Deng, X. Zheng, T. Zhang, C. Chen, G. Lou, and M. Kim, An analysis of adversarial attacks and defenses on autonomous driving models, in Proceedings of the 2020 IEEE International Conference on Pervasive Computing and Communications, PerCom, Austin, TX (IEEE, Piscataway, NJ, 2020), pp. 1–10.
- I. J. Goodfellow, J. Shlens, and C. Szegedy, Explaining and harnessing adversarial examples, in Proceedings of the 3rd International Conference on Learning Representations (ICLR, San Diego, CA, 2015).
- N. Papernot, P. McDaniel, X. Wu, S. Jha, and A. Swami, Distillation as a defense to adversarial perturbations against deep neural networks, in Proceedings of the 2016 IEEE Symposium on Security and Privacy (SP), San Jose, California (IEEE, Piscataway, NJ, 2016), pp. 582–597.
- E. Wong and Z. Kolter, Provable defenses against adversarial examples via the convex outer adversarial polytope, in Proceed- ings of the 35th International Conference on Machine Learning, edited by J. Dy and A. Krause (PMLR, Stockholm, Sweden, 2018), Vol. 80, pp. 5286–5295.
- E. A. Cherrat, I. Kerenidis, N. Mathur, J. Landman, M. Strahm, and Y. Y. Li, Quantum vision transformers, Quantum 8, 1265 (2024).
- D. H. Wolpert, The lack ofa priori distinctions between learning algorithms, Neural Comput. 8, 1341 (1996).
- A. Mogelmose, M. M. Trivedi, and T. B. Moeslund, Vision-based traffic sign detection and analysis for intelligent driver assistance systems: Perspectives and survey, IEEE Trans. Intell. Transp. Syst. 13, 1484 (2012).
- C. Ertler, J. Mislej, T. Ollmann, L. Porzi, G. Neuhold, and Y. Kuang, The Mapillary traffic sign dataset for detection and classification on a global scale, in Computer Vision ECCV 2020, edited by A. Vedaldi, H. Bischof, T. Brox, and J.-M. Frahm, Lecture Notes in Computer Science, Vol. 12368 (Springer, Cham, 2020), pp. 68–84.