Knowledge Distillation: Technical Limits and Model Progress Evaluation

    Explore how knowledge distillation transfers model capabilities, how service-side safeguards affect training data access, and which alternative approaches can support improvement. The article also outlines a reproducible evaluation framework for assessing whether a model’s progress has stalled.

    1. Why Model Capability Debates Often Turn to Distillation

    Over the past year, competition among large language models has increasingly shifted from parameter counts toward training methods and data efficiency. One recurring question is whether a model’s improvements come from independent training or from learning from the outputs of a stronger model. Because this question involves technical evidence, data compliance, and public perception, it is easily reduced to an oversimplified conclusion.

    This article does not examine the internal practices of any particular organization. Instead, it breaks the issue into three technical questions that can be investigated: Can knowledge distillation effectively transfer capabilities? How do a provider’s safeguards affect training? And how can reproducible metrics establish whether a model’s progress has actually stalled?

    2. How Knowledge Distillation Works

    Knowledge distillation uses a stronger teacher model to guide the training of a smaller or less capable student model. Unlike hard labels, which specify a single correct answer, a teacher’s probability distribution captures relationships among possible answers.

    For example, when classifying the sentiment of a passage, a teacher might assign probabilities of 0.7 to positive, 0.25 to neutral, and 0.05 to negative. That distribution carries information beyond the most likely label.

    A temperature parameter, T, softens the probability distribution. Higher temperatures produce smoother distributions, making information about less likely classes easier to preserve. In practice, the distillation loss is often combined with the original task loss using a weighted sum:

    1. import math
    2. def softmax_with_temperature(logits, T):
    3. scaled = [z / T for z in logits]
    4. m = max(scaled) # Subtract the maximum to avoid exponential overflow
    5. exps = [math.exp(s - m) for s in scaled]
    6. total = sum(exps)
    7. return [e / total for e in exps]
    8. def kl_divergence(p, q):
    9. return sum(pi * math.log(pi / qi) for pi, qi in zip(p, q) if pi > 0)
    10. def distillation_loss(student_logits, teacher_logits, T=2.0):
    11. p_teacher = softmax_with_temperature(teacher_logits, T)
    12. p_student = softmax_with_temperature(student_logits, T)
    13. # Multiply by T^2 to compensate for temperature-related gradient scaling
    14. return (T ** 2) * kl_divergence(p_teacher, p_student)
    15. def total_loss(student_logits, teacher_logits, hard_loss, alpha=0.5, T=2.0):
    16. soft = distillation_loss(student_logits, teacher_logits, T)
    17. return alpha * soft + (1 - alpha) * hard_loss

    Distillation can be divided into two categories based on the information available from the teacher:

    • White-box distillation provides access to the teacher’s logits or intermediate representations, offering the richest information.
    • Black-box distillation provides only the teacher’s text outputs. The student learns to imitate those outputs through supervised fine-tuning.

    Black-box distillation is more common in engineering practice because most services expose text interfaces rather than internal model representations. Its effectiveness depends heavily on output quality, sample coverage, and task diversity.

    3. Service-Side Safeguards and Their Trade-Offs

    Model service providers typically use multiple layers of protection to reduce the risk of systematic capability extraction. Common measures include:

    1. Rate limits and quotas: Limits on request frequency for individual accounts, IP addresses, or organizations. The token bucket is a common algorithm because it is straightforward to implement and permits limited bursts of traffic.
    2. Behavioral detection: Identification of batches of similar requests, unusual input distributions, and usage patterns that clearly diverge from normal application behavior.
    3. Output policy adjustments: Limits on response length or summaries in place of certain types of intermediate reasoning.
    4. Access auditing: Logging request origins and parameter characteristics, then taking action under the service’s terms of use.

    A basic token bucket implementation looks like this:

    1. import time
    2. class TokenBucket:
    3. def __init__(self, rate, capacity):
    4. self.rate = rate # Number of tokens replenished per second
    5. self.capacity = capacity # Maximum bucket capacity
    6. self.tokens = capacity
    7. self.last = time.monotonic()
    8. def allow(self, cost=1.0):
    9. now = time.monotonic()
    10. elapsed = now - self.last
    11. self.tokens = min(self.capacity, self.tokens + elapsed * self.rate)
    12. self.last = now
    13. if self.tokens >= cost:
    14. self.tokens -= cost
    15. return True
    16. return False

    Each measure has costs. Excessively strict rate limits can degrade the experience for legitimate users. Summarized outputs leave researchers with less information to analyze. Providers’ own protection rules can also interfere with compliant data collection.

    Safeguards therefore need to balance security, usability, and transparency. Detection thresholds should be adjusted periodically based on false-positive rates.

    4. Other Paths to Model Improvement

    Restricted access to outputs does not eliminate the paths to better model capabilities. Common alternatives include:

    • High-quality annotation and expert feedback: Carefully labeling difficult examples is often more effective than collecting large volumes of low-quality data.
    • Self-generated data with programmatic verification: A model generates candidate solutions, which are filtered using validators such as unit tests or symbolic mathematical checks. Accepted examples are then used for training. Code and mathematics are particularly well suited to this approach because correctness can be checked automatically.
    • Reinforcement learning with verifiable rewards: Objective reward signals guide policy optimization, reducing reliance on external text outputs.
    • Data engineering: Deduplication, removal of overlap with evaluation sets, difficulty-based grouping, and adjustments to domain composition can deliver greater benefits than simply increasing data volume.
    • Inference-side optimization: More efficient attention implementations and better allocation of inference-time compute can improve practical performance at comparable parameter counts.

    These approaches illustrate why a change in a single data source rarely determines the entire trajectory of a model’s capabilities.

    5. How to Assess Whether a Model Has Stalled

    Assessing stagnation requires avoiding three common mistakes: treating release intervals as capability metrics, relying on a single benchmark, and depending on the subjective judgments of a small number of people.

    A more reliable approach is to build an evaluation matrix:

    1. Fixed benchmark suite: Select multiple benchmarks covering knowledge, reasoning, code, long-context tasks, and instruction following. Record benchmark versions, dataset splits, and evaluation settings.
    2. Independent reproduction: Rerun evaluations with the same prompt templates and decoding parameters to rule out differences caused by the evaluation setup.
    3. Out-of-distribution testing: Use new questions created after a model’s release to assess generalization and reduce the influence of data contamination.
    4. Cost and latency: Include inference cost at equivalent performance levels as part of the assessment of engineering value.
    5. Adjacent-version comparisons: Compare successive versions of the same model.