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

RSIR Transformer:使用随机采样窗口和重要区域窗口的层次化视觉 Transformer

RSIR Transformer: Hierarchical Vision Transformer using Random Sampling Windows and Important Region Windows

Southwest Jiaotong University(西南交通大学)

Zhemin Zhang, Xun Gong

AI总结:

针对局部自注意力感受野有限的问题,本文提出 RS-Win 与 IR-Win 两种窗口注意力模块,以增强层次化视觉 Transformer 的全局建模和重要区域聚焦能力。

摘要:

近年来,Transformer 在各类视觉任务中展现出良好性能。然而,全局自注意力的高昂成本对 Transformer 而言仍是挑战,尤其是在高分辨率视觉任务中。局部自注意力为提高效率而在有限区域内执行注意力计算,但由于感受野较小,会导致上下文建模不足。在本工作中,我们引入两个新的注意力模块以增强层次化视觉 Transformer 的全局建模能力,即随机采样窗口(RS-Win)和重要区域窗口(IR-Win)。具体而言,RS-Win 按照均匀分布采样随机图像块来组成窗口,也就是说,RS-Win 中的图像块可以来自图像中的任意位置。IR-Win 则根据注意力图中图像块的权重组成窗口。值得注意的是,RS-Win 能够在整个模型中捕获全局信息,即使在较早的高分辨率阶段也是如此。IR-Win 使自注意力模块能够聚焦于图像的重要区域并捕获更具信息量的特征。结合这些设计,RSIR-Win Transformer 在常见视觉任务上展现出具有竞争力的性能。

英文摘要:

Recently, Transformers have shown promising performance in various vision tasks. However, the high costs of global self-attention remain challenging for Transformers, especially for high-resolution vision tasks. Local self-attention runs attention computation within a limited region for the sake of efficiency, resulting in insufficient context modeling as their receptive fields are small. In this work, we introduce two new attention modules to enhance the global modeling capability of the hierarchical vision transformer, namely, random sampling windows (RS-Win) and important region windows (IR-Win). Specifically, RS-Win sample random image patches to compose the window, following a uniform distribution, i.e., the patches in RS-Win can come from any position in the image. IR-Win composes the window according to the weights of the image patches in the attention map. Notably, RS-Win is able to capture global information throughout the entire model, even in earlier, high-resolution stages. IR-Win enables the self-attention module to focus on important regions of the image and capture more informative features. Incorporated with these designs, RSIR-Win Transformer demonstrates competitive performance on common vision tasks.

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

↑