Fine-Tuned Classifiers vs Zero-Shot Models for Text Classification: When Training on Your Labels Pays
Fine-tuned text classifiers usually beat zero-shot models once you have representative labels for stable categories. Zero-shot wins on changing labels and tiny budgets. A held-out test on your own data decides.
Fine-tuned models usually beat zero-shot models at text classification when the categories are stable and you have a full set of representative labeled examples for every class. Zero-shot models are the better start when labels change often, when you have almost no labeled data, or when they already meet your quality target. Published studies support both halves of that answer, and none of them sets a universal minimum number of examples. The reliable way to choose is a controlled comparison on a held-out test set drawn from your own traffic, with costs counted alongside accuracy.
Zero-shot means no training on your target task, not a model that was never fine-tuned
The word "zero-shot" describes how a model meets your task, not its training history. Google's FLAN paper, first posted on 3 September 2021, showed this clearly. The authors took a 137-billion-parameter model and fine-tuned it on more than 60 tasks written as natural-language instructions. They call this instruction tuning. The resulting model then ran zero-shot on task types that it had never seen, and it beat zero-shot GPT-3 on 20 of 25 tasks.
So a zero-shot classifier can be heavily fine-tuned, just not on your labels. Target-task training is different: it uses your own labeled examples for your own categories. That second kind of training is what the "fine-tuned classifier" in this comparison means.
Zero-shot is also not one method, and it does not require a large language model. The BTZSC benchmark, posted on 12 March 2026 and accepted at ICLR 2026, tested 38 models on 22 English datasets. It grouped them into four families that work in different ways:
- An NLI cross-encoder turns each label into a hypothesis such as "This text is about sports" and picks the label with the highest entailment score.
- An embedding model embeds the text and each label description, then picks the label with the closest vector.
- A reranker treats the text as a query and the label descriptions as documents to be ranked.
- A generative LLM answers a multiple-choice prompt, and the label with the highest next-token probability wins.
The families scored very differently. In BTZSC, the reranker Qwen3-Reranker-8B reached a macro-F1 of 0.72, the best result. Instruction-tuned LLMs of 4 to 12 billion parameters reached up to 0.67. The embedding model gte-large-en-v1.5 scored 0.62 and gave the best balance of accuracy and speed. The older NLI model bart-large-mnli scored 0.51, and the author found that NLI cross-encoders stopped improving as their backbones grew. Any comparison that treats "zero-shot" as one baseline will miss most of this range.
Published comparisons favour fine-tuning with full training sets and favour prompting only at one example per class
The most direct test of label budgets is the LREC-COLING 2024 study by Aleksandra Edwards and Jose Camacho-Collados. They tested 16 datasets that covered binary, multiclass and multilabel problems. On the prompting side they used Flan-T5 large, LLaMA 1 and 2 at 7 billion parameters, and GPT-3.5-Turbo on some datasets. On the fine-tuning side they used RoBERTa base and large, T5 base and FastText.
The result depended on how much labeled data the fine-tuned models received. With one training example per label, prompting won on binary and multiclass tasks. Flan-T5 reached a micro-F1 of 0.489 on multiclass tasks against 0.162 for RoBERTa-large. With the full training sets, the order reversed. The best fine-tuned model beat the best prompted model by 0.119 micro-F1 on binary tasks and by 0.240 on multiclass tasks. Multilabel tasks favoured fine-tuning even at one example per label.
Other studies point the same way. Martin Bucher and Marco Martini reported in June 2024 that smaller fine-tuned models consistently and significantly beat zero-shot GPT-3.5, GPT-4 and Claude Opus on sentiment, emotion, approval and party-position tasks. A February 2026 study by Alberto Valdes Gonzalez compared GPT-4o and Claude Sonnet 4.5 prompting with fine-tuned BERT-family encoders on four public benchmarks. It found the encoders competitive or better at one to two orders of magnitude lower cost and latency.
One model card shows the gap at a moderate label budget. The NLI classifier deberta-v3-large-zeroshot-v2.0 averages a macro-F1 of 0.673 zero-shot across 28 datasets. When the same model is trained on up to 500 examples per class from each dataset, its average rises to 0.846. These are the models and datasets that were tested. They do not establish a permanent ranking of every model.
Labeled examples define your decision boundary, so label quality and category changes decide how much tuning pays
A fine-tuned classifier learns what your organisation means by "urgent" or "billing" from examples. A zero-shot model has to infer that boundary from a label name or a description. The second approach adapts quickly when definitions change, but it can be unstable when a description leaves room for interpretation.
The EMNLP 2022 paper by Ariel Gera and colleagues at IBM Research documents that instability in NLI-based zero-shot classifiers. The authors trace it to the models' lack of exposure to the target task. Their fix sits between the two options. They fine-tune the zero-shot model on its own most confident predictions, using only the class names and unlabeled text, and they report significant gains across many tasks.
Four properties of your labels decide whether full target-task training will repay its cost:
- Label quality sets the ceiling, because a classifier trained on inconsistent labels learns the inconsistency.
- Class coverage matters because rare classes with a handful of examples can vanish into a high average score.
- Category changes add a retraining step every time a label is added, split or merged, while a zero-shot model only needs a new description.
- Domain shift means that a model trained on last year's text can score lower on this year's text, so the test set has to include recent data.
A fair comparison fixes the splits, groups duplicates and keeps model selection away from the test set
A comparison goes wrong when information from the test set leaks into training or tuning. The scikit-learn documentation warns that tuning against the test set lets knowledge of it "leak" into the model. Its 20 newsgroups example shows a quieter leak: email headers and signatures let models identify the source group, which produced over-optimistic scores.
A reproducible study follows a fixed set of steps:
- Publish or archive the task data, or a synthetic fixture when the data cannot be shared, together with the label definitions and the annotation guide.
- Split the data once into training, validation, calibration and test sets, and keep every group of related items, such as one customer's tickets, inside a single split.
- Remove exact and near duplicates before splitting, because a duplicate across splits inflates the test score.
- Fill the test set on purpose with rare classes, ambiguous examples, recent text and at least one category that was added or changed.
- Train each candidate at several labeled-data budgets, such as 50, 200, 1,000 and the full set, and plot the score against the budget as a learning curve.
- Choose prompts, thresholds and hyperparameters on the validation set only, then score each finished candidate on the test set once.
- Report every result, including the budgets where tuning did not beat the zero-shot baseline.
The scikit-learn tools cover most of this. GroupKFold and StratifiedGroupKFold keep groups whole, TimeSeriesSplit trains on the past and tests on the future, and learning_curve scores a model at several training sizes.
The report needs per-class, calibration and deferral numbers alongside the average
Accuracy alone hides the failures that matter in production. Macro-F1 gives every class equal weight, which the scikit-learn documentation notes does not take label imbalance into account. Per-class precision and recall then show which categories fail. A confidence interval around each score, computed by resampling the test set, shows whether a gap between two candidates is larger than the noise.
Calibration matters because a production system acts on the confidence score. Guo and colleagues showed in 2017 that modern neural networks are often poorly calibrated, and that a single temperature parameter fixes most of the problem. The scikit-learn documentation adds that a calibrator must be fitted on data that the classifier was not trained on. Calibrated scores make deferral possible: the system sends low-confidence items to a person. Geifman and El-Yaniv framed this as selective classification, which trades coverage for a lower error rate. The useful report gives the share of traffic that a model handles at your target error rate.
The cost side of the report needs five lines: annotation, training, serving, human review of deferred items, and maintenance when categories change. Latency belongs on the same page, measured on named hardware.
Each training route has a different base model, licence and hardware bill
"Fine-tuning" covers routes with very different costs, and a study should pin each one to an exact release. A fully fine-tuned encoder is the cheapest route to serve. ModernBERT-large has 395 million parameters, an 8,192-token context and an Apache 2.0 licence. Its model card advises fine-tuning it for classification with standard BERT recipes.
Parsec's open-source openjev-sdk, published under an MIT licence, shows how these routes differ in one toolkit. Its guide lists three methods. The tod method continues training the LoRA adapter of TOD, Parsec's decision model, on Gemma 4 12B and needs a large-memory GPU such as an A100 or H100. The default head method trains a small head on a frozen Gemma 3 4B model and fits on a much smaller GPU. The encoder method fully fine-tunes ModernBERT-large and can serve on a CPU. The Gemma 3 and Gemma 4 base models are under Google's Gemma terms, while the TOD adapters are listed as Apache-2.0. The SDK splits data by group, drops duplicates and fits calibration on its own split. Its TOD report also includes zero-shot TOD on the same test split.
On the repo's synthetic ticket fixture, fine-tuning raised TOD's team accuracy from 84.2% zero-shot to 97.0%. This is Parsec's own result rather than an independent one. The cookbook can be re-run, but no independent re-run has been published. The fixture is generated data, so the result is weak evidence about real traffic. TOD's own page shows the opposite risk, because on Parsec's public JevBench set TOD scored slightly below its untrained base model. The SDK guide gives no learning curve across label budgets for any of these routes. Parsec's site also describes a managed tuning service, but it states no price or method for it, and evidence about an SDK is not evidence about that service.
Serving cost favours a small classifier only above a volume that depends on prompt length
The cost argument for fine-tuning is real, but it depends on volume. Consider 1 million classifications a month. Each request sends 1,000 tokens of label definitions and 500 tokens of text, and returns 5 tokens. Tokens are counted in the zero-shot model's own tokenizer.
On Claude Haiku 5.5 at Anthropic's list price of $0.10 per million input tokens and $0.50 per million output tokens, that workload costs $152.50 a month. If the 1,000 tokens of definitions are read from the prompt cache at $0.01 per million, the bill falls to $62.50 before cache writes. A fine-tuned encoder on one Hugging Face CPU endpoint at $0.134 an hour costs $97.82 for a 730-hour month. Whether one CPU endpoint can carry this traffic has not been measured.
On these assumptions, the encoder saves money on serving only above about 640,000 requests a month against the uncached prompt, or about 1.57 million against the cached one. Labels change the picture further. At an assumed $0.50 per label, 3,000 training labels cost $1,500, which is more than a year of the cached zero-shot bill at this volume. At 1 million requests a month, then, the case for tuning rests on accuracy rather than on savings.
Keep zero-shot or rules when they meet the target, and tune only when held-out gains or measured savings pay for the labels
The evidence supports a simple rule for each situation:
- Keep a rules or linear baseline when the categories follow fixed keywords or codes. In the scikit-learn example, logistic regression reached 0.772 accuracy on four newsgroups after 0.174 seconds of training.
- Keep a zero-shot model when it meets your quality target on the held-out set, or when categories change more often than you can relabel. Self-training on unlabeled text is worth trying first, because it needs only the class names.
- Move to target-task fine-tuning when the categories are stable, the labels are consistent and the learning curve shows a gain whose confidence interval clears zero.
- Choose fine-tuning on cost grounds only after measuring throughput at your real volume, with annotation and retraining included in the total.
There is no reliable universal minimum number of labeled examples. The useful amount depends on the difficulty of the task, the quality of the labels and the coverage of rare classes. Only a learning curve on your own data shows where that point lies.
Sources
- Wei et al., Finetuned Language Models Are Zero-Shot Learners: https://arxiv.org/abs/2109.01652
- Google Research, Finetuned Language Models are Zero-Shot Learners: https://research.google/pubs/finetuned-language-models-are-zero-shot-learners/
- Edwards and Camacho-Collados, Language Models for Text Classification: Is In-Context Learning Enough? (LREC-COLING 2024): https://aclanthology.org/2024.lrec-main.879/
- Same paper, PDF: https://aclanthology.org/2024.lrec-main.879.pdf
- Gera et al., Zero-Shot Text Classification with Self-Training (EMNLP 2022): https://aclanthology.org/2022.emnlp-main.73/
- Gera et al., arXiv version: https://arxiv.org/abs/2210.17541
- Bucher and Martini, Fine-Tuned 'Small' LLMs (Still) Significantly Outperform Zero-Shot Generative AI Models in Text Classification: https://arxiv.org/abs/2406.08660
- Valdes Gonzalez, Cost-Aware Model Selection for Text Classification: https://arxiv.org/abs/2602.06370
- Aarab, BTZSC benchmark: https://arxiv.org/abs/2603.11991
- BTZSC, full text: https://arxiv.org/html/2603.11991v1
- MoritzLaurer/deberta-v3-large-zeroshot-v2.0 model card: https://huggingface.co/MoritzLaurer/deberta-v3-large-zeroshot-v2.0
- scikit-learn, Classification of text documents using sparse features: https://scikit-learn.org/stable/auto_examples/text/plot_document_classification_20newsgroups.html
- scikit-learn, Cross-validation: https://scikit-learn.org/stable/modules/cross_validation.html
- scikit-learn, learning_curve: https://scikit-learn.org/stable/modules/generated/sklearn.model_selection.learning_curve.html
- scikit-learn, f1_score: https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html
- scikit-learn, Probability calibration: https://scikit-learn.org/stable/modules/calibration.html
- Guo et al., On Calibration of Modern Neural Networks: https://arxiv.org/abs/1706.04599
- Geifman and El-Yaniv, Selective Classification for Deep Neural Networks: https://arxiv.org/abs/1705.08500
- answerdotai/ModernBERT-large model card: https://huggingface.co/answerdotai/ModernBERT-large
- google/gemma-3-4b-it model card: https://huggingface.co/google/gemma-3-4b-it
- Anthropic, Pricing: https://platform.claude.com/docs/en/about-claude/pricing
- Hugging Face, Inference Endpoints pricing: https://huggingface.co/docs/inference-endpoints/pricing
- Parsec's open-source code, open-jev: https://github.com/daseinlabs/open-jev
- open-jev, decision-model SDK guide: https://github.com/daseinlabs/open-jev/blob/main/docs/tod-sdk.md
- open-jev, ticket-routing cookbook: https://github.com/daseinlabs/open-jev/tree/main/cookbooks/01-ticket-routing
- Parsec, TOD: https://parseclab.ai/tod/
- Parsec, TOD model card: https://huggingface.co/parsecai/tod
- Parsec, Decision models: https://parseclab.ai/solutions/decision-models/