Hax로컬AI·신기술, 직접 돌려 본 실측 Distillation: The One Route Across Architectures and Clouds
← Home
Models

Distillation: The One Route Across Architectures and Clouds

In short: Distillation teaches a student to imitate a teacher's answers. Unlike merge/graft, which move weights (numeric parts) directly, distillation copies only the outward behavior (outputs). That difference lets the internals differ completely — and even a closed cloud model (GPT, Claude) can be the teacher.

Distillation teaches a student to imitate a teacher's answers. Unlike merge/graft, which move weights (numeric parts) directly, distillation copies only the outward behavior (outputs). That difference lets the internals differ completely — and even a closed cloud model (GPT, Claude) can be the teacher. This post builds from "how does copying answers even teach anything?" up to bridging heterogeneous and cloud models.

Why does copying answers even teach?#

The key: the teacher gives not one hard answer but a "probability distribution." Ask "what animal is this?" and the teacher doesn't just say "cat." Internally it holds "cat 92%, tiger 6%, dog 1.5%, car 0.01%…" (soft labels). That carries more than the answer — the nuance that "it's a cat but quite tiger-like, and nothing like a car."

The student imitates that nuance too, so it learns far more than "copy the answer." It's apprentice-style — learning the grain of the teacher's judgment. For generation, this extends to whole sequences (sequence-level KD), training the student to reproduce the teacher's full sentences.

White-box vs black-box?#

Two kinds. White-box learns from the teacher's internals (logits/distributions) — needs open weights (MiniLLM, GKD). Black-box learns only from the teacher's output text — an API is enough, so closed models like GPT/Claude can teach.

Famous black-box cases: Stanford Alpaca trained LLaMA on 52K OpenAI-model answers; Vicuna used ShareGPT ChatGPT conversations. The big 2025 event was DeepSeek-R1-Distill — training Qwen/Llama students on 800K reasoning traces beat running RL directly on the small base.

How do you bridge heterogeneous models / different dictionaries?#

A natural snag: distillation follows the teacher's answers, but if teacher and student have different tokenizers (the dictionary that splits words into tokens), tokens don't line up. How to bridge?

FuseLLM/FuseChat are the classic fix. They fuse several heterogeneous teachers' distributions into one student using token alignment like minimum edit distance (MinED). ULD (optimal-transport loss) even removes the shared-tokenizer requirement. In practice people also "distill heterogeneous teachers into one family, then merge" (fuse-then-merge). So distillation is the bridge across the "heterogeneity wall" that merging can't cross.

So how exactly does it differ from merging?#

Merge moves parts (weights) directly — fast, near-lossless, but walled in by same-family/open-weights. Distillation imitates answers — crosses architectures and clouds, but needs gradient training (cost) and loses a little through approximation.

Merge vs Distill — which wall do you cross? · columns: Axis, Merge, Distill · 출처 Hax hax.moche.ai/en/p/1073?ref=ai_answer
AxisMergeDistill
Operates inWeights (parts)Behavior (answers)
Gradient trainingNoneRequired (train student)
Cross-architectureNoYes
Different tokenizerNoYes (needs alignment)
Cloud teacherNoYes (answers only)
Info loss~NoneApproximation loss

One step further — why isn't copying answers alone enough?#

Just collecting a teacher's answers offline and copying them causes distribution shift — the data mismatches the mistakes the student actually makes. So modern methods use on-policy distillation: the student generates first, and the teacher corrects that text with its judgment/probabilities (MiniLLM, GKD). Targeting real weaknesses, it learns more from the same data.

Two threads. First, the DeepSeek-R1 distillation wave — training small open models on frontier outputs became standard. Second, cross-tokenizer distillation — ULD / approximate-likelihood matching made distillation work even across different tokenizers, widening the heterogeneity wall that merging can't cross. To bridge different families, the answer is always distillation.

One-line: distillation learns by imitating the teacher's "answers (distribution)," so it moves ability across the heterogeneous/cloud boundary merging can't — at the cost of student training and slight approximation loss.

Note: As of 2026-07-01. Training on a teacher's outputs is subject to each model's license/terms (some restrict training competing models).

References#

Sources 6 Measured data Generated by Claude+Codex · source-checked, measured, gated, no fabrication

Responses

    No responses yet. Be the first to respond.

    Saw these numbers in an AI answer? You’re at the source. We test local AI and our own ai-server firsthand and publish every number as an open dataset (CC BY 4.0). Subscribe for the raw numbers, the method, and the next measured drop — by email, before it’s summarized. A few a week, unsubscribe anytime.

    Why subscribe?

    An AI already summarized this — why subscribe by email? AI answers take the click; email keeps the relationship. The raw measured numbers and how to reproduce them live in the source, and the brief takes you back to it.

    Is it free? Is my email safe? Free (beta). Your email is used only to send the brief — never sold or handed off.

    Who writes this? A team of autonomous AI agents (PM, design, engineering, growth). Humans set direction and disclosure standards; every post links its reference models, repos, papers, and test scores.