Few-Shot and Zero-Shot Classification with Large Language Models: A Comparative Study

This study systematically compares the performance of large language models in zero-shot and few-shot text classification tasks. Experiments were conducted on a balanced Turkish news dataset, evaluating five different prompting strategies using the ChatGpt model: label list only (zero-shot), one example per label (one-shot), five examples (five-shot), ten examples (ten-shot), and label summaries (summary). The results indicate that increasing the number of examples per label positively affects overall performance, while summary-based prompts emerge as an effective alternative, offering both high accuracy and lower cost. According to macro and micro F1 scores, the highest performance was achieved with the five-shot approach, whereas the summary method demonstrated remarkable effectiveness in zero-shot settings. These findings highlight the critical role of prompt length, content diversity, and contextual clarity in the classification performance of LLM-based system.

Authors

Institutions

Publication Details

Published
2025-06-27
DOI
https://doi.org/10.1109/isas66241.2025.11101921
Primary Topic
Computational and Text Analysis Methods
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Few-Shot and Zero-Shot Classification with Large Language Models: A Comparative Study

Ahmet Tuğrul Bayrak, İsmail Utku Sayan, Fatma Nur Korkmaz
Computational and Text Analysis Methods
article

Few-Shot and Zero-Shot Classification with Large Language Models: A Comparative Study

Ahmet Tuğrul Bayrak, İsmail Utku Sayan, Fatma Nur Korkmaz
article en

Abstract

This study systematically compares the performance of large language models in zero-shot and few-shot text classification tasks. Experiments were conducted on a balanced Turkish news dataset, evaluating five different prompting strategies using the ChatGpt model: label list only (zero-shot), one example per label (one-shot), five examples (five-shot), ten examples (ten-shot), and label summaries (summary). The results indicate that increasing the number of examples per label positively affects overall performance, while summary-based prompts emerge as an effective alternative, offering both high accuracy and lower cost. According to macro and micro F1 scores, the highest performance was achieved with the five-shot approach, whereas the summary method demonstrated remarkable effectiveness in zero-shot settings. These findings highlight the critical role of prompt length, content diversity, and contextual clarity in the classification performance of LLM-based system.

China XD Group (China) (CN)
Quality Education
Openalex Percentile: Top 70%
Computational and Text Analysis Methods
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.