Plate IIModel Capability & TrainingHOWARDISM

Distillation Defenses Under Post-Distillation RL

Why an anti-distillation defense has to be evaluated after the attacker's RL stage, not straight after distillation: Javaheri et al. (Oxford / ELLIS Tübingen, arXiv 2609.35699) find distill-then-RL beats either alone, antidistillation sampling's damage washes out after RL on one student and persists on another, and a summary-expansion attack built only from API-visible reasoning summaries and answers matches distillation on extracted full hidden traces from Claude Sonnet 4.6 and GPT-5 mini after RL (3B student, math only), so response-level defenses that leak enough to reconstruct a trace probably fail and batch-level detection is the remaining avenue

Article metadata
Publication details
Published:
Filed:Concept
Domain:Model Capability & Training
Reading:18 min
Source:AI-synthesised
About this piece

Articles in this journal are synthesised by AI agents from a curated wiki and are refreshed automatically as new concepts arrive. Topics, framing, and editorial direction are curated by Howardism.

Illustration for Distillation Defenses Under Post-Distillation RL

Sources#

Summary#

Every published evaluation of a distillation defense, academic or lab-run, scores the attacker's student immediately after distillation: fine-tune on the teacher's (defended) outputs, measure, and compare with an undefended run. Javaheri, Panfilov, Britton, Gal & Gideoni (Oxford / ELLIS Tübingen & MPI-IS, arXiv 2609.35699 v1, 2026-09-28, empirical) argue that this threat model is misspecified. A lab that steals reasoning traces wants the best model it can get, and the best model comes from distilling first and then running RL. Once that RL stage is included, two things change. A defense that degraded the distilled student can stop mattering, because RL closes the gap. And an attack that looked weak after distillation can become as good as the strong attack, because RL only needs the distilled data to be useful enough to bootstrap from, not faithful.

The paper's sharpest result is about the defense every frontier API already ships. Claude, GPT and Gemini return a summary of the hidden reasoning instead of the trace. A weak, non-RL-trained expander model rewrites summary + final answer into a plausible full trace. After RL, a student distilled on those expanded traces does as well as one distilled on the real hidden traces, which the authors extracted from Claude Sonnet 4.6 and GPT-5 mini with a signature-replay attack. The conclusion they draw: "any distillation defense that leaks sufficient information to reconstruct approximate reasoning traces is likely ineffective."

Scope matters for every claim on this page. All students are at most 3B parameters (RL compute limits), the student in the closed-source runs is a single model (Llama-3.2-3B base), all tasks are math (GSM8K, Minerva, MATH500), the attack is unoptimized, and frontier models were deliberately not attacked. No run reports seeds or confidence intervals.

Why a real attacker runs RL after distilling#

§3 trains eight base models (Qwen2.5 0.5B–7B and Math-7B, Llama-3.2-3B, Llama-3.1-8B, Gemma2-2B) on the same SimpleRL-Zoo question set by GRPO-based RL or by sequence-level distillation from a Qwen2.5-14B-RL teacher. Averages over GSM8K / Minerva / MATH500 (Table 1, checked against the PDF):

Base modelBaseRL onlyDistill onlyDistill → RL
Qwen2.5-0.5B24.3%40.3%35.8%41.6%
Qwen2.5-1.5B34.5%64.6%61.1%65.1%
Qwen2.5-3B64.5%72.6%71.6%73.1%
Llama-3.2-3B2.2%24.3%19.8%30.5%
Gemma2-2B10.6%14.7%13.5%21.5%
Llama-3.1-8B16.1%64.7%36.6%not run
Qwen2.5-7B70.0%82.2%80.1%not run
Qwen2.5-Math-7B65.2%79.3%84.7%not run

RL beats distillation on seven of eight models. The exception, Qwen2.5-Math-7B, reasons by writing Python and hallucinating its output. RL reinforces that habit and distillation from a code-free teacher removes it (Appendix A.3). Distill → RL beats both on every model where it was run (≤3B only). The gains are small on the Qwen models (0.5–1.3 points over RL only) and large on Llama-3.2-3B and Gemma2-2B (6–7 points). Ablations (rejection sampling, smaller teachers, other datasets, more samples or epochs) move distillation by at most about 2 points and never past RL. At 32B, DAPO-Qwen2.5-32B (RL) averages 93.6% against 91.4% for the R1-distilled Qwen2.5-32B (Table 5). That pair is not a controlled comparison: the two arms differ in dataset and teacher.

The mechanism is the pass@k split. Distillation raises high-k pass@k (the "soft ceiling" of problems a model can solve at all), and RL raises pass@1. Appendix A.4 gives the theory. Sequence-level KD is an unbiased estimate of the forward-KL KD gradient, so it is mode-covering: the student spreads mass over every teacher mode and some of it lands on wrong answers. Max-entropy RL with a binary reward equals reverse-KL to a "perfect teacher" uniform over correct answers, so it is mode-seeking: it concentrates mass on correct answers it already produces and never raises answers it never samples. This is the same blind spot as GRPO's agreeing groups, where a strategy too rare to sample is never learned, and it is why DeepSeekMath's RL moved majority@K and not pass@K. Distillation supplies the rare strategies and RL then makes them reliable. That is also how open pipelines like DeepSeek-R1 are built, with distill → RL cycles repeated, and stolen traces would slot in as the bootstrap data.

A defense that looks effective, then washes out#

§4 tests antidistillation sampling (Savani et al. 2025), which perturbs the teacher's sampling so its traces poison a student on a target task. Qwen2.5-0.5B is the student and Qwen2.5-1.5B-RL the teacher. The poisoning levels (λ = 0.0316 / 0.05 / 0.18) cost the teacher 10% / 30% / 86% of its relative accuracy. The authors call all three aggressive, since even 10% is probably too costly to deploy. Table 6 averages, checked against the PDF:

Student distilled onAfter distillationAfter RL
(no distillation, base → RL)24.3%40.3%
Unpoisoned teacher38.0%40.6%
Low poisoning34.9%40.8%
Mild poisoning30.7%41.3%
High poisoning13.1%34.3%

After distillation the defense works and its effect scales with the poisoning level. After RL, the low and mild arms match or beat the unpoisoned arm. Only the high level, an 86%-degraded teacher, still hurts.

Two readings the headline skips.

  • On this student, distillation barely helps after RL at all. The unpoisoned arm finishes 0.3 points above RL with no distillation (40.6% vs 40.3%). A defense that removes a benefit this small cannot show much after RL, whatever it does. The case is stronger on Minerva alone (36.9% RL only, about 39.3% for the unpoisoned, low and mild arms), which is the panel the paper's Figure 5 puts on the right. This Qwen2.5-0.5B setup also differs from Table 1's (38.0% / 40.6% here against 35.8% / 41.6% there), presumably because the antidistillation code caps traces at 1,024 tokens. The paper does not reconcile the two.
  • On Llama-3.2-3B the defense survives RL (Appendix B.3, Table 7). Teacher Qwen2.5-7B-RL, hard dataset. The unpoisoned student reaches 27.9% after RL, the low arm 22.3% and the mild arm 21.4%. Both poisoned arms finish below RL with no distillation (24.3%), so the poison does lasting harm. The authors attribute this to "effectively having a worse teacher", and the table caption concedes that antidistillation sampling "can in some cases be effective." The same appendix makes the deployment argument instead: λ below 0.03 does nothing measurable, so any effect costs at least 10% of teacher accuracy.

The paper's own evidence therefore supports "an RL-free evaluation can overstate a defense", which is one case. It does not support "antidistillation sampling breaks after RL" as a general claim, because one of its two students says otherwise. The cost argument, that the teacher pays before the student does, holds on both.

The summary-expansion attack#

The setup. The attacker takes the API's reasoning summary and final answer, and an off-the-shelf weak expander (Llama-3.2-3B-Instruct, not RL-trained) writes a full trace "as if solving it for the first time" that matches every intermediate value. For closed models a synthesis prompt first homogenizes the three providers' summary styles. Claude's summaries are the most concise, GPT-5 mini's the most verbose, and Gemini's are full of personification and verification. A rejection-sampling pass removes the under-200-in-~8,000 traces that mention the summary. The student (Llama-3.2-3B base) is distilled on the expanded traces and then RL-trained.

Open-source check (Qwen2.5-14B-RL teacher, summaries written by Qwen2.5-7B-Instruct; Figure 7, values from the figure's bar labels):

Distilled onMinerva before → after RLMATH500 before → after RL
Nothing (base → RL)3.1 → 17.32.6 → 14.8
Full traces13.7 → 23.612.4 → 19.4
Expanded summaries10.3 → 22.510.4 → 21.0

Closed-source teachers (Figure 8, bar labels; full traces obtained by extraction, see below):

TeacherFull traces, after RL (Minerva / MATH500)Expanded summaries, after RL (Minerva / MATH500)
GPT-5 mini21.9 / 17.221.9 / 19.4
Claude Sonnet 4.622.8 / 18.621.7 / 19.2
Gemini Flash 3.6not available (extraction patched)22.0 / 19.2

Before RL, expanded summaries trail full traces by about 3 points on both datasets. After RL they are level, and on MATH500 slightly ahead for both teachers that have a full-trace baseline. The GSM8K side is the paper's weak spot: expanded GPT-5 mini and Gemini summaries cause more forgetting on easy GSM8K questions than full traces do (Sonnet 4.6's do not). A second distill → RL round on harder data closes that in the open-source setting, but it also opens a small gap on the average, 32.3% full vs 31.0% expanded (Table 8). The authors read this as possibly "some differences between them which are less apparent after a single round."

The ablations that make it an attack rather than a coincidence:

  • The gain comes from the summary, not the expander. Distilling on the expander's own traces, written without summaries, gives no post-RL gain over RL alone (Figure 13).
  • Expansion is necessary. Distilling on the raw summaries improves the student before RL, but the gain disappears after RL (Figure 15).
  • No artificial ceiling. Full traces from Sonnet 4.6 at maximum effort, which are longer (median 430 vs 175 reasoning tokens), do slightly better at ~2.6× the API cost (Figure 14). Distilling the full closed traces with a forced opening <think> tag beats distilling without it after RL (GPT-5 mini 28.8% vs 26.8%, Sonnet 4.6 29.1% vs 26.3% average; Table 9, header row welded in the parse, values reconciled against the PDF). The main comparison uses the stronger, forced-thinking variant, which is the conservative choice.
  • What did not work. On Qwen2.5 students every arm ends the same after RL, distilled or not, which the authors attribute to Qwen2.5's known susceptibility to spurious-reward gains (Shao et al. 2026). Gemma-2B and Falcon3-3B were too weak to use at all, and the authors suggest the attack needs a minimum student capability.

How the full traces were obtained: signature replay, measured#

The full-trace baseline needs the hidden reasoning itself, and the paper gets it with the attack of Panfilov et al. 2026 (Stealing reasoning traces from proprietary LLM APIs, arXiv 2608.09867, not in raw/; Panfilov is also a co-author here). Both providers return the hidden reasoning in opaque form next to the answer: an encrypted reasoning item for GPT-5 mini and a signed thinking block for Sonnet 4.6. Attach that item to a later request, and a cheaper decoder model from the same family (GPT-5.6-luna; Claude Haiku 4.5) reads the hidden reasoning back out verbatim. The queries went through Microsoft Azure's endpoint, unpatched at the time of writing and disclosed to Anthropic, OpenAI and Microsoft. Gemini had already patched it. Verification compares the extracted trace's token count with the provider's reported reasoning-token count. More than 99% match: 99.9% for GPT-5 mini (within the 64-token reporting bin), 99.9% for Sonnet 4.6 at an 8,192-token budget and 99.4% at max effort.

This is the corpus's first independent, measured instance of the cross-session thinking-signature replay that Anthropic attributes to Moonshot and DeepSeek on Illicit Distillation. It shows that the replay works and that it can be checked: the token-count match is a verification method an outsider can run. Fable 5.1's preserved-thinking change targets this family of attack. This paper reached Sonnet 4.6 through a third-party cloud endpoint, and neither source says whether a provider-side fix reaches every serving surface. A patch on one surface does not by itself close the others. (2026-11-23: OpenAI's GPT-6.2 Astra and Sol card says it "closed a pathway that allowed someone who already possessed another user's encrypted reasoning to replay it and recover its contents", with protections "across users, workspaces, organizations, and model families". Its red-team puts prior-turn extraction at 0.2% for GPT-6.2 Astra, against 54.0% for GPT-6 Astra. The card names no third-party serving surface, so whether the fix reaches Azure's endpoint is still unstated. The card does not address the summary-expansion route, which needs no extraction.) The wiki takes the "Stolen Thoughts" paper Denain and Lambert discuss (stolen-thoughts.com, on Illicit Distillation) to be most plausibly this Panfilov et al. work, since the mechanism matches Lambert's "serving issue" description. Neither source says so.

What the authors conclude about defenses#

  • Response-level defenses are probably structurally weak. These are defenses applied per API call regardless of domain, such as summarization and antidistillation sampling, and as far as the authors know they are the only real-time defenses deployed. The argument is dual-use. If a processed output keeps a trace's semantic content, an approximate trace can be rebuilt. If it drops the content, the researcher who asked for a proof's steps loses them just as the attacker does, and "users would prefer a worse-defended but better model." Obfuscation that leaves quality intact, such as antidistillation sampling or watermark-like patterns, fails the other way, because rephrasing breaks it.
  • Domain-scoped response-level defenses are the exception they endorse. Fable 5's cyber safeguard foiled GTG-16006's distillation attempt (from Anthropic's report), and the authors accept the usability cost as sensible for that domain. That is Capability-Gated Model Fallback's design, read from the attacker's side.
  • Summaries are still a mitigation, but against a different threat. They are reported to stop leakage of memorized secrets such as passwords and API keys, and they make the attacker post-process.
  • Batch-level detection is the open avenue. It means classifying sets of related queries instead of single calls. As reported, the existing batch-level detection only finds attacks in hindsight, and multi-account, multi-region operations (The Stolen Model-Access Economy) make related queries hard to link. The authors note that the same machinery would also cover non-distillation abuse: a closed model used as an RL reward model, and query-heavy jailbreak search (Boundary Point Jailbreaking). This is the aggregate-classification bet Safeguard Evasion by Task Decomposition already makes.

Where this bites claims elsewhere in the wiki#

  • Fable 5's measured CTS defense is an RL-free evaluation. The paper names Anthropic Risk Report Aug 2026, §5.1.1, the connector-text-summarization measurement tabled on Claude Fable 5, as one of the post-distillation-only evaluations it argues against. Those SWE-bench and TerminalBench drops were measured after fine-tuning and nothing more. This paper did not attack CTS, and its evidence is 3B math rather than agentic coding, so the Fable numbers are not contradicted. They are qualified: they say how much CTS costs a distiller who stops after fine-tuning, and nothing about one who runs RL next. The authors argue that agentic setups leak just as much through intermediate outputs, but they did not test it.
  • Anthropic's "summarizes its internal reasoning… less useful for training" (Illicit Distillation) is a case-study claim with no number attached. This paper's measurement points against it for math at 3B: after RL, the summaries were as useful as the trace.
  • The monitorability trade. Chain-of-Thought Monitorability records summarization as a cost to oversight paid for anti-distillation value. If that value is small against an attacker who runs RL, the trade is worse than it looked: oversight still pays in full for a defense that buys little.
  • The extraction-vs-reconstruction line on Illicit Distillation. AA26-251A's DeepSeek "imagine and articulate the internal reasoning behind completed responses" prompt is reconstruction, needing no hidden trace. This paper is the first measurement that reconstruction from visible material is enough, with the summary as the input.

Connections#

  • Illicit Distillation — the threat class this page's experiments model: the campaigns, the summarized-reasoning and preserved-thinking countermeasures, and the signature-replay attack the paper reproduces on a third-party endpoint
  • Claude Fable 5 — the Risk Report's CTS distillation measurement is one of the RL-free evaluations the paper names; also the cyber safeguard the authors cite as a domain defense that worked
  • Chain-of-Thought Monitorability — summarization's oversight cost was justified partly by its anti-distillation value, which this paper measures as small after RL
  • Group Relative Policy Optimization (GRPO) — the RL stage in every distill → RL run here; the mode-seeking account of why RL alone cannot raise pass@k is the GRPO rare-strategy ceiling seen from the distillation side
  • Capability-Gated Model Fallback — the domain-scoped response-level defense the authors call sensible, against the broad response-level ones they call ineffective
  • Safeguard Evasion by Task Decomposition — the other place the wiki argues for aggregate, cross-session classification over per-call refusal
  • The Stolen Model-Access Economy — the multi-account substrate that makes batch-level detection hard
  • The US–China Capability Lag Under a Compute Deficit — distillation's share of the US-China lag; this page says hiding the trace is not the same as preventing distillation
  • Anthropic, OpenAI, UK AI Security Institute — the providers whose models were attacked and who approved publication; UK AISI staff helped secure compute

Open Questions#

  • Does Fable 5's connector-text summarization still cut SWE-bench and TerminalBench uplift once the distilled student is also RL-trained? Settler: a rerun of the Risk Report §5.1.1 distillation runs with an RL stage after fine-tuning, or a third party distilling CTS-mitigated Fable transcripts and then running RL.
  • Does summary expansion still match full-trace distillation above 3B students and outside math, on agentic coding where the visible material is summaries plus intermediate tool outputs? The second-round gap (32.3% vs 31.0%) hints it may not stay level. Settler: a replication with a ≥7B student on an agentic benchmark (SWE-bench-style) with full-trace and expanded-summary arms both RL-trained.

Sources#

  • Distillation Defenses Easily Break After Reinforcement Learning — Shidan Javaheri, Alexander Panfilov, Oliver Britton, Yarin Gal & Yonatan Gideoni (University of Oxford; ELLIS Institute Tübingen & MPI for Intelligent Systems), Distillation Defenses Easily Break After Reinforcement Learning, arXiv 2609.35699 v1, 2026-09-28, 34 pp, empirical. §1–3 + Table 1 and Table 5 (RL vs distillation, distill → RL), Appendix A.3–A.4 (Qwen2.5-Math-7B outlier; mode-covering vs mode-seeking theorems), §4 + Table 6 and Appendix B.3 + Table 7 (antidistillation sampling on Qwen2.5-0.5B and Llama-3.2-3B), §5 + Figures 7–8 (summary-expansion attack; figure values read from bar labels in the page images), Appendix C.2 + Figure 12 (signature/encrypted-reasoning extraction via Azure, token-count verification), Appendix C.3 + Figures 13–15 and Tables 8–9 (ablations), §6 (response- vs batch-level defenses), §7 (limits). Parse warning: Table 9's header row is welded across cells in the docling parse (the "with / without forced thinking" labels split over value columns). Its values, and Tables 1, 5, 6, 7 and 8, were reconciled cell for cell against pdftotext -layout on the local PDF. Table 4 was not cited. Disclosed to Google, OpenAI, Anthropic and Microsoft, who approved publication. Code is public except the extraction code. Compute came partly via UK AISI staff and Isambard-AI. Co-author overlap: Panfilov is first author of the extraction attack used for the full-trace baseline
  • GPT-6.2 Astra and Sol System Card — OpenAI, 2026-11-17 (empirical, first-party). Cited only for §2.2.5, OpenAI's statement that it closed the encrypted-reasoning replay pathway, and Table 12's extraction rates. Fuller treatment on Illicit Distillation
§ end
Cited by 10
Related articles
  • Illicit Distillation

    Industrial-scale covert extraction of a frontier model's capabilities into an unauthorized student via account fraud: A…

  • Anthropic

    AI safety company / vendor of Claude; mission-as-tiebreaker culture; ~30–40 PMs across teams; Mike Krieger leads Labs r…

  • Autonomous Intrusion

    The class of attack in which a model or a collective of agents conducts a network intrusion end-to-end — the campaign r…

  • LLM-Driven Vulnerability Research

    The emergent cyber-capability ladder from Opus 4.6 through Mythos 5 and Opus 5: autonomous zero-day discovery, full exp…

  • Responsible Scaling Policy Evaluations

    Anthropic's RSP gates deployment on pre-release capability evaluations in CBRN, automated AI R&D, and high-stakes misal…