← All writing
Evaluation · 5 min read · 27 Nov 2026

Fine-Tuning a Small Classifier and Reporting It Honestly

A worked walkthrough of what actually happens when you fine-tune a small model, and the habits that keep your results trustworthy rather than merely impressive.

Cover image for the article: Fine-Tuning a Small Classifier and Reporting It Honestly

Why this is harder than it looks

Fine-tuning a small classifier sounds like the easy part of a machine learning project. You take a pretrained encoder, bolt on a linear head, run a few epochs over labelled examples, and watch the accuracy climb. In practice this is exactly where quiet mistakes creep in, because the pipeline looks finished long before it is trustworthy. The model trains, the loss goes down, the accuracy number looks respectable, and it is tempting to write that number in a report and move on.

The trouble is that a single accuracy figure tells you almost nothing about whether the model has learned something real or has simply exploited a shortcut in how the data was collected or split. I want to walk through a concrete example: fine-tuning a small transformer encoder to classify customer support tickets into three categories, billing, technical, and account access. The task is mundane on purpose, because the lessons generalise far beyond it.

Say we have twelve thousand labelled tickets. A naive approach shuffles everything and takes an eighty-ten-ten split for train, validation and test. This is the default in most tutorials, and it is often wrong, because it ignores how the data was actually generated. If tickets from the same customer, or the same support agent, or the same week of a product outage, end up scattered across all three splits, the model can learn patterns tied to that customer or that incident rather than the underlying language of the category. The test score then measures memorisation of context, not generalisation.

Building the split and the baseline first

Before touching the model, I would group the data by customer ID and split at the group level, so every ticket from a given customer lands entirely in train, validation, or test. With twelve thousand tickets from, say, three thousand unique customers, a group-aware split might give roughly nine thousand six hundred training tickets, twelve hundred validation, and twelve hundred test, with no customer appearing in more than one split. This single decision changes what the final number means. It is no longer measuring how well the model recognises familiar customers' phrasing; it is measuring how well it generalises to people it has never seen.

Next, before any fine-tuning, I would establish baselines. A simple bag-of-words model with logistic regression, run on the same split, might reach seventy-eight per cent accuracy. A majority-class baseline, predicting the most common category every time, might reach forty-five per cent if the classes are imbalanced. These numbers matter enormously, because they define the floor the fine-tuned model has to clear to justify its cost. If the fine-tuned transformer later scores eighty per cent, that is a much less exciting result once you know a linear model got most of the way there with a fraction of the compute.

Class imbalance deserves its own check. If billing tickets make up sixty per cent of the data, technical twenty-five per cent, and account access fifteen per cent, then accuracy alone is a weak metric, because a model that leans heavily towards predicting billing will still score respectably. I would report per-class precision, recall and F1, alongside a macro-averaged F1 that treats all three classes equally regardless of their frequency. It is common to see a model with eighty-two per cent overall accuracy but only fifty-eight per cent recall on the account access class, because that class is rarer and the model has learned to hedge towards the common ones. That gap is the real story, and burying it inside one headline accuracy figure would be dishonest by omission.

laptop with spreadsheet of model results

Fine-tuning and what the numbers actually mean

With the split and baselines fixed, fine-tuning itself is comparatively mechanical: freeze or lightly adjust the encoder, add a small classification head, train for a handful of epochs with early stopping based on validation macro-F1 rather than training loss. Suppose after three epochs the validation macro-F1 peaks at seventy-six per cent and then starts declining as the model overfits to training quirks. I would checkpoint at that peak rather than at the final epoch, because the final epoch is often worse, not better.

On the held-out test set, imagine this model reaches seventy-nine per cent accuracy and seventy-two per cent macro-F1, compared with the bag-of-words baseline's seventy-eight per cent accuracy and sixty-six per cent macro-F1. That is a modest but real improvement, concentrated mostly in better recall on the smaller account access class. Reporting this honestly means stating both numbers side by side, not just the fine-tuned model's score in isolation, and being explicit that the gain is six points of macro-F1, not thirteen points of raw accuracy, because accuracy alone flatters the majority class.

It also means reporting uncertainty. With twelve hundred test examples, a difference of one or two percentage points between two models is often within noise. Running the evaluation with several random seeds for the classification head, or computing a simple confidence interval via bootstrap resampling of the test predictions, might show that macro-F1 ranges from seventy to seventy-four per cent across seeds. If a competing approach scores seventy-three per cent, you cannot honestly claim your model is better; you can only say the two are statistically indistinguishable on this test set. Most published comparisons skip this step entirely, and it is one of the cheapest ways to make a report more credible.

The practical takeaway

None of this requires exotic tooling. It requires discipline applied in the right order: split by the real unit of independence in your data before you look at the model, establish a baseline that is embarrassingly simple, choose metrics that reflect class imbalance rather than hiding it, and quantify the uncertainty around your final comparison before declaring a winner. The fine-tuning step itself, the part most tutorials obsess over, is often the least consequential decision in the whole pipeline.

When I write up results now, I try to include the baseline score, the per-class breakdown, the split methodology, and some notion of variance across runs, even when the numbers are less flattering than a single clean percentage. A six-point macro-F1 improvement with honest uncertainty bounds is a far more useful contribution than an eighty-five per cent accuracy figure that quietly depends on customer overlap between train and test. The goal is not to make the model look good; it is to make the report survive someone else trying to reproduce it.

whiteboard with data split diagram
← All writing See the project case studies →