arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2207.07564cs.LGcs.AI
收藏

时间序列分类中注意力机制的再思考

Rethinking Attention Mechanism in Time Series Classification

Southwest Jiaotong University(西南交通大学)

Bowen Zhao, Huanlai Xing, Xinhan Wang, Fuhong Song, Zhiwen Xiao

摘要:

基于注意力的模型在计算机视觉、自然语言处理等领域有着广泛的应用。然而,时间序列分类(TSC)的相关应用尚未得到深入研究,导致大量TSC算法仍然存在注意力机制的二次复杂度等问题。在本文中,我们提出了我们的灵活的多头线性注意力(FMLA),它通过与可变形卷积块和在线知识蒸馏的逐层交互来增强局部意识,从而提高了注意力机制的效率和性能。更重要的是,我们提出了一个简单而有效的掩模机制,有助于减少噪声的影响,在时间序列和减少冗余的建议FMLA屏蔽每个给定系列的一些位置成比例。为了稳定这种机制,样本被转发通过具有随机掩码层的模型多次,并且它们的输出被聚合以教导具有常规掩码层的相同模型。我们在85个UCR2018数据集上进行了广泛的实验,将我们的算法与11个著名的算法进行了比较,结果表明我们的算法在前1精度方面具有相当的性能。我们还比较了我们的模型与三个基于Transformer的模型,每秒浮点运算和参数数量,发现我们的算法以较低的复杂度实现了显着更好的效率。

英文摘要:

Attention-based models have been widely used in many areas, such as computer vision and natural language processing. However, relevant applications in time series classification (TSC) have not been explored deeply yet, causing a significant number of TSC algorithms still suffer from general problems of attention mechanism, like quadratic complexity. In this paper, we promote the efficiency and performance of the attention mechanism by proposing our flexible multi-head linear attention (FMLA), which enhances locality awareness by layer-wise interactions with deformable convolutional blocks and online knowledge distillation. What's more, we propose a simple but effective mask mechanism that helps reduce the noise influence in time series and decrease the redundancy of the proposed FMLA by masking some positions of each given series proportionally. To stabilize this mechanism, samples are forwarded through the model with random mask layers several times and their outputs are aggregated to teach the same model with regular mask layers. We conduct extensive experiments on 85 UCR2018 datasets to compare our algorithm with 11 well-known ones and the results show that our algorithm has comparable performance in terms of top-1 accuracy. We also compare our model with three Transformer-based models with respect to the floating-point operations per second and number of parameters and find that our algorithm achieves significantly better efficiency with lower complexity.

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

↑