NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Antidistillation Sampling

Yash Savani, Asher Trockman, Zhili Feng, Yixuan Even Xu, Avi Schwarzschild, Alexander Robey, Marc Anton Finzi, J Zico Kolter

TL;DR

Antidistillation sampling is a novel defense mechanism that "poisons" the reasoning traces generated by frontier LLMs to prevent competitors from using them for model distillation. By strategically perturbing next-token probabilities, the method ensures that while the model remains highly accurate for users, the generated text becomes a toxic training set that significantly degrades the performance of any "student" model trained on it.

Overview of Antidistillation Sampling

What Problem Does This Paper Address?

In the current AI arms race, "reasoning traces" (like those produced by OpenAI’s o1 or DeepSeek-R1) are the ultimate intellectual property. These step-by-step chains of thought significantly boost model performance on complex tasks. However, they also create a massive vulnerability: Knowledge Distillation.

Competitors can take these high-quality traces, use them as training data for smaller, cheaper models, and replicate frontier-level capabilities at a fraction of the original training cost. Currently, model owners try to prevent this by hiding log probabilities or truncating outputs, but these methods hurt user experience. The authors tackle a fundamental question: Can we provide high-quality reasoning traces to users while making those same traces useless for training a competitor's model?

Methods

The authors introduce Antidistillation Sampling, which modifies the standard softmax sampling process.

  1. The Proxy Model: Since the model owner doesn't know exactly what architecture a "thief" might use, they employ a "proxy student" model (e.g., a smaller model from the same or a different family).
  2. The Poisoning Objective: The goal is to select tokens that have a high likelihood under the original model (to maintain accuracy) but, if used for training, would move the student's weights in a direction that increases loss on a downstream task (like math or coding).
  3. Efficient Implementation (Finite-Difference): Calculating the exact gradient of a student's future loss for every possible token in the vocabulary is computationally impossible. The authors derive a clever shortcut: they use a finite-difference approximation. By performing two forward passes on the proxy model—one with slightly perturbed weights in the direction of the task gradient and one in the opposite direction—they can estimate which tokens will most effectively "poison" the student's learning process.
  4. The Adjusted Distribution: The final sampling distribution is a blend of the original log-probabilities and an "antidistillation penalty" term, controlled by a hyperparameter $\lambda$.

Datasets

The method was evaluated on three primary reasoning benchmarks:

  • GSM8K: Grade school math word problems.
  • MATH: More advanced mathematical reasoning.
  • MMLU: A massive multitask language understanding benchmark.

The researchers used DeepSeek-R1-Distill-Qwen-7B as the teacher model, Qwen-2.5-3B as the proxy, and Llama-3.2-3B as the "actual" student to test if the poisoning generalizes across different model architectures.

Key Insights and Ideas

  • Generalization is Key: The most surprising finding is that you don't need to poison the exact model the competitor is using. Poisoning a Qwen proxy model effectively sabotages a Llama student. This suggests that the "vulnerabilities" in reasoning logic are shared across model families.
  • Learnable but Toxic: Distillation on poisoned traces doesn't just fail to converge; the student's training loss actually goes down while its performance on the actual task (the holdout set) crashes. The student is successfully "learning" the traces, but it's learning a logic that is fundamentally broken for the target task.
  • The Utility-Security Trade-off: The paper demonstrates a Pareto frontier. A model owner can choose to sacrifice a tiny bit of teacher accuracy (e.g., 1-4%) to cause a massive drop in the quality of any distilled clones.

Key Results

  • Significant Degradation: On GSM8K, a student model that normally reaches 61% accuracy through standard distillation drops to just 25% accuracy when trained on antidistillation traces.
  • Minimal Teacher Impact: The authors show that they can bring student accuracy down to the level of an "undistilled" base model while the teacher model still maintains roughly 70% accuracy (down from a nominal 91%).
Antidistillation effect on GSM8K
  • Practicality: In a "conservative" setting where the teacher's performance is only reduced by 1% (from 90% to 89%), the resulting student model's accuracy still drops from 65% to 56%—a meaningful deterrent for a competitor.
  • Computational Overhead: The method requires two extra forward passes on a (usually smaller) proxy model per token. While this roughly doubles the compute cost of generation, it is a feasible trade-off for protecting billion-dollar IP.

Limitations and Future Work

  • Computational Cost: While more efficient than naive approaches, doubling the forward-pass cost is still significant for high-traffic APIs. Future work might involve using even smaller "draft" models as proxies.
  • Adaptive Distillers: The paper acknowledges the possibility of an "arms race." A sophisticated distiller might try to detect poisoned tokens or use "de-noising" techniques to clean the traces before training.
  • Task Specificity: The current method requires a "downstream loss" (like a math dataset) to define the poisoning direction. It is unclear how well this works for general-purpose "chat" utility where the "task" is less well-defined.
  • Safety Implications: The authors note that distillation often bypasses safety training. Antidistillation could potentially be used to ensure that distilled models do not inherit the ability to generate harmful content, though this remains to be tested.

Summary updated

BibTeX
@inproceedings{savani2025antidistillation,
  author = {Yash Savani and Asher Trockman and Zhili Feng and Yixuan Even Xu and Avi Schwarzschild and Alexander Robey and Marc Anton Finzi and J Zico Kolter},
  title = {{Antidistillation Sampling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Vo2UHqMu8t},
}
Figure