arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.02871quant-phcs.LG
收藏

量子混合态自注意力网络

Quantum Mixed-State Self-Attention Network

Macau University of Science and Technology(澳门科技大学);Putian University(莆田学院);Jimei University(集美大学)

Fu Chen, Qinglin Zhao, Li Feng, Chuangtao Chen, Yangbin Lin, Jianhong Lin

AI总结:

提出QMSAN,用混合态量子注意力直接计算查询-键相似度,并以固定量子门实现无额外量子比特的位置编码,文本分类性能优于QSANN且抗量子噪声。

摘要:

注意力机制已经彻底改变了自然语言处理。将其与量子计算相结合,旨在进一步推动这项技术的发展。本文介绍了一种用于自然语言处理任务的新型量子混合态自注意力网络(Quantum Mixed-State Self-Attention Network,QMSAN)。我们的模型利用量子计算原理来提升自注意力机制的有效性。QMSAN使用基于混合态的量子注意力机制,允许在量子域中直接估计查询与键之间的相似性。这种方法带来了更有效的注意力系数计算。我们还提出了一种创新的量子位置编码方案,通过电路内的固定量子门实现,在不需要额外量子比特资源的情况下提升模型捕获序列信息的能力。在公开数据集文本分类任务的数值实验中,QMSAN的表现优于量子自注意力神经网络(Quantum Self-Attention Neural Network,QSANN)。此外,我们证明了QMSAN在不同量子噪声环境下的鲁棒性,突显了其在近期量子设备上的潜力。

英文摘要:

Attention mechanisms have revolutionized natural language processing. Combining them with quantum computing aims to further advance this technology. This paper introduces a novel Quantum Mixed-State Self-Attention Network (QMSAN) for natural language processing tasks. Our model leverages quantum computing principles to enhance the effectiveness of self-attention mechanisms. QMSAN uses a quantum attention mechanism based on mixed state, allowing for direct similarity estimation between queries and keys in the quantum domain. This approach leads to more effective attention coefficient calculations. We also propose an innovative quantum positional encoding scheme, implemented through fixed quantum gates within the circuit, improving the model's ability to capture sequence information without additional qubit resources. In numerical experiments of text classification tasks on public datasets, QMSAN outperforms Quantum Self-Attention Neural Network (QSANN). Furthermore, we demonstrate QMSAN's robustness in different quantum noise environments, highlighting its potential for near-term quantum devices.

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

↑