Quantum-inspired Interpretable Deep Learning Architecture for Text Sentiment Analysis
Bingyu Li, Da Zhang, Zhiyuan Zhao, Junyu Gao, Yuan Yuan
TL;DR
This paper addresses the challenge of integrating diverse semantic information with interpretability in text sentiment analysis. It introduces a quantum-inspired architecture (QITSA) that represents text via density matrices and complex word embeddings, leveraging a quantum embedding layer, LSTM-attention feature extraction, Q-Attention fusion, and 2D-CNNs for final classification. The approach combines semantic and sentiment signals through amplitudes and phases, achieving competitive or superior accuracy across five binary sentiment datasets, with notable interpretability stemming from the QM-inspired representation. The work demonstrates that quantum-inspired representations and attention-guided fusion can improve performance while providing mechanisms for visualization and interpretation, suggesting practical impact for robust, explainable NLP models.
Abstract
Text has become the predominant form of communication on social media, embedding a wealth of emotional nuances. Consequently, the extraction of emotional information from text is of paramount importance. Despite previous research making some progress, existing text sentiment analysis models still face challenges in integrating diverse semantic information and lack interpretability. To address these issues, we propose a quantum-inspired deep learning architecture that combines fundamental principles of quantum mechanics (QM principles) with deep learning models for text sentiment analysis. Specifically, we analyze the commonalities between text representation and QM principles to design a quantum-inspired text representation method and further develop a quantum-inspired text embedding layer. Additionally, we design a feature extraction layer based on long short-term memory (LSTM) networks and self-attention mechanisms (SAMs). Finally, we calculate the text density matrix using the quantum complex numbers principle and apply 2D-convolution neural networks (CNNs) for feature condensation and dimensionality reduction. Through a series of visualization, comparative, and ablation experiments, we demonstrate that our model not only shows significant advantages in accuracy and efficiency compared to previous related models but also achieves a certain level of interpretability by integrating QM principles. Our code is available at QISA.
