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

使用SASQuaTCh进行学习:一种具有基于核的自注意力的新型变分量子Transformer架构

Learning with SASQuaTCh: a Novel Variational Quantum Transformer Architecture with Kernel-Based Self-Attention

Naval Surface Warfare Center, Panama City Division(海军水面作战中心巴拿马城分部)

Ethan N. Evans, Matthew Cook, Zachary P. Bradshaw, Margarite L. LaBorde

AI总结:

本文提出变分量子Transformer架构SASQuaTCh,利用基于核的自注意力机制和量子傅里叶变换,以指数级降低参数与运行复杂度,并在仅9量子比特下实现高精度手写数字图像分类。

摘要:

近期最先进机器学习模型规模的爆炸性增长突显了一个众所周知的问题:指数级参数增长(如生成式预训练Transformer(GPT)已达到数万亿参数)导致训练时间和内存需求限制了其在近期的进一步发展。主流模型使用所谓的Transformer网络,具有广泛的应用领域,包括预测文本和图像、分类,甚至预测物理系统动力学的解。在此,我们提出一种名为自注意力序列量子Transformer通道(SASQuaTCh)的变分量子电路架构,该架构构建量子比特网络,执行与Transformer网络类似的操作,即关键的自注意力操作,并相对于经典对应方案在参数复杂度和运行时间复杂度上实现指数级改进。我们的方法利用了近期在预测时空系统背景下基于核的算子学习的见解,通过简单的门操作和一组多维量子傅里叶变换来表示视觉Transformer网络的深层。为验证我们的方法,我们在仿真和硬件上考虑了图像分类任务,其中仅使用9个量子比特和少量参数,我们就能够同时嵌入并以高准确率分类手写数字的灰度图像。

英文摘要:

The recent exploding growth in size of state-of-the-art machine learning models highlights a well-known issue where exponential parameter growth, which has grown to trillions as in the case of the Generative Pre-trained Transformer (GPT), leads to training time and memory requirements which limit their advancement in the near term. The predominant models use the so-called transformer network and have a large field of applicability, including predicting text and images, classification, and even predicting solutions to the dynamics of physical systems. Here we present a variational quantum circuit architecture named Self-Attention Sequential Quantum Transformer Channel (SASQuaTCh), which builds networks of qubits that perform analogous operations of the transformer network, namely the keystone self-attention operation, and leads to an exponential improvement in parameter complexity and run-time complexity over its classical counterpart. Our approach leverages recent insights from kernel-based operator learning in the context of predicting spatiotemporal systems to represent deep layers of a vision transformer network using simple gate operations and a set of multi-dimensional quantum Fourier transforms. To validate our approach, we consider image classification tasks in simulation and with hardware, where with only 9 qubits and a handful of parameters we are able to simultaneously embed and classify a grayscale image of handwritten digits with high accuracy.

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

↑