When Does Fine-Tuning Overtake Prompting? An Accuracy and Cost Analysis of Small Language Models on Narrow Tasks

When small language models (SLMs) are deployed for narrow tasks, adapting them with a small number of labeled samples can substantially improve performance. Three adaptation families compete in this regime: in-context learning (ICL), parameter-efficient fine-tuning, and automatic prompt optimization (APO), yet no prior study compares all three at matched conditions. We compare three ICL selection strategies, fine-tuning using LoRA with per-task hyperparameter optimization, and the APO method GEPA across 17 narrow tasks, three Qwen3 model sizes, and data budgets up to 200 labeled samples. ICL sample efficiency largely saturates by 25-50 examples regardless of selection strategy, while fine-tuning keeps improving across the full budget range. Averaged over our task suite, approximately 50~labeled samples suffice for fine-tuning to overtake all ICL strategies, with the crossover occurring earlier on 0.6B and 1.7B than on 4B, although task category can shift or reverse this ordering. GEPA, in our configuration, is not competitive. A throughput-calibrated two-component cost analysis shows that, under single-task serving with merged adapters, data availability rather than deployment volume is the main driver of the cost-optimal method.

Authors

Institutions

Publication Details

Journal
arXiv
Published
2026-12-03
Primary Topic
Domain Adaptation and Few-Shot Learning
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

When Does Fine-Tuning Overtake Prompting? An Accuracy and Cost Analysis of Small Language Models on Narrow Tasks

Frank Hutter, Urs Spiegelhalter, Jörg K. H. Franke
arXiv
Domain Adaptation and Few-Shot Learning
preprint

When Does Fine-Tuning Overtake Prompting? An Accuracy and Cost Analysis of Small Language Models on Narrow Tasks

Frank Hutter, Urs Spiegelhalter, Jörg K. H. Franke
preprint en

Abstract

When small language models (SLMs) are deployed for narrow tasks, adapting them with a small number of labeled samples can substantially improve performance. Three adaptation families compete in this regime: in-context learning (ICL), parameter-efficient fine-tuning, and automatic prompt optimization (APO), yet no prior study compares all three at matched conditions. We compare three ICL selection strategies, fine-tuning using LoRA with per-task hyperparameter optimization, and the APO method GEPA across 17 narrow tasks, three Qwen3 model sizes, and data budgets up to 200 labeled samples. ICL sample efficiency largely saturates by 25-50 examples regardless of selection strategy, while fine-tuning keeps improving across the full budget range. Averaged over our task suite, approximately 50~labeled samples suffice for fine-tuning to overtake all ICL strategies, with the crossover occurring earlier on 0.6B and 1.7B than on 4B, although task category can shift or reverse this ordering. GEPA, in our configuration, is not competitive. A throughput-calibrated two-component cost analysis shows that, under single-task serving with merged adapters, data availability rather than deployment volume is the main driver of the cost-optimal method.

arXiv
University of Freiburg (DE)
Domain Adaptation and Few-Shot Learning
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.

Laika access coming soon