DEV Community

Aamer Mihaysi
Aamer Mihaysi

Posted on

Distillation Doesn't Transfer Reasoning. It Transfers Actions.

Almost every distillation pipeline I've looked at in the last year has the same expensive step buried in the middle of it: extract the reasoning traces. Pull the scratchpad out of the teacher, stack it in front of the answer, train the student to reproduce the whole thing. If the trace is where the thinking lives, then moving the trace is moving the thinking. That's the myth, and it has cost people a lot of tokens and a lot of GPUs.

CoT-Proxy goes after it directly, and the way it does it is almost rude in its simplicity. Take the teacher's trajectories, keep the (state, action) pairs, and blank the reasoning block. Empty string. Nothing. The student never sees a single sentence of how the teacher arrived at the decision. It sees what the agent observed and what it did next. That's the whole dataset.

The paper reports AppWorld going from 7% to 18% at 4B parameters and from 12% to 25% at 32B, training against Qwen3.6-27B. Those are the paper's numbers, not mine — I haven't replicated it. But the shape of them is what matters here, and the shape says the trace was not doing the heavy lifting.

Then comes the part I actually find interesting. At inference, the student reasons in its own style. Not the teacher's. It wasn't trained to produce a particular scratchpad, so it settles into whatever format falls out of its own weights and its own sampling. And the task scores hold. Which means "reasoning style" isn't a capability you transfer — it's a byproduct of the teacher's specific training recipe, its tokenizer, its RL run, its house style.

So here's the myth-bust, in the order I'd argue it.

Myth one: the trace is the capability. It's the narration of the capability. The mapping from situation to decision is the capability. The trace is the teacher telling you a story about how it got to the same place — a story written by a model that had already committed to the answer. There's real information in there, but it's information about the teacher, and the paper's result suggests it's not load-bearing for the student.

Myth two: format has to match or transfer breaks. This is the one that quietly wrecks pipelines. People spend weeks getting the student's chat template to line up with the teacher's, matching bracket conventions, matching "Thought:" prefixes, because they assume a mismatch poisons the training signal. Cross-format transfer is the whole title of the paper. The blank-reasoning setup is the most extreme case of a format mismatch — the teacher has reasoning, the student's training data doesn't — and it still transfers. If the format mismatch were the thing that mattered, blanking the trace would be the worst possible ablation. It isn't.

Myth three: you can't do serious distillation without a permissive teacher. This is the argument I hear from teams building on closed APIs: we can't distill, they won't give us the logprobs, they won't give us the thinking. Turns out the reasoning trace is exactly the artifact a closed API will never hand you cleanly, and it's the one the student doesn't need. You need observations and actions. You can get those by running any model behind an interface you control and logging what comes back. The dependency people are worried about is not the dependency that exists.

Which lands somewhere uncomfortable: I have been paying a subscription for something my own logs could have told me.

Because that's the practical consequence. If you run agents in production, you are already sitting on a distillation corpus. Every episode is a sequence of (observation, action) pairs, produced by the best model you had at the time, in the environment you actually care about. Most teams log it badly — the trace is preserved verbatim as a giant chat blob and the decision boundary is lost somewhere in the middle of a paragraph of prose — so when the moment comes to train a smaller model, they can't reconstruct the dataset without a parsing project.

The discipline is boring and it's cheap: log the exact observation at the moment of decision, log the action taken, log the outcome. Keep the model's monologue if you want, in a separate field, but don't confuse it with the label. The label is the action.

Two things I'm not sure about, and I'd rather say so than pretend.

AppWorld has a fairly clean action space. Discrete tool calls, reasonably short horizon per step. When the action is "write a paragraph" or "restructure this config file," the action itself contains most of the information, and blanking the reasoning might genuinely cost you something. The paper's setting may be the friendly case.

My other doubt is why blank-reasoning works. My guess is that in an agent loop, each action changes the environment, and the next observation carries the consequence of the previous decision back to the student. The environment does the teaching that the trace was supposed to do. If that's right, the effect should shrink in single-decision settings with no feedback, and it should grow with longer horizons. That's a testable claim and I'd like to see someone run it. It's also a nice way to think about it: the trace isn't the reasoning, the trajectory is.

What I'm going to do about it this week is unglamorous. Pull a few hundred episodes out of my own agent logs, strip everything except state and action, and see what a small model does with it. No trace scraping, no format matching, no vendor negotiation. If the paper is right, and my clean action space is friendly enough, that should be a decent student for a fraction of the effort. If it isn't, I'll have learned that my logs were never as clean as I thought — which is worth knowing either way.

Either way, the reasoning trace goes in a separate column. It's a nice artifact. It just isn't the thing.

Top comments (0)