arXiv:2512.09403cs.LG2025-12被引 6

黑盒蒸馏攻击可低成本复制医疗大模型能力并移除安全机制

Black-Box Behavioral Distillation Breaks Safety Alignment in Medical LLMs

  • 仅通过输出接口发起4.8万条指令,用低秩适配微调替代模型
  • 蒸馏模型在86%恶意提示下生成不安全内容,远超原模型的66%
  • 适用于医疗AI安全评估与防御系统设计者,警示黑盒部署风险

随着医疗大语言模型日益融入临床流程,其对齐鲁棒性与安全性问题愈发突出。现有模型提取研究多聚焦分类模型或记忆泄露,忽视了安全对齐生成式医疗LLM的脆弱性。本文提出一种黑盒蒸馏攻击,仅通过输出访问即可复现安全对齐医疗LLM的领域特定推理能力。通过对Meditron-7B发起48,000条指令,收集25,000组良性指令-响应对,利用LoRA在零对齐监督下微调LLaMA3 8B代理模型,无需访问模型权重、安全过滤器或训练数据。成本仅12美元,该代理模型在良性输入上保持高保真度,却在86%的对抗性提示中生成不安全输出,显著高于Meditron-7B(66%)和未微调基础模型(46%)。这揭示出功能与伦理间的显著鸿沟:任务能力可迁移,而对齐机制崩溃。为分析此崩溃,我们构建动态对抗评估框架,结合生成查询(GQ)有害提示生成、验证器过滤、类别级失败分析与自适应随机搜索(RS)越狱攻击。同时提出分层防御体系,作为黑盒部署中实时对齐漂移的原型检测器。结果表明,仅使用良性数据的黑盒蒸馏构成现实且未被充分认识的威胁:攻击者可低成本复制医疗LLM能力并剥离安全机制,凸显需建立面向提取的安全监控机制。

原文摘要 · Abstract (English)

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安全对齐黑盒攻击大模型蒸馏

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。