arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.22709cs.CV

FilterViT 和 DropoutViT

FilterViT and DropoutViT

Bohang Sun

AI总结:

本文提出一种基于滤波注意力机制的 ViT 增强版本,通过显著掩码选择关键像素以减少注意力计算量,在提升参数效率、计算速度和准确率的同时,显著降低资源消耗。

摘要:

在本研究中,我们引入了一种增强版的 ViT(Vision Transformer,视觉变换器),它在下采样的初始阶段执行基于注意力的 QKV(查询、键、值)操作。由于高分辨率特征图尺寸大且 token 数量众多,直接在其上执行注意力计算在计算上代价高昂。为缓解这一问题,我们提出了一种滤波注意力机制,该机制使用一个滤波块(Filter Block)来生成一个显著掩码(Filter Mask),用于选择最具信息量的像素进行注意力计算。滤波块对特征图的像素进行评分,我们对这些分数进行排序,仅保留前 K 个像素(K 在各层之间变化)。这种方法有效减少了参与注意力计算的 token 数量,降低了计算复杂度并提升了处理速度。此外,显著掩码还提供了可解释性,因为模型聚焦于对结果最关键的图像区域。我们的实验结果表明,该模型在提升参数效率和计算速度的同时,也提高了准确率。与现有模型相比,我们的方法在保持高性能的同时显著降低了资源消耗。

英文摘要:

In this study, we introduce an enhanced version of ViT that conducts attention-based QKV operations during the initial stages of downsampling. Performing attention directly on high-resolution feature maps is computationally demanding due to the large size and numerous tokens. To mitigate this, we propose a filter attention mechanism that uses a Filter Block to create a salient mask (Filter Mask) for selecting the most informative pixels for attention. The Filter Block scores the pixels of the feature map, and we sort these scores to retain only the top K pixels (with K varying across layers). This approach effectively decreases the number of tokens involved in the attention computation, reducing computational complexity and boosting processing speed. Furthermore, the salient mask provides interpretability, as the model focuses on regions of the image most critical to the outcome. Our experimental results show that this model improves parameter efficiency and computational speed while enhancing accuracy. Compared to existing models, our approach significantly reduces resource consumption while maintaining high performance.

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

↑