Skip to main content
QUICK REVIEW

[论文解读] A natural NISQ model of quantum self-attention mechanism

Shangshang Shi, Zhimin Wang|arXiv (Cornell University)|May 25, 2023
Quantum Computing Algorithms and ArchitectureComputer Science被引用 3
一句话总结

该论文提出了一种天然兼容NISQ的量子自注意力机制(QSAM),通过仅使用数据编码和量子线路设计,将自注意力机制原生地集成到量子神经网络中。该方法在文本分类任务中实现了更高的准确率和更低的电路复杂度,同时对常见的量子噪声表现出强鲁棒性,适用于近期的量子设备。

ABSTRACT

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.

研究动机与目标

  • 开发一种在近期量子神经网络中本征高效的自注意力机制实现方法。
  • 解决随着模型规模增大,经典自注意力机制训练时计算瓶颈的问题。
  • 实现在含噪声中等规模量子(NISQ)设备上量子注意力模型的实际部署。
  • 确保对NISQ硬件中典型量子噪声的鲁棒性。
  • 为大规模量子注意力神经网络建立基础构建模块。

提出的方法

  • 通过设计合适的数据编码方式与量子线路架构,自然实现注意力分数计算与特征聚合,从而实现量子自注意力机制(QSAM)。
  • 利用量子线路固有的酉演化特性,通过态制备与酉操作计算注意力分数。
  • 线路架构被设计为保留自注意力的关键功能组件,如查询-键点积运算与值特征重建。
  • 架构优化为浅层电路,以减少门数与深度,符合NISQ设备的约束条件。
  • 采用当前超导与离子阱平台典型的标准噪声模型评估抗噪能力。
  • 该方法避免额外的经典后处理或外部优化层,实现端到端的量子操作。

实验结果

研究问题

  • RQ1自注意力机制能否在不依赖外部经典组件的前提下,自然嵌入量子神经网络?
  • RQ2所提出的QSAM电路复杂度与经典注意力及其他量子注意力模型相比如何?
  • RQ3QSAM在真实NISQ级噪声下能保持多大程度的性能?
  • RQ4QSAM能否仅通过量子操作在文本分类任务中实现具有竞争力的准确率?
  • RQ5线路设计与数据编码在实现高效量子注意力计算中起到何种作用?

主要发现

  • QSAM模型在文本分类基准测试中,分类准确率高于基线量子注意力模型。
  • QSAM的电路深度与门数显著低于其他量子注意力实现方案,表明其具有更高的效率。
  • 该模型在多种量子噪声下(包括退极化与振幅阻尼通道)均保持稳定性能。
  • QSAM对门错误与退相干表现出强鲁棒性,证实其在当前NISQ硬件中的可行性。
  • 通过本征编码与线路设计将自注意力集成至量子线路,实现了无需经典瓶颈的端到端量子操作。
  • 所提出方法可作为未来大规模量子注意力网络的可扩展基础。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。