Quantum-Inspired Fully Complex-Valued Neutral Network for Sentiment Analysis
Author:
Lai Wei1, Shi Jinjing1ORCID, Chang Yan2
Affiliation:
1. School of Computer Science and Engineering, Central South University, Changsha 410083, China 2. Advanced Cryptography and System Security Key Laboratory of Sichuan Province, Chengdu 610025, China
Abstract
Most of the existing quantum-inspired models are based on amplitude-phase embedding to model natural language, which maps words into Hilbert space. In quantum-computing theory, the vectors corresponding to quantum states are all complex values, so there is a gap between these two areas. Presently, complex-valued neural networks have been studied, but their practical applications are few, let alone in the downstream tasks of natural language processing such as sentiment analysis and language modeling. In fact, the complex-valued neural network can use the imaginary part information to embed hidden information and can express more complex information, which is suitable for modeling complex natural language. Meanwhile, quantum-inspired models are defined in Hilbert space, which is also a complex space. So it is natural to construct quantum-inspired models based on complex-valued neural networks. Therefore, we propose a new quantum-inspired model for NLP, ComplexQNN, which contains a complex-valued embedding layer, a quantum encoding layer, and a measurement layer. The modules of ComplexQNN are fully based on complex-valued neural networks. It is more in line with quantum-computing theory and easier to transfer to quantum computers in the future to achieve exponential acceleration. We conducted experiments on six sentiment-classification datasets comparing with five classical models (TextCNN, GRU, ELMo, BERT, and RoBERTa). The results show that our model has improved by 10% in accuracy metric compared with TextCNN and GRU, and has competitive experimental results with ELMo, BERT, and RoBERTa.
Funder
National Natural Science Foundation of China Education Department of Hunan Province of China Special Foundation for Distinguished Young Scientists of Changsha Open Fund of Advanced Cryptography and System Security Key Laboratory of Sichuan Province
Subject
Geometry and Topology,Logic,Mathematical Physics,Algebra and Number Theory,Analysis
Reference49 articles.
1. Wu, S., Li, J., Zhang, P., and Zhang, Y. (2021, January 7–11). Natural Language Processing Meets Quantum Physics: A Survey and Categorization. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, Virtually. 2. Deep learning for sentiment analysis: A survey;Zhang;Wiley Interdiscip. Rev. Data Min. Knowl. Discov.,2018 3. Conversational question answering: A survey;Zaib;Knowl. Inf. Syst.,2022 4. Celikyilmaz, A., Clark, E., and Gao, J. (2020). Evaluation of text generation: A survey. arXiv. 5. Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., and Polosukhin, I. (2017). Advances in Neural Information Processing Systems 30, Proceedings of the 31st International Conference on Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017, Curran Associates Inc.
Cited by
5 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
|
|