训练安全的LLMs仍是一个关键挑战。最广泛使用的方法,Refusal Training (RT),难以泛化以抵御各种Out-of-Distribution (OOD)越狱攻击。尽管已提出各种先进方法来解决此问题,但我们转而质疑OOD攻击是否本质上超越了vanilla RT的能力。使用Best-of-N (BoN)的评估显示,随着N的增加,安全性显著提升,表明模型拥有足够的潜在安全知识,但RT在OOD场景下未能一致地将其引出。进一步的领域适应分析显示,直接RT导致依赖表面捷径,产生不可泛化的表示映射。受此启发,我们提出训练模型对每个查询执行安全推理。具体而言,我们合成与反映安全知识多样视角的特定指南对齐的推理监督。这鼓励模型进行更深度的推理,明确引出并利用每个查询的潜在安全知识。大量实验表明,我们的方法显著提升了模型抵御OOD攻击的泛化能力。
英文摘要:
Training safe LLMs remains a critical challenge. The most widely used method, Refusal Training (RT), struggles to generalize against various Out-of-Distribution (OOD) jailbreaking attacks. Although various advanced methods have been proposed to address this issue, we instead question whether OOD attacks inherently surpass the capability of vanilla RT. Evaluations using Best-of-N (BoN) reveal significant safety improvements as N increases, indicating models possess adequate latent safety knowledge but RT fails to consistently elicit it under OOD scenarios. Further domain adaptation analysis reveals that direct RT causes reliance on superficial shortcuts, resulting in non-generalizable representation mappings. Inspired by our findings, we propose training model to perform safety reasoning for each query. Specifically, we synthesize reasoning supervision aligned with specified guidelines that reflect diverse perspectives on safety knowledge. This encourages model to engage in deeper reasoning, explicitly eliciting and utilizing latent safety knowledge for each query. Extensive experiments show that our method significantly improves model generalization against OOD attacks.
G-SHARE: A Guideline-Based Structured Reasoning Framework for Human-Factor Event Diagnosis
Institute of Nuclear and New Energy Technology, Tsinghua University(清华大学核能与新能源技术研究院);National Key Laboratory of Human Factors Engineering(人因工程重点实验室);Fujian Fuqing Nuclear Power Co., Ltd.(福建福清核电有限公司)
MedGuideX: Internalizing Decision Logic from Executable Guidelines into Large Language Models for Clinical Reasoning
University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));Albert Einstein College of Medicine(爱因斯坦医学院)
Deliberative Alignment is Deep, but Uncertainty Remains: Inference time safety improvement in reasoning via attribution of unsafe behavior to base model
SafeRBench: Dissecting the Reasoning Safety of Large Language Models
Nanjing University(南京大学);Fudan University(复旦大学);Carnegie Mellon University(卡内基梅隆大学);Chinese Academy of Sciences(中国科学院);Nanyang Technological University(南洋理工大学)
RSafe: Incentivizing proactive reasoning to build robust and adaptive LLM safeguards
National University of Singapore(新加坡国立大学);Cornell University(康奈尔大学);University of Electronic Science and Technology(电子科技大学);Nanyang Technological University(南洋理工大学)
Predictive Semantic Safety: From Visual Physical Reasoning to Safety-Critical Control
University of Michigan(密歇根大学);King Abdullah University of Science and Technology (KAUST)(阿卜杜拉国王科技大学);Dalle Molle Institute for Artificial Intelligence Research (IDSIA)(达勒莫尔人工智能研究所);Università della Svizzera italiana (USI)(瑞士意大利语区大学);Scuola universitaria professionale della Svizzera italiana (SUPSI)(瑞士意大利语区应用科学与艺术大学)
Benchmarking MLLM-based Web Understanding: Reasoning, Robustness and Safety
Dalian Maritime University(大连海事大学);The Chinese University of Hong Kong(香港中文大学);Tsinghua University(清华大学);Nanyang Technological University(南洋理工大学);Xi'an Jiaotong University(西安交通大学);Renmin University of China(中国人民大学);Wuhan University(武汉大学)
A Comprehensive Survey on Trustworthiness in Reasoning with Large Language Models
School of Artificial Intelligence, University of Chinese Academy of Sciences(人工智能学院,中国科学院大学);NLPR & MAIS, Institute of Automation, Chinese Academy of Sciences(神经语言处理与机器智能中心,中国科学院自动化研究所)
When Reasoning Is Not Enough: Proactive Inquiry for Cross-Modal Safety in Multimodal Large Language Models
Institute of Artificial Intelligence (TeleAI), China Telecom(中国电信人工智能研究院(TeleAI));Peking University(北京大学);School of Artificial Intelligence, OPtics and ElectroNics (iOPEN), Northwestern Polytechnical University(西北工业大学人工智能与光电子学院(iOPEN))