Do We Really Need a Large Number of Visual Prompts?

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kim, Youngeun, Li, Yuhang, Moitra, Abhishek, Yin, Ruokai, Panda, Priyadarshini
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929339827748864
author Kim, Youngeun
Li, Yuhang
Moitra, Abhishek
Yin, Ruokai
Panda, Priyadarshini
author_facet Kim, Youngeun
Li, Yuhang
Moitra, Abhishek
Yin, Ruokai
Panda, Priyadarshini
contents Due to increasing interest in adapting models on resource-constrained edges, parameter-efficient transfer learning has been widely explored. Among various methods, Visual Prompt Tuning (VPT), prepending learnable prompts to input space, shows competitive fine-tuning performance compared to training of full network parameters. However, VPT increases the number of input tokens, resulting in additional computational overhead. In this paper, we analyze the impact of the number of prompts on fine-tuning performance and self-attention operation in a vision transformer architecture. Through theoretical and empirical analysis we show that adding more prompts does not lead to linear performance improvement. Further, we propose a Prompt Condensation (PC) technique that aims to prevent performance degradation from using a small number of prompts. We validate our methods on FGVC and VTAB-1k tasks and show that our approach reduces the number of prompts by ~70% while maintaining accuracy.
format Preprint
id arxiv_https___arxiv_org_abs_2305_17223
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Do We Really Need a Large Number of Visual Prompts?
Kim, Youngeun
Li, Yuhang
Moitra, Abhishek
Yin, Ruokai
Panda, Priyadarshini
Computer Vision and Pattern Recognition
Artificial Intelligence
Due to increasing interest in adapting models on resource-constrained edges, parameter-efficient transfer learning has been widely explored. Among various methods, Visual Prompt Tuning (VPT), prepending learnable prompts to input space, shows competitive fine-tuning performance compared to training of full network parameters. However, VPT increases the number of input tokens, resulting in additional computational overhead. In this paper, we analyze the impact of the number of prompts on fine-tuning performance and self-attention operation in a vision transformer architecture. Through theoretical and empirical analysis we show that adding more prompts does not lead to linear performance improvement. Further, we propose a Prompt Condensation (PC) technique that aims to prevent performance degradation from using a small number of prompts. We validate our methods on FGVC and VTAB-1k tasks and show that our approach reduces the number of prompts by ~70% while maintaining accuracy.
title Do We Really Need a Large Number of Visual Prompts?
topic Computer Vision and Pattern Recognition
Artificial Intelligence
url https://arxiv.org/abs/2305.17223