Few-Shot Image Classification Guided by Large Language Models

Few-shot image classification remains a challenging task due to the scarcity of labeled data for novel categories. Prompt-based tuning methods, such as CoOp and CoCoOp, have shown promise by adapting pre-trained vision-language models like CLIP to downstream tasks. However, these methods either suffer from limited generalization or lack semantic grounding. In this paper, we propose LLM-PromptTuning, a novel framework that integrates class-level semantic knowledge from large language models (LLMs) into conditional prompt learning. We generate rich, descriptive prompts for each class using an LLM and combine them with image-conditioned prompt vectors produced by a Transformer-based meta-network. These hybrid prompts are fed into the CLIP text encoder, improving the alignment between textual and visual representations. Experiments on Caltech101, Oxford Flowers102, and Food101 demonstrate that our method outperforms CoOp and CoCoOp, particularly in novel class recognition, achieving a new state-of-the-art in prompt-based few-shot learning.

Authors

Institutions

Publication Details

Journal
Applied and Computational Engineering
Published
2025-05-15
DOI
https://doi.org/10.54254/2755-2721/2025.22858
Primary Topic
Anomaly Detection Techniques and Applications
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Few-Shot Image Classification Guided by Large Language Models

Lirong Han, Pinzhe Chen, Hao Chen, Yanxi Liu
Applied and Computational Engineering
Anomaly Detection Techniques and Applications
article

Few-Shot Image Classification Guided by Large Language Models

Lirong Han, Pinzhe Chen, Hao Chen, Yanxi Liu
article en

Abstract

Few-shot image classification remains a challenging task due to the scarcity of labeled data for novel categories. Prompt-based tuning methods, such as CoOp and CoCoOp, have shown promise by adapting pre-trained vision-language models like CLIP to downstream tasks. However, these methods either suffer from limited generalization or lack semantic grounding. In this paper, we propose LLM-PromptTuning, a novel framework that integrates class-level semantic knowledge from large language models (LLMs) into conditional prompt learning. We generate rich, descriptive prompts for each class using an LLM and combine them with image-conditioned prompt vectors produced by a Transformer-based meta-network. These hybrid prompts are fed into the CLIP text encoder, improving the alignment between textual and visual representations. Experiments on Caltech101, Oxford Flowers102, and Food101 demonstrate that our method outperforms CoOp and CoCoOp, particularly in novel class recognition, achieving a new state-of-the-art in prompt-based few-shot learning.

Applied and Computational EngineeringVol. 151(1)
Jiangsu University of Science and Technology (CN)
Openalex Percentile: Top 95%
Anomaly Detection Techniques and Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.