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

DropKey:以Key为dropout单元并采用递减调度策略改进视觉Transformer

DropKey

Meitu(美图公司)

Bonan Li, Yinhan Hu, Xuecheng Nie, Congying Han, Xiangjian Jiang, Tiande Guo, Luoqi Liu

AI总结:

本文提出DropKey方法,通过以Key为dropout单元并在softmax前执行dropout,同时采用递减调度策略调整dropout比率,有效改进视觉Transformer在多种架构和视觉任务上的性能。

摘要:

本文重点分析和改进视觉Transformer自注意力层中的dropout技术,这一问题十分重要,但此前的工作却令人意外地忽视了它。具体而言,我们围绕三个核心问题展开研究:第一,在自注意力层中应该丢弃什么?与文献中丢弃注意力权重的做法不同,我们提出将dropout操作前移到注意力矩阵计算之前,并以Key作为dropout单元,从而得到一种新颖的softmax前dropout方案。我们从理论上验证了该方案有助于同时保持注意力权重的正则化特性和概率特性,缓解对特定模式的过拟合问题,并增强模型全局捕获重要信息的能力;第二,如何在连续层中调度dropout比率?与对所有层使用恒定dropout比率不同,我们提出了一种新的递减调度策略,即沿着自注意力层堆叠方向逐渐降低dropout比率。我们通过实验验证了所提出的调度策略能够避免低层特征过拟合和高层语义缺失,从而提高模型训练的鲁棒性和稳定性;第三,是否需要像CNN那样执行结构化dropout操作?我们尝试了基于patch的分块版dropout操作,并发现这一对CNN有用的技巧对ViT并非必要。基于对上述三个问题的探索,我们提出了新颖的DropKey方法,该方法将Key作为dropout单元,并采用递减调度策略来调整dropout比率,以通用方式改进ViT。综合实验证明了DropKey在各种ViT架构(如T2T和VOLO)以及各种视觉任务(如图像分类、目标检测、人-物交互检测和人体形状恢复)上的有效性。

英文摘要:

In this paper, we focus on analyzing and improving the dropout technique for self-attention layers of Vision Transformer, which is important while surprisingly ignored by prior works. In particular, we conduct researches on three core questions: First, what to drop in self-attention layers? Different from dropping attention weights in literature, we propose to move dropout operations forward ahead of attention matrix calculation and set the Key as the dropout unit, yielding a novel dropout-before-softmax scheme. We theoretically verify that this scheme helps keep both regularization and probability features of attention weights, alleviating the overfittings problem to specific patterns and enhancing the model to globally capture vital information; Second, how to schedule the drop ratio in consecutive layers? In contrast to exploit a constant drop ratio for all layers, we present a new decreasing schedule that gradually decreases the drop ratio along the stack of self-attention layers. We experimentally validate the proposed schedule can avoid overfittings in low-level features and missing in high-level semantics, thus improving the robustness and stableness of model training; Third, whether need to perform structured dropout operation as CNN? We attempt patch-based block-version of dropout operation and find that this useful trick for CNN is not essential for ViT. Given exploration on the above three questions, we present the novel DropKey method that regards Key as the drop unit and exploits decreasing schedule for drop ratio, improving ViTs in a general way. Comprehensive experiments demonstrate the effectiveness of DropKey for various ViT architectures, e.g. T2T and VOLO, as well as for various vision tasks, e.g., image classification, object detection, human-object interaction detection and human body shape recovery.

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

↑