Large Language Models are Good Prompt Learners for Low-Shot Image Classification

Zhao-Heng Zheng, Jingmin Wei, Xuefeng Hu, Haidong Zhu, Ramkant Nevatia
2/14/2026

No official code found. Best implementation: zhaohengz/LLaMP (45 stars, MIT, last commit 2024-07-01).

Abstract

Low-shot image classification, where training images are limited or inaccessible, has benefited from recent progress on pretrained vision-language (VL) models with strong generalizability. e.g. CLIP. Prompt learning methods built with VL models generate text features from the class names that only have confined class-specific information. Large Language Models (LLMs), with their vast en-cyclopedic knowledge, emerge as the complement. Thus, in this paper, we discuss the integration of LLMs to enhance pretrained VL models, specifically on low-shot classification. However, the domain gap between language and vision blocks the direct application of LLMs. Thus, we propose LLaMp, Large Language Models as Prompt learners, that produces adaptive prompts for the CLIP text encoder, establishing it as the connecting bridge. Experiments show that, compared with other state-of-the-art prompt learning methods, LLaMP yields better performance on both zero-shot generalization and few-shot image classification, over a spectrum of 11 datasets. Code will be made available at: https://github.com/zhaohengz/LLaMP.

View on arXivView PDF

Code Implementations(1)

zhaohengz/LLaMPCommunity62%
MIT

Official Repository for CVPR 2024 Paper: "Large Language Models are Good Prompt Learners for Low-Shot Image Classification"

453Shell, PythonMar 19, 20242 years agoMIT

Similar Papers

Cite this paper

@article{zheng2026large,
  title  = {Large Language Models are Good Prompt Learners for Low-Shot Image Classification},
  author = {Zhao-Heng Zheng and Jingmin Wei and Xuefeng Hu and Haidong Zhu and Ramkant Nevatia},
  year   = {2026},
  eprint = {2312.04076},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2312.04076},
  journal = {CVPR 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/2312.04076.svg)](https://codeofpaper.com/paper/2312.04076)

Discussion