DropKey for Vision Transformer
Authors:
- 1 June 2023
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 22700-22709
Abstract
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 Drop-Key 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, VOLO, CeiT and DeiT, as well as for various vision tasks, e.g., image classification, object detection, human-object interaction detection and human body shape recovery.Keywords
Funding Information
- National Key Research and Development Program of China (2021YFA1000403)
- National Natural Science Foundation of China (U19B2040,11991022)
This publication has 20 references indexed in Scilit:
- QPIC: Query-Based Pairwise Human-Object Interaction Detection with Image-Wide Contextual Information2021
- PCT: Point cloud transformerComputational Visual Media, 2021
- HUMBI: A Large Multiview Dataset of Human Body Expressions2020
- Learning to Estimate 3D Human Pose and Shape from a Single Color Image2018
- MonoCap: Monocular Human Motion Capture using a CNN Coupled with a Geometric PriorIEEE Transactions on Pattern Analysis and Machine Intelligence, 2018
- Learning to Detect Human-Object Interactions2018
- Human3.6M: Large Scale Datasets and Predictive Methods for 3D Human Sensing in Natural EnvironmentsIEEE Transactions on Pattern Analysis and Machine Intelligence, 2013
- ImageNet: A large-scale hierarchical image database2009
- The Graph Neural Network ModelIEEE Transactions on Neural Networks, 2008
- Gradient-based learning applied to document recognitionProceedings of the IEEE, 1998