Quantum-inspired Interpretable Deep Learning Architecture for Text Sentiment Analysis

Bingyu Li, Da Zhang, Zhiyuan Zhao, Junyu Gao, Yuan Yuan
8/15/2024
cs.CVcs.AIcs.LG

No official code found. Best implementation: LiBingyu01/QITSA (3 stars, last commit 2024-08-16).

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.

View on arXivView PDF

Code Implementations(1)

LiBingyu01/QITSACommunity100%
30Python, Jupyter NotebookJul 28, 20242 years ago

Similar Papers

Cite this paper

@article{li2024quantuminspired,
  title  = {Quantum-inspired Interpretable Deep Learning Architecture for Text Sentiment Analysis},
  author = {Bingyu Li and Da Zhang and Zhiyuan Zhao and Junyu Gao and Yuan Yuan},
  year   = {2024},
  eprint = {2408.07891},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.07891v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.07891.svg)](https://codeofpaper.com/paper/2408.07891)

Discussion