arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.07937cs.CLquant-ph
收藏

用于NLP情感分类的量子图Transformer

Quantum Graph Transformer for NLP Sentiment Classification

CCS-3 Information Sciences Los Alamos National Laboratory Los Alamos, NM USA;Klipsch School of Electrical;Computer Engineering New Mexico State University Las Cruces, NM USA;CCS-3 Information Sciences Los Alamos National Laboratory;Computer Engineering New Mexico State University

Shamminuj Aktar, Andreas Bärtschi, Abdel-Hameed A. Badawy, Stephan Eidenbenz

AI总结:

提出混合量子图Transformer模型QGT,利用PQC实现自注意力并融入消息传递,在五个情感分类基准上优于现有QNLP模型且参数更少、样本效率更高。

摘要:

量子机器学习是构建更高效、更具表达能力模型的一个有前景方向,尤其是在理解复杂结构化数据至关重要的领域。我们提出 Quantum Graph Transformer(QGT,量子图Transformer),这是一种基于图的混合架构,将量子自注意力机制集成到用于结构化语言建模的消息传递框架中。该注意力机制通过参数化量子电路(PQC)实现,使模型能够捕捉丰富的上下文关系,同时与经典注意力机制相比显著减少可训练参数数量。我们在五个情感分类基准上评估 QGT。实验结果表明,QGT 始终取得高于或可比于现有量子自然语言处理(QNLP)模型的准确率,包括基于注意力和非基于注意力的方法。与等效的经典图 Transformer 相比,QGT 在真实世界数据集上带来 5.42% 的平均准确率提升,在合成数据集上带来 4.76% 的平均提升。此外,QGT 展现出更好的样本效率:在 Yelp 数据集上达到可比性能所需的有标注样本减少近 50%。这些结果凸显了基于图的 QNLP 技术在推动高效、可扩展语言理解方面的潜力。

英文摘要:

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 non-attention-based approaches. When compared with an equivalent classical graph transformer, QGT yields an average accuracy improvement of 5.42% on real-world datasets and 4.76% on synthetic datasets. Additionally, QGT demonstrates improved sample efficiency, requiring nearly 50% fewer labeled samples to reach comparable performance on the Yelp dataset. These results highlight the potential of graph-based QNLP techniques for advancing efficient and scalable language understanding.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑