Quantum Graph Transformer for NLP Sentiment Classification
Shamminuj Aktar, Andreas B\"artschi, Abdel-Hameed A. Badawy, Stephan Eidenbenz

TL;DR
The paper introduces the Quantum Graph Transformer, a hybrid quantum-classical model for NLP sentiment analysis that improves accuracy and sample efficiency over existing quantum and classical models by integrating quantum self-attention into graph-based language modeling.
Contribution
It presents the first hybrid quantum graph transformer architecture that incorporates quantum self-attention for structured language modeling in NLP.
Findings
QGT outperforms existing quantum NLP models in accuracy.
QGT improves accuracy by around 5% over classical graph transformers.
QGT requires 50% fewer labeled samples for comparable performance.
Abstract
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 show that QGT consistently achieves higher or comparable accuracy than existing quantum natural language processing (QNLP) models, including both attention-based and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsQuantum Computing Algorithms and Architecture · Quantum many-body systems · Advanced Graph Neural Networks
MethodsLaplacian EigenMap · Laplacian Positional Encodings · Linear Layer · Dense Connections · Position-Wise Feed-Forward Layer · Absolute Position Encodings · Adam · Softmax · Graph Transformer · Label Smoothing
