Quantum Self-Attention Neural Networks for Text Classification
Institute for Quantum Computing, Baidu Research(百度研究院量子计算研究所);Centre for Quantum Software and Information, University of Technology Sydney(悉尼科技大学量子软件与信息中心);The University of Hong Kong(香港大学);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))
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.
Comparison of Attention-based Deep Learning Models for EEG Classification
University of Padova(帕多瓦大学);National, Inter-University Consortium for Telecommunications (CNIT)(全国大学校际电信联盟(CNIT));National Center of Neurology and Psychiatry(国立精神神经医疗研究中心);University of Milano-Bicocca(米兰比可卡大学);Wroclaw University of Science and Technology(弗罗茨瓦夫理工大学)
Text Classification with Lexicon from PreAttention Mechanism
School of Cyberspace Security, Beijing University of Posts and Telecommunications(北京邮电大学网络空间安全学院)
在传统的文本分类方法中,一个全面的、高质量的词典起着至关重要的作用。提高了语言知识的利用率。虽然它对任务是有帮助的,但在最近的神经网络模型中,词汇很少受到关注。首先,获得高质量的词典并不容易。我们缺乏有效的自动化词典提取方法,大多数词典都是手工制作的,这对于大数据来说效率非常低。更重要的是,在神经网络中没有一种有效的方法来使用词典。针对这些局限性,本文提出了一种用于文本分类的预注意力机制,它可以根据不同单词在分类任务中的作用来学习它们的注意力。不同关注度的词可以组成一个领域词典。在三个基准文本分类任务上的实验表明,与现有的方法相比,我们的模型得到了有竞争力的结果。我们在Stanford Large Movie Review数据集上获得了90.5%的准确率,在Subjectivity数据集上获得了82.3%的准确率,在Movie Reviews上获得了93.7%的准确率。与没有引入预注意力机制的文本分类模型相比,引入预注意力机制的文本分类模型准确率提高了0.9%~ 2.4%,证明了预注意力机制的有效性。此外,预注意力机制表现良好,随后是不同类型的神经网络(例如,卷积神经网络和长短期记忆网络)。对于同一个数据集,当我们使用预注意力机制获取不同神经网络所遵循的注意力值时,那些具有高注意力值的单词具有很高的重合度,这证明了预注意力机制的通用性和可移植性。利用注意值可以得到稳定的词汇,是一种…
From Softmax to Sparsemax: A Sparse Model of Attention and Multi-Label Classification
Unbabel Lda(Unbabel有限公司);Instituto de Telecomunicações (IT)(电信研究所(IT));Instituto Superior Técnico(高等技术学院);Instituto de Engenharia de Sistemas e Computadores (INESC-ID)(系统与计算机工程研究所(INESC-ID))