Read-only Prompt Optimization for Vision-Language Few-shot Learning

Dongjun Lee, Seokwon Song, Jihee G. Suh, Joonmyeong Choi, S. Lee +1 more
2/14/2026

No official code found. Best implementation: mlvlab/RPO (54 stars, MIT, last commit 2023-08-19).

Abstract

In recent years, prompt tuning has proven effective in adapting pre-trained vision-language models to downstream tasks. These methods aim to adapt the pre-trained models by introducing learnable prompts while keeping pretrained weights frozen. However, learnable prompts can affect the internal representation within the self-attention module, which may negatively impact performance variance and generalization, especially in data-deficient settings. To address these issues, we propose a novel approach, Read-only Prompt Optimization (RPO). RPO leverages masked attention to prevent the internal representation shift in the pre-trained model. Further, to facilitate the optimization of RPO, the read-only prompts are initialized based on special tokens of the pre-trained model. Our extensive experiments demonstrate that RPO outperforms CLIP and CoCoOp in base-to-new generalization and domain generalization while displaying better robustness. Also, the proposed method achieves better generalization on extremely data-deficient settings, while improving parameter efficiency and computational overhead. Code is available at https://github.com/mlvlab/RPO.

View on arXivView PDF

Code Implementations(1)

mlvlab/RPOCommunity100%
MIT

Official Implementation of "Read-only Prompt Optimization for Vision-Language Few-shot Learning", ICCV 2023

547Shell, PythonAug 3, 20233 years agoMIT
iccv2023

Similar Papers

Cite this paper

@article{lee2026readonly,
  title  = {Read-only Prompt Optimization for Vision-Language Few-shot Learning},
  author = {Dongjun Lee and Seokwon Song and Jihee G. Suh and Joonmyeong Choi and S. Lee and Hyunwoo J.Kim},
  year   = {2026},
  eprint = {2308.14960},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2308.14960},
  journal = {ICCV 2023 2023}
}

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/2308.14960.svg)](https://codeofpaper.com/paper/2308.14960)

Discussion