量子混合神经网络在情感分析中表现不俗,还能更好迁移学习。
Hybrid quantum-classical neural network for sentiment analysis

- 用量子电路+经典网络混合架构处理文本情感
- 在垃圾短信识别上准确率提升15个百分点至81%
- 适合对量子机器学习感兴趣的自然语言处理研究者
量子机器学习近年来成为利用量子线路表达能力解决复杂学习任务的有前景范式。本文研究了混合量子-经典神经网络在情感分析中的应用,聚焦于新冠相关推文数据集,文本通过TF-IDF向量化后输入经典前馈网络及包含参数化量子电路的混合架构。结果表明,混合模型可达到与经典基线相当的准确率,且在验证损失和准确率上的学习动态差异,暗示更强的表征能力。此外,在短信垃圾邮件分类任务中应用迁移学习时,混合模型持续优于经典模型,垃圾邮件类准确率从66%提升至81%,显著增强泛化性能。这些发现表明量子机器学习在自然语言处理中的可行性,并指向随着量子硬件发展,混合模型可能带来的潜在优势。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。