Your Model Already Knows Don't Teach It, Learn to Ask It: Soft Prompting for Few-Shot Adaptation of Vision-Language Models
Gautam Rajendrakumar Gare, Siyi Li, Hewei Wang, Cesar Daniel Hernandez, Wei Zhao, Wolfgang M. Pauli, John Galeotti, Deva Ramanan
Abstract
We address few-shot object detection with vision-language models (VLMs) in out-of-domain settings such as aerial, industrial, and medical imagery, using only ten annotated images for supervision. Existing adaptation methods are discrete prompt optimization and LoRA fine-tuning. We revisit a third option: soft prompting, where a small number of continuous prompt tokens are optimized while the pretrained backbone remains frozen. We identify two key design choices. First, placing prompt tokens at the cross-modal boundary between visual and text tokens outperforms other placements (10.0 vs. 8.4 mAP). Second, initializing prompts from the empty space token outperforms semantic and random initialization. With these choices, one to three learned tokens (7,168 parameters on average) match the best LoRA configuration on Roboflow20-VL (14.2 mAP, 10-shot) while training over 20,000x fewer parameters. Soft prompting remains harder to optimize, exhibiting higher variance across random seeds. Unlike LoRA, however, it causes no forgetting: the LoRA rank matching our accuracy reduces NaturalBench VQA accuracy by 35% relative, rising to 56% at the largest rank, whereas soft prompting leaves pretrained performance unchanged. The learned tokens behave like prompts rather than weights. They transfer to a newer model without retraining (+0.8 mAP on Qwen3.5-9B) and can be verbalized into readable prompts competitive with prompt-search methods (matching DetPO and outperforming GEPA). The approach also extends beyond detection. On RoboCasa manipulation tasks, the frozen vision-language-action policy benefits from soft prompting, matching the LoRA baseline on two of three tasks when tokens are placed at the gradient bottleneck. These results suggest modern VLMs already encode much of what is needed for specialized domains; the challenge is learning how to ask.
Create a lesson
Metadata
- Categories
- cs.CV, cs.AI, cs.LG, eess.IV, stat.ML
Related papers
Find the Clue, Not the Scene: Rethinking Reasoning for Entity Recognition in Vision-Language Models
Shared title terminologycs.CVKyungmin Min, Soyeon Kim, Junseok Kim et al.
VisualMontage: Manipulating the Beliefs of Vision-Language Agents with Authentic Image Sequences
Shared title terminologycs.CVJinwei Hu, Lai Wei, Zhuoyun Li et al.
Attacking Hard-Label Large Vision-Language Models with Model-Sensitive Adversarial Patch Designs
Shared title terminologycs.CVNian Ai, Guangke Chen, Xiaowen Cai et al.
Two-Stage Mixture-of-LoRA for Multi-Task Medical Vision-Language Learning
Shared title terminologycs.CVZhanghao Chen, Yuanyuan Li, Zhenyu Lu et al.
Vision-Language Models for Criterion-Level Grading of Handwritten Examinations in Outcome-Based Education
Shared title terminologycs.CVAsif Hasan Tonmoy, Saad Ahmed, Md Khalid Syfullah et al.
SPARK: Representation-Level KV Memory Alignment for Safer Vision-Language Models
Shared title terminologycs.CVMohd Azfar, Izhar Dad Khan