Nemesis: Normalizing the Soft-prompt Vectors of Vision-Language Models
Shuai Fu, Xiequn Wang, Qiushi Huang, Yu Zhang
TL;DR
This work reveals that soft-prompt vectors in vision-language models exhibit a Low-Norm Effect, where reducing norms at select prompt positions can boost performance while increasing norms can harm. To leverage this, it introduces Nemesis, a normalization framework with two losses (PUN and PAN) and a pre-inference step to identify normalization-worthy positions, enabling targeted regularization during soft-prompt tuning. Across 11 datasets and various few-shot and domain-generalization tasks, Nemesis consistently improves CoOp and extends to other PEFT methods like PLOT, underscoring the practical value of norm-aware soft-prompt tuning. The findings offer a principled direction for improving prompt-based adaptation of VLMs and invite further exploration of norm dynamics in soft-prompting.
Abstract
With the prevalence of large-scale pretrained vision-language models (VLMs), such as CLIP, soft-prompt tuning has become a popular method for adapting these models to various downstream tasks. However, few works delve into the inherent properties of learnable soft-prompt vectors, specifically the impact of their norms to the performance of VLMs. This motivates us to pose an unexplored research question: ``Do we need to normalize the soft prompts in VLMs?'' To fill this research gap, we first uncover a phenomenon, called the \textbf{Low-Norm Effect} by performing extensive corruption experiments, suggesting that reducing the norms of certain learned prompts occasionally enhances the performance of VLMs, while increasing them often degrades it. To harness this effect, we propose a novel method named \textbf{N}ormalizing th\textbf{e} soft-pro\textbf{m}pt v\textbf{e}ctors of vi\textbf{si}on-language model\textbf{s} (\textbf{Nemesis}) to normalize soft-prompt vectors in VLMs. To the best of our knowledge, our work is the first to systematically investigate the role of norms of soft-prompt vector in VLMs, offering valuable insights for future research in soft-prompt tuning. The code is available at \texttt{\href{https://github.com/ShyFoo/Nemesis}{https://github.com/ShyFoo/Nemesis}}.
