Skip to content

Buyer's Guide

Distilled Models: Separate Teacher Targets from Student Capability

Output-distribution distillation trains a student using targets produced by a teacher. A useful offer connects that learning history to the actual student supplied and its inference dependencies, then supports the purchased task capability with independent reference outcomes. A complete independently served student can operate without the teacher at inference. Matching the teacher's winning class, matching its distribution and making correct task decisions remain different findings.

Technical contentPublished Updated

01

Follow teacher outputs into the student's learned parameters

In Hinton, Vinyals and Dean's March 2015 v1 paper, a trained model supplies class distributions as targets on a transfer set. Those outputs supervise another model. The target is a distribution over the declared classes, rather than only the teacher's winning class. Its allocation to other classes can convey relationships that a winner identifier omits.

The PyTorch knowledge-distillation tutorial illustrates the roles: the same inputs reach a fixed teacher and a trainable student, and the distillation objective sends gradients to the student. Training changes the student's parameters to pursue that objective. Known reference labels can supply an additional objective. Teacher-produced targets and independent labels therefore need their origins distinguished.

This article examines output-distribution matching for mutually exclusive categorical classes. Hidden-feature matching and sequence-generation methods require other target definitions. The historical paper uses temperature to soften distributions; the supplied arithmetic below fixes T = 1 solely to identify its probability rows.

Ask which teacher revision produced which targets for which transfer population, and how those targets entered the stated student objectives. That description identifies the supervision. It does not establish that training reproduced the teacher's whole function or capability.

References: [D1] [D2]

02

DT64: the same winner leaves different nonwinning targets

DT64 is an illustrative comparison with three mutually exclusive classes in fixed A, B, C order. On one fictional transfer input U, supply teacher distribution q = (0.6, 0.3, 0.1), candidate S1 = (0.6, 0.3, 0.1), and candidate S2 = (0.6, 0.1, 0.3). Every entry is dimensionless and positive, and every row sums to one. All three argmax decisions are A.

The teacher allocates three times as much probability to B as to C. S1 preserves that allocation. S2 reverses it, assigning three times as much to C as to B, while retaining exactly the same 0.6 on A. These are different relationships among the nonwinning classes.

If the transfer target retains only the teacher's hard label A, both candidates receive loss −ln(0.6) = approximately 0.5108256237659907 nats. That hard label is the teacher's decision; no true label for U has been supplied. Even retaining the winner and its 0.6 probability cannot distinguish these two candidates.

The rows are supplied probabilities, not outputs obtained by training students. They let us examine what information a target representation retains without assuming any successful transfer.

References: [M1]

03

The distribution objective distinguishes what the hard target discards

Using q as the reference, S1's soft cross-entropy is −0.6 ln(0.6) − 0.3 ln(0.3) − 0.1 ln(0.1), approximately 0.8979457248567797 nats. S2 instead gives −0.6 ln(0.6) − 0.3 ln(0.1) − 0.1 ln(0.3), approximately 1.1176681825904016 nats. These are complete class sums for U, using natural logarithms and no class weights.

Their difference is (0.3 − 0.1) ln(3) = ln(3)/5, approximately 0.2197224577336219 nats. It comes from B and C: the objective gives the teacher's larger B target more weight, so swapping B's and C's candidate probabilities changes the comparison even though A stays fixed.

The corresponding teacher-to-candidate divergences are KL(q||S1) = 0 and KL(q||S2) = ln(3)/5. S1's cross-entropy remains positive because it includes the teacher distribution's entropy; its zero KL identifies an exact distribution match on this one supplied row. The related KL guide explains reference direction, and the cross-entropy guide explains target representation and reduction.

For the stated distribution-matching comparison on U, S1 is the closer candidate. An argmax-only return discards the probability allocation needed to establish that result. Neither this calculation nor the hard-label comparison reports a training outcome, probability calibration or correctness on another input.

References: [M1]

04

Compare what the three offers actually supply

Consider three stipulated software offers. R supplies a representation-only numerical conversion of an identified trained model, with no teacher/student fitting in that offer. Its deliverable is the converted representation, its parameters and dependencies. R can answer a request for that conversion without establishing a separately learned student. The related quantized-weight and ONNX representation guides address the numerical and memory decisions.

A supplies a learned LoRA update together with its exact frozen base under a supported adapter arrangement. Both participate in the adapted model. The LoRA paper describes trainable low-rank updates against frozen base weights, and PEFT's checkpoint guide distinguishes adapter parameters from base parameters. The existing adapter-versus-merged-model guide owns that delivery choice. Receiving A's update and base does not, by itself, identify teacher supervision or a separate complete student.

S supplies a separately trained student that used an identified teacher's outputs on a stated transfer population. Its delivery includes the complete declared student inference package. S answers the learning-and-delivery part of a request for a distilled student when those descriptions identify the actual supplied artifacts. Its task-quality evidence is a further part of the comparison.

These descriptions are compatible with combinations. A student can also be quantized, and a LoRA update can be trained with teacher supervision. Hugging Face's quantization guide describes QAT as simulating quantization effects during training. Representation-only conversion is R's explicit premise, rather than a definition of all quantization.

Choose the description that matches the requested change and the actual delivery. A small download alone cannot distinguish these offers, and none of the method names supplies a resource or quality result.

References: [D3] [LORA1] [PEFT1]

05

A complete student package can leave the teacher out of inference

A satisfactory fictional S response could identify teacher T0, transfer population TR1 and student checkpoint ST1. It states which output targets T0 supplied, their class mapping and processing, and whether independent labels also contributed to the student objectives. T0, TR1 and ST1 are illustrative identifiers, not real products or releases.

For inference, the stipulated delivery contains ST1's complete weights and model configuration, the required preprocessing, the A/B/C label map, and all declared runtime and library dependencies with their exact supported identities. Any tokenizer required by the actual input type also belongs in that description. The offered inference path uses ST1 without calling or loading T0.

Under those premises, teacher weights are unnecessary for the specified inference path. The teacher supplied training supervision; the delivered student now supplies predictions. This closes the teacher-dependency question for S without treating it as an adapter missing its base.

ST1 still depends on its own configuration and supported environment. If the actual offer instead calls a teacher service during prediction, record that dependency as part of the offered system. Use the ONNX-versus-engine guide for a separate portability question. The buyer should receive a precise inference arrangement rather than infer one from the word distilled.

References: [D1] [D2] [PEFT1]

06

Separate teacher agreement from independently referenced correctness

Continue DT64 with two separately stipulated held-out task rows, H1 and H2. These rows supply independent reference labels and decisions. They are different inputs from U, and their decisions are separate premises, not consequences derived from U's probabilities or from a training run.

On H1, the reference class is B, the teacher chooses A, S1 chooses A, and S2 chooses B. S1 agrees with the teacher and is incorrect against the reference; S2 disagrees with the teacher and is correct.

On H2, the reference class is A, and the teacher, S1 and S2 all choose A. Both candidates agree with the teacher and are correct against the reference.

Teacher-decision agreement is therefore 2/2 for S1 and 1/2 for S2. Independent-reference correctness is 1/2 for S1 and 2/2 for S2. More teacher agreement coexists with fewer correct task decisions in these supplied rows.

The disposition follows the question. S1 matches q exactly on U and agrees more often with the teacher on H1/H2. S2 answers both independent references correctly. If the requirement is correctness on these two rows, S2 meets it and S1 does not. This illustrates why a teacher is the reference for an imitation objective without becoming the application's ground truth.

Two invented rows establish no statistically reliable generalization claim, sample-size recommendation or calibration result. Nor do they demonstrate that distillation caused either candidate's decisions.

07

Connect the retained-capability claim to the delivered student

For a real S offer, have the appointed application and evaluation owners connect the task evidence to the exact delivered student, preprocessing, label map and decision rule. Identify the intended input population and conditions, the independent reference basis, and the metric and acceptance criterion for the capability being purchased.

A claim that capability was retained relative to T0 needs applicable teacher and student task results on a comparable basis. A student can meet an absolute task requirement even when its decisions differ from the teacher. Conversely, high agreement with a teacher that makes relevant errors can leave the application requirement unmet. Retain per-task findings and consequential failure categories alongside any aggregate.

Keep the transfer population and evaluation population distinct in the evidence. The related training/validation guide addresses group overlap and information used during fitting; the calibration guide addresses probability magnitudes against outcome frequencies. Repeating teacher-generated targets as evaluation references would answer imitation again. It would not provide the independent outcome comparison illustrated by H1/H2.

A complete positive S disposition has three parts: the learning record identifies the teacher supervision, the delivered package supplies the declared student inference arrangement, and applicable independent outcomes meet the required task criteria. If only the first two are supplied, the task-capability portion remains unresolved. Obtain that evidence or narrow the claim before choosing on its strength.

Then assess any promised latency, memory or cost benefit on the actual supported workload. The related quantized-model memory guide covers capacity evidence. Neither DT64's distributions nor its correctness counts establish a GPU requirement, speedup, reasoning guarantee or safety result.

08

Connect a separate equipment requirement to physical preparation

If the wider project independently needs equipment receiving, preparation or rack assembly, Leviathan's Rack Assembly & Preparation service and related project inquiry provide a route to discuss that physical package. Share a nonconfidential equipment summary, approved configuration, supplied integration state, proposed location and required handoff to discuss scope and availability.

Training, distillation, model conversion, evaluation, software hosting and commissioning, and application acceptance remain with separately appointed software and application owners. The physical package is defined against the identified equipment and permitted tasks; this model comparison supplies no field-work approval.

References: [L1]

09Sources

Primary sources

  1. [D1]
    Hinton, Vinyals and Dean — Distilling the Knowledge in a Neural Network, v1, March 9, 2015Checked 2026-10-22. Historical Introduction and sections 2–2.1 support transfer-set class targets and the trained student. The explanation selects output-distribution distillation; paper experiments and recommended training settings are not adopted.
  2. [D2]
    PyTorch — Knowledge Distillation TutorialChecked 2026-10-22. Fixed-teacher/student-gradient roles in the class-output example. Observed header: 2.14.0+cu130; page updated January 24, 2025 and verified November 5, 2024. Those labels establish no fresh validation of tutorial outcomes.
  3. [D3]
    Hugging Face Transformers — Quantization conceptsChecked 2026-10-22. Unversioned page distinguishes post-training quantization from simulated quantization effects during training. Used to preserve possible combinations, without adopting savings, speed or quality claims.
  4. [M1]
    SciPy 1.16.2 — scipy.stats.entropyChecked 2026-10-22. Definitions of discrete entropy, directed relative entropy, cross-entropy and natural-log units. DT64 uses supplied normalized rows and arithmetic rather than executing the API.
  5. [LORA1]
    Hu et al. — LoRA: Low-Rank Adaptation of Large Language Models, v2, section 4.1Checked 2026-10-22. Historical frozen-base and trainable low-rank-update relationship. No paper benchmark, latency or memory ratio is adopted.
  6. [PEFT1]
    Hugging Face PEFT — PEFT checkpoint formatChecked 2026-10-22. Unversioned description of adapter parameters, adapter configuration and the separately required base. Supports the stipulated adapter arrangement rather than universal model packaging.
  7. [L1]
    Leviathan Systems — Rack Assembly & PreparationChecked 2026-10-22. Receiving, preparation and agreed rack assembly for a separately identified physical equipment requirement, with configuration, location, resources and handoff defined for the engagement.

Contact

Does the wider project need equipment preparation?

Share a nonconfidential equipment and configuration summary, supplied integration state, proposed location and physical handoff needs to discuss receiving, preparation or rack assembly.