Quantum self-attention neural networks for text classification

被引:10
|
作者
Li, Guangxi [1 ,2 ]
Zhao, Xuanqiang [1 ,3 ]
Wang, Xin [1 ,4 ]
机构
[1] Baidu Res, Inst Quantum Comp, Beijing 100193, Peoples R China
[2] Univ Technol Sydney, Ctr Quantum Software & Informat, Sydney, NSW 2007, Australia
[3] Univ Hong Kong, Dept Comp Sci, Quantum Informat & Computat Initiat QICI, Hong Kong 999077, Peoples R China
[4] Hong Kong Univ Sci & Technol Guangzhou, Thrust Artificial Intelligence, Informat Hub, Guangzhou 511453, Peoples R China
基金
澳大利亚研究理事会;
关键词
quantum neural networks; self-attention; natural language processing; text classification; parameterized quantum circuits;
D O I
10.1007/s11432-023-3879-7
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
An emerging direction of quantum computing is to establish meaningful quantum applications in various fields of artificial intelligence, including natural language processing (NLP). Although some efforts based on syntactic analysis have opened the door to research in quantum NLP (QNLP), limitations such as heavy syntactic preprocessing and syntax-dependent network architecture make them impracticable on larger and real-world data sets. In this paper, we propose a new simple network architecture, called the quantum self-attention neural network (QSANN), which can compensate for these limitations. Specifically, we introduce the self-attention mechanism into quantum neural networks and then utilize a Gaussian projected quantum self-attention serving as a sensible quantum version of self-attention. As a result, QSANN is effective and scalable on larger data sets and has the desirable property of being implementable on near-term quantum devices. In particular, our QSANN outperforms the best existing QNLP model based on syntactic analysis as well as a simple classical self-attention neural network in numerical experiments of text classification tasks on public data sets. We further show that our method exhibits robustness to low-level quantum noises and showcases resilience to quantum neural network architectures.
引用
收藏
页数:13
相关论文
共 50 条
  • [41] Malware Classification on Imbalanced Data through Self-Attention
    Ding, Yu
    Wang, ShuPeng
    Xing, Jian
    Zhang, XiaoYu
    Qi, ZiSen
    Fu, Ge
    Qiang, Qian
    Sun, HaoLiang
    Zhang, JianYu
    2020 IEEE 19TH INTERNATIONAL CONFERENCE ON TRUST, SECURITY AND PRIVACY IN COMPUTING AND COMMUNICATIONS (TRUSTCOM 2020), 2020, : 154 - 161
  • [42] Self-attention Based Collaborative Neural Network for Recommendation
    Ma, Shengchao
    Zhu, Jinghua
    WIRELESS ALGORITHMS, SYSTEMS, AND APPLICATIONS, WASA 2019, 2019, 11604 : 235 - 246
  • [43] Self-attention binary neural tree for video summarization
    Fu, Hao
    Wang, Hongxing
    PATTERN RECOGNITION LETTERS, 2021, 143 : 19 - 26
  • [44] Two End-to-End Quantum-Inspired Deep Neural Networks for Text Classification
    Shi, Jinjing
    Li, Zhenhuan
    Lai, Wei
    Li, Fangfang
    Shi, Ronghua
    Feng, Yanyan
    Zhang, Shichao
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 2023, 35 (04) : 4335 - 4345
  • [45] Quantum mixed-state self-attention network
    Chen, Fu
    Zhao, Qinglin
    Feng, Li
    Chen, Chuangtao
    Lin, Yangbin
    Lin, Jianhong
    NEURAL NETWORKS, 2025, 185
  • [46] Multi-scale feature fusion quantum depthwise Convolutional Neural Networks for text classification
    Chen, Yixiong
    Fang, Weichuan
    ENGINEERING ANALYSIS WITH BOUNDARY ELEMENTS, 2025, 174
  • [47] Self-attention and generative adversarial networks for algae monitoring
    Nhut Hai Huynh
    Boer, Gordon
    Schramm, Hauke
    EUROPEAN JOURNAL OF REMOTE SENSING, 2022, 55 (01) : 10 - 22
  • [48] Hashtag Recommendation Using LSTM Networks with Self-Attention
    Shen, Yatian
    Li, Yan
    Sun, Jun
    Ding, Wenke
    Shi, Xianjin
    Zhang, Lei
    Shen, Xiajiong
    He, Jing
    CMC-COMPUTERS MATERIALS & CONTINUA, 2019, 61 (03): : 1261 - 1269
  • [49] SANVis: Visual Analytics for Understanding Self-Attention Networks
    Park, Cheonbok
    Na, Inyoup
    Jo, Yongjang
    Shin, Sungbok
    Yoo, Jaehyo
    Kwon, Bum Chul
    Zhao, Jian
    Noh, Hyungjong
    Lee, Yeonsoo
    Choo, Jaegul
    2019 IEEE VISUALIZATION CONFERENCE (VIS), 2019, : 146 - 150
  • [50] Dynamic Neural Networks for Text Classification
    Vega, Lea
    Mendez-Vazquez, Andres
    2016 INTERNATIONAL CONFERENCE ON COMPUTATIONAL INTELLIGENCE AND APPLICATIONS (ICCIA), 2016, : 6 - 11