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

量子复值自注意力模型

Quantum Complex-Valued Self-Attention Model

Macau University of Science and Technology(澳门科技大学);Fuzhou University(福州大学)

Fu Chen, Qinglin Zhao, Li Feng, Longfei Tang, Yangbin Lin, Haitao Huang

AI总结:

本文提出量子复值自注意力模型QCSAM,通过复值酉算符线性组合框架实现复值加权和多头注意力,在MNIST和Fashion-MNIST上以4量子比特分别取得100%和99.2%准确率,优于现有量子自注意力模型。

摘要:

自注意力已经彻底改变了经典机器学习,然而现有的量子自注意力模型由于机制过于简化或不完整,未能充分利用量子态的潜力。为了解决这一局限性,我们提出了量子复值自注意力模型(QCSAM),这是第一个利用复值相似度的框架,能够更全面地捕捉量子态之间的幅度和相位关系。为了实现这一目标,QCSAM 将酉算符线性组合(LCUs)扩展为复值酉算符线性组合(CLCUs)框架,从而能够对量子态进行精确的复值加权,并支持量子多头注意力。在 MNIST 和 Fashion-MNIST 上的实验表明,QCSAM 优于近期的量子自注意力模型,包括 QKSAN、QSAN 和 GQHAN。仅使用 4 个量子比特,QCSAM 在 MNIST 和 Fashion-MNIST 上分别取得了 100% 和 99.2% 的测试准确率。此外,我们评估了在 3-8 个量子比特和 2-4 类任务上的可扩展性,同时消融研究验证了复值注意力权重相对于实值替代方案的优势。这项工作通过增强量子自注意力的表达能力和精确性,推动了量子机器学习的发展,并且这种方式与量子力学固有的复杂性相一致。

英文摘要:

Self-attention has revolutionized classical machine learning, yet existing quantum self-attention models underutilize quantum states' potential due to oversimplified or incomplete mechanisms. To address this limitation, we introduce the Quantum Complex-Valued Self-Attention Model (QCSAM), the first framework to leverage complex-valued similarities, which captures amplitude and phase relationships between quantum states more comprehensively. To achieve this, QCSAM extends the Linear Combination of Unitaries (LCUs) into the Complex LCUs (CLCUs) framework, enabling precise complex-valued weighting of quantum states and supporting quantum multi-head attention. Experiments on MNIST and Fashion-MNIST show that QCSAM outperforms recent quantum self-attention models, including QKSAN, QSAN, and GQHAN. With only 4 qubits, QCSAM achieves 100% and 99.2% test accuracies on MNIST and Fashion-MNIST, respectively. Furthermore, we evaluate scalability across 3-8 qubits and 2-4 class tasks, while ablation studies validate the advantages of complex-valued attention weights over real-valued alternatives. This work advances quantum machine learning by enhancing the expressiveness and precision of quantum self-attention in a way that aligns with the inherent complexity of quantum mechanics.

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

↑