Why Large Language Models Struggle to Effectively Defend Against Model Distillation

    "Failing to prevent distillation" doesn't mean defenders have no tools at all—it means that under open API access, commercial usability requirements, and cost-benefit constraints, the marginal cost of distillation attacks is often lower than the marginal cost of defense. This article breaks the problem into three layers: how distillers acquire effective data cheaply, why defenders are structurally passive, and how capital and compute constraints shape defense priorities. It also reviews common defense measures across product, risk-control, model, and legal layers, and outlines a practical multi-layered defense strategy.

    “Can’t defend against distillation” doesn’t mean the defending side has no means at all. Rather, it means that under the constraints of open API access, commercial viability, and cost-benefit tradeoffs, the marginal cost of a distillation attack is often lower than the marginal cost of defending against it. Understanding this requires breaking the problem into three layers: how distillers obtain effective data at low cost, why defenders are inherently passive, and how capital and compute constraints shape defense priorities. Only by looking at the technical pipeline and the economic incentives together can we explain why leading closed-source model services struggle to achieve “complete defense” against distillation.

    1. The Low-Cost Pipeline of Distillation Attacks

    The general definition of model distillation is: training a student model using a teacher model’s outputs or intermediate representations, so that the student approximates the teacher’s behavior on specific tasks. White-box distillation can access internal information such as probability distributions and intermediate layer representations; black-box distillation relies only on input-output pairs, such as text completions, question-answering results, refusal patterns, and format-following behavior. Closed-source model services typically expose only text results, so attackers mainly use black-box distillation.

    Black-box distillation is feasible because text outputs themselves contain abundant learnable signals. Even if a service does not return probability distributions, attackers can approximate the output distribution through multi-round sampling: sending the same prompt multiple times at different temperatures, in different contexts, and from different accounts, filtering out low-quality samples, and constructing instruction-tuning or preference data. If the service returns reasoning traces, tool-call formats, or structured results, there are even more signals to extract. Attackers can also generate a prompt pool from public data, use a strong model’s outputs to synthesize instruction datasets, and then train a smaller model. This process requires neither access to the weights nor reproducing the full training pipeline.

    A typical black-box distillation data construction process can be abstracted as:

    1. function build_distill_set(prompts, account_pool):
    2. dataset = []
    3. for p in prompts:
    4. for acct in account_pool.sample_rotating():
    5. r = call_model_service(acct, p, temperature=random_range(0.2, 1.0))
    6. if quality_filter(r):
    7. dataset.append((p, normalize(r)))
    8. return dataset

    This pseudocode highlights two key points: first, attackers can reduce per-account risk-control detection rates through account rotation and sampling parameter perturbation; second, attackers only need “usable outputs,” not perfectly identical ones. Even if the defender adds noise, rewrites, or length limits, attackers can still preserve some effective signals through filtering and rewriting. Distillation is not about copying weights—it is about approximating behavior—so “outputs are not fully identical” does not equal a successful defense.

    2. Why Defenders Are Structurally Passive

    Defenders first face a structural contradiction: the model service must remain usable for legitimate users. The API must return text, support multi-turn conversations, allow a reasonable context length, and tolerate different sampling temperatures. As long as the output has value to users, it has informational value to distillers. If defenders significantly degrade output quality, shorten answers, or refuse complex requests, they can indeed raise the difficulty of distillation—but they also directly damage product experience and commercial value. This is the dilemma of “capability-degrading defense”: it may reduce the value of distillation, but it reduces value for legitimate users at the same time.

    Second, detection is inherently lagging. Distillers can train offline after collecting data, and defenders can hardly determine at request time whether a given output will ultimately end up in a training set. Account behavior analysis, rate limiting, and fingerprint watermarking can raise attack costs, but all have evasion paths. Accounts can be rotated, requests can be spread out, prompts can be rewritten, and outputs can be polished afterward. Watermark and fingerprint detection requires samples, keys, and statistical judgment, and offers limited robustness against rewriting, filtering, and retraining. Account banning strategies, meanwhile, easily harm legitimate users, especially in scenarios involving shared networks, corporate proxies, and multiple devices.

    Third, defense goals are easily defined after the fact. If one claims “the critical parts have been defended” only after the model’s overall capability has degraded, or claims “the attack failed” when the model performs well, the conclusion becomes selective. A more sound defense evaluation should define the protected assets in advance: is it high-value reasoning capability, code generation, domain knowledge, or format-following behavior? Different targets carry different defense costs. Distillers often take only the local capabilities most critical to their business, so “overall capability has not significantly declined” does not mean critical capabilities have not been distilled.

    3. How Economic Constraints Shape Defense Priorities

    Defense is not a free feature. It requires risk-control teams, model security teams, red-team assessments, fingerprinting systems, account governance, legal support, and continuous operations. For large model companies, the more pressing constraints are usually compute and data. Large model training requires accelerator cards first; data quality and annotation scale come second. Data annotation itself is expensive, but buying cards, expanding capacity, and ensuring training stability often take higher priority. When funding is limited, defense investment easily gets pushed into the “important but not urgent” bucket.

    From a capital supply perspective, the total funding available to large model companies in some regional markets is far smaller than that of the previous generation of application-layer startup cycles. Publicly discussed figures often mention fundraising totals in the tens of billions of dollars, with a substantial portion concentrated in recent rounds. That sounds large, but it is not generous once converted into high-end compute procurement, data centers, electricity, and talent costs. When purchasing accelerators, companies often pay above-market premiums to secure delivery times—an implicit cost. Some companies rush to go public partly to compete for market narrative and partly to secure cheaper, longer-term capital. Under these constraints, the budget for defending against distillation can hardly compete with training expansion.

    This also explains a common question: why haven’t some regional markets risen quickly through distillation? The reason is not that distillation is infeasible, but that the leading companies in those markets are equally short of money and compute. Leading model companies in some regions have raised funding in the low billions of dollars—hardly ample in a compute arms race. Mature capital markets hold far more abundant financial capital, so once an innovation wave forms, the main battleground tends to emerge in capital-intensive regions. Both defenders and attackers face capital constraints, but the attacker’s marginal cost is lower: a small API budget, a public prompt pool, and open-source training tools are enough to start, while the defender must invest continuously.

    4. Common Defense Measures and Their Limitations

    Common defenses fall into four layers: product, risk control, model, and legal. Product-layer measures include limiting output length, reducing sampling randomness, returning simplified results for highly similar batch requests, and tiered access to sensitive capabilities. These reduce the information content per request, but they hurt the legitimate user experience, and attackers can compensate through multiple accounts and multi-round requests.

    Risk-control measures include rate limiting, account behavior analysis, device fingerprinting, request clustering, and anomalous prompt detection. These turn “massive sampling from a single account” into “distributed sampling across an account pool,” raising attack costs. But false-positive rates and adversarial costs rise, and attackers can evade through proxies, rotation, and request pacing.

    Model-layer measures include statistical watermarking, semantic fingerprinting, output perturbation, and critical capability isolation. Watermarks can support attribution but cannot prevent offline training; semantic fingerprints can detect stylistic similarity but have limited robustness against rewriting and retraining; output perturbation degrades the quality of distilled data, but also degrades normal output quality. Critical capability isolation is a more pragmatic direction: placing high-value capabilities under stricter access control and keeping general capabilities on open APIs, trading capability tiering for defense in depth.

    Legal measures include license agreements, terms of use, and enforcement mechanisms. They raise the legal risk of commercial distillation, but enforcement costs are high against anonymized, cross-border, and distributed attacks. Technical and legal defenses must work together; neither can replace the other.

    5. Engineering Practice for Layered Defense

    A more realistic goal is not “zero distillation,” but raising the unit cost of effective distillation data, reducing student-teacher consistency on critical tasks, and protecting high-value capabilities. In engineering terms, a five-layer defense can be established: a product layer for output policies and capability tiering; a risk-control layer for accounts, rate limits, request clustering, and anomaly detection; a model layer for watermarking, fingerprinting, and output perturbation; a legal layer for licensing and auditing; and an evaluation layer for continuous red-teaming.

    The evaluation layer is especially important. Metrics can be defined in advance: effective distillation sample rate, account survival time, fingerprint detection rate, false-positive rate, critical capability retention rate, and attacker unit cost. Defense strategies should iterate around these metrics rather than being selectively explained after results appear. A simplified detection rule can be expressed as:

    1. score = style_fingerprint(output, known_fingerprints)
    2. if score > threshold
    3. and account.rate > limit
    4. and prompt_cluster.similarity > threshold:
    5. flag_for_review(account)

    Rules like this can only serve as auxiliary signals and cannot alone justify account bans. A more reliable approach is to combine detection, rate limiting, capability tiering, and manual review into a defense chain with escalating costs.

    6. Conclusion

    The difficulty large language models face in defending against distillation is fundamentally the combined result of open APIs, observable outputs, low-cost black-box learning, and capital constraints. Defenders can certainly raise attack costs through output perturbation, risk-control bans, watermarks and fingerprints, capability tiering, and legal terms. But as long as the service must remain usable for legitimate users, outputs must retain informational value; as long as attackers can train offline and sample across multiple accounts, detection will inevitably lag; and as long as compute and data investments take priority over defense operations, defense will struggle to secure sufficient budget. Therefore, the sensible strategy is not to pursue absolute prevention, but to turn defense into a continuous cost game: protect critical capabilities, raise the attacker’s marginal cost, reduce false positives, and constrain defense narratives with evaluation metrics. Only in this way can a balance be struck between technical feasibility and commercial usability.