Optimus: 一种用于在微调对话AI时缓解毒性行为的稳健防御框架
Optimus: A Robust Defense Framework for Mitigating Toxicity while Fine-Tuning Conversational AI
AI总结:
本研究提出Optimus框架,通过整合训练无关的毒性分类方案和双重策略对齐过程,有效缓解微调过程中的毒性问题,并在有毒性分类器偏差时仍能保持高召回率,优于现有最佳防御方法StarDSS。
摘要:
定制化大型语言模型(LLMs)于不可信数据集上存在注入毒性行为的严重风险。在本文中,我们引入Optimus,一种新的防御框架,旨在在保持对话实用性的同时减轻微调危害。与现有防御方法依赖精确的毒性检测或限制性过滤不同,Optimus解决的是在毒性分类器不完美或有偏见时确保鲁棒缓解的关键挑战。Optimus整合了训练无关的毒性分类方案,重新利用商用LLMs的安全对齐性,并采用结合合成“治愈数据”与直接偏好优化(DPO)的双重策略对齐过程,以高效地将模型引导至安全方向。广泛的评估显示,即使依赖极度有偏见的分类器(召回率降高达85%),Optimus仍能缓解毒性。Optimus在性能上优于现有最佳防御方法StarDSS,并表现出对适应性对抗和越狱攻击的强大抵抗力。我们的源代码和数据集可在https://github.com/secml-lab-vt/Optimus上获得。
英文摘要:
Customizing Large Language Models (LLMs) on untrusted datasets poses severe risks of injecting toxic behaviors. In this work, we introduce Optimus, a novel defense framework designed to mitigate fine-tuning harms while preserving conversational utility. Unlike existing defenses that rely heavily on precise toxicity detection or restrictive filtering, Optimus addresses the critical challenge of ensuring robust mitigation even when toxicity classifiers are imperfect or biased. Optimus integrates a training-free toxicity classification scheme that repurposes the safety alignment of commodity LLMs, and employs a dual-strategy alignment process combining synthetic "healing data" with Direct Preference Optimization (DPO) to efficiently steer models toward safety. Extensive evaluations demonstrate that Optimus mitigates toxicity even when relying on extremely biased classifiers (with up to 85% degradation in Recall). Optimus outperforms the state-of-the-art defense StarDSS and exhibits strong resilience against adaptive adversarial and jailbreak attacks. Our source code and datasets are available at https://github.com/secml-lab-vt/Optimus
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。