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

评估注意和自我注意力机制对皮肤病变分类的影响

Assessing the Impact of Attention and Self-Attention Mechanisms on the Classification of Skin Lesions

Instituto Superior Técnico(里斯本高等理工学院);INESC-ID(INESC-ID 研究所)

Rafael Pedro, Arlindo L. Oliveira

摘要:

注意力机制已经引起了研究界的极大兴趣,因为它们承诺显着改善神经网络架构的性能。然而,在任何具体的问题中,我们仍然缺乏一种原则性的方法来选择特定的机制和超参数,以确保改进。最近,自注意力被提出并广泛应用于变压器式架构中,在某些应用中取得了重大突破。在这项工作中,我们集中在两种形式的注意力机制:注意模块和自我注意。注意力模块用于重新加权每个层输入张量的特征。不同的模块有不同的方式在全连接或卷积层中执行这种重新加权。研究的注意力模型是完全模块化的,在这项工作中,它们将与流行的ResNet架构一起使用。自注意(Self-Attention)最初是在自然语言处理领域中提出的,它使得将输入序列中的所有项目联系起来成为可能。自注意力在计算机视觉中越来越受欢迎,有时它与卷积层结合在一起,尽管最近的一些架构完全取消了卷积。在这项工作中,我们研究和执行一个特定的计算机视觉任务,在广泛使用的皮肤癌MNIST数据集中的样本分类的一些不同的注意力机制的客观比较。结果表明,注意力模块有时确实提高了卷积神经网络架构的性能,但这种改进尽管明显且具有统计学意义,但在不同的设置中并不一致。另一方面,用自注意力机制获得的结果显示出一致且显著的改进,即使在具有减少的参数数量的架构中也能获得最佳结果。

英文摘要:

Attention mechanisms have raised significant interest in the research community, since they promise significant improvements in the performance of neural network architectures. However, in any specific problem, we still lack a principled way to choose specific mechanisms and hyper-parameters that lead to guaranteed improvements. More recently, self-attention has been proposed and widely used in transformer-like architectures, leading to significant breakthroughs in some applications. In this work we focus on two forms of attention mechanisms: attention modules and self-attention. Attention modules are used to reweight the features of each layer input tensor. Different modules have different ways to perform this reweighting in fully connected or convolutional layers. The attention models studied are completely modular and in this work they will be used with the popular ResNet architecture. Self-Attention, originally proposed in the area of Natural Language Processing makes it possible to relate all the items in an input sequence. Self-Attention is becoming increasingly popular in Computer Vision, where it is sometimes combined with convolutional layers, although some recent architectures do away entirely with convolutions. In this work, we study and perform an objective comparison of a number of different attention mechanisms in a specific computer vision task, the classification of samples in the widely used Skin Cancer MNIST dataset. The results show that attention modules do sometimes improve the performance of convolutional neural network architectures, but also that this improvement, although noticeable and statistically significant, is not consistent in different settings. The results obtained with self-attention mechanisms, on the other hand, show consistent and significant improvements, leading to the best results even in architectures with a reduced number of parameters.

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

↑