arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.02730cs.CVcs.LG
收藏

HQViT:用于图像分类的混合量子Vision Transformer

HQViT: Hybrid Quantum Vision Transformer for Image Classification

Macau University of Science and Technology(澳门科技大学);New Jersey Institute of Technology(新泽西理工学院)

Hui Zhang, Qinglin Zhao, Mengchu Zhou, Li Feng

AI总结:

提出混合量子Vision Transformer(HQViT),利用量子计算加速训练并降低资源成本,在多个图像分类任务上性能优于现有模型。

摘要:

基于Transformer的架构彻底改变了深度学习的格局。在计算机视觉领域,Vision Transformer展现出与卷积神经网络相当甚至超越其的卓越性能。然而,其自注意力机制的计算复杂度呈二次方增长,给经典计算带来了挑战,使得使用高维输入数据(例如图像)进行模型训练尤为昂贵。为了解决这些局限性,我们提出了一种混合量子Vision Transformer(HQViT),它利用量子计算原理来加速模型训练,同时提升模型性能。HQViT引入了使用振幅编码的全图处理,以更好地保留全局图像信息,而无需额外的位置编码。通过在最关键的步骤上利用量子计算,并以经典方式选择性地处理其他组件,我们降低了HQViT的量子资源成本。量子比特需求被最小化为$O(log_2N)$,参数化量子门数量仅为$O(log_2d)$,使其非常适合含噪中等规模量子设备。通过将计算密集型的注意力系数矩阵计算卸载到量子框架,HQViT将经典计算负载减少了$O(T^2d)$。在多个计算机视觉数据集上的大量实验表明,HQViT优于现有模型,在最先进的水平上实现了高达$10.9\%$的最大提升(在MNIST 10分类任务上)。这项工作突出了结合量子计算与经典计算以应对复杂图像分类任务的巨大潜力。

英文摘要:

Transformer-based architectures have revolutionized the landscape of deep learning. In computer vision domain, Vision Transformer demonstrates remarkable performance on par with or even surpassing that of convolutional neural networks. However, the quadratic computational complexity of its self-attention mechanism poses challenges for classical computing, making model training with high-dimensional input data, e.g., images, particularly expensive. To address such limitations, we propose a Hybrid Quantum Vision Transformer (HQViT), that leverages the principles of quantum computing to accelerate model training while enhancing model performance. HQViT introduces whole-image processing with amplitude encoding to better preserve global image information without additional positional encoding. By leveraging quantum computation on the most critical steps and selectively handling other components in a classical way, we lower the cost of quantum resources for HQViT. The qubit requirement is minimized to $O(log_2N)$ and the number of parameterized quantum gates is only $O(log_2d)$, making it well-suited for Noisy Intermediate-Scale Quantum devices. By offloading the computationally intensive attention coefficient matrix calculation to the quantum framework, HQViT reduces the classical computational load by $O(T^2d)$. Extensive experiments across various computer vision datasets demonstrate that HQViT outperforms existing models, achieving a maximum improvement of up to $10.9\%$ (on the MNIST 10-classification task) over the state of the art. This work highlights the great potential to combine quantum and classical computing to cope with complex image classification tasks.

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

↑