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

用于情感分析的混合量子-经典神经网络

Hybrid quantum-classical neural network for sentiment analysis

Dept. of Physics and Astronomy, Florence Univ.(佛罗伦萨大学物理与天文学系);School of Computer Science and Mathematics, Kingston University London(伦敦金斯顿大学计算机科学与数学学院)

Giacomo Cappiello, Filippo Caruso, Xing Liang, Dimitrios Makris

AI总结:

提出混合量子-经典神经网络用于情感分析,在COVID-19推文数据集上达到与经典模型相当的准确率,并在迁移学习中比经典模型提升15个百分点(从66%到81%),展示了更强的泛化能力。

摘要:

量子机器学习最近作为一种有前景的范式出现,利用量子电路的表达能力来解决复杂的学习任务。在这项工作中,我们研究了混合量子-经典神经网络在情感分析(自然语言处理中的一个核心问题)中的适用性。我们关注一个与COVID-19相关的推文数据集,其中文本内容使用TF-IDF进行向量化,并输入到经典前馈网络和包含参数化量子电路的混合架构中。我们的结果表明,混合模型可以达到与经典基线相当的准确率,同时表现出独特的学习动态,特别是在验证损失和准确率方面,这表明其具有更丰富的表示能力。此外,当将迁移学习应用于短信垃圾邮件分类任务时,混合模型始终优于经典模型,在垃圾邮件类别上准确率提高了15个百分点(从66%到81%),展示了增强的泛化能力。这些发现强调了将QML用于自然语言处理的可行性,并指出了随着量子硬件的持续进步,混合模型的潜在优势。

英文摘要:

Quantum machine learning has recently emerged as a promising paradigm that leverages the expressive power of quantum circuits to address complex learning tasks. In this work, we investigate the applicability of hybrid quantum-classical neural networks to sentiment analysis, a central problem in natural language processing. We focus on a dataset of tweets related to COVID-19, where the textual content is vectorized using TF-IDF and fed into both classical feedforward networks and hybrid architectures incorporating parameterized quantum circuits. Our results show that hybrid models can achieve accuracy comparable to the classical baseline, while exhibiting distinct learning dynamics, especially in terms of validation loss and accuracy, that suggest a richer representational capacity. Moreover, when applying transfer learning to an SMS spam classification task, the hybrid models consistently outperform the classical counterpart, achieving an accuracy increase of 15 percentage points (from 66% to 81%) on the spam class, demonstrating enhanced generalization. These findings highlight the feasibility of employing QML for natural language processing and point toward the potential advantages of hybrid models as quantum hardware continues to advance.

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

↑