[논문 리뷰] Improving Visual Prompt Tuning for Self-supervised Vision Transformers
Gated Prompt Tuning은 self-supervised ViTs의 블록별 게이트를 학습하여 프롬프트를 선택적으로 주입하고, 분류 및 분할 작업에서 VPT 변형의 성능을 향상시킵니다.
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.
연구 동기 및 목표
- self-supervised ViTs가 블록별로 정보를 다르게 인코딩하는 방식과 프롬프트 위치가 전이에 어떤 영향을 미치는지에 대한 동기 제시
- 태스크 적응을 위해 프롬프트 토큰을 ViT 블록과 선택적으로 결합하는 게이팅 메커니즘 제안
- 학습 가능한 온도 값을 통해 self-attention을 더욱 정교화하는 Adaptive Attention Shaping 소개
- 게이트 프롬pt가 VPT 변형보다 분류 및 분할 벤치마크에서 우수하다는 것을 보여줌
제안 방법
- 각 ViT 블록에 대해 프롬프트 상호 작용을 규제하는 학습 가능한 게이트 g^l를 도입
- l-번째 블록에 대해 게이트 입력 프롬프트 표현 Z_P^l = g^l * Z̃_P^l + (1 - g^l) * Z_P^{l-1}를 계산
- 게이트 사전 Gamma를 정의하고 이를 시그모이드로 변환하여 g^l를 얻음
- Eq. (8)을 통해 프롬프트 표현의 선택적 집약을 보이는 해석 가능한 블록 간 프롬프트 집계 제공
- Self-attention 점수를 조정하기 위해 학습 가능한 온도 T를 가지는 Adaptive Attention Shaping 추가: a^l = Softmax(Q^l (K^l)^T / τ^l)
- Gated Prompt Tuning과 VPT-shallow/deep를 대조하고 SSL 백본 MAE 및 MoCo v3의 이득을 보고
실험 결과
연구 질문
- RQ1자기 지도 사전학습 하에서 최적의 작업 적응을 위해 프롬프트 토큰이 어떤 ViT 블록과 상호 작용해야 하는가?
- RQ2학습 가능한 게이트가 작업 관련 블록을 식별하고 SSL ViTs의 전이를 개선할 수 있는가?
- RQ3Adaptive Attention Shaping이 SSL ViTs의 프롬프트 주도 전이를 더 향상시키는가?
- RQ4제안된 방법이 FGVC, VTAB-1K, ADE20K에서 VPT 변형과 비교하여 어떤 차이가 있는가?
주요 결과
- 게이트 프롹 텅 튜닝은 MAE 및 MoCo v3에 대해 FGVC 및 VTAB-1K 벤치마크에서 VPT-shallow를 지속적으로 상회합니다.
- FGVC에서 당사 방법으로 MAE는 평균 정확도 73.39를 달성하고, MoCo v3는 83.00을 달성하여 VPT-shallow 및 종종 VPT-deep를 능가합니다.
- VTAB-1K에서 MAE는 평균 정확도 49.22에 도달하고 MoCo v3은 65.80에 도달하여 VPT 변형보다 현저히 우수하며 특히 Structured 그룹에서 두드러집니다.
- ADE20K 의미론적 분할에서 당사 방법은 38.44 mIoU(MAE) 및 36.81 mIoU(MoCo v3)를 달성하여 VPT 대비를 능가하면서도 더 적거나 비슷한 수의 프롬프트 토큰을 사용합니다.
- 구성 제거 실험에서 소프트 게이트가 하드 게이트(Gumbel-Sigmoid)보다 우수하며 더 적은 토큰이 더 깊은 VPT 구성을 능가할 수 있음을 보여줍니다.
- 선택 비율은 SSL 방식 및 다운스트림 작업에 따라 게이트가 서로 다른 블록을 강조한다는 것을 나타내며, 작업별 및 방법별 블록 타깃팅을 지지합니다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.