Litcius/Paper detail

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

Zhaoheng Zheng, Jingmin Wei, Xuefeng Hu, Haidong Zhu, Ram Nevatia

202416 citationsDOI

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.

Topics & Concepts

Computer scienceShot (pellet)Contextual image classificationArtificial intelligenceImage (mathematics)Natural language processingOne shotComputer visionEngineeringChemistryOrganic chemistryMechanical engineeringDomain Adaptation and Few-Shot LearningMultimodal Machine Learning ApplicationsCOVID-19 diagnosis using AI
Large Language Models are Good Prompt Learners for Low-Shot Image Classification | Litcius