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

NLP中的量子增强注意力机制:一种混合经典-量子方法

Quantum-Enhanced Attention Mechanism in NLP: A Hybrid Classical-Quantum Approach

Department of Computer Science and Engineering, BRAC University, Dhaka, Bangladesh(计算机科学与工程系,BRAC大学,达卡,孟加拉国)

S. M. Yousuf Iqbal Tomal, Abdullah Al Shafin, Debojit Bhattacharjee, MD. Khairul Amin, Rafiad Sadat Shahir

AI总结:

本研究提出一种混合经典-量子Transformer模型,通过参数化变分电路将词元表示嵌入量子Hilbert空间并利用纠缠感知核相似性,构建了量子增强注意力机制,在NLP基准上展现出比经典注意力更高的效率、表示能力及更少的参数需求。

摘要:

量子计算的最新进展为增强深度学习架构开辟了新途径,特别是在自然语言处理(NLP)等具有高维和丰富上下文数据的领域。在本研究中,我们提出了一种混合经典-量子Transformer模型,将量子增强注意力机制集成到标准经典架构中。通过参数化变分电路将词元表示嵌入到量子Hilbert空间,并利用纠缠感知核相似性,该模型能够捕捉传统点积注意力无法触及的复杂语义关系。我们在多样化的NLP基准上证明了该方法的有效性,展示了在效率和表示能力两方面的提升。结果部分表明,量子注意力层产生了全局连贯的注意力图和更具可分性的潜在特征,同时所需的参数比经典对应物更少。这些发现突显了量子-经典混合模型作为NLP中现有注意力机制的强大且资源高效的替代方案的潜力。

英文摘要:

Recent advances in quantum computing have opened new pathways for enhancing deep learning architectures, particularly in domains characterized by high-dimensional and context-rich data such as natural language processing (NLP). In this work, we present a hybrid classical-quantum Transformer model that integrates a quantum-enhanced attention mechanism into the standard classical architecture. By embedding token representations into a quantum Hilbert space via parameterized variational circuits and exploiting entanglement-aware kernel similarities, the model captures complex semantic relationships beyond the reach of conventional dot-product attention. We demonstrate the effectiveness of this approach across diverse NLP benchmarks, showing improvements in both efficiency and representational capacity. The results section reveal that the quantum attention layer yields globally coherent attention maps and more separable latent features, while requiring comparatively fewer parameters than classical counterparts. These findings highlight the potential of quantum-classical hybrid models to serve as a powerful and resource-efficient alternative to existing attention mechanisms in NLP.

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

↑