Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

Adaptive Quantum-Inspired Graph Transformer for NLP Sentiment Classification

Jiarong Pan, Mingxuan Kuang

Published Nov 24, 2025• 0 citations
Publisher

Abstract

Sentiment classification remains challenging due to subtle semantic cues and long-range contextual dependencies that are often difficult for existing models to capture. Although the Quantum Graph Transformer (QGT) offers a hybrid quantum–classical perspective, its reliance on fully connected graphs and less flexible attention mechanisms limits its effectiveness. To overcome these issues, we introduce the Adaptive Quantum-Inspired Graph Transformer (AQGT), which incorporates an adaptive semantic graph construction method that forms sparse yet informative graphs, along with a quantum-inspired message passing unit for more efficient feature aggregation. AQGT processes text through a multi-layer hybrid architecture that dynamically models semantic structure and enhances node interactions through principled message passing. Experiments on multiple sentiment classification benchmarks show that AQGT achieves consistently stronger performance than classical models and the original QGT. Ablation studies validate the importance of the adaptive graph and message passing components. AQGT further displays good sample efficiency, stable behavior across hyperparameters, and strong qualitative performance in handling nuanced sentiment phenomena such as sarcasm and implicit polarity. These findings demonstrate AQGT’s capability as a robust and expressive model for complex sentiment analysis.

DOI
10.20944/preprints202511.1735.v1

Related papers

Quantum Graph Transformer for NLP Sentiment Classification

Shamminuj Aktar, Andreas Bärtschi, Abdel‐Hameed A. Badawy +1 more

Quantum machine learning is a promising direction for building more efficient and expressive models, particularly in domains where understanding complex, structured data is critical. We present the Quantum Graph Transformer (QGT), a hybrid graph-based architecture that integrates a quantum self-attention mechanism into the message-passing framework for structured language modeling. The attention mechanism is implemented using parameterized quantum circuits (PQCs), which enable the model to capture rich contextual relationships while significantly reducing the number of trainable parameters compared to classical attention mechanisms. We evaluate QGT on five sentiment classification benchmarks. Experimental results demonstrate that QGT effectively learns sentiment representations, achieving accuracies of 93.0%, 90.5%, and 88.0% on the Yelp, IMDB, and Amazon datasets, and 100% and 95.12% on the synthetic MC and RP datasets, respectively. These results highlight the potential of graph-based quantum NLP techniques for advancing efficient and scalable language understanding.

arXiv:2506.07937•IEEE International Conference on Quantum Computing and Engineering (QCE)•Aug 30, 2025•10 citations

Hybrid Quantum–Classical Graph Transformers for Efficient Sentiment Analysis

Shamminuj Aktar, Andreas Bärtschi, Abdel‐Hameed A. Badawy +1 more

ABSTRACT Quantum Machine Learning (QML) offers a promising paradigm that leverages quantum computing principles to develop efficient and expressive models for learning from complex and structured data. Recent advances in natural language processing (NLP) and artificial intelligence (AI) have demonstrated capabilities in understanding, generating, and reasoning over linguistic and multimodal information. In this work, we present the Quantum Graph Transformer (QGT) , a hybrid quantum–classical architecture that extends graph transformer capabilities through quantum self‐attention. The QGT models variable‐length sentences as token graphs, where both the embedding encoding and the self‐attention mechanisms are implemented using parameterized quantum circuits (PQCs), enabling efficient contextual learning with significantly fewer trainable parameters. We train QGT using both fully connected and ‐nearest‐neighbor graph structures and evaluate it on five benchmark sentiment‐classification datasets. Experimental results show that QGT consistently achieves higher or comparable accuracy to existing quantum NLP models and outperforms a Classical Graph Transformer (CGT) baseline with identical architecture, achieving fewer parameters while requiring 3– fewer samples to reach comparable performance. These findings highlight the potential of graph‐based quantum models as scalable and data‐efficient architectures for natural language understanding.

Advanced Quantum Technologies•Mar 1, 2026•1 citation

Quantum-Enhanced Adaptive Graph Convolutional Networks for Sentiment Representation Learning

Mingrui Rao, Zihan Long

Sentiment classification struggles with complex semantic relationships using static text graphs. We introduce the Quantum-Enhanced Adaptive Graph Convolutional Network (QAGCN), a hybrid quantum-classical architecture for robust sentiment representation. QAGCN's core is a Quantum-Enhanced Graph Construction Module employing a Parameterized Quantum Circuit (PQC) to dynamically learn emotional association strengths between word pairs. This generates a task-adaptive adjacency matrix, which then feeds into classical GNN layers. Evaluations on benchmark datasets (Yelp, IMDB, Amazon, MC, RP) demonstrate QAGCN's superior or competitive accuracy against state-of-the-art classical graph models and the Quantum Graph Transformer. QAGCN notably improved performance on Amazon where prior quantum models struggled, underscoring its adaptive graph construction's efficacy. An ablation study confirms the critical contribution of PQC-driven adaptive graph learning. Our findings highlight the significant potential of quantum-enhanced adaptive graph learning for complex Natural Language Processing.

•Jan 6, 2026•0 citations

Hybrid Quantum-Classical Layers for Sentiment Analysis in Natural Language Processing

Medisetti Esther Rani, Tupakula Sai Sarnya

NLP models have shown remarkable performance for sentiment analysis and text classification tasks due to the deep neural networks and transformer architectures. However, these models typically necessitate considerable computational resources, high parameter complexity and large scale training datasets. Recently, quantum computing has emerged as a promising paradigm that can enhance machine learning systems using quantum parallelism, superposition, and entanglement. In this paper, we propose a new Hybrid Quantum-Classical NLP architecture that combines variational quantum circuit (VQC) layers with classical neural network layers for effective sentiment analysis. The proposed framework combines classical embedding and LSTM layers with a quantum-enhanced variational layer to improve feature representation and classification performance. The proposed framework combines classical embedding and LSTM layers with a quantum-enhanced variational layer to enhance the feature representation and classification performance. The quantum layer is realized via parameterized quantum circuits and optimized using hybrid gradient-based learning techniques. The effectiveness of The proposed framework combines classical embedding and LSTM layers with a quantum-enhanced variational layer to enhance the feature representation and classification performance. The quantum layer is realized via parameterized quantum circuits and optimized using hybrid gradient-based learning techniques. The effectiveness of the proposed model is evaluated on the benchmark sentiment analysis datasets such as IMDb and SST-2 experiments. The hybrid architecture is compared with standard deep learning models in terms of accuracy, training complexity and parameter efficiency. The experimental results show that the proposed quantum-enhanced model can achieve competitive classification accuracy while reducing model complexity and improving contextual semantic learning.

International Conference on Natural Language Processing and Computer Vision (ICNPCV)•Jul 1, 2026•0 citations

Quantum-Inspired Deep Learning Techniques for Sentiment Analysis

Ramesh S. Wadawadagi, Sarada B, G Hemanth Kumar +2 more

In recent days, sentiment analysis (SA) has emerged as a critical aspect of data analytics as user-generated content is rapidly disseminating across social media platforms, and other online channels. Breakthroughs in NLP and DL have significantly improved the contextual understanding and efficiency of SA models. Despite their success, traditional NLP and DL models have faced limitations within high-dimensional feature spaces, parameter optimization, and data scalability. This research work presents a novel SA framework based on quantum inspired DL (QIDL) techniques. We investigated hybrid models that integrate classical DL techniques with quantum inspired learning such as feature encoding, attention mechanisms, and context modeling. Three QIDL models have been studied, namely, QCNN, QLSTM, and QBERT. The performance of these models is evaluated on three benchmark sentiment datasets: IMDb, Twitter Sentiment, and SST-5. The experimental studies on the IMDb, Twitter Sentiment, and SST-5 datasets show that QCNN, QLSTM, and Q-BERT surpass their classical counterparts by approximately 1.6-2.7%, 1.5-3.3%; 1.5-2.6%, 1.4-4.2%; and 1-3%, 1.7-2.6%, respectively, in classification accuracy and macro-F1 score. Of all the benchmark models, Q-BERT achieved the best overall performance, attaining 55.8% accuracy and a macro-F1 score of 54.2% on the multi-class SST-5 dataset. Hence, it is evident that the proposed QIDL models achieve competitive classification performance while maintaining robustness in sparse and highdimensional settings.

International Conference on Emerging Technologies in Computing and Communication (ETCC)•Jul 1, 2026•0 citations

QTrans: A Quantum Transformer for Sentiment Classification

Ren-Xin Zhao, Xinjie Huang, Yahong Liu +4 more

In small-scale binary sentiment classification scenarios, factors such as negation, contrastive shifts, and cross-word dependencies lead to the non-linear coupling of sentiment cues, making it difficult for conventional lightweight models to fully capture the contextual relationships between tokens. To address this issue, we propose a model named QTrans, which uses parameterized quantum circuits to construct query, key, and value features and derives attention coefficients from Gaussian distances between quantum measurements. By further integrating a quantum feed-forward neural network, residual connections, and layer normalization, the model establishes an end-to-end trainable quantum-classical hybrid framework for sentiment classification. Experimental results on the MR, CR, and MPQA datasets show that QTrans achieves test accuracies of 72.13\%, 69.51\%, and 63.45\%, respectively, representing improvements of 2.88, 3.17, and 3.79 percentage points over the best-performing classical baselines for each dataset. Overall, QTrans expands the application of parameterized quantum circuits in lightweight sentiment analysis and lays an experimental foundation for further research into quantum multi-head self-attention for modeling textual relationships.

arXiv:2609.12011•Sep 10, 2026•0 citations
Sentiment classification remains challenging due to subtle semantic cues and long-range contextual dependencies that are often difficult for existing models to capture. Although the Quantum Graph Transformer (QGT) offers a hybrid quantum–classical perspective, its reliance on fully connected graphs and less flexible attention mechanisms limits its effectiveness. To overcome these issues, we introduce the Adaptive Quantum-Inspired Graph Transformer (AQGT), which incorporates an adaptive semantic graph construction method that forms sparse yet informative graphs, along with a quantum-inspired message passing unit for more efficient feature aggregation. AQGT processes text through a multi-layer hybrid architecture that dynamically models semantic structure and enhances node interactions through principled message passing. Experiments on multiple sentiment classification benchmarks show that AQGT achieves consistently stronger performance than classical models and the original QGT. Ablation studies validate the importance of the adaptive graph and message passing components. AQGT further displays good sample efficiency, stable behavior across hyperparameters, and strong qualitative performance in handling nuanced sentiment phenomena such as sarcasm and implicit polarity. These findings demonstrate AQGT’s capability as a robust and expressive model for complex sentiment analysis.
Quantum machine learning is a promising direction for building more efficient and expressive models, particularly in domains where understanding complex, structured data is critical. We present the Quantum Graph Transformer (QGT), a hybrid graph-based architecture that integrates a quantum self-attention mechanism into the message-passing framework for structured language modeling. The attention mechanism is implemented using parameterized quantum circuits (PQCs), which enable the model to capture rich contextual relationships while significantly reducing the number of trainable parameters compared to classical attention mechanisms. We evaluate QGT on five sentiment classification benchmarks. Experimental results demonstrate that QGT effectively learns sentiment representations, achieving accuracies of 93.0%, 90.5%, and 88.0% on the Yelp, IMDB, and Amazon datasets, and 100% and 95.12% on the synthetic MC and RP datasets, respectively. These results highlight the potential of graph-based quantum NLP techniques for advancing efficient and scalable language understanding.
ABSTRACT Quantum Machine Learning (QML) offers a promising paradigm that leverages quantum computing principles to develop efficient and expressive models for learning from complex and structured data. Recent advances in natural language processing (NLP) and artificial intelligence (AI) have demonstrated capabilities in understanding, generating, and reasoning over linguistic and multimodal information. In this work, we present the Quantum Graph Transformer (QGT) , a hybrid quantum–classical architecture that extends graph transformer capabilities through quantum self‐attention. The QGT models variable‐length sentences as token graphs, where both the embedding encoding and the self‐attention mechanisms are implemented using parameterized quantum circuits (PQCs), enabling efficient contextual learning with significantly fewer trainable parameters. We train QGT using both fully connected and ‐nearest‐neighbor graph structures and evaluate it on five benchmark sentiment‐classification datasets. Experimental results show that QGT consistently achieves higher or comparable accuracy to existing quantum NLP models and outperforms a Classical Graph Transformer (CGT) baseline with identical architecture, achieving fewer parameters while requiring 3– fewer samples to reach comparable performance. These findings highlight the potential of graph‐based quantum models as scalable and data‐efficient architectures for natural language understanding.
Sentiment classification struggles with complex semantic relationships using static text graphs. We introduce the Quantum-Enhanced Adaptive Graph Convolutional Network (QAGCN), a hybrid quantum-classical architecture for robust sentiment representation. QAGCN's core is a Quantum-Enhanced Graph Construction Module employing a Parameterized Quantum Circuit (PQC) to dynamically learn emotional association strengths between word pairs. This generates a task-adaptive adjacency matrix, which then feeds into classical GNN layers. Evaluations on benchmark datasets (Yelp, IMDB, Amazon, MC, RP) demonstrate QAGCN's superior or competitive accuracy against state-of-the-art classical graph models and the Quantum Graph Transformer. QAGCN notably improved performance on Amazon where prior quantum models struggled, underscoring its adaptive graph construction's efficacy. An ablation study confirms the critical contribution of PQC-driven adaptive graph learning. Our findings highlight the significant potential of quantum-enhanced adaptive graph learning for complex Natural Language Processing.
NLP models have shown remarkable performance for sentiment analysis and text classification tasks due to the deep neural networks and transformer architectures. However, these models typically necessitate considerable computational resources, high parameter complexity and large scale training datasets. Recently, quantum computing has emerged as a promising paradigm that can enhance machine learning systems using quantum parallelism, superposition, and entanglement. In this paper, we propose a new Hybrid Quantum-Classical NLP architecture that combines variational quantum circuit (VQC) layers with classical neural network layers for effective sentiment analysis. The proposed framework combines classical embedding and LSTM layers with a quantum-enhanced variational layer to improve feature representation and classification performance. The proposed framework combines classical embedding and LSTM layers with a quantum-enhanced variational layer to enhance the feature representation and classification performance. The quantum layer is realized via parameterized quantum circuits and optimized using hybrid gradient-based learning techniques. The effectiveness of The proposed framework combines classical embedding and LSTM layers with a quantum-enhanced variational layer to enhance the feature representation and classification performance. The quantum layer is realized via parameterized quantum circuits and optimized using hybrid gradient-based learning techniques. The effectiveness of the proposed model is evaluated on the benchmark sentiment analysis datasets such as IMDb and SST-2 experiments. The hybrid architecture is compared with standard deep learning models in terms of accuracy, training complexity and parameter efficiency. The experimental results show that the proposed quantum-enhanced model can achieve competitive classification accuracy while reducing model complexity and improving contextual semantic learning.
In recent days, sentiment analysis (SA) has emerged as a critical aspect of data analytics as user-generated content is rapidly disseminating across social media platforms, and other online channels. Breakthroughs in NLP and DL have significantly improved the contextual understanding and efficiency of SA models. Despite their success, traditional NLP and DL models have faced limitations within high-dimensional feature spaces, parameter optimization, and data scalability. This research work presents a novel SA framework based on quantum inspired DL (QIDL) techniques. We investigated hybrid models that integrate classical DL techniques with quantum inspired learning such as feature encoding, attention mechanisms, and context modeling. Three QIDL models have been studied, namely, QCNN, QLSTM, and QBERT. The performance of these models is evaluated on three benchmark sentiment datasets: IMDb, Twitter Sentiment, and SST-5. The experimental studies on the IMDb, Twitter Sentiment, and SST-5 datasets show that QCNN, QLSTM, and Q-BERT surpass their classical counterparts by approximately 1.6-2.7%, 1.5-3.3%; 1.5-2.6%, 1.4-4.2%; and 1-3%, 1.7-2.6%, respectively, in classification accuracy and macro-F1 score. Of all the benchmark models, Q-BERT achieved the best overall performance, attaining 55.8% accuracy and a macro-F1 score of 54.2% on the multi-class SST-5 dataset. Hence, it is evident that the proposed QIDL models achieve competitive classification performance while maintaining robustness in sparse and highdimensional settings.
In small-scale binary sentiment classification scenarios, factors such as negation, contrastive shifts, and cross-word dependencies lead to the non-linear coupling of sentiment cues, making it difficult for conventional lightweight models to fully capture the contextual relationships between tokens. To address this issue, we propose a model named QTrans, which uses parameterized quantum circuits to construct query, key, and value features and derives attention coefficients from Gaussian distances between quantum measurements. By further integrating a quantum feed-forward neural network, residual connections, and layer normalization, the model establishes an end-to-end trainable quantum-classical hybrid framework for sentiment classification. Experimental results on the MR, CR, and MPQA datasets show that QTrans achieves test accuracies of 72.13\%, 69.51\%, and 63.45\%, respectively, representing improvements of 2.88, 3.17, and 3.79 percentage points over the best-performing classical baselines for each dataset. Overall, QTrans expands the application of parameterized quantum circuits in lightweight sentiment analysis and lays an experimental foundation for further research into quantum multi-head self-attention for modeling textual relationships.