arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2106.04996cs.CV
收藏

基于显著位置的注意力网络图像分类

Salient Positions based Attention Network for Image Classification

Shandong University of Science and Technology(山东科技大学)

Sheng Fang, Kaiyu Li, Zhe Li

摘要:

自注意力机制由于其最重要的优点是对长依赖性建模而引起了广泛的关注,并且其在计算机视觉任务中的变体,非局部块试图对输入特征图的全局依赖性建模。收集全局上下文信息将不可避免地需要大量的内存和计算资源,这在过去几年中得到了广泛的研究。然而,自我注意方案还存在另一个问题:从全局范围收集的所有信息都有助于上下文建模吗?据我们所知,很少有研究关注这个问题。针对这两个问题,本文提出了显着的位置为基础的注意力计划,这是受到一些有趣的观察的启发,在自注意力计划中产生的注意力地图和亲和矩阵。我们相信这些观察有助于更好地理解自我注意。SPAN使用显著位置选择算法来仅选择有限数量的显著点来参加注意力地图计算。这种方法不仅节省了大量的内存和计算资源,而且还试图从输入特征图的变换中提取积极的信息。在实现中,考虑到通道高维的特征图,这是完全不同于一般的视觉图像,我们采取的平方功率的特征图沿通道维的位置作为显着性度量。一般而言,与非局部块方法不同,SPAN et仅使用所选位置而不是所有位置,沿着通道维度而不是空间维度对上下文信息进行建模。我们的源代码可在https://github.com/likyoo/SPANet上获得。

英文摘要:

The self-attention mechanism has attracted wide publicity for its most important advantage of modeling long dependency, and its variations in computer vision tasks, the non-local block tries to model the global dependency of the input feature maps. Gathering global contextual information will inevitably need a tremendous amount of memory and computing resources, which has been extensively studied in the past several years. However, there is a further problem with the self-attention scheme: is all information gathered from the global scope helpful for the contextual modelling? To our knowledge, few studies have focused on the problem. Aimed at both questions this paper proposes the salient positions-based attention scheme SPANet, which is inspired by some interesting observations on the attention maps and affinity matrices generated in self-attention scheme. We believe these observations are beneficial for better understanding of the self-attention. SPANet uses the salient positions selection algorithm to select only a limited amount of salient points to attend in the attention map computing. This approach will not only spare a lot of memory and computing resources, but also try to distill the positive information from the transformation of the input feature maps. In the implementation, considering the feature maps with channel high dimensions, which are completely different from the general visual image, we take the squared power of the feature maps along the channel dimension as the saliency metric of the positions. In general, different from the non-local block method, SPANet models the contextual information using only the selected positions instead of all, along the channel dimension instead of space dimension. Our source code is available at https://github.com/likyoo/SPANet.

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

↑