可认证安全RLHF:基于语义基础与固定惩罚约束优化的更安全大语言模型对齐
Certifiable Safe RLHF: Semantic Grounding and Fixed Penalty Constraint Optimization for Safer LLM Alignment
AI总结:
针对现有RLHF方法依赖奖励/成本函数和双变量调优导致性能敏感且缺乏可证明安全保证的问题,提出CS-RLHF,通过语义基础成本模型和固定惩罚约束优化,实现可认证安全对齐,效率提升至少5倍。
摘要:
确保安全是大语言模型(LLMs)的基本要求。在增强模型输出效用与减轻其潜在危害之间取得适当平衡是一个复杂且持续的挑战。当代方法通常将这个问题形式化为约束马尔可夫决策过程(CMDP)框架,并采用成熟的CMDP优化技术。然而,这些方法表现出两个显著的限制。首先,它们对奖励和成本函数的依赖使得性能对底层评分机制高度敏感,而该机制必须捕捉语义含义,而不是被表面关键词触发。其次,基于CMDP的训练需要调整双变量,这一过程计算成本高昂,并且对于可能通过对抗性越狱利用的固定双变量,不提供任何可证明的安全保证。为了克服这些限制,我们引入了可认证安全RLHF(CS-RLHF),它引入了一个在大规模语料库上训练的成本模型,以分配基于语义的安全分数。与基于拉格朗日的方法相比,CS-RLHF采用了一种修正的基于惩罚的公式。该设计借鉴了约束优化中精确惩罚函数理论,其中约束满足直接通过适当选择的惩罚项来强制执行。通过适当缩放的惩罚,可以在优化器处保证安全约束的可行性,从而消除了双变量更新的需要。实证评估表明,CS-RLHF优于最先进的LLM模型响应,对正常和越狱提示的效率至少提高5倍。
英文摘要:
Ensuring safety is a foundational requirement for large language models (LLMs). Achieving an appropriate balance between enhancing the utility of model outputs and mitigating their potential for harm is a complex and persistent challenge. Contemporary approaches frequently formalize this problem within the framework of Constrained Markov Decision Processes (CMDPs) and employ established CMDP optimization techniques. However, these methods exhibit two notable limitations. First, their reliance on reward and cost functions renders performance highly sensitive to the underlying scoring mechanism, which must capture semantic meaning rather than being triggered by superficial keywords. Second, CMDP-based training entails tuning dual-variable, a process that is both computationally expensive and does not provide any provable safety guarantee for a fixed dual variable that can be exploitable through adversarial jailbreaks. To overcome these limitations, we introduce Certifiable Safe-RLHF (CS-RLHF) that introduces a cost model trained on a large-scale corpus to assign semantically grounded safety scores. In contrast to the lagrangian-based approach, CS-RLHF adopts a rectified penalty-based formulation. This design draws on the theory of exact penalty functions in constrained optimization, wherein constraint satisfaction is enforced directly through a suitably chosen penalty term. With an appropriately scaled penalty, feasibility of the safety constraints can be guaranteed at the optimizer, eliminating the need for dual-variable updates. Empirical evaluation demonstrates that CS-RLHF outperforms state-of-the-art LLM model responses rendering at-least 5 times efficient against nominal and jail-breaking prompts
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。