arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.07563quant-phcs.AIcs.LG
收藏

QSAN:一种近期可实现的量子自注意力网络

QSAN: A Near-term Achievable Quantum Self-Attention Network

Northwestern Polytechnical University(西北工业大学);Key Laboratory of Intelligent Interaction and Applications (Northwestern Polytechnical University), Ministry of Industry and Information Technology(工业和信息化部智能交互与应用重点实验室(西北工业大学))

Jinjing Shi, Ren-Xin Zhao, Wenxuan Wang, Shichao Zhang, Xuelong Li

AI总结:

本文提出量子自注意力网络QSAN,通过量子逻辑相似度和量子比特自注意力得分矩阵在量子计算机上完整实现自注意力机制,在MNIST上以更快收敛速度和100%准确率验证了其优越性。

摘要:

自注意力机制(SAM)擅长捕捉特征的内部联系,能大幅提升机器学习模型的性能,尤其是在需要高效表征和提取高维数据特征的场景中。本文针对近期量子设备上的图像分类任务,提出了一种新颖的量子自注意力网络(QSAN)。首先,探索了包含量子逻辑相似度(QLS)和量子比特自注意力得分矩阵(QBSASM)的量子自注意力机制(QSAM),作为QSAN的理论基础,以增强SAM的数据表征能力。QLS用于避免通过测量获取内积,从而使QSAN能够完全在量子计算机上实现;QBSASM作为QSAN演化的结果,产生一个能有效反映输出注意力分布的密度矩阵。然后,设计了QSAN的一步实现框架和量子电路,以充分考虑在中间过程中获取QBSASM时对测量次数的压缩,同时在量子电路中引入量子坐标原型,用于描述输出比特与控制比特之间的数学关系,从而便于编程实现。最后,在pennylane平台上对MNIST数据集进行的方法比较和二分类实验表明,在相似参数配置下,QSAN的收敛速度分别比硬件高效拟设(hardware-efficient ansatz)和QAOA拟设(QAOA ansatz)快约1.7倍和2.3倍,并达到100%的预测准确率,这表明QSAN具有更好的学习能力。QSAN非常适合对图像及其他数据的主次关系进行快速深入分析,从增强模型信息提取能力的角度来看,在量子计算机视觉应用中具有巨大潜力。

英文摘要:

Self-Attention Mechanism (SAM) is good at capturing the internal connections of features and greatly improves the performance of machine learning models, espeacially requiring efficient characterization and feature extraction of high-dimensional data. A novel Quantum Self-Attention Network (QSAN) is proposed for image classification tasks on near-term quantum devices. First, a Quantum Self-Attention Mechanism (QSAM) including Quantum Logic Similarity (QLS) and Quantum Bit Self-Attention Score Matrix (QBSASM) is explored as the theoretical basis of QSAN to enhance the data representation of SAM. QLS is employed to prevent measurements from obtaining inner products to allow QSAN to be fully implemented on quantum computers, and QBSASM as a result of the evolution of QSAN to produce a density matrix that effectively reflects the attention distribution of the output. Then, the framework for one-step realization and quantum circuits of QSAN are designed for fully considering the compression of the measurement times to acquire QBSASM in the intermediate process, in which a quantum coordinate prototype is introduced as well in the quantum circuit for describing the mathematical relation between the output and control bits to facilitate programming. Ultimately, the method comparision and binary classification experiments on MNIST with the pennylane platform demonstrate that QSAN converges about 1.7x and 2.3x faster than hardware-efficient ansatz and QAOA ansatz respevtively with similar parameter configurations and 100% prediction accuracy, which indicates it has a better learning capability. QSAN is quite suitable for fast and in-depth analysis of the primary and secondary relationships of image and other data, which has great potential for applications of quantum computer vision from the perspective of enhancing the information extraction ability of models.

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

↑