arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.03537cs.AIcs.CL
收藏

通过安全规则的自教推理提升安全性

STAR-S: Improving Safety Alignment through Self-Taught Reasoning on Safety Rules

Research Center for Social Computing and Information Retrieval(社会计算与信息检索研究中心);Harbin Institute of Technology(哈尔滨工业大学)

Di Wu, Yanyan Zhao, Xin Lu, Mingzhe Li, Bing Qin

AI总结:

STAR-S通过自教推理提升大型语言模型的安全性,有效防御对抗攻击。

摘要:

防御对抗攻击对于大型语言模型的安全部署至关重要。最近的研究尝试通过在响应前训练模型进行安全规则推理来提高安全性。然而,确定哪种形式的安全推理能有效防御对抗攻击是一个难题,难以显式设计或直接获得。为此,我们提出了STAR-S(基于安全规则的自教推理框架),该框架将安全规则推理的学习整合到自教循环中。STAR-S的核心是通过安全规则引导推理和反思,然后利用微调增强安全推理。重复此过程形成协同循环。模型在安全规则推理和解释上的改进使其能够生成更好的推理数据,在安全规则提示下进行进一步训练。实验表明,STAR-S能有效防御对抗攻击,优于基线方法。代码可在:https://github.com/pikepokenew/STAR_S.git获取。

英文摘要:

Defending against jailbreak attacks is crucial for the safe deployment of Large Language Models (LLMs). Recent research has attempted to improve safety by training models to reason over safety rules before responding. However, a key issue lies in determining what form of safety reasoning effectively defends against jailbreak attacks, which is difficult to explicitly design or directly obtain. To address this, we propose \textbf{STAR-S} (\textbf{S}elf-\textbf{TA}ught \textbf{R}easoning based on \textbf{S}afety rules), a framework that integrates the learning of safety rule reasoning into a self-taught loop. The core of STAR-S involves eliciting reasoning and reflection guided by safety rules, then leveraging fine-tuning to enhance safety reasoning. Repeating this process creates a synergistic cycle. Improvements in the model's reasoning and interpretation of safety rules allow it to produce better reasoning data under safety rule prompts, which is then utilized for further training. Experiments show that STAR-S effectively defends against jailbreak attacks, outperforming baselines. Code is available at: https://github.com/pikepokenew/STAR_S.git.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑