arXiv:2609.09462cs.CVSep 2026

Manuscript Offprint

arXiv:2609.09462

Low-Rank Prompt Learning for Vision-Language Models with Fixed-Token Bases

Tanvir Muntakim Tonoy, Sajjad Ghiasvand, Mahnoosh Alizadeh, Ramtin Pedarsani

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Prompt learning adapts CLIP to downstream recognition by replacing hand-written templates with learned continuous context vectors, which in Context Optimization (CoOp) form a dense prompt matrix P∈Rm×d\boldsymbol{P} \in \mathbb{R}^{m \times d} trained from only a few examples per class. We study whether this matrix is over-parameterized by factorizing it as P=BA\boldsymbol{P} = \boldsymbol{B}\boldsymbol{A}, which cuts the trainable prompt parameters from mdmd to r(m+d)r(m+d), and to rdrd once the token-side factor B\boldsymbol{B} is fixed. Across seven few-shot benchmarks and two CLIP backbones, low-rank prompts match or improve dense CoOp at far fewer parameters, with the clearest gains on low-shot base-to-new generalization. We then find that the token-side factor need not be learned at all: fixing B\boldsymbol{B} to a Gaussian, orthogonal, SVD-derived, or even random basis and training only the embedding-side factor A\boldsymbol{A} stays on par with the fully trainable factorization, and a source-trained B\boldsymbol{B} offers no advantage over a random one. A prompt-factor asymmetry and a local update-space dimension gap show why fixing B\boldsymbol{B} is far less restrictive than fixing A\boldsymbol{A}, and a smoothness-only guarantee certifies that optimizing A\boldsymbol{A} over a fixed B\boldsymbol{B} converges. In the CLIP prompt setting, the embedding-side coefficients carry the adaptation while the token basis can simply be fixed.

1 Introduction

Large vision–language models such as CLIP [30] have become a default interface for visual recognition: an image is classified by comparing its visual embedding against text embeddings produced from class-name prompts [15, 30]. Because the pretrained encoders already capture broad open-vocabulary concepts, the dominant way to specialize them to a downstream task is to keep the backbone frozen and adapt only the textual prompt [8, 40, 43]. Context Optimization (CoOp) [43] is the canonical instance of this idea: it replaces the hand-written template with m learnable context vectors, stacked into a dense prompt matrix P∈Rm×d\boldsymbol{P} \in \mathbb{R}^{m \times d}, and trains them by backpropagation while the CLIP encoders stay frozen. Subsequent work conditions the prompt on the image [42] or extends prompting to the visual and cross-modal branches [1, 16, 18, 19], but the text-side prompt itself remains a dense, dataset-specific matrix.

In the few-shot regime that motivates prompt learning, the model sees only a handful of labeled examples per class, yet PP still carries mdmd free parameters ( 16×512=8,19216 \times 512 = 8,192 in the standard CoOp configuration). This raises a basic question: does effective prompt adaptation really require so many degrees of freedom, or is the dense prompt over-parameterized for the data available? We study this by constraining the prompt to be explicitly low rank,

P=BA,B∈Rm×r,A∈Rr×d,r≪min⁡(m,d).(1)P=B A,\qquad B\in\mathbb{R}^{m\times r},\quad A\in\mathbb{R}^{r\times d},\quad r\ll\min(m,d). \tag{1}

where the token-side factor B mixes r latent components across the context positions and the embedding-side factor A places them in the CLIP text-embedding space. This reduces the trainable prompt parameters from md to r(m+d)r(m+d), and to only rd when B is held fixed.

Preprint.

Figure

Figure 1: Subspace overlap between independently trained factorized prompts, for the token-side factor B, embedding-side factor A, and induced prompt BA. Each violin aggregates all run pairs that vary the indicated axis while holding the others (and, except in “Seeds”, the seed) fixed; white dots mark medians and bars the interquartile range. B is highly aligned across datasets, shots, and ranks but much less so across seeds, while A and BA stay weakly aligned throughout.

Low-rank structure is central to parameter-efficient adaptation more broadly. LoRA [14] injects trainable low-rank updates into frozen weights, and vision-language variants such as CLIP-LoRA [38] and Block-LoRA [41] adapt the backbone projections, while prompt-space methods like DIP [13] and MMLoP [10] impose low-rank structure on the prompt itself. A common thread is that these methods train both low-rank factors. A parallel line of work on LoRA, however, finds the two factors are not interchangeable: Zhu et al. [45] show it is often preferable to freeze the input-side projector, even at random, and tune only the output-side factor. Whether the same asymmetry holds for prompt factorization, where the factors play distinct token-side and embedding-side roles, has not been examined.

A simple diagnostic suggests that it does. When we train factorized prompts independently and compare their factors across datasets, shot counts, and ranks, the token-side factor B varies little and occupies a nearly common subspace, whereas the embedding-side factor A and the induced prompt BA change substantially (Fig. 1). The token basis is largely shared across tasks while the coefficients carry the adaptation. This sharpens our question: must B be learned at all? If not, prompt adaptation reduces to optimizing the rd embedding-side coefficients over a fixed low-dimensional token basis.

Our experiments indicate that learning B is often unnecessary in the evaluated CoOp settings. Across seven few-shot benchmarks and two CLIP backbones, low-rank prompts match or improve dense CoOp while using far fewer parameters, with the clearest gains on base-to-new generalization in the low-shot regime. Fixing B to a Gaussian, orthogonal, SVD-derived, or learned-then-frozen basis and training only A stays within a few tenths of a point of the fully trainable factorization, and transfer controls show a random fixed B performs as well as one carried over from a source dataset, so the token basis need not encode anything task-specific. Theoretically, a prompt-factor asymmetry analysis shows that fixing B restricts the prompt by a projection in the small m-dimensional token space, whereas fixing A restricts it in the much larger d-dimensional embedding space; a local update-space argument gives fixing B exactly d/m(=32d/m (= 32 in our setting) times more adaptation directions than fixing A; and, under the stated smoothness and lower-boundedness assumptions, we establish a bound on the minimum squared gradient norm attained by gradient descent over a fixed B.

We summarize our contributions as follows:

• We introduce a low-rank factorized formulation of continuous prompt learning for CLIP, replacing the dense CoOp prompt with P=BAP = BA, and show that it matches or improves dense CoOp across seven few-shot benchmarks while using substantially fewer trainable parameters, with the largest gains on low-shot base-to-new generalization.

• Through fixed-basis ablations and transfer controls, we demonstrate that the token-side factor need not be learned: Gaussian, orthogonal, SVD-derived, and even random bases match the fully trainable factorization, and a source-trained B offers no advantage over a random one.

• We provide a theoretical account, comprising a prompt-factor asymmetry result, a local update-space dimension gap, and a smoothness-only convergence guarantee, that explains why optimizing A over a fixed B remains effective.

References (43)