arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.15680quant-ph
收藏

量子自注意力机制的自然 NISQ 模型

A natural NISQ model of quantum self-attention mechanism

Shangshang Shi, Zhimin Wang, Jiaxin Li, Yanan Li, Ruimin Shang, Haiyong Zheng, Guoqiang Zhong, Yongjian Gu

AI总结:

本文提出了一种在量子神经网络中自然实现自注意力机制的量子自注意力机制(QSAM),仅通过设计数据编码和拟设架构即可实现注意力计算,在文本分类任务上以更低电路复杂度取得更好准确率,并展现出对量子噪声的鲁棒性,为构建大规模量子注意力神经网络奠定基础。

摘要:

自注意力机制(SAM)已在各种应用中展现出显著的成功。然而,随着可训练参数数量的增长,在经典计算机上训练 SAM 在计算上变得具有挑战性。量子神经网络(QNNs)已被发展作为一种新颖的学习模型,有望利用近期含噪中等规模量子(NISQ)计算机为模式识别提供加速。在这项工作中,我们提出了一种在 QNNs 中完全自然地实现 SAM 的方法,从而得到量子自注意力机制(QSAM)。SAM 的基本操作,例如计算注意力分数和产生注意力特征,仅通过适当设计数据编码和拟设架构即可实现。由于这些是 QNNs 的基本组成部分,我们的 QSAM 可以在近期 NISQ 设备上高效执行。我们的 QSAM 模型在文本分类任务上,在准确率和电路复杂度两方面都取得了更好的性能。此外,QSAM 对各种典型类型量子噪声的鲁棒性得到了证明,表明该模型适用于 NISQ 设备。当前的 QSAM 将作为基础构建模块,用于开发面向量子优势应用的大规模量子注意力神经网络模型。

英文摘要:

The self-attention mechanism (SAM) has demonstrated remarkable success in various applications. However, training SAM on classical computers becomes computationally challenging as the number of trainable parameters grows. Quantum neural networks (QNNs) have been developed as a novel learning model that promises to provide speedup for pattern recognition using near-term Noisy Intermediate-Scale Quantum (NISQ) computers. In this work, we propose a completely natural way of implementing SAM in QNNs, resulting in the quantum self-attention mechanism (QSAM). The fundamental operations of SAM, such as calculating attention scores and producing attention features, are realized by only designing the data encoding and ansatz architecture appropriately. As these are the fundamental components of QNNs, our QSAM can be executed efficiently on near-term NISQ devices. Our QSAM models achieve better performance in terms of both accuracy and circuit complexity on the text categorization task. Moreover, the robustness of QSAM against various typical types of quantum noise is demonstrated, indicating the model's suitability for NISQ devices. The present QSAM will serve as the fundamental building blocks for developing large models of quantum attention neural networks for quantum advantageous applications.

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

↑