用审计代理提前发现模型微调中的恶意攻击,即使数据看似无害也能识别。
Detecting Adversarial Fine-tuning with Auditing Agents
- 引入审计代理,分析微调数据与模型,评估风险等级。
- 在1%误报率下检测出56.2%的恶意微调,包括隐蔽加密攻击。
- 适合关注大模型安全的开发者与平台方使用。
大型语言模型(LLM)提供商开放微调接口,使用户可对前沿模型进行定制。然而,攻击者利用微调权限可绕过安全防护,尤其危险的是,此类攻击可能使用仅隐含有害的语料库,难以被常规内容审查发现。本文提出一种微调审计代理机制,在模型部署前检测恶意微调行为。审计代理可访问微调数据集、微调前后模型,并输出风险评分。我们在8种文献中强攻击方法和5个良性微调模型上共执行超过1400次独立审计。这些攻击无法通过基础内容过滤识别,凸显任务挑战性。在最优配置下,审计代理在1%误报率下实现56.2%的检测率。最值得关注的是,该代理能识别逃逸安全评估与数据审查的隐蔽加密攻击。尽管无意中导致细微安全退化的良性微调仍具挑战,本文为该领域建立了基准配置。代码已开源:https://github.com/safety-research/finetuning-auditor。
原文摘要 · Abstract (English)
Large Language Model (LLM) providers expose fine-tuning APIs that let end users fine-tune their frontier LLMs. Unfortunately, it has been shown that an adversary with fine-tuning access to an LLM can bypass safeguards. Particularly concerning, such attacks may avoid detection with datasets that are only implicitly harmful. Our work studies robust detection mechanisms for adversarial use of fine-tuning APIs. We introduce the concept of a fine-tuning auditing agent and show it can detect harmful fine-tuning prior to model deployment. We provide our auditing agent with access to the fine-tuning dataset, as well as the fine-tuned and pre-fine-tuned models, and request the agent assigns a risk score for the fine-tuning job. We evaluate our detection approach on a diverse set of eight strong fine-tuning attacks from the literature, along with five benign fine-tuned models, totaling over 1400 independent audits. These attacks are undetectable with basic content moderation on the dataset, highlighting the challenge of the task. With the best set of affordances, our auditing agent achieves a 56.2% detection rate of adversarial fine-tuning at a 1% false positive rate. Most promising, the auditor is able to detect covert cipher attacks that evade safety evaluations and content moderation of the dataset. While benign fine-tuning with unintentional subtle safety degradation remains a challenge, we establish a baseline configuration for further work in this area. We release our auditing agent at https://github.com/safety-research/finetuning-auditor.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。