Lune

CVPR2024Top-tier venue

LP++: A Surprisingly Strong Linear Probe for Few-Shot CLIP

Yunshi Huang, Fereshteh Shakeri, Jose Dolz, Malik Boudiaf, Houda Bahig, Ismail Ben Ayed

Abstract

In a recent, strongly emergent literature on few-shot CLIP adaptation, Linear Probe (LP) has been often reported as a weak baseline. This has motivated intensive research building convoluted prompt learning or feature adaptation strategies. In this work, we propose and examine from convex-optimization perspectives a generalization of the standard LP baseline, in which the linear classifier weights are learnable functions of the text embedding, with class-wise multipliers blending image and text knowledge. As our objective function depends on two types of variables, i.e., the class visual prototypes and the learnable blending parameters, we propose a computationally efficient block coordinate Majorize-Minimize (MM) descent algorithm. In our full-batch MM optimizer, which we coin LP++, step sizes are implicit, unlike standard gradient descent practices where learning rates are intensively searched over validation sets. By examining the mathematical properties of our loss (e.g., Lipschitz gradient continuity), we build majorizing functions yielding data-driven learning rates and derive approximations of the loss's minima, which provide data-informed initialization of the variables. Our imagelanguage objective function, along with these non-trivial optimization insights and ingredients, yields, surprisingly, highly competitive few-shot CLIP performances. Furthermore, LP++ operates in black-box, relaxes intensive validation searches for the optimization hyper-parameters, and runs orders-of-magnitudes faster than state-of-the-art fewshot CLIP adaptation methods. Our code is available at: https://github.com/FereshteShakeri/ FewShot-CLIP-Strong-Baseline.git.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

27 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Prompt-aligned Gradient for Prompt Tuning cites Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
  • Prompt-aligned Gradient for Prompt Tuning cites Learning Transferable Visual Models From Natural Language Supervision
  • Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision cites Learning Transferable Visual Models From Natural Language Supervision
  • Text and Image Are Mutually Beneficial: Enhancing Training-Free Few-Shot Classification with CLIP cites Learning Transferable Visual Models From Natural Language Supervision
  • Reclaiming Lost Text Layers for Source-Free Cross-Domain Few-Shot Learning cites Prompt-aligned Gradient for Prompt Tuning
  • Reclaiming Lost Text Layers for Source-Free Cross-Domain Few-Shot Learning cites Learning Transferable Visual Models From Natural Language Supervision
  • Approximate Domain Unlearning for Vision-Language Models cites Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
  • Approximate Domain Unlearning for Vision-Language Models cites Learning Transferable Visual Models From Natural Language Supervision
  • ModalChorus: Visual Probing and Alignment of Multi-Modal Embeddings via Modal Fusion Map cites Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision
  • ModalChorus: Visual Probing and Alignment of Multi-Modal Embeddings via Modal Fusion Map cites Learning Transferable Visual Models From Natural Language Supervision
  • Knowledge Composition using Task Vectors with Learned Anisotropic Scaling cites Learning Transferable Visual Models From Natural Language Supervision
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers27

  1. Knowledge Composition using Task Vectors with Learned Anisotropic ScalingFrederic Z. Zhang, Paul Albert, Cristian Rodriguez Opazo, Anton van den Hengel et al.NeurIPS 2024 · 43 citations
  2. Text and Image Are Mutually Beneficial: Enhancing Training-Free Few-Shot Classification with CLIPYayuan Li, Jintao Guo, Lei Qi, Wenbin Li et al.AAAI 2025 · 9 citations
  3. ModalChorus: Visual Probing and Alignment of Multi-Modal Embeddings via Modal Fusion MapYilin Ye, Shishi Xiao, Xingchen Zeng, Wei ZengIEEE VIS 2024 · 8 citations
  4. Reclaiming Lost Text Layers for Source-Free Cross-Domain Few-Shot LearningZhenyu Zhang, Guangyao Chen, Yixiong Zou, Yuhua Li et al.CVPR 2026 · 7 citations
  5. Approximate Domain Unlearning for Vision-Language ModelsKodai Kawamura, Yuta Goto, Rintaro Yanagi, Hirokatsu Kataoka et al.NeurIPS 2025 · 7 citations

Builds on6

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Scaling Up Visual and Vision-Language Representation Learning With Noisy Text SupervisionChao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen et al.ICML 2021 · 5,401 citations
  3. AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated PromptsTaylor Shin, Yasaman Razeghi, Robert L. Logan IV, Eric Wallace et al.EMNLP 2020 · 1,162 citations
  4. Prompt-aligned Gradient for Prompt TuningBeier Zhu, Yulei Niu, Yucheng Han, Yue Wu et al.ICCV 2023 · 475 citations
  5. Transductive Learning for Textual Few-Shot Classification in API-based Embedding ModelsPierre Colombo, Victor Pellegrain, Malik Boudiaf, Myriam Tami et al.EMNLP 2023 · 7 citations

Related papers

  1. Transductive Zero-Shot and Few-Shot CLIPSégolène Martin, Yunshi Huang, Fereshteh Shakeri, Jean-Christophe Pesquet et al.CVPR 2024 · 17 citations
  2. Large Language Models are Good Prompt Learners for Low-Shot Image ClassificationZhaoheng Zheng, Jingmin Wei, Xuefeng Hu, Haidong Zhu et al.CVPR 2024 · 15 citations
  3. FewVS: A Vision-Semantics Integration Framework for Few-Shot Image ClassificationZhuoling Li, Yong Wang, Kaitong LiACM MM 2024 · 4 citations
  4. Deeply Coupled Cross-Modal Prompt LearningXuejing Liu, Wei Tang, Jinghui Lu, Rui Zhao et al.ACL Findings 2023 · 17 citations
  5. Meta-Adapter: An Online Few-shot Learner for Vision-Language ModelCheng Cheng, Lin Song, Ruoyi Xue, Hang Wang et al.NeurIPS 2023 · 65 citations
Dusk over the sea between two cliffs drawn in fine vertical lines