🧭 I tried to teach a 1.7B model one small behaviour it kept getting wrong. Four attempts, zero improvement. An 80-example classifier got further in a hundred seconds — and the reason why was sitting in a lecture I’d heard a month earlier.

📧 Found an error or have a question? write to me or leave a comment

Rolling hills dusted with snow, criss-crossed by tractor tracks running in every direction, under low grey clouds that hide the mountain top behind

Tracks in every direction across the field. The top is still in the clouds. | Image by Author


The question I started with was simple enough to fit on one line: how close can a 1.7B model running on my laptop get to a cloud model, on a narrow agentic task?

The first measurement was discouraging. Qwen3-1.7B, local on a MacBook Pro M5: 31%. Gemini 2.5 Flash-Lite, same harness, same task: 68%. A gap of thirty-seven points, and a very obvious plan for closing it — train the small model on the task. That’s what fine-tuning is for.

It didn’t work. Not once, not partially, not with a different method. Four attempts, all of them at or below where I started.

The thesis, up front, because the rest of this post is just me ruling out the alternatives: compute wasn’t the lever. Scoping the task was. The same gap that four attempts couldn’t touch narrowed by sixteen points with eighty examples and a hundred seconds of training — once I stopped trying to teach the model and started taking work away from it.

🧪 The setup Link to heading

A deliberately small agent: ask it about your PTO balance, it answers. Nothing more. A toy, built to be thrown away, with a vague idea that it might turn into something real later.

Small, but not sloppy. Fourteen Python tools over a real PostgreSQL database, called by the model in a function-calling loop. A harness of 25 deterministic cases with known-correct answers, so scoring is a comparison, not a judgement — no LLM-as-judge anywhere in the loop, which means the scoring is reproducible and I can’t quietly flatter myself. Everything runs locally; the only thing leaving the machine was the Gemini baseline I used as a reference point.

The failure mode was equally small. Ask “how many PTO hours do I have left?” and the model answers “you have 120 hours” with complete confidence. The real balance is 200. Roughly half the time, it never calls the tool that resolves who is asking — it just answers. Not a hallucination about the world: a missing first step, confidently papered over.

One behaviour. Call the identity tool before answering. That’s the whole thing I was trying to teach.

🧱 Four ways to be wrong Link to heading

I don’t think of these as four attempts anymore. Each one kills a different explanation for why the first one failed, which is the only reason they’re worth writing down.

Supervised fine-tuning, 983 examples, 92 minutes. The obvious move: show it the right behaviour, a lot of times. The loss curve was beautiful. End-to-end performance: unchanged. This kills “you didn’t have enough data” and “you didn’t teach it the format” — the format was learned perfectly, and the behaviour wasn’t there.

DPO, offline, 2486 preference pairs. If imitation doesn’t work, try preference: here’s a good answer, here’s a bad one [2]. The model learned the surface of the distinction and found a shortcut that satisfied it without doing the thing. Below baseline. This kills “it needed preference signal rather than imitation.”

DPO, on-policy. The textbook answer to the previous failure is to stop learning from a frozen dataset and generate pairs from the model itself during training. This one didn’t fail — it couldn’t start. Qwen3 is a thinking model, and on this task the variance across rollouts was effectively zero: every sample took the same path, so there were no winners and losers to pair. You can’t build preference data out of a model that always answers the same way. This doesn’t disprove “you needed on-policy”, it makes it untestable on this model, which is more annoying than a bad score would have been.

DPO with gold pairs. Last suspect: my preference data was dirty. So, hand-checked pairs, correct by construction. Same shortcut as the offline run, same result.

I stopped at DPO. GRPO and PPO were the obvious next rungs, and by then I’d simply run out of patience for climbing.

Four explanations, four dead ends. What’s left standing is the most likely one, and the uncomfortable one: the capability isn’t in there, and no amount of gradient descent is going to put it there.

Four dead hypothesesFour training attempts on Qwen3-1.7B, each ruling out one explanation for why the model skipped the identity tool. Supervised fine-tuning on 983 examples for 92 minutes rules out "not enough data, or the wrong format". Offline DPO on 2486 preference pairs rules out "it needed preference, not imitation". On-policy DPO was meant to test "it needed on-policy data", but it never started: rollouts had zero variance, every sample took the same path, so the explanation is struck through as untestable on this model rather than disproven. DPO with hand-checked gold pairs rules out "the preference data was dirty". All four explanations are struck through. One explanation is left standing, highlighted below them: the capability isn't in the model.AttemptExplanation it rules outSFT983 examples · 92 minNot enough data, or the wrong formatDPO, offline2486 preference pairsIt needed preference, not imitationDPO, on-policyblocked before trainingIt needed on-policy datauntestable here: zero rollout varianceDPO, gold pairshand-checked pairsThe preference data was dirtyLeft standingThe capability isn’t in the model
Four dead hypothesesFour training attempts on Qwen3-1.7B, each ruling out one explanation for why the model skipped the identity tool. Supervised fine-tuning on 983 examples for 92 minutes rules out "not enough data, or the wrong format". Offline DPO on 2486 preference pairs rules out "it needed preference, not imitation". On-policy DPO was meant to test "it needed on-policy data", but it never started: rollouts had zero variance, every sample took the same path, so the explanation is struck through as untestable on this model rather than disproven. DPO with hand-checked gold pairs rules out "the preference data was dirty". All four explanations are struck through. One explanation is left standing, highlighted below them: the capability isn't in the model.Attempt → what it rules outSFT983 examples · 92 minNot enough data, or the wrong formatDPO, offline2486 preference pairsIt needed preference, not imitationDPO, on-policyblocked before trainingIt needed on-policy datauntestable here: zero rollout varianceDPO, gold pairshand-checked pairsThe preference data was dirtyLeft standingThe capability isn’t in the model

Four attempts, four explanations ruled out, one left standing. | Diagram by Author

🚪 Eighty examples and a gate Link to heading

So I stopped trying to make the model better and made its job smaller.

Instead of the agent deciding, mid-reasoning, that it ought to resolve the user’s identity first, a small classifier sits in front and makes that call before the agent runs at all. The model is no longer asked to remember a procedure. It’s handed a situation where the procedure has already happened.

A smaller jobTwo flows, before and after the classifier pre-gate. Before: the question goes straight to the agent, which has to decide on its own whether to resolve the user's identity first; it skips that step roughly half the time and answers "you have 120 hours" when the real balance is 200. After: the question goes first to a small classifier trained on 80 examples, which decides on identity up front; the same agent then runs with the identity already known, and answers. The agent is not better, it is being asked less.BeforeQuestionPTO balance?Agentdecides whether to resolve identityskips it ~half the time“you have 120 hours”real balance: 200AfterQuestionPTO balance?Classifierdecides on identity up front80 examplesAgentidentity already knownAnswerSame agent, smaller job.
A smaller jobTwo flows, before and after the classifier pre-gate. Before: the question goes straight to the agent, which has to decide on its own whether to resolve the user's identity first; it skips that step roughly half the time and answers "you have 120 hours" when the real balance is 200. After: the question goes first to a small classifier trained on 80 examples, which decides on identity up front; the same agent then runs with the identity already known, and answers. The agent is not better, it is being asked less.BeforeQuestionPTO balance?Agentdecides whether toresolve identityskips it ~50%“you have 120 hours”real balance: 200AfterQuestionPTO balance?Classifierdecides on identityup front80 examplesAgentidentity already knownAnswerSame agent, smaller job.

The agent didn’t get smarter — it got a smaller job. | Diagram by Author

Eighty examples. Around a hundred seconds of training. The asymmetry is the part worth keeping:

Fine-tuning (SFT)Classifier pre-gate
Examples98380
Training time92 min~100 s
End-to-end gainnone+16pp average

Baseline 31%, best run 52%, 47% averaged over eleven runs. I’m reporting the average because the best run is not the result — the five points between the average and the best run are real, and a single lucky run would have told me a nicer story than the truth.

Where the gate got toHorizontal bar chart of end-to-end scores on the 25-case harness, from 0 to 100 percent. Qwen3-1.7B baseline: 31 percent. Qwen3-1.7B with the classifier pre-gate: 47 percent averaged over eleven runs, with a range marker reaching the best run at 52 percent. Gemini 2.5 Flash-Lite, the cloud reference: 68 percent. The stretch of the cloud bar between 47 and 68 is highlighted as the remaining gap of 21 points.0255075100%Qwen3-1.7Bbaseline31%Qwen3 + gate11-run average47%best run 52%Gemini 2.5 Flash-Litecloud reference21 pts68%
Where the gate got toHorizontal bar chart of end-to-end scores on the 25-case harness, from 0 to 100 percent. Qwen3-1.7B baseline: 31 percent. Qwen3-1.7B with the classifier pre-gate: 47 percent averaged over eleven runs, with a range marker reaching the best run at 52 percent. Gemini 2.5 Flash-Lite, the cloud reference: 68 percent. The stretch of the cloud bar between 47 and 68 is highlighted as the remaining gap of 21 points.Qwen3-1.7Bbaseline31%Qwen3 + gate11-run average47%best run 52%Gemini 2.5 Flash-Litecloud ref.21 pts68%050100%

Where the gate got to, and how far that still is from the cloud model. | Diagram by Author

Two things this does not mean.

It doesn’t mean classifiers beat fine-tuning. My failure was a routing failure — the model didn’t know when to do something. That judgement was the missing capability, and routing is exactly what a narrow classifier is good at. Had the failure been in generation, a gate in front would likely have done little. The lesson isn’t “use a smaller model for the job”, it’s “find out which part of the job is actually broken before you throw training at it.”

And it doesn’t mean I closed the gap. 47% against 68% is still twenty-one points short of the cloud model. I closed a bit under half the distance with roughly a fiftieth of the training time, and I have no evidence that the rest responds to training either.

🧠 The part I’d already been told Link to heading

A month before all this, I spent a week at ACDL in Castiglione della Pescaia, near Grosseto, a summer-school-style course where people who build this stuff for a living talk for five days straight. Jason Weston gave a series of lectures on self-improving language models [1] (his group’s Self-Rewarding Language Models [3] is a good entry point), and one of his points was about the ceiling: a model training on its own outputs doesn’t escape the envelope of its pretraining. DPO moves the output distribution around. It doesn’t add anything to the model’s memory. My reading of it: if the capability wasn’t in the pretraining data, no post-training step conjures it into existence.

I had taken the note. And then I went home and spent four attempts discovering it empirically, which is a fairly expensive way to confirm something you already wrote down.

A laptop open on a sun lounger at the edge of a swimming pool, with a row of tall umbrella pines and an overcast sky behind

Studying at ACDL 2026, between lectures. | Image by Author

The thing is, I don’t think I’d have believed it otherwise. “Pretraining ceiling” is the kind of statement that sounds obviously true and changes nothing about what you do next, until a loss curve that looks perfect sits next to a score that hasn’t moved. That specific pairing — beautiful training metrics, flat capability — is the shape the ceiling makes when you walk into it. Now I know what it looks like.

The shape of the ceilingTwo small panels side by side, illustrative and not to scale. Left: the training loss over training steps, a textbook curve that drops fast and flattens out, the kind of curve that looks perfect. Right: the end-to-end score on the harness, before and after training, a flat line: it hasn't moved. Perfect training metrics next to a flat score is what walking into the pretraining ceiling looks like.Training losslooks perfectsteps →End-to-end scorebeforeafterhasn’t movedtraining →
The shape of the ceilingTwo small panels, illustrative and not to scale. Top: the training loss over training steps, a textbook curve that drops fast and flattens out, the kind of curve that looks perfect. Bottom: the end-to-end score on the harness, before and after training, a flat line: it hasn't moved. Perfect training metrics next to a flat score is what walking into the pretraining ceiling looks like.Training losslooks perfectsteps →End-to-end scorebeforeafterhasn’t movedtraining →

The shape of the ceiling: a loss curve that looks perfect next to a score that hasn’t moved. Illustrative, not to scale. | Diagram by Author

What changed in practice is the order of operations. Before reaching for training, I try to answer one question: is this a capability the model lacks, or one it already has and isn’t using? Those two failures look identical from the outside and respond to completely different medicine. A flat score after a clean training run is a strong hint you’re in the first case, where the fix has to live outside the model, like the gate did. And the cheapest version of that experiment is the one you should run first — not the 983-example one.

Diagnose before you trainA small decision flow. Start: one behaviour keeps failing. Question: is it a capability the model lacks, or one it has but isn't using? If it has the capability but isn't using it, training is worth a try. If it is a capability the model lacks, the fix has to live outside the model, like the gate; the tell-tale sign is a clean training run followed by a flat score. This post's case is the second branch, which is highlighted. At the bottom: run the cheapest experiment first.One behaviour keeps failingIs it a capability the model lacks,or one it has but isn’t using?A capability it isn’t usingtraining is worth a tryA capability it lacksfix it outside the model, like the gatetell: clean training, flat scoreRun the cheapest experiment first.
Diagnose before you trainA small decision flow. Start: one behaviour keeps failing. Question: is it a capability the model lacks, or one it has but isn't using? If it has the capability but isn't using it, training is worth a try. If it is a capability the model lacks, the fix has to live outside the model, like the gate; the tell-tale sign is a clean training run followed by a flat score. This post's case is the second branch, which is highlighted. At the bottom: run the cheapest experiment first.One behaviour keeps failingIs it a capability the model lacks,or one it has but isn’t using?A capability itisn’t usingtraining isworth a tryA capabilityit lacksfix it outside themodel, like the gatetell: clean training,flat scoreRun the cheapest experiment first.

Diagnose before you train: the same symptom, two different medicines. | Diagram by Author


🔗 Sources Link to heading

[1] Weston, J. (2026), Self-Improving Language Models, lecture series at the Advanced Course on Data Science & Machine Learning, Castiglione della Pescaia, 8–12 June 2026. ACDL 2026

[2] Rafailov, R. et al. (2023), Direct Preference Optimization: Your Language Model is Secretly a Reward Model, NeurIPS 2023. arXiv

[3] Yuan, W. et al. (2024), Self-Rewarding Language Models. arXiv