arXiv:2610.24260cs.CLOct 2026

Manuscript Offprint

arXiv:2610.24260

Best of Both Worlds: Fine-Tuned Small Models Complement LLMs for Cost and Performance Benefits

Shivam Mathur, Sri Harish Popuri, Priya Krishnan Sundararajan, Kevin Horecka, Michael Mugo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

BERT-based models require thousands of labeled samples to train. Larger models like GPT-X require only 1–5 examples per class. However, performance, cost and time tradeoffs of such models remain under-explored. In this work, we classify survey text data into 16 classes. We focus on experimental approaches and results on performance, cost, and time taken for this problem. We compare these parameters of a trained RoBERTa-based model, and an (off-the-shelf) GPT-3.5 model for text classification. Baseline experiments show that the time taken by GPT-3.5 for generating predictions on 10,000 records is 6 hours, whereas a RoBERTa-based model takes only 12 mins on a T4 GPU. To identify the best prompting approach for GPT-3.5, we explore batch prompting. We experiment with (1) batch-size, and (2) few-shot sampling. We find the best batch size is 20 with human few-shot curation. Experiments show the F1 score of a trained RoBERTa-based model (96%) is much higher than a GPT-3.5 model (83%). In case of GPT-3.5, batch prompting is beneficial in lowering inference costs by 70%, without hindering task performance. We find the best approach is an ensemble of a RoBERTa-based and GPT-3.5 model (F1: 97.5%) incurring only 4.4% of inference cost compared to a standalone GPT-3.5.

1 Introduction

Natural language processing has seen impressive advancements in the past few years, especially in text classification. Large language models have achieved performance comparable to supervised baselines such as question answering (Trivedi et al., 2023), named entity recognition (Wang et al., 2025), relation extraction (Wan et al., 2023) and human annotator performance (Gilardi et al., 2023). Despite the remarkable success, previous studies (Sun et al., 2023; Mathur et al., 2023) show that LLMs may still significantly underperform fine-tuned models in the task of text classification. In this paper, we do a performance, cost, and time tradeoff of GPT-3.5 and a supervised RoBERTa-based model on text classification task. We experiment with different batch sizes, few shot sizes and sample selection strategies to identify the best prompting approach in terms of performance, cost, and time suitable for the dataset. The dataset is a survey with an open text response. We apply NLP models to classify these response texts into pre-defined topics/classes for better insights and speedy actions.

Our final approach involves using a combination of fine-tuned RoBERTa-based model and GPT-3.5, where GPT-3.5 is used to classify the response texts that have a confidence less than 0.5. This approach boosts F1 score to 97.5% incurring only 4.4% of inference cost compared to when an off-the-shelf LLM (GPT-3.5) alone was used.