黑盒行为蒸馏破坏医疗大语言模型的安全对齐
Black-Box Behavioral Distillation Breaks Safety Alignment in Medical LLMs
AI总结:
黑盒行为蒸馏攻击揭示医疗大语言模型的安全对齐漏洞,通过低成本手段复制模型能力并破坏安全机制。
摘要:
随着医疗大语言模型(LLMs)越来越多地融入临床工作流程,关于对齐鲁棒性和安全性的担忧正在加剧。先前关于模型提取的工作集中在分类模型或记忆泄漏上,留下了安全对齐的生成医疗LLMs的脆弱性未被充分探索。我们提出了一种黑盒蒸馏攻击,仅通过输出级访问即可复制安全对齐医疗LLMs的领域特定推理。通过向Meditron-7B发出48,000条指令查询,并收集25,000对良性指令响应对,我们通过参数高效的LoRA对LLaMA3 8B代理进行微调,在零对齐监督设置下进行训练,无需访问模型权重、安全过滤器或训练数据。以12美元的成本,代理在良性输入上实现了强大的保真度,而对86%的对抗性提示生成不安全的完成,远超Meditron-7B(66%)和未调基模型(46%)。这揭示了一个显著的功能-伦理差距,任务效用转移,同时对齐崩溃。为了分析这种崩溃,我们开发了一个动态对抗性评估框架,结合基于生成查询(GQ)的有害提示生成、验证器过滤、按类别失败分析以及自适应随机搜索(RS) jailbreak攻击。我们还提出了一种分层防御系统,作为实时检测黑盒部署中对齐漂移的原型检测器。我们的发现表明,仅良性黑盒蒸馏暴露了一个实际且未被充分认识的威胁:攻击者可以廉价地复制医疗LLM能力,同时剥离安全机制,突显了需要提取感知的安全监控的必要性。
英文摘要:
As medical large language models (LLMs) become increasingly integrated into clinical workflows, concerns around alignment robustness, and safety are escalating. Prior work on model extraction has focused on classification models or memorization leakage, leaving the vulnerability of safety-aligned generative medical LLMs underexplored. We present a black-box distillation attack that replicates the domain-specific reasoning of safety-aligned medical LLMs using only output-level access. By issuing 48,000 instruction queries to Meditron-7B and collecting 25,000 benign instruction response pairs, we fine-tune a LLaMA3 8B surrogate via parameter efficient LoRA under a zero-alignment supervision setting, requiring no access to model weights, safety filters, or training data. With a cost of $12, the surrogate achieves strong fidelity on benign inputs while producing unsafe completions for 86% of adversarial prompts, far exceeding both Meditron-7B (66%) and the untuned base model (46%). This reveals a pronounced functional-ethical gap, task utility transfers, while alignment collapses. To analyze this collapse, we develop a dynamic adversarial evaluation framework combining Generative Query (GQ)-based harmful prompt generation, verifier filtering, category-wise failure analysis, and adaptive Random Search (RS) jailbreak attacks. We also propose a layered defense system, as a prototype detector for real-time alignment drift in black-box deployments. Our findings show that benign-only black-box distillation exposes a practical and under-recognized threat: adversaries can cheaply replicate medical LLM capabilities while stripping safety mechanisms, underscoring the need for extraction-aware safety monitoring.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。