解耦安全适配器实现高效的防护措施和灵活的推理时对齐
Disentangled Safety Adapters Enable Efficient Guardrails and Flexible Inference-Time Alignment
AI总结:
本文提出解耦安全适配器框架,通过分离安全计算与任务优化基础模型,提升推理效率和开发灵活性,实验证明其在 hate speech 分类等任务中显著优于传统模型。
摘要:
现有的确保AI安全的范式,如防护模型和对齐训练,往往在推理效率或开发灵活性之间做出权衡。我们引入了解耦安全适配器(DSA),一种新的框架,通过将安全特定计算与任务优化的基础模型解耦来解决这些挑战。DSA利用轻量级适配器,利用基础模型的内部表示,能够以最小的影响实现多样化的安全功能。实验证明,基于DSA的安全防护在 hate speech 分类、检测不安全的模型输入和响应以及检测幻觉方面,相对改进达 AUC 的 53%。此外,基于DSA的安全对齐允许在推理时动态调整对齐强度,并在遵循指令性能和模型安全性之间实现细粒度的权衡。重要的是,结合DSA安全防护与DSA安全对齐可以实现上下文依赖的对齐强度,使StrongREJECT的安全性提升 93%,同时在MTBench上保持 98%的性能,相比标准安全对齐微调,总对齐税减少了 8个百分点。总体而言,DSA为更模块化、高效和适应性强的AI安全和对齐提供了有前景的路径。
英文摘要:
Existing paradigms for ensuring AI safety, such as guardrail models and alignment training, often compromise either inference efficiency or development flexibility. We introduce Disentangled Safety Adapters (DSA), a novel framework addressing these challenges by decoupling safety-specific computations from a task-optimized base model. DSA utilizes lightweight adapters that leverage the base model's internal representations, enabling diverse and flexible safety functionalities with minimal impact on inference cost. Empirically, DSA-based safety guardrails substantially outperform comparably sized standalone models across hate speech classification, detecting unsafe model inputs and responses, and hallucination detection with relative improvements of up to 53% in AUC. Furthermore, DSA-based safety alignment allows dynamic, inference-time adjustment of alignment strength and a fine-grained trade-off between instruction following performance and model safety. Importantly, combining the DSA safety guardrail with DSA safety alignment facilitates context-dependent alignment strength, boosting safety on StrongREJECT by 93% while maintaining 98% performance on MTBench - a total reduction in alignment tax of 8 percentage points compared to standard safety alignment fine-tuning. Overall, DSA presents a promising path towards more modular, efficient, and adaptable AI safety and alignment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。