量子视觉Transformer
Quantum Vision Transformers
AI总结:
本文提出三种量子Transformer架构,利用复合矩阵保证量子注意力在运行时间和参数量上的理论优势,并在医学图像数据集上以更少参数取得优于经典视觉Transformer的性能。
摘要:
在这项工作中,通过扩展在自然语言处理和图像分析中已知性能非常出色的最先进经典Transformer神经网络架构,对量子Transformer进行了详细的设计和分析。在先前工作的基础上,该先前工作使用参数化量子电路进行数据加载和正交神经层,我们引入了三种用于训练和推理的量子Transformer,包括一种基于复合矩阵的量子Transformer,它在渐近运行时间和模型参数数量两方面都从理论上保证了量子注意力机制相对于其经典对应物的优势。这些量子架构可以使用浅层量子电路构建,并产生性质上不同的分类模型。所提出的三种量子注意力层在紧密遵循经典Transformer和表现出更多量子特性之间的谱系上有所不同。作为量子Transformer的构建模块,我们提出了一种将矩阵加载为量子态的新方法,以及两个新的可训练量子正交层,它们可适应不同水平的连通性和量子计算机质量。我们在标准医学图像数据集上对量子Transformer进行了大量模拟,结果表明与经典基准相比具有竞争力,有时甚至表现更好,包括同类最佳的经典视觉Transformer。我们在这些小规模数据集上训练的量子Transformer与标准经典基准相比需要更少的参数。最后,我们在超导量子计算机上实现了我们的量子Transformer,并在最多六个量子比特的实验中获得了令人鼓舞的结果。
英文摘要:
In this work, quantum transformers are designed and analysed in detail by extending the state-of-the-art classical transformer neural network architectures known to be very performant in natural language processing and image analysis. Building upon the previous work, which uses parametrised quantum circuits for data loading and orthogonal neural layers, we introduce three types of quantum transformers for training and inference, including a quantum transformer based on compound matrices, which guarantees a theoretical advantage of the quantum attention mechanism compared to their classical counterpart both in terms of asymptotic run time and the number of model parameters. These quantum architectures can be built using shallow quantum circuits and produce qualitatively different classification models. The three proposed quantum attention layers vary on the spectrum between closely following the classical transformers and exhibiting more quantum characteristics. As building blocks of the quantum transformer, we propose a novel method for loading a matrix as quantum states as well as two new trainable quantum orthogonal layers adaptable to different levels of connectivity and quality of quantum computers. We performed extensive simulations of the quantum transformers on standard medical image datasets that showed competitively, and at times better performance compared to the classical benchmarks, including the best-in-class classical vision transformers. The quantum transformers we trained on these small-scale datasets require fewer parameters compared to standard classical benchmarks. Finally, we implemented our quantum transformers on superconducting quantum computers and obtained encouraging results for up to six qubit experiments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。