返回
A light-weight quantum self-attention model for classical data classification
DOI:10.1007/s10489-024-05337-w.png)
摘要
En 中文
As an interdisciplinary field combining quantum computation and machine learning, Quantum Machine Learning (QML) has shown the potential to outperform classical machine learning on some algorithms. Given that the transformer, with self-attention as its core mechanism, has become a popular backbone model in the field of machine learning, the exploration of a quantum version of the self-attention mechanism has become an intriguing topic. In this paper, we propose a Quantum Self-Attention Model (QSAM) based on Variational Quantum Algorithms (VQA), aiming to combine the advantages of quantum neural network and self-attention together. To implement the self-attention mechanism on quantum neural network, we employ parameterized quantum circuits to learn the features of input data in quantum-enhanced spaces, then introduce the innovative Amplitude-Phase Decomposition Measurement (APDM) to obtain the essential components of self-attention model: query\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\varvec{query}$$\end{document}, key\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\varvec{key}$$\end{document} and value\documentclass[12pt]{minimal} \usepackage{amsmath} \usepackage{wasysym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsbsy} \usepackage{mathrsfs} \usepackage{upgreek} \setlength{\oddsidemargin}{-69pt} \begin{document}$$\varvec{value}$$\end{document}. By introducing APDM, we can implement the quantum self-attention model with a lower parameter quantity than that of previous methods, making our QSAM have a better deployability on near-term quantum devices. We apply QSAM on both NLP and CV datasets for binary and multiple classification. The results show that our QSAM outperforms its classical counterpart and is as good as the state-of-the-art quantum self-attention model on NLP datasets. On CV datasets, our QSAM achieves better performance than other quantum image classifiers. These results demonstrate the powerful learning ability of our QSAM.
Keyword:
Quantum machine learning
Self-attention
Quantum neural network
Data classification
Light-weight
期刊
IF:
3.5
论文数:
7.6K
被引数:
1.7W
机构
暂无机构信息
引用论文
The Biodegradation Role of Saccharomyces cerevisiae against Harmful Effects of Mycotoxin Contaminated Diets on Broiler Performance, Immunity Status, and Carcass characteristics酿酒酵母对霉菌毒素污染的饮食对肉鸡生产性能,免疫状态和car体特性的有害影响的生物降解作用
Animals
IF0

