Visual Prompt Tuning Tokens
Freeze the whole backbone and learn fifty input tokens plus a head. Tiny tuning steers big vision cheaply.
Why Does This Exist?
Full fine-tuning copies billions of weights per task. VPT learns tokens plus a head with the backbone frozen, nearing full scores on small sets. Fine-tuning cost falls to megabytes per task.
This page covers vision tokens only. Text soft prompts are the next page.
The one idea you need first.
Prompt tokens join patch tokens as into frozen ViT . Shallow adds once; deep adds per layer. Only plus head learn.
Think of It Like This
Colored tabs in a fixed reference book
A library book cannot be marked, but fifty colored tabs steer readers to key pages with margin notes on tabs only. Each course uses its own tab set on one shared book.
Backbone is the book, tokens are tabs, and heads are course quizzes. Where it stops: tabs cannot rewrite pages, so huge shifts still need tuning.
How It Actually Works
Init tokens random, prepend each layer for deep VPT, forward frozen , train head plus with task loss. Sweep token count to and pick by validation. Store plus per task.
In plain words: vectors steer attention, stays fixed, and reads the answer.
Worked example
Flowers set: full tune percent, VPT-deep with percent weights. Gap points for x fewer weights. Shallow trails at , so depth buys points on fine petals.
Watch Out For
Too few tokens for fine splits
Ten tokens starve bird-species tasks and accuracy sags points. Validation flatlines early. Raise toward to and check per-task curves before judging VPT in fine-tuning trials.
The Quick Version
- VPT prepends learned tokens to frozen ViT inputs.
- Deep variants add tokens per layer.
- Fifty tokens plus a head near full tuning.
- Half a percent of weights per task.
- Sweep token counts per dataset.