Towards Distillation-Resistant Large Language Models: An Information-Theoretic Perspective
Hao Fang, Tianyi Zhang, Tianqu Zhuang, Jiawei Kong, Kuofeng Gao, Bin Chen, Leqi Liang, Shu-Tao Xia, Ke Xu
TL;DR
The paper tackles the risk of knowledge distillation from proprietary LLMs by logit distributions, introducing a defense grounded in conditional mutual information $\mathcal{I}(X;Z|Y)$. It learns a post-processing transformation $Z' = \mathcal{M}Z$ that provably reduces distillation-relevant information, and optimizes $\mathcal{M}$ via two IB-inspired losses: a cross-entropy surrogate to preserve $\mathcal{I}(Z;Y)$ and a gradient-based term to suppress $\mathcal{I}(X;Z)$ through distillation signals, with a low-rank parameterization $\mathcal{M}=\mathbf{E}+\mathbf{AB}$ for scalability. Experiments across Qwen and Llama models show the method preserves teacher accuracy while significantly degrading distillation performance across multiple datasets (GSM8K, MMLU, MATH) and KD algorithms, including KD, RKLD, AlphaNet, and ABKD. This approach provides a principled, practical mechanism to protect LLM IPs from logit-based KD and lays groundwork for more robust defenses in real-world deployment. The method leverages $Z'$, $Y$, and $X$ in a way that disrupts distillation without compromising user-facing utility, offering a valuable tool for secure model sharing and deployment in API-based ecosystems.
Abstract
Proprietary large language models (LLMs) embody substantial economic value and are generally exposed only as black-box APIs, yet adversaries can still exploit their outputs to extract knowledge via distillation. Existing defenses focus exclusively on text-based distillation, leaving the important logit-based distillation largely unexplored. In this work, we analyze this problem and present an effective solution from an information-theoretic perspective. We characterize distillation-relevant information in teacher outputs using the conditional mutual information (CMI) between teacher logits and input queries conditioned on ground-truth labels. This quantity captures contextual information beneficial for model extraction, motivating us to defend distillation via CMI minimization. Guided by our theoretical analysis, we propose learning a transformation matrix that purifies the original outputs to enhance distillation resistance. We further derive a CMI-inspired anti-distillation objective to optimize this transformation, which effectively removes distillation-relevant information while preserving output utility. Extensive experiments across multiple LLMs and strong distillation algorithms demonstrate that the proposed method significantly degrades distillation performance while preserving task accuracy, effectively protecting models' intellectual property.
