Skip to main navigation Skip to search Skip to main content

Leveraging Reasoning with Guidelines to Elicit and Utilize Knowledge for Enhancing Safety Alignment

  • Haoyu Wang
  • , Zeyu QIN*
  • , Li Shen
  • , Xueqian Wang
  • , Minhao CHENG
  • , Dacheng TAO
  • *Corresponding author for this work

Research output: Contribution to conferenceConference Paperpeer-review

Abstract

Training safe LLMs is one of the most critical research challenge. However, the commonly used method, Refusal Training (RT), struggles to generalize against various OOD jailbreaking attacks. Many safety training methods have been proposed to address this issue. While they offer valuable insights, we aim to complement this line of research by investigating whether OOD attacks truly exceed the capability of RT model. Conducting evaluation with BoN, we observe significant improvements on generalization as N increases. This underscores that the model possesses sufficient safety-related latent knowledge, but RT fails to consistently elicit this knowledge when addressing OOD attacks. Further analysis based on domain adaptation reveals that training with direct refusal causes model to rely on superficial shortcuts, resulting in learning of non-robust representation mappings. Based on our findings, we propose training model to perform safety reasoning for each query. Reasoning supervision encourages model to perform more computations, explicitly eliciting and using latent knowledge through reasoning. To achieve this, we synthesize reasoning supervision based on pre-guidelines, training the model to reason in alignment with them, thereby effectively eliciting and utilizing latent knowledge from diverse perspectives. Extensive experiments show that our method significantly improves generalization performance against OOD attacks.

Original languageEnglish
Number of pages25
Publication statusPublished - 8 Mar 2025
Event42nd International Conference on Machine Learning, ICML 2025 - Vancouver, Canada
Duration: 13 Jul 202519 Jul 2025

Conference

Conference42nd International Conference on Machine Learning, ICML 2025
Country/TerritoryCanada
CityVancouver
Period13/07/2519/07/25

Keywords

  • Safety Alignment
  • Safety Reasoning
  • Safety Generalization

Fingerprint

Dive into the research topics of 'Leveraging Reasoning with Guidelines to Elicit and Utilize Knowledge for Enhancing Safety Alignment'. Together they form a unique fingerprint.

Cite this