Next Article in Journal
On Construction and Estimation of Mixture of Log-Bilal Distributions
Previous Article in Journal
Decision Making of Agile Patterns in Offshore Software Development Outsourcing: A Fuzzy Logic-Based Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Quantum-Inspired Fully Complex-Valued Neutral Network for Sentiment Analysis

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
*
Author to whom correspondence should be addressed.
Axioms 2023, 12(3), 308; https://doi.org/10.3390/axioms12030308
Submission received: 22 February 2023 / Revised: 15 March 2023 / Accepted: 17 March 2023 / Published: 19 March 2023

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.
Keywords: quantum theory; sentiment analysis; machine learning; natural language processing quantum theory; sentiment analysis; machine learning; natural language processing

Share and Cite

MDPI and ACS Style

Lai, W.; Shi, J.; Chang, Y. Quantum-Inspired Fully Complex-Valued Neutral Network for Sentiment Analysis. Axioms 2023, 12, 308. https://doi.org/10.3390/axioms12030308

AMA Style

Lai W, Shi J, Chang Y. Quantum-Inspired Fully Complex-Valued Neutral Network for Sentiment Analysis. Axioms. 2023; 12(3):308. https://doi.org/10.3390/axioms12030308

Chicago/Turabian Style

Lai, Wei, Jinjing Shi, and Yan Chang. 2023. "Quantum-Inspired Fully Complex-Valued Neutral Network for Sentiment Analysis" Axioms 12, no. 3: 308. https://doi.org/10.3390/axioms12030308

APA Style

Lai, W., Shi, J., & Chang, Y. (2023). Quantum-Inspired Fully Complex-Valued Neutral Network for Sentiment Analysis. Axioms, 12(3), 308. https://doi.org/10.3390/axioms12030308

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop