反宪法AI:通过概率限制RLAIF实现可控有毒数据生成的框架
Reverse Constitutional AI: A Framework for Controllable Toxic Data Generation via Probability-Clamped RLAIF
AI总结:
本文提出反宪法AI框架,通过概率限制RLAIF生成可控的高质有毒数据,提升安全评估。
摘要:
确保大型语言模型(LLMs)的安全性需要强大的红队测试,但高质量有毒数据的系统合成仍待探索。我们提出了反宪法AI(R-CAI)框架,用于自动化和可控的对抗性数据生成,超越孤立的 jailbreak 提示。通过将无害宪法转换为毒性宪法,并通过批评-修订流程迭代优化模型输出,R-CAI实现了多维对抗性数据的可扩展合成,无需人工标注。然而,仅优化毒性相关奖励可能导致奖励黑客和语义不连贯。为此,我们引入了强化学习从AI反馈中的概率限制,稳定对抗优化同时保持对抗意图。实验表明,R-CAI生成多样化、高质量的有毒数据,概率限制显著提高了语义连贯性(15%)而不牺牲对抗强度。总体而言,R-CAI提供了一个完全自动化的红队数据生成框架和对齐语言模型系统安全性的评估方法。
英文摘要:
Ensuring the safety of large language models (LLMs) requires robust red teaming, yet the systematic synthesis of high-quality toxic data remains under-explored. We propose Reverse Constitutional AI (R-CAI), a framework for automated and controllable adversarial data generation that moves beyond isolated jailbreak prompts. By inverting a harmless constitution into a constitution of toxicity and iteratively refining model outputs through a critique--revision pipeline, R-CAI enables scalable synthesis of multi-dimensional adversarial data without human annotation. Optimizing solely for toxicity-related rewards, however, can lead to reward hacking and degraded semantic coherence. To address this challenge, we introduce probability clamping within reinforcement learning from AI feedback, which stabilizes adversarial optimization while preserving adversarial intent. Experiments demonstrate that R-CAI generates diverse, high-quality toxic data and that probability clamping substantially improves semantic coherence (15%) without sacrificing adversarial strength. Overall, R-CAI provides a fully automated framework for red teaming data generation and systematic safety evaluation of aligned language models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。