抗蒸馏成本低廉:通过风格污染实现轻量级抗蒸馏
Antidistillation is Cheap: Lightweight Distillation-Resistance via Stylistic Corruption
AI总结:
本研究提出轻量级抗蒸馏防御框架,通过向教师模型激活注入风格引导向量破坏学生蒸馏学习,开销可忽略且保留文本自然性,可抵御黑盒API下的序列级蒸馏攻击。
摘要:
知识蒸馏(KD)是将大语言模型(LLMs)的能力迁移到更小、更专业的学生模型的高效范式。在前沿模型被限制在黑盒API后的商业部署中,序列级蒸馏仍是竞争对手以极低开发成本克隆专有能力的有效途径。现有防御方法大多依赖代理模型操纵下一个token的采样,这会增加计算开销和实时推理延迟。本研究提出一种轻量级防御方法,在恶意查询时动态向教师模型的激活中注入风格引导向量。该框架具有极强灵活性,允许部署者自定义目标防御风格并动态混合以最大化风格方差。关键是,这种推理时干预在恶意查询期间保留语义实用性和流畅性,误导对手以为自己在提取原始教师输出,而标准用户仍能收到原始、未修改的响应。实验表明,该框架成功破坏学生学习,实现显著的抗蒸馏性能,同时开销可忽略且保留文本自然性。我们的代码可在该https URL获取。
英文摘要:
Knowledge distillation (KD) is a highly effective paradigm for transferring capabilities from large language models (LLMs) to smaller, more specialized student models. In commercial deployments where frontier models are restricted behind black-box APIs, sequence-level distillation remains a potent vector for competitors to clone proprietary capabilities at a fraction of the development cost. Existing defenses mostly rely on surrogate models to manipulate next-token sampling, which increases computational overhead and real-time inference latency. In this work, we propose a lightweight defense that injects style-steering vectors into the teacher model's activations upon malicious queries. The framework allows hosts to customize the target defensive styles and switch among them per request, thereby making it harder for adversaries to identify a stable, learnable signature. Because this inference-time intervention largely preserves answer correctness and avoids the degenerate artifacts of prior defenses, adversaries are misled into believing they are extracting valid teacher outputs. Meanwhile, standard consumers continue to receive original, unmodified responses. Our experiments demonstrate that the framework consistently degrades student learning across model families, with minimal inference overhead. Our approach serves as a low-cost deterrent that raises the attacker's extraction and post-hoc sanitization costs. Code is available at https://github.com/anhtu96/distill-resist.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。