LLM Distillation: Two Technical Routes for Capability Transfer

    This article compares the two dominant approaches to transferring capability from a strong model to a weaker one: reusing generated trajectories directly (often called hard distillation) and synthesizing plus filtering data at the dataset level (soft distillation). It explains where each route hits its ceiling, how to decide between them, and how mature teams combine both. The bulk of the article is a practical six-layer data pipeline covering task and data specifications, candidate generation with diversity control, quality filtering and verification, data mixing and curriculum learning, training choices, and evaluation with regression testing — plus a checklist of common failure modes such as inherited noise, evaluation contamination, diversity collapse, and compliance blind spots. It also draws a secondary lesson on redaction: masking one channel while leaving others intact still leaks information, which applies directly to training-data handling.

    1. Why a Redacted Interview Clip Is Worth a Developer’s Attention

    A recent interview has been widely discussed in developer communities. A researcher was asked which teams train their own models on trajectories generated by the strongest reasoning models. After a brief pause, an answer was given — and post-production muted it.

    What makes the clip interesting is that although the audio was removed, two observable side channels remained: the lip movement was left uncovered, and the two “beep” tones had clearly different durations. Differences in duration usually correspond to differences in answer length.

    The lesson here is not “who said what,” but three more fundamental points:

    1. Redaction is systems engineering, not a single step in post-production. Masking audio while leaving the video intact is like locking the front door and leaving the windows wide open. There is always more than one channel through which information escapes.
    2. “Distillation” is heavily over-generalized in the industry. Everything from “taking someone else’s outputs as training data” to “using a stronger model for data synthesis and selection” gets called distillation, even though the cost, the results, and the compliance risk are completely different.
    3. The data route decision determines a team’s capability ceiling and iteration speed. Pick the wrong route, and you burn compute, fail to hit quality targets, and end up with compliance problems at the same time.

    Abstracted away from the gossip, this reduces to two discussable technical questions: how to choose between the two routes for capability transfer, and what engineering quality should look like when you undertake that transfer.


    2. The Technical Essence of the Two Routes: Hard and Soft

    The industry generally splits transferring capability from a stronger model to a weaker one into two categories. For clarity, this article calls them Route A: direct trace reuse and Route B: data-level synthesis and filtering.

    Route A: Direct Trace Reuse (commonly “hard” distillation)

    The approach: collect the complete input and output of the stronger model (or a stronger reasoning model) on a specific task, then use it directly as supervised fine-tuning (SFT) data for the target model, aligning format and style as closely as possible.

    Its character is blunt and fast:

    • Low engineering barrier — you only need a collection and cleaning pipeline;
    • Immediate gains on tasks like instruction following, format alignment, and style transfer;
    • Can pull the target model’s “surface capability” up to a usable level in a very short time.

    But the problems are equally clear:

    • The capability ceiling is bounded by borrowed capability. The model typically learns a mapping from input to output rather than a transferable reasoning process. Once the test distribution drifts from the collection distribution, performance falls off a cliff.
    • Errors are inherited in full and amplified. The stronger model’s outputs contain factual mistakes, logical leaps, and format drift. The target model repeatedly fits this noise as if it were ground truth, forming stable error patterns.
    • Compliance and sustainability risk is high. Collection and re-training touch on third-party terms of service, data usage authorization, and traceability of training-data provenance. At scale, this stops being a technical problem and becomes a business risk.
    • A diversity ceiling. The same stronger model produces highly homogeneous output styles for the same prompt, so the model easily overfits to one particular “tone.”

    Route B: Data-Level Synthesis and Filtering (commonly “soft” distillation)

    The approach: instead of transplanting complete traces, treat the stronger model as a data constructor and reviewer — used to generate candidates, construct variants, and provide quality signals — and then produce training data through your own filtering and verification machinery.

    Its character is more engineered and more controllable:

    • You can actively shape the distribution. If you want the model to be stronger at long-document reasoning, you systematically generate samples with long dependencies, multiple hops, and required backtracking, instead of passively waiting for them to appear in real traffic.
    • Quality signals can come from multiple dimensions. For example: whether the result is verifiable (has a reference answer, passes unit tests, passes constraint checks), whether the process is self-consistent (agreement across multiple sampled rollouts), whether it passes scoring by an independent review model, and whether it is caught by rule-based filters.
    • The compliance boundary is clearer. The main value of the training data comes from your own task definitions, your own verifiers, and your own selection logic — not from verbatim reproduction of some service’s output.
    • The cost is a significant increase in engineering complexity. You need a data synthesis pipeline, deduplication, decontamination (to prevent test-set leakage), quality tiering, mixing strategies, and a complete evaluation system.

    A Framework for Choosing Between Them

    Three dimensions are enough to decide:

    Dimension Leans toward Route A Leans toward Route B
    Goal Quickly make the model resemble a usable baseline Make the model surpass the baseline on a specific task
    Data availability Stable tasks that can be collected in bulk Open-ended tasks that cannot be exhaustively enumerated
    Compliance requirement Internal research, rapid validation Externally facing services, long-term iteration
    Evaluation capability No reliable automated evaluation Executable verifiers / test sets already in place

    In practice, mature teams are almost always B-first with A as support: Route A quickly raises baseline capability, Route B does targeted reinforcement and long-tail coverage. Treat A as the only tool and the model hits a plateau of “no further improvement” within two or three iterations.


    3. From Copying Traces to Building Data: A Practical Pipeline

    To make capability transfer a sustainable engineering capability rather than a one-off exercise, build it in the following six layers.

    Layer 1: Task Definition and Data Specifications

    First write “what capability we want” as a verifiable specification rather than a vague “a little smarter.”

    • Define the task type and the input/output contract (whether structured output is required, whether citations are required, length distribution, language distribution);
    • Define the priority of quality dimensions: correctness > verifiability > completeness > style;
    • Define what is unacceptable: factual errors, unauthorized promises, format drift, sensitive content.

    Layer 2: Candidate Generation and Diversity Control

    A single generator tends to produce highly homogeneous data. Common practices:

    • Multi-source sampling: sample the same task multiple times with different temperatures, prompt templates, and phrasing styles;
    • Process perturbation: insert distracting information, noisy passages, and partially missing context into the middle of generation, so the model learns to locate key evidence even with noise present;
    • Difficulty tiering: split samples into easy / medium / hard buckets by reasoning steps, dependency depth, and entity count, so the training set is not drowned in simple samples.

    Illustrative pseudocode:

    1. # Illustrative three-way parallel sampling for data generation (pseudocode, not a concrete implementation)
    2. def generate_candidates(task, k=8):
    3. out = []
    4. for i in range(k):
    5. cfg = sample_config(i) # temperature, template, style prompt
    6. out.append(generate(task, cfg)) # call the generation model
    7. return out
    8. def dedup_and_cluster(cands):
    9. # 1) Exact deduplication: hash after normalization
    10. # 2) Near-duplicate semantics: vector clustering, keep 1~2 items per cluster
    11. # 3) Difficulty labeling: grade by reasoning depth / number of constraints
    12. return filtered, labels

    Layer 3: Quality Filtering and Verification (the most important layer)

    This is the real dividing line between soft and hard distillation. Prepare at least four categories of filters:

    1. Executable verification: match math problems against reference answers; run unit tests on code problems; run schema validation on structured output; run rule checks on constrained text (length, required items, forbidden items).
    2. Self-consistency checks: sample the same input multiple times. If the answer distribution is highly dispersed, the model’s grasp of that point is unstable; such samples should either be discarded or routed into a hard-case pool for targeted training.
    3. Process-plausibility review: judge not only whether the answer is correct, but whether the intermediate reasoning contains a coincidence of “right answer, wrong process.” Such samples are a net negative for training.
    4. Contamination detection: training data must be near-duplicate checked against evaluation sets, to prevent test samples from being fed indirectly into training — which inflates offline metrics and collapses online performance.

    Layer 4: Data Mixing and Curriculum Learning

    More data is not automatically better; the mix determines the model’s “personality.”

    • Capability mix: general conversation / domain knowledge / reasoning / code / long-form, weighted toward the target scenario;
    • Difficulty mix: easy samples consolidate format and stability; hard samples pull up the ceiling;
    • Curriculum design: easy first, then harder, raising the hard-sample ratio in stages — usually more stable than training everything in one shot;
    • Style debiasing: cap the share of any single template to avoid formulaic, templated output.

    An empirical mixing sketch (tune against real business measurements):

    1. mix_strategy:
    2. easy_ratio: 0.25 # consolidate formatting and basic behavior
    3. medium_ratio: 0.50 # main source of capability
    4. hard_ratio: 0.25 # raise the capability ceiling without destabilizing training
    5. dedup_threshold: 0.92 # near-duplicate filtering threshold
    6. contamination_check: true

    Layer 5: Training Choices That Support the Above

    • Learning rate and step count: distillation data is usually “cleaner but narrower” than original pretraining corpora, so too high a learning rate easily overfits to the data’s tone;
    • Sample repetition: repeatedly training on a small high-quality dataset across many epochs yields rapidly diminishing returns and can turn into memorization, so control the epoch count;
    • Prefer parameter-efficient methods: when compute is limited, parameter-efficient fine-tuning often delivers more stable gains at the same budget and makes multi-task experiments easier to run in parallel;
    • Choosing the alignment objective: if the goal is “more usable,” build on supervised fine-tuning; if the goal is “fewer wild answers and better boundaries,” add preference data for alignment training on top of the supervised data.

    Layer 6: Evaluation and Regression

    Data engineering without an evaluation system is flying without instruments. At minimum, include:

    • Capability evaluation: a tiered test set covering the target tasks, reported per difficulty band rather than as a single aggregate score;
    • Behavioral evaluation: format compliance rate, citation accuracy, reasonableness of refusals, rate of unauthorized promises;
    • Regression evaluation: run the full regression suite on every iteration to prevent “fix one capability, regress three”;
    • Online metrics: observed alongside offline metrics. If offline numbers rise but online numbers do not, the data distribution has usually diverged from real traffic;
    • Cost metrics: training cost per token, samples needed per unit of quality gain — used to decide whether a route is worth continued investment.

    4. Common Pitfalls and a Mitigation Checklist

    1. Mistaking “resembles” for “can do.” Highly similar output style does not mean capability has transferred. Test with an out-of-distribution set instead of self-validating on samples drawn from the same distribution as the collection set.
    2. Inherited noise. A generator’s errors get stably fitted. You must implement a “right answer, wrong process” filter, or the model will learn a self-consistent stream of flawed reasoning.
    3. Evaluation contamination. Near-duplicates between training and evaluation data are the most common source of fake metric gains. Insist on semantic-level deduplication and strict holdout isolation.
    4. Diversity collapse. Homogeneous data makes model output rigid. Cap the share of any single template or source, and periodically measure output diversity (sentence-pattern distribution, length distribution, entity distribution).
    5. Compliance blind spots. Collecting external service outputs for re-training requires assessing terms of service, data authorization, and provenance traceability. The larger the scale, the more “authorizable data sources” should be a first-class concern at the architecture level.
    6. Scaling data without fixing evaluation. Doubling data volume while evaluation resolution stays flat is flying blind. Build trustworthy evaluation first, then talk about scaling.

    5. Redaction and Information Security: The Other Lesson from That Clip

    Back to the opening observation. Muting the audio while leaving the video pushes information from one channel to another; the differing mute durations also leaked the answer length as metadata. This kind of side-channel leakage is common in real engineering work:

    • Logs redact sensitive fields, but field length, timestamps, and request paths can still be used to correlate and locate information;
    • After screenshot redaction, thumbnails, EXIF data, and URL parameters may still carry the original content;
    • If the front end masks with placeholders, response body length and render timing can still be used to infer content.

    Three actionable principles:

    1. Enumerate leakage surfaces per channel rather than handling only the most obvious channel;
    2. Redact metadata too — length, timing, and counts are often enough for correlation-based inference;
    3. Put the check in the process, not on an individual — make redaction a mandatory validation step in the pipeline (for example, a rule scan before output plus sampled human review) rather than relying on someone remembering to do it.

    This matters especially if your team is doing model capability transfer: the collection, storage, use, and deletion of training data need clear classification and auditing, so that the question “where did this data come from” does not become unanswerable late in the project.


    6. Conclusion and Action Recommendations

    Distillation itself is not the problem. Turning distillation into “copying traces” is the problem. What actually creates separation is the data engineering capability and evaluation capability built around distillation:

    • Use Route A to quickly raise a usable baseline, and invest the time saved into Route B’s data construction and filtering;
    • Treat verifiability as the core metric of data production, and prioritize producing samples that can be scored automatically;
    • Build tiered evaluation and contamination detection so that the gains of every iteration are attributable;
    • Make compliance and traceability default architectural capabilities rather than after-the-fact patches.

    If you are starting today, the minimal viable path is: pick a subtask that can be scored automatically, stand up a closed loop of generate → filter → mix → train → tiered evaluation, and spend two weeks verifying whether this pipeline reliably produces attributable improvement. Running one closed loop is worth more than debating the route choice a hundred times.