Text classification is everywhere: routing support tickets, filing documents, flagging reviews, detecting what a user wants. In 2026, the reflex might be to paste the list of labels into a prompt and ask an LLM. It works, sort of, and you never train anything.
But the real world rarely looks like a demo. The model may have to run on a small server with no GPU, or on a machine where a few gigabytes of RAM is all you get. It may have to answer in milliseconds, for every request, all day long. The texts may not be allowed to leave the machine, which rules out an API. And you rarely have thousands of labeled examples lying around. Under those constraints, “just use an LLM” stops being an answer, and the question becomes: what is the best classifier I can run here, and what does it cost me?
That’s the question this series explored, on my laptop (Apple M5, 24 GB of unified memory), with all the code on GitHub: driquet/local-classification. Four posts and a few hundred training runs later, I have an answer. Not a law (one laptop, a handful of tasks, one seed most of the time), but a way to start a new task that I trust.
This post is the one to read if you only read one in this series. It puts the lessons side by side, in the order you would meet them on a new task. The numbers come from the four earlier posts, and each section links to the one that has the charts, the setup and the caveats:
- Do You Need an LLM for That? A 4B LLM, prompted, against TF-IDF and a fine-tuned encoder, on three tasks.
- How Small Can a Text Classifier Be? Encoders and decision models from 17M to 4B parameters, and what each costs to train and to serve.
- No Labels? Borrow Them A big decision model labels the data, a small encoder learns from it.
- A Few Good Labels Mixing the teacher’s labels with a few of your own.
TL;DR · in a hurry?
How I would start a new classification task today, step by step, and what each step costs.
Each post asks one question, on the task where the effect shows most clearly: parts 3 and 4 ran on arXiv, where the words give the answer away, on purpose. So read the numbers as the direction and rough size of an effect, not as what you will get on your own task.
The tasks, and the models#
Four tasks, that differ in one way that turned out to matter: whether the words give the answer away.
| Task | What it asks | Classes | The answer is… |
|---|---|---|---|
| CLINC150 | Which intent is this voice assistant request? | 150 + out-of-scope | in the words |
| arXiv 2026 | Which field is this paper from? | 8 | mostly in the words |
| VAST | Is this comment for, against or neutral about this topic? | 3 | in a relation between two texts |
| DynaSent | Is this sentence positive, negative or neutral? | 3 | behind words that mislead, on purpose |
And three families of models:
- TF-IDF and a logistic regression. A bag of words. Trains in seconds, answers in under a millisecond. The floor.
- Fine-tuned encoders. Ettin, from 17M to 400M parameters, trained on your labels.
- Decision models. Models someone else trained to pick among options: you give them a text and a list of classes, they return a probability for each. No training on your side. From 32M (Amber, a decision encoder) to 27B (rented through an API).
Lesson 1: three stances were harder than 150 intents#
My first guess was that the number of classes would decide everything: listing 10 classes in a prompt is easy, listing 150 is not. It does matter, for a generic prompt: on CLINC, zero-shot Qwen3.5-4B goes from 95.5 macro-F1 with 10 intents to 79.7 on the full task (150 intents plus out-of-scope). But the kind of task mattered more: VAST has three readable classes, and the same prompt gets 54.0. My explanation is where the answer hides: in the words on CLINC, in the relation between a comment and its topic on VAST.

The cheapest diagnostic is TF-IDF, compared with a model that reads the text: a decision model, or a fine-tuned encoder. In part 1, with the full training sets:
- Close to the encoder: the words give the answer away (CLINC 87.8, arXiv 83.9). A bag of words is a strong baseline, and an encoder adds a few points.
- Near chance: the answer is in a relation between two texts (VAST, 32.9). Only models that read both together work: even Ettin-17M gets 64.8.
- Above chance, but far behind: the words may mislead (DynaSent, 55.7 against about 73 for the others).
I only measured these gaps with full training sets. With a few hundred labeled texts, I’d expect the same direction, with more noise.
Details: part 1.
Lesson 2: a decision model beats a generic prompt#
The same Qwen3.5-4B, trained by its authors to pick among options (OneJev1.6-4B), gains 16 points on CLINC and 27 on VAST over the plain prompt, with no labels from me. A few random examples in the prompt don’t close that gap: they helped on small sets of intents, and on none of the full tasks. My few-shot was naive, though: one random draw, no examples picked for each text, and no work on the prompt itself. A tuned prompt would likely narrow the gap; I didn’t measure by how much.
So if you want an LLM without labels, use a decision model, not a prompt. The one exception was DynaSent, the task neither model had seen: there, the plain prompt tied everything else.
Details: part 1.
Lesson 3: without labels, Amber 400M matched a fine-tuned 150M encoder#
A 400M decision encoder (Amber 400M), with no labels from me, matched Ettin-150M fine-tuned on the full training sets: 93.4, 78.3 and 74.9 against 93.0, 75.5 and 72.7 on CLINC, VAST and DynaSent. And it beat OneJev1.6-0.8B, twice its size, on all three.
At the same size, fine-tuning still wins, by up to 5 points. But it needs labels: on DynaSent, a few hundred labeled texts per class to catch the decision model of its size, thousands on VAST.
Details: part 2.
Lesson 4: a fine-tuned encoder answers in milliseconds, an LLM in seconds#
Between a fine-tuned encoder and an LLM, the serving gap isn’t a few percent. In time: on the full CLINC task, on the laptop’s GPU, Ettin-150M answers in 7.6 ms, OneJev1.6-4B in 1.3 s. In memory: 1.5 GB against 18 GB. Part of those 18 GB comes from how I ran it in part 1, but even in 8 bits, it needs 4 GB. In int8 on one CPU thread, the encoder takes 4 ms and 0.3 GB. Quality, meanwhile, differs by a few points at most (lesson 3).
Three things I didn’t expect:
- Fewer bits are nearly free. int8 for the encoders, 4 bits for the LLMs: at most one point of macro-F1, and a lot of RAM saved. Not always much time, though.
- A decision model pays for every class. A fine-tuned encoder reads the text once, and its last layer scores all the classes at once: 3 or 151 classes cost the same. A decision model reads the classes as part of its input, so each one makes the input longer. From 3 to 151 classes, Amber 150M goes from 24 ms to half a second on a CPU.
- A GPU is optional, but very beneficial. About twice as fast on long texts one at a time, ten times on short texts in batches. On short texts, one CPU thread in int8 can beat it.
Details: part 2.
Lesson 5: a distilled student lands on its teacher#
Distillation: a big decision model labels your texts once, a small encoder learns from its answers. On arXiv, every student landed within 0.8 points of its teacher, either way. Decider 27B labeled 9,000 papers for 8 cents; its Ettin-150M student got 79.4 against the teacher’s 79.8, at 32 ms per paper on the laptop, with no API.
The catch: the student copies its teacher, mistakes included (where the teacher is wrong, the student gives the same wrong answer two times out of three), and stays 5 points below the same encoder trained on real labels. So:
- Pick the best teacher you can. The student will do neither much better nor much worse. That’s why I’d still distill, even though a 400M decision model works without labels (lesson 3): the student gets the quality of a 27B teacher, at the cost of a 150M encoder that doesn’t pay for every class.
- Renting means the texts leave once. If they can’t, host the teacher: OneJev1.6-4B runs on the laptop, and its student lands about 5 points below the best rented one’s.
- The leaderboard won’t pick it for you. OneJev1.6-4B had the lowest Decision Index score but one, and beat a higher-ranked teacher by 2.7 points. A pilot on 100 hand-labeled texts, for 2 cents, got the order right, except for two teachers close to each other.
- Keep the probabilities. Soft labels helped two teachers out of three, and never hurt.
Details: part 3.
Lesson 6: a few gold labels, trained last, close most of the gap#
Lesson 5 leaves the student 5 points below the same encoder trained on real labels. Part 4 picks up there: how few of my own labels (gold, against the teacher’s silver) does it take to close that gap? My labels were simulated: the authors’ categories, revealed. Mixed into the teacher’s, they barely count: below 800, the student doesn’t move. In a second training on their own, after the silver one, they work:
| Training set | Gold labels | Annotation | Macro-F1 |
|---|---|---|---|
| Teacher’s labels only | 0 | none | 78.5 |
| Two stages, random | 40 | 30 min | 83.2 |
| Two stages, random | 800 | 10 h | 83.6 |
| Two stages, where two teachers disagree | 800 | 10 h | 84.6 |
| Gold only | 8,000 | 100 h | 84.0 |
Ettin-68M on arXiv (a point below the 150M, to fit over a hundred trainings), mean of three runs, each on a different draw of gold papers. Annotation time from a 45-second guess per abstract.
Forty labels close 85% of the gap. Most of what they fix is how often the student answers each category, not individual mistakes. At 800 labels, picking where two teachers disagree adds a point over random, and reaches the student trained on all 8,000, for a tenth of the annotation: on those texts, the teacher is wrong half the time, so every other annotation fixes a label.

Details: part 4.
Lesson 7: the test set is the bill this series ignored#
Every lesson above rests on a test set with real labels, and this series got them for free: every dataset came with one. On a new task, you label it yourself. In part 4, the 40 training labels that did the job took half an hour; the 2,000 test labels that proved it would have taken 25 hours. Teachers make training labels cheap. Knowing that the model works is still expensive, and nobody can do it for you.

How many? The more, the better: with a few hundred texts, only gaps of several points show, and most gaps in this series are smaller. And once you pick a model on a set, it’s a development set: keep a second one for the final check. I left that cost out from the start; the next series starts on a task with no labels at all, test set included.
The recipe#
Whichever leaf you reach, check it once on the test set. On the encoder leaves, serve it in int8 on a CPU, or in batches on a GPU for a backlog (lesson 4). Numbers from parts 1 to 4.
How I would start a new task today:
- Label random texts yourself, as many as you can, and split them in two. A development set, to make your choices: compare models, pick a teacher, decide when the student is good enough. A test set, to check the system you chose, once at the end: picking a model on a set flatters its score there, so the final number needs texts that played no part in the choice. Neither goes into training. More with many classes, so each one shows up. It’s the biggest bill, and the one you can’t skip (lesson 7). If you can only afford a few dozen, call the result a pilot.
- Gauge the task. Label a few hundred more as a small training set, train TF-IDF on them, and compare it with a decision model on the development set (lesson 1). I only checked this diagnostic with full training sets, so take it as a shortcut. Keep those labels: they serve again in step 7. What you find changes what comes next:
- The answer is in the words: TF-IDF or a small encoder may be all you need. A strong TF-IDF score is a reason to try serving it.
- It’s in a relation between two texts: forget TF-IDF. Every model from here on must read both texts together.
- The words mislead: nothing wins by default. Compare several models on your development set before you commit to one.
- Already have thousands of labeled texts? Fine-tune an encoder, or keep TF-IDF if the words give the answer away. Done.
- Pick a teacher. Rent several decision models, or host one if the texts can’t leave the machine. Keep the best on your development set: a pilot costs cents (lesson 5).
- If serving the teacher is fine, stop there. Nothing to train. Otherwise:
- Distill. The teacher labels your texts once, an encoder learns from its probabilities. Pick the smallest Ettin that meets your target (lesson 3).
- Fine-tune again, on gold labels alone. Reuse the ones from step 2: a few dozen already close most of the gap. With a day, annotate where two teachers disagree (lesson 6).
- Check it once on the test set, then ship it in int8 on a CPU, or batch it on a GPU for a backlog (lesson 4).
What could be done better#
- DynaSent, in part 1. I only used its second round, which was too small to tell the models apart. I’ll use this task again in the next series.
- Simulated annotation. My “gold labels” in part 4 were revealed, not typed, and the annotation times are a guess. A real annotator is slower, and sometimes wrong: read the costs in lessons 6 and 7 as a lower bound.
- One seed, most of the time. Most trainings ran once; only some, in parts 2 to 4, average three. Gaps of a point or two are ties.
- Easy settings, on purpose. Distillation and gold labels ran on arXiv: balanced, in English, with the answer mostly in the words. And the task never changed: no new data after training, no new classes. A messier task would likely widen the gap between student and gold.
- An untuned prompt. The LLM baseline in part 1 is a plain prompt with random examples. A tuned prompt would make lesson 2 a fairer fight.
What’s next#
The series ends here, but the work doesn’t. Everything above dodged the hard parts: annotation was simulated, the test sets came for free, and the data never changed. The next series starts over on a new task, for real: no labels at all, my own annotation with the clock running, new data arriving after the model ships, new classes appearing, and deploying the result.
Some topics didn’t fit at all: fine-tuning a small LLM, optimizing its prompt, handling many more classes, other languages. Each could fill a post or two. I wanted short series, and this one is already long enough. I hope to come back to most of them.

