ANAlpesh Nakrani
SolutionsBlogBooksPraiseAboutWork with me
Back to the blog
Blog/Jul 16, 2026 · 13 min

Distillation vs Fine-Tuning: The Trade-off That Matters

Fine-tuning teaches a model something it doesn't know. Distillation buys a smaller model that already knows it, at a fraction of the serving cost.

Fine-tuning teaches a model something it doesn't know. Distillation buys a smaller model that already knows it, at a fraction of the serving cost.

Distillation vs fine-tuning comes down to one question: does the model need to learn something new, or does it already know the answer at a cost you cannot keep paying? Fine-tuning adapts an existing model's weights to your data so it learns a task it did not reliably do before. Distillation trains a smaller "student" model to imitate a larger "teacher" model's outputs so you can run inference at a fraction of the cost. Fine-tuning changes what a model can do. Distillation changes what it costs to keep getting output you already trust.

I get asked to settle this more than almost any other adaptation question, usually by a team that already spent a month fine-tuning a small model on a task it was never going to learn well, when the fix was to distill a model that already does the task. Both start with "take a big model, end up with a smaller one that behaves the way I want." The mechanism, the data, and the ceiling on quality are not the same, and picking wrong burns a quarter and a budget line.

This sits under my broader guide to fine-tuning, because distillation is one branch of the adaptation ladder, not a separate discipline.

Key takeaways

  • Fine-tuning changes capability; distillation changes cost. Fine-tune when a model cannot yet do the task well. Distill when a bigger model already does it well and you want to pay less to keep getting that answer.
  • Distillation can beat fine-tuning on the same base model. A 770M-parameter T5 model trained on distilled reasoning rationales outperformed a few-shot-prompted 540B-parameter PaLM model. Standard fine-tuning of that same T5 model still fell short.
  • LoRA changed the training-cost side of this comparison. Applied to GPT-3 175B, it cut trainable parameters 10,000x and GPU memory 3x versus full fine-tuning, with no added inference latency.
  • Distillation has a ceiling: the teacher's judgment. A student model rarely exceeds the teacher's quality, only its serving cost, and it can mimic the teacher's surface pattern without absorbing the reasoning behind it.
  • The strongest production pattern is sequential, not either/or. Distill the capability down to a cheap model, then fine-tune that smaller model on your specific data and edge cases.

What Fine-Tuning Actually Changes in a Model

Fine-tuning takes a pretrained model's weights and updates them on your labeled examples, usually through supervised fine-tuning (SFT): input-output pairs where the output is exactly the behavior you want repeated. Its weights shift, gradient step by gradient step, toward whatever pattern is in your dataset, and what you are buying is capability the base model did not reliably have.

A model that gets a rigid output schema wrong half the time can be fine-tuned into one that returns it correctly every call. A model that reasons poorly about your domain's edge cases can be fine-tuned on examples of the reasoning you want, and it starts producing that reasoning by default. None of this requires a bigger or smaller model. It requires the right examples, and enough of them.

Full fine-tuning updates every parameter, which is expensive and memory-hungry at scale. Parameter-efficient fine-tuning (PEFT), most commonly LoRA, freezes the base weights and trains small low-rank adapter matrices instead. Microsoft's LoRA paper reports that applying the technique to GPT-3 175B cut trainable parameters 10,000x and GPU memory 3x versus full fine-tuning with Adam, with no added inference latency (Hu et al., 2021). That result is why fine-tuning stopped being a six-figure infrastructure project and became something a small team runs on a weekend.

What Distillation Actually Does: Teacher, Student, and the Gap Between Them

Distillation starts from a different premise: a large "teacher" model already does the task well, and you want a smaller "student" model that gets close to the same quality for a fraction of the inference cost. You are not teaching new capability. You are compressing capability the teacher already has.

The mechanism is imitation, not instruction. You run the teacher on a set of inputs, capture its outputs (or, in the stronger versions, its reasoning traces), and train the student to reproduce them. Classic knowledge distillation trains the student to match the teacher's soft probability distribution over next tokens, which carries more signal than a single hard label. The strongest 2026 approaches distill the teacher's step-by-step reasoning, not just its final answer, so the student learns the pattern behind the output, not just the output itself.

Distillation does not teach the student what to know. It teaches the student to sound like something that already knows.

The gap between teacher and student is the whole game. A well-executed distillation closes most of it on the distribution the student was trained on. A poorly executed one produces a student that mimics the teacher's phrasing while missing the judgment underneath, which surfaces the moment a query drifts outside that distribution.

Distillation vs Fine-Tuning: The Core Trade-off

Fine-tuning is a training-time investment that changes what one model can do. Distillation is a training-time investment that changes what it costs to keep getting output you already trust from a different, larger model. One raises a ceiling. The other lowers a bill.

DimensionFine-tuningDistillation
GoalTeach new capability or behaviorShrink cost while keeping quality
Data neededLabeled examples of the target taskA teacher model's outputs or reasoning traces on representative inputs
Quality ceilingBounded by your examples and the base model's capacityBounded by the teacher's quality; the student rarely exceeds it
Where the savings landFewer prompt tokens, more consistent behaviorInference cost and latency, at volume
Main riskOverfits to your examples; drifts as the base model agesInherits the teacher's blind spots; looks confident outside its training distribution

Fine-tuning can push a model past what it could originally do, because you are giving it new signal it never had. Distillation almost never pushes a student past its teacher, because the student's only source of truth is the teacher. Two documented results make that ceiling concrete.

Google and University of Washington researchers trained a 770M-parameter T5 model on distilled reasoning rationales and got it to outperform a few-shot-prompted 540B-parameter PaLM model, roughly 700 times larger, using only 80% of one benchmark's training data. Standard fine-tuning of that same T5 model, on the full dataset, still fell short of PaLM (Hsieh et al., 2023). On the identical base model, distillation won and fine-tuning did not.

DeepSeek's team distilled reasoning traces from DeepSeek-R1 into smaller Qwen and Llama variants, and reported the distilled models "surpassing the performance of their original instruction-tuned counterparts" (DeepSeek-AI, 2025). The student beat that same small model's own fine-tuned version, because the teacher's reasoning traces were a richer training signal than the data it had been fine-tuned on directly.

Cost Comparison: Training Cost vs Inference Cost at Scale

The cost math sits on opposite sides of the ledger. Fine-tuning is a training-cost problem: you pay once, or per re-tune, and PEFT methods have made that cost small. Distillation is an inference-cost problem: the training run can be expensive, but the payoff compounds every time the student answers a query instead of the teacher.

Here is the shape of that trade, with numbers picked to make the arithmetic clear rather than to report a real system. A frontier model at $15 per million output tokens answering 50 million tokens a month runs $750, scaling linearly forever. Distill that behavior into a model at $0.50 per million tokens, and the same workload runs about $25 a month, a 30x reduction that recoups the training cost within the first month at real volume. Fine-tuning the frontier model itself would not touch that number; you would still pay frontier rates on every call.

This is where the decision stops being technical and starts being a P&L call. At low volume, the training cost of either approach dominates and the choice barely matters. At high volume, serving cost dominates completely, and distillation is usually the only lever big enough to matter. I make the fuller version of this case in shipping smaller models: revenue rarely rewards the biggest model, it rewards the one you can afford to run at your actual volume.

Getting a team to build and validate this pipeline, the teacher-student training loop, the eval harness that checks the student against ground truth, and the routing layer that earns traffic once the student proves itself, is exactly the work hiring a ViitorCloud ML engineer is built for.

When Fine-Tuning Is the Right Call

Reach for fine-tuning when the problem is capability, not cost:

  • No model does the task well yet. If even your best available model gets it wrong or inconsistently right, there is no teacher to distill from. You have to teach the behavior directly, with examples.
  • The task is narrow and well-specified. A rigid output schema, a specific tone, a domain-specific classification task. Fine-tuning excels when you can write down what "correct" looks like in a few thousand examples.
  • You need behavior to change, not just get cheaper. If the base model's behavior itself is wrong in a way a system prompt cannot fix, only training touches weights directly.

Picture a claims-triage model that has to route incoming insurance claims into nine internal categories using your company's own taxonomy, one that exists nowhere in a foundation model's training data. No off-the-shelf model, however large, was trained to know it, so there is no teacher to distill from. Fine-tuning a mid-size model on a few thousand labeled examples of your actual claims is the only path, because the capability has to be built from your data, not copied. I lay out the fuller decision framework in when to fine-tune a model.

When Distillation Is the Right Call

Reach for distillation when a bigger, more expensive model already clears your quality bar, and the problem left is what it costs to keep using it:

  • A frontier model already passes your evals. If gpt-4.1-class or Claude-class quality already works, you have a teacher. The remaining question is purely economic.
  • Volume is high enough that serving cost dominates. Distillation's payoff scales with query volume; at low volume it is not worth the training investment.
  • Latency matters as much as cost. A smaller student model serves faster, which matters for anything user-facing and interactive.

OpenAI's production workflow names this pattern exactly: tune a prompt against a large model like gpt-4.1 until it passes your evals, capture its outputs through the Responses API, then run supervised fine-tuning on a smaller model like gpt-4.1-mini using that captured dataset (OpenAI developer docs). The eval comes before the distillation, not after. You only distill a teacher you have already proven correct.

Combining Both: Distill First, Then Fine-Tune the Student

The strongest 2026 production pattern is not "distillation or fine-tuning." It is distillation to get a cheap model into the right neighborhood, then fine-tuning that student on your own data to close the rest of the gap. The logic is sequential, not competing: distillation transfers the teacher's general competence, the reasoning pattern, the broad judgment, into a model small enough to serve cheaply. Fine-tuning then specializes that already-competent student on your edge cases and taxonomy, the failures the teacher's general training never saw. You are not choosing between raising the ceiling and lowering the bill. You are doing both, in order.

A useful illustration, with numbers chosen to make the shape clear rather than to report a specific engagement: a support-ticket summarizer where a frontier teacher resolves tickets correctly about 92% of the time, at a cost that scales badly past a few thousand tickets a day. Distilling that behavior into a small open model gets the student to roughly 85%, a real gap, at a fraction of the cost. Fine-tuning that distilled student on 2,000 of your own labeled tickets closes most of the gap and pushes accuracy back into the low 90s, at the distilled model's serving cost.

The Failure Mode Nobody Mentions: the Student Inherits the Teacher's Blind Spots

Here is the trade-off most distillation write-ups skip. A distilled student can learn to mimic the teacher's style and surface patterns without absorbing the reasoning underneath them. It looks confident and correct on the training distribution, because it learned to sound like the teacher on exactly that distribution. A query drifts even slightly outside it, and the student fails silently, still sounding just as confident.

Agreement with the teacher tells you the student copied the teacher. It does not tell you either of them is right.

This is why a distilled model needs its own eval suite measured against ground truth, not just an agreement score against the teacher. I have watched teams ship a distilled model, see it match the teacher 98% of the time on a validation set, and call it done, without checking whether that 98% agreement was 98% correct, or a well-mimicked 98% wrong on a case the teacher was quietly getting wrong too. If the teacher is wrong in a consistent way, the student learns to be wrong in that exact way, faster and cheaper.

The honest fix is unglamorous: build a held-out eval set scored against real outcomes, not against the teacher, and run it before you route production traffic to the student. That is the same evaluation discipline any fine-tune needs. Neither technique replaces the harness that tells you whether the output is correct.

What's the difference between distillation and fine-tuning?

Fine-tuning adjusts a model's own weights on labeled examples so it learns a task. Distillation trains a separate, smaller model to imitate a larger model's outputs so you can run inference more cheaply. Fine-tuning changes what a model can do; distillation changes what it costs to keep getting output you already trust.

Is distillation cheaper than fine-tuning?

It depends what you measure. Fine-tuning, especially with LoRA, is usually the cheaper training run. Distillation's training run can cost more, particularly if you generate a large synthetic dataset from the teacher, but it pays off on the inference side: every query afterward runs on a cheaper model. At high query volume, distillation's inference savings dwarf its training cost.

Can you fine-tune a distilled model, or combine the two?

Yes, and it is often the strongest production pattern. Distill a large teacher's capability into a small student first, then fine-tune that student on your own labeled examples to close the gap on your specific edge cases. Distillation transfers general competence; fine-tuning adds the specialization the teacher never saw.

Does a distilled model perform as well as the original model it learned from?

Usually not quite, though the gap can be small with a good training recipe. A student's quality ceiling is bounded by the teacher's own judgment; it can only get as good as the signal it trained on. The documented exception is when the teacher's captured reasoning traces are a richer training signal than whatever data the small model would otherwise be fine-tuned on, which is what let DeepSeek's distilled students beat their own instruction-tuned baselines.

The framework for deciding this case by case, prompting versus retrieval versus routing versus fine-tuning versus distillation, is the subject of my book Fine-Tune, or Don't. If you know the shape of your problem and want a team that has built the eval harness and the teacher-student pipeline before, ViitorCloud's ML engineering team ships that work with evaluation built in from day one. Name your problem first: capability or cost. The technique follows.

Share
Next

Keep reading

View all blogs

Ask AI about Distillation vs Fine-Tuning: The Trade-off That Matters