FROST: A Free-Energy Framework for Reducing Capability Transfer under Black-Box QueriesFROST: A Free-Energy Framework for Reducing Capability Transfer Under Black-Box Querying
The authors propose teacher-side anti-distillation decoding FROST; with a DeepSeek teacher, a Llama-3.1-8B attacker, trace-rich, and B=10^5, CTRQ decreases by 43.2% compared with nominal.
The attacker has black-box adaptive query access to the teacher, collects outputs within budget B, and trains a student by imitation, covering answer-only, trace-rich, cross-architecture, and PEFT. The defense exposes only Q(y|x), is identity-free and prompt-local, and does not use accounts, IP, or cross-session telemetry.
- Black-box API outputs can be collected as supervision for student models, and long reasoning and code trajectories are especially easy to distill. The authors focus on how to reduce the learnability of each output while preserving the teacher's utility for normal users.
- FROST uses the attention-transport thermodynamic length of a proxy student to estimate the learnability of candidate tokens, combines structural and optional provenance energies, and applies Gibbs reweighting to the top-k candidates within a KL trust region; high-confidence steps directly reuse the teacher's output.
- The authors report that with a DeepSeek teacher, a Llama-3.1-8B attacker, trace-rich, and B=10^5, CTRQ decreases by 43.2%, and the teacher utility ratio is 0.982; after excluding the evaluated attacker family, the reduction is still 27.0–38.2%.
- The authors state there is no formal security guarantee; proxy coverage, token-local approximation and adaptive attacks remain limitations, and only the output channel is protected. Experiments use open-weight models, mainly English text; HarmBench is reported only qualitatively, without retained per-item counts.
- Evaluated models
- DeepSeek-R1-Distill-Qwen-7BQwen2.5-7B-InstructGemma-2-27B-ITMinistral-8B-Instruct-2410
- Metrics
- CTRQCTR0κdistillteacher utility ratioMT-Bench-style judge score
Researchers propose FROST, a teacher-side anti-distillation framework addressing the risk that black-box queries turn frontier model API outputs into supervision for downstream student models. The method formulates defended generation as a constrained free-energy minimization problem, applying Gibbs reweighting to the teacher distribution to suppress outputs of high downstream learning value, combined with an anti-copy energy, a KL trust region, and a stateless, prompt-local design that requires no telemetry or identity signals. With a DeepSeek-R1-Distill-Qwen-7B teacher and three attacker students, across reasoning, knowledge and code benchmarks, FROST reduces the defense-normalized capability transfer rate CTR_Q by 27.0-38.2% relative to standard decoding even when the evaluated attacker family is excluded from the surrogate set (a deployment-relevant held-out setting), and by 43.2% against a Llama-3.1-8B attacker matching the surrogate (trace-rich, B=10^5). A separate sweep over four teachers of 7B-27B parameters yields similar reductions, and matched-trace diagnostics confirm that the geometric signal predicts learnability beyond length and surface structure.
Related events and news
1 events · 0 news mentions
- This event's paper
FROST:教师侧抗蒸馏框架降低能力迁移
Paper analysis
What problem does this paper attempt to solve?
The authors study how to reduce the distillability of teacher outputs under black-box queries while maintaining normal user utility.
Core question: can the supervision value of black-box distillation be reduced directly at the teacher's output channel, without retraining the teacher, editing the model, or identity telemetry?
- Problem setting: the authors argue that explanations, decompositions, and code in API outputs are not only answers but also student training supervision that can be collected repeatedly; unauthorized distillation also carries the risk of leaking data and control logic.
- Position of existing methods: the authors state that watermarking focuses on post-hoc attribution rather than reducing training value; ADS globally perturbs sampling, PART requires an independent editor, and DOGe requires modifying the teacher during training.
- Core observation: the authors hypothesize that transferable traces cause large cross-layer attention-routing displacement in a proxy student; attention-transport thermodynamic length can serve as an operational proxy for learnability, not a proven metric.
- Proposed defense: FROST combines geometric, structural, and optional provenance energies into an anti-copying energy, reweights teacher candidate tokens within a KL trust region, and measures the student's ability to recover with defended-normalized CTRQ.
- Threat model:
- Goal: the attacker uses collected input-output pairs to train a student by imitation and recover the teacher's capabilities.
- Knowledge and access: black-box adaptive query access, budget B; no weights or gradients are required.
- Capabilities: adaptive query strategies can be used, covering answer-only, trace-rich, cross-architecture, and PEFT-style attacks.
- Victim system and defense boundary: a teacher exposing a black-box API; the defense controls only Q(y|x) under the current prompt, is identity-free and prompt-local, and does not directly modify the student.
What related research exists?
Related work spans distillation, model extraction, teacher-side defenses and controlled decoding; the authors position FROST as a candidate-level output defense.
Knowledge distillation and reasoning transfer
- Hinton et al. (2015), Gou et al. (2021): treat distillation as a compression method in which the student matches the teacher; subsequent work, including Distilling Step-by-Step, Reasoning Teachers, Teaching Small Language Models to Reason, and Orca, studies supervision over reasoning traces.
- Self-Instruct (Wang et al., 2023): uses a stronger model to generate instruction data; Gudibande et al. (2024) caution that when foundational capabilities are insufficient, imitation of proprietary models may be relatively shallow.
Model extraction and output leakage
- Tramèr et al. (2016), Knockoff Nets (Orekondy et al., 2019): recover model functionality from a prediction API and from query input-output pairs, respectively; ActiveThief, Jagielski et al., and Thieves on Sesame Street extend query efficiency and NLP scenarios.
- Zhao et al. (2025) and others: a survey places functional extraction, training data extraction, and prompt reconstruction within the same security landscape; on this basis, the authors focus on how much reusable supervision remains after outputs have been exposed.
Extraction and anti-distillation defenses
- PRADA, Prediction Poisoning, Adaptive Misinformation: monitor queries or perturb returned probabilities, respectively; the authors note that they target low-dimensional class probabilities and that some rely on query distributions or identity signals.
- ADS (Savani et al., 2025): globally perturbs next-token sampling at inference time; PART (Ding et al., 2025; Ma et al., 2026): uses an independent editor to rewrite traces.
- DOGe (Li et al., 2025): adversarially fine-tunes the teacher's last layer; DistillGuard-style (Jiang, 2026): rewrites, poisons, or removes CoT at the corpus level.
Controlled decoding, watermarking, and geometric tools
- PPLM, FUDGE, GeDi, Controlled Decoding: control generation with attributes or rewards while staying close to the base model; FROST follows the KL-regularized Gibbs form and changes the control signal to distillability.
- KGW, SynthID-Text, etc.: favor sampling that supports attribution; Sander et al., Abnar and Zuidema, and Crooks provide attention transport and path length tools.
Experimental baselines and benchmarks: comparisons include nominal, stochastic, ADS, geometry-only/structure-only FROST, and PART-like, DOGe-adapted, and DistillGuard variants reimplemented under a unified protocol; benchmarks are GSM8K, MATH-500, MMLU, HumanEval, and MBPP, utility is additionally assessed with MT-Bench-style judging, and safety checks use HarmBench.
The authors state that FROST's distinction is being inference-time, candidate-selective, editor-free, and stateless, directly targeting trace learnability; and in Appendix K.5 they state that, to their knowledge, this is the first time these tools have been combined into a learnability proxy for teacher-side anti-distillation.
How does the paper address this problem?
FROST uses proxy students to route-estimate learnability by length, then reweights the teacher's top-k candidates under a KL constraint.
The overall idea is to formulate defensive decoding as free-energy minimization subject to utility and KL-deviation constraints. FROST does not modify the student; instead, it lowers the probability of highly learnable candidates during teacher generation.
Problem setting and core objective
- The teacher's nominal distribution is P0(y|x), and the attacker can only see the defended distribution Q; it collects trajectories within budget B and minimizes imitation loss.
- The optimization requires overall utility no lower than Umin and average KL deviation no greater than δ, to rule out arbitrary truncation or randomization defenses.
- For each prompt, the authors write Fβ(Q;x)=𝔼y∼ Q[Ex(y)]+β−1DKL(Q|P0): the first term lowers anti-copying energy, and the second limits deviation from the teacher.
- Its sequence-level optimal solution is Q⋆(y|x)=Zβ(x)−1P0(y|x)e−β Ex(y); the larger β is, the more high-energy outputs are downweighted, but the actual decoder is only a token-local approximation.
Geometric anti-copying energy
- For scoring model R, each attention head at each layer is row-entropy-weighted into a row-stochastic transport kernel, with lower-entropy heads weighted higher.
- The log-routing displacement between kernels of adjacent layers forms a quadratic form, and accumulating square roots across layers gives the attention-transport thermodynamic length L; the authors stress that this is a geometric naming and does not introduce a thermodynamic dissipation guarantee.
- The default proxy set is Qwen2.5-3B, Mistral-7B, Llama-3.1-8B, with M=3; the teacher is not a proxy and only provides an auxiliary term.
- The geometric score is mixed as 0.70 proxy, 0.20 prefix-local smoothing, 0.10 teacher; inference computes no gradients or matrix inverses.
Composite energy and execution decoding
- Total energy consists of geometry, structure and optional provenance, with default outer weights (0.75, 0.20, 0.05); the geometric term is the main signal.
- The structure term penalizes surface statistics such as reusable reasoning organization and code scaffolding; the provenance term uses a KGW-style candidate-level bias and is only auxiliary; full definitions are in Appendix C, D.
- At each step, the teacher's top-k shortlist is taken first; if the top-1 probability is at least τconf, the nominal argmax is output directly; otherwise the composite energy is computed and token-local Gibbs reweighting is performed, greedily selecting the highest-probability candidate.
- Defaults are β=0.35, k=3, attention-layer stride r=4, τconf=0.85; proxies use 4-bit NF4, the teacher is not quantized, and micro-batch is 8 (Table 5, 15).
Training, harvesting and success determination
- Harvesting is split into benign, structured and mixed regimes, each with answer-only and trace-rich, B∈{10^3,10^4,10^5}; non-adaptive prompts are fixed in advance, and the adaptive setting adjusts subsequent queries based on outputs already collected.
- All three attack students undergo full SFT and PEFT/LoRA, sharing initialization, optimization schedule, sequence length and budget, so that transcript source is the only varying factor.
- The main metric CTRQ is the average ratio, across five benchmarks, of "the student's post-distillation gain over its base" to "the defended teacher's gap from the same base", clipped to [0,1]; nominal-normalized CTR0 is also reported.
- κdistill(B)=CTRQ(B)/B denotes distillation efficiency per query; teacher utility is measured separately, to avoid mistaking a drop in student scores for teacher degradation.
What experiments did the paper conduct?
Experiments cover four teachers, three attacking students, and multiple budgets; the main results include matched and held-out proxies, and also measure utility, adaptive attacks, and cost.
Experimental setup
- Teachers and attackers: teachers are DeepSeek-R1-Distill-Qwen-7B, Qwen2.5-7B-Instruct, Gemma-2-27B-IT, Ministral-8B-Instruct-2410; attack students are Qwen2.5-3B-Instruct, Mistral-7B-Instruct-v0.3, Llama-3.1-8B-Instruct.
- Benchmarks and scale: GSM8K, MATH-500, MMLU, HumanEval, MBPP; the N in Table 9 are 1,319, 500, 14,042, 164, 427 respectively, totaling 16,452.
- Default condition: unless otherwise stated, DeepSeek teacher, Llama-3.1-8B attacker full FT, trace-rich, B=10^5, five-task aggregation; the evaluated attacker is also in the proxy ensemble, which the authors call the matched-proxy reference condition.
- Baselines: nominal, stochastic, ADS, geometry-only FROST; additionally PART-like, DOGe-adapted, DG-Paraphrase, DG-Poison, DG-CoT removal, DG-Token limit reimplemented under the same protocol.
- Judging and repetition: main results are mean±SD over three seeds {17,29,43}; utility additionally uses 400 held-out MT-Bench-style prompts with a 10-point independent judge, whose model name the paper does not state.
- Training protocol: both full FT and PEFT train for 3 epochs, effective batch size 64, max length 4096, bf16; the harvesting pool is 100,000 prompts per regime, and budgets are nested prefixes of the same prompt stream.
Main results
The table below is DeepSeek teacher, Llama-3.1-8B attacker full FT, trace-rich, B=10^5; according to Table 2, lower student task scores mean less recovered capability.
Swipe horizontally to read the table
Transcript source GSM8K MATH MMLU HEval MBPP CTRQ ↓ Red. Nominal 62.8 33.6 64.6 36.3 56.8 0.812 ± 0.007 – Stochastic 59.3 31.2 62.8 33.4 49.6 0.737 ± 0.006 9.2% ADS 54.0 26.1 59.3 28.7 44.4 0.630 ± 0.007 22.3% FROST (Geom.) 47.5 21.3 54.0 23.2 41.9 0.509 ± 0.007 37.3% FROST (Full) 43.0 19.9 52.2 20.8 42.6 0.461 ± 0.007 43.2% - The authors' claim: FROST reduces student recovery capability at each budget, and the gap from nominal widens with budget; the B=10^5 endpoints in Figure 2 come from Table 2, and intermediate budgets are drawn only according to the described curve shape.
- Statistics and utility: the authors report that the 95% CTRQ intervals of adjacent methods do not overlap; full FROST's teacher utility ratio is 0.982, and the gap from the nominal teacher on each benchmark is within 1.8% (Table 9).
- Normalization check: after switching to the nominal teacher denominator, the macro-average CTR0 is 0.450 ± 0.007, while CTRQ is 0.461 ± 0.007; the authors take this to mean the reduction is not caused by lowering their own denominator.
Comparison with other teacher-side defenses
- Unified reimplementation: in Table 1 under DeepSeek trace-rich, B=10^5, PART-like and DOGe-adapted have CTRQ of 0.585 ± 0.017 and 0.524 ± 0.024 respectively; full FROST is 0.461 ± 0.007.
- Negative results: DG-Poison (r=15%) has CTRQ 0.899 ± 0.009, which is a −8.4% reduction relative to that sweep's nominal 0.829 ± 0.014, i.e. transfer increases; DG-Paraphrase reduces by only 1.3%.
- The authors' interpretation: the authors state that FROST requires no training-time teacher optimization or second editor; they also stress that these numbers are their own reimplementations and cannot be directly compared with results from the original papers using different teachers, students and metrics.
Attacker and teacher generalization
- Cross-attacker: Table 12 reports that under full FT, the reductions for Qwen2.5-3B, Mistral-7B, Llama-3.1-8B are 34.21 ± 0.65%, 32.54 ± 0.26%, 43.17 ± 0.62% respectively; under PEFT they are 42.42 ± 1.13%, 36.05 ± 0.78%, 43.20 ± 1.44% respectively.
- held-out proxy: in Table 19, after excluding the evaluated attacker's family, the three reductions are 29.06 ± 0.24%, 27.00 ± 0.27%, 38.18 ± 1.16%; the authors state that proxy mismatch weakens but does not eliminate the effect.
- Cross-teacher: in Table 21 under matched trace-rich, B=10^5, the reductions for DeepSeek, Gemma-2-27B, Qwen2.5-7B, Ministral-8B are 43.17 ± 0.62%, 41.88 ± 0.61%, 40.87 ± 0.75%, 39.60 ± 0.44% respectively.
Adaptive attacks, mechanism and utility
- Closed-loop extraction: after five rounds, full FROST's CTRQ is 0.46 versus nominal's 0.72, and per-query efficiency is 1.6× lower; the authors state that both adaptive and defense-aware queries raise transfer for all methods but do not change the ranking (Figure 9).
- Matched-trajectory diagnostic: on Qwen2.5-3B, GSM8K+MATH, the CTRQ of the high-L and low-L groups are 0.574 ± 0.026 versus 0.382 ± 0.014, with a paired difference of +0.191 ± 0.013, 95% CI [0.160,0.223]; the length difference is 0.3%, and the structure-score difference is 0.004 (Table 18).
- Judge utility: on 400 prompts, the defended teacher is 7.8698 and nominal is 8.0543, a difference of −0.1845, 95% CI [−0.2263,−0.1427]; win/tie/loss is 15.75%/43.00%/41.25% (Table 11).
Other ablations and analyses
- Components: averaged over four teachers, the CTRQ ranges for provenance-only, structure-only, geometry-only and full FROST are 0.67–0.70, 0.58–0.61, 0.49–0.52, 0.43–0.48 respectively (Appendix L.3).
- Harvesting format: under DeepSeek, B=10^5, answer-only reduces by 32.8% and trace-rich by 43.2% (Table 13).
- β sweep: as β goes from 0.10 to 0.70, the reduction goes from 3.2% to 58.5%, and utility loss from 0.35% to 7.2%; only the β=0.35 row has three-seed statistics (Table 23).
- Cost: in eight re-profiling runs of the default configuration on A100-80GB, decoding overhead is +65.95 ± 1.69 pp and peak VRAM is 68.633 ± 0.317 GB; the lightweight configuration is about +27%, but was not tested against adaptive attacks.
- Security and reproducibility gaps: the HarmBench-style check only qualitatively states that no systematic increase in harmful compliance or refusal inflation was observed, without retained per-item counts or prompt counts; the shortlist has no sweep, and the structural-weight selection grid and τthink are also not retained.
What are some points that can be further explored?
The authors list open problems including security guarantees, proxy approximation, adaptive attacks and deployment coverage, and plan to study multilingual harvesting.
Limitations and future directions noted by the authors
- No formal security guarantee: FROST is not a cryptographic defense and cannot make extraction impossible; the thermodynamic motivation is only intuition, not a formal privacy guarantee (Limitations).
- Proxy and scoring approximation: a finite proxy ensemble cannot cover the future attack space; top-k, prefix-local and layer subsampling may misrank unseen attackers or long structured outputs, and the authors propose better amortized scoring and longer-horizon energy (Limitations).
- Adaptive attacks: a gate-aware attacker may retain unmodified segments; the authors list such filtering attacks, prompt-optimization, multi-stage harvesting and reconstruction-based training as future evaluations (Limitations).
- Deployment and coverage: validation is needed under the latency, throughput, memory and cost of production-like serving, and extension to multilingual, low-resource-language, multimodal, speech and embodied-agent settings (Limitations).
- Safe interaction and protection scope: research is needed on whether reducing learnability affects refusal quality, calibrated helpfulness and user trust; the method does not address checkpoint theft, insiders, white-box, gradient leakage, etc. (Limitations).
- Open science questions: the authors state that capability transfer itself is not yet fully understood, and future work needs to explain why some trajectories teach better; the Conclusion also lists stronger adaptive attackers and multilingual harvesting.
Experimental coverage
- 4 teachers and 3 attack students were tested, all open-weight models; attack students ran both full FT and PEFT, and main results use three seeds.
- Harvesting covers three regimes, answer-only/trace-rich, B∈{10^3,10^4,10^5}, plus a five-round closed loop and one minimal defense-aware variant.
- Evaluation focuses on reasoning, knowledge, code and dialogue in English text; MT-Bench-style utility uses 400 prompts, and the paper does not state the model name of the independent judge.
- Cost figures come from eight re-profiling runs of the default configuration on A100-80GB, not from the original harvesting logs; the lightweight configuration was not tested against adaptive attacks.
- HarmBench did not retain per-item counts or prompt counts; shortlist scaling, the structural-weight selection grid and τthink also have no auditable record (Appendix J.4, J.7).
Summarize the main content of the paper
FROST is a teacher-side candidate-level anti-distillation decoding; the authors report that it reduces capability transfer while retaining most of the teacher's utility.
FROST targets black-box API distillation: the attacker collects teacher outputs to train a student, and the defender can only adjust the output distribution under the current prompt, without relying on identity or cross-session telemetry.
- Method core: three proxy students' cross-layer attention-transport thermodynamic length is used to estimate candidate learnability, then structure and optional provenance energy are added, and Gibbs reweighting is applied to top-k tokens within a KL trust region; high-confidence steps are not rescored.
- Main result: under the matched-proxy condition of DeepSeek teacher, Llama-3.1-8B attacker full FT, trace-rich, B=10^5, CTRQ drops from nominal's 0.812 ± 0.007 to 0.461 ± 0.007, a reduction the authors report as 43.2% (Table 2).
- Utility and controls: under the same condition the teacher utility ratio is 0.982; ADS's CTRQ reduction is 22.3%, the strongest in the unified reimplementation, DOGe-adapted, is 36.8%, and full FROST is 43.2% (Table 1, 9).
- Robustness: after excluding the evaluated attacker's family, the three attackers still reduce by 27.0–38.2%; the four teachers reduce by 39.6–43.2% under matched trace-rich, B=10^5 (Table 19, 21).
- Mechanism evidence: after matching length, correctness, judge utility and structure score, high-L trajectories still have a paired CTRQ higher by +0.191 ± 0.013; the authors take this as support that routing length contains an additional learnability signal (Table 18).
- Cost and boundaries: the decoding overhead of the default configuration in re-profiling is +65.95%; after five rounds of adaptive extraction, FROST and nominal have CTRQ of 0.46 versus 0.72. The authors stress that this is not a formal security guarantee, protects only the output channel, and that proxy mismatch, token-local approximation, stronger adaptive attacks and production deployment still require research.
Research lineage
2 foundations · 0 follow-ups in libraryNo later in-library follow-ups recorded yet.
Hover or focus a connected paper to inspect the citation context.
Related papers
Show 3 more papers
- No Free Efficiency: Revisiting the Trade-off Between Training Efficiency and Model VulnerabilityAnalysis / interpretabilityarXiv