When Does Visual Prompting Outperform Linear Probing for Vision-Language Models? A Likelihood Perspective

Hsi-Ai Tsao, Lei Hsiung, Pin-Yu Chen, Tsung-Yi Ho
9/3/2024
cs.CVcs.LG

Official code: IBM/VP-LLR (4 stars, Apache-2.0, last commit 2025-09-18).

Abstract

Adapting pre-trained models to new tasks can exhibit varying effectiveness across datasets. Visual prompting, a state-of-the-art parameter-efficient transfer learning method, can significantly improve the performance of out-of-distribution tasks. On the other hand, linear probing, a standard transfer learning method, can sometimes become the best approach. We propose a log-likelihood ratio (LLR) approach to analyze the comparative benefits of visual prompting and linear probing. By employing the LLR score alongside resource-efficient visual prompts approximations, our cost-effective measure attains up to a 100-fold reduction in run time compared to full training, while achieving prediction accuracies up to 91%. The source code is available at https://github.com/IBM/VP-LLR.

View on arXivView PDF

Code Implementations(1)

IBM/VP-LLROfficial100%
Apache-2.0

Code repo for "When Does Visual Prompting Outperform Linear Probing? A Likelihood Perspective"

41Shell, PythonAug 27, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{tsao2024when,
  title  = {When Does Visual Prompting Outperform Linear Probing for Vision-Language Models? A Likelihood Perspective},
  author = {Hsi-Ai Tsao and Lei Hsiung and Pin-Yu Chen and Tsung-Yi Ho},
  year   = {2024},
  eprint = {2409.01821},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.01821v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.01821.svg)](https://codeofpaper.com/paper/2409.01821)

Discussion