[Paper Review] Improving Visual Prompt Tuning for Self-supervised Vision Transformers
Gated Prompt Tuning learns block-wise gates to selectively inject prompts into self-supervised ViTs, improving performance of VPT variants on classification and segmentation tasks.
Visual Prompt Tuning (VPT) is an effective tuning method for adapting pretrained Vision Transformers (ViTs) to downstream tasks. It leverages extra learnable tokens, known as prompts, which steer the frozen pretrained ViTs. Although VPT has demonstrated its applicability with supervised vision transformers, it often underperforms with self-supervised ones. Through empirical observations, we deduce that the effectiveness of VPT hinges largely on the ViT blocks with which the prompt tokens interact. Specifically, VPT shows improved performance on image classification tasks for MAE and MoCo v3 when the prompt tokens are inserted into later blocks rather than the first block. These observations suggest that there exists an optimal location of blocks for the insertion of prompt tokens. Unfortunately, identifying the optimal blocks for prompts within each self-supervised ViT for diverse future scenarios is a costly process. To mitigate this problem, we propose a simple yet effective method that learns a gate for each ViT block to adjust its intervention into the prompt tokens. With our method, prompt tokens are selectively influenced by blocks that require steering for task adaptation. Our method outperforms VPT variants in FGVC and VTAB image classification and ADE20K semantic segmentation. The code is available at https://github.com/ryongithub/GatedPromptTuning.
Motivation & Objective
- Motivate how self-supervised ViTs encode information differently across blocks and how prompt location affects transfer.
- Propose a gating mechanism to selectively couple prompt tokens with ViT blocks for task adaptation.
- Introduce Adaptive Attention Shaping to further refine self-attention via learnable temperatures.
- Demonstrate that gated prompts outperform VPT variants on classification and segmentation benchmarks.
Proposed method
- Introduce learnable gates g^l for each ViT block to regulate prompt interaction.
- Compute gated input prompt representations Z_P^l = g^l * Z̃_P^l + (1 - g^l) * Z_P^{l-1} for l-th block.
- Define gate priors Gamma and transform them with a sigmoid to obtain g^l.
- Provide an interpretable prompt aggregation across blocks via Eq. (8) showing selective aggregation of prompt representations.
- Add Adaptive Attention Shaping with learnable temperatures T to adjust self-attention scores as a^l = Softmax(Q^l (K^l)^T / τ^l).
- Contrast gated prompt tuning with VPT-shallow/deep and report gains on SSL backbones MAE and MoCo v3.
Experimental results
Research questions
- RQ1Which ViT blocks should prompt tokens interact with for optimal task adaptation under self-supervised pretraining?
- RQ2Can learnable gates identify task-relevant blocks and improve transfer for SSL ViTs across tasks?
- RQ3Does adaptive attention shaping further improve prompt-driven transfer for SSL ViTs?
- RQ4How does the proposed method compare to VPT variants on FGVC, VTAB-1K, and ADE20K?
Key findings
- Gated Prompt Tuning consistently improves over VPT-shallow across FGVC and VTAB-1K benchmarks for both MAE and MoCo v3.
- On FGVC, MAE with our method achieves average accuracy 73.39, and MoCo v3 achieves 83.00, outperforming VPT-shallow and often VPT-deep.
- On VTAB-1K, MAE with our method reaches 49.22 average accuracy, and MoCo v3 reaches 65.80, substantially better than VPT variants, especially in the Structured group.
- On ADE20K semantic segmentation, our method attains 38.44 mIoU (MAE) and 36.81 mIoU (MoCo v3), surpassing VPT counterparts while using fewer or comparable prompt tokens.
- Ablation shows soft gates outperform hard gates (Gumbel-Sigmoid) and that fewer tokens can outperform deeper VPT configurations.
- Selection ratios reveal the gates emphasize different blocks depending on SSL method and downstream task, supporting task- and method-specific block targeting.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.