SAFER: Advancing Safety Alignment via Efficient Ex-Ante Reasoning
Kehua Feng, Keyan Ding, Yuhao Wang, Menghan Li, Fanjunduo Wei, Xinda Wang, Qiang Zhang, Huajun Chen
TL;DR
SAFER tackles safety gaps in large language models by enforcing structured Ex-Ante reasoning prior to response generation. It combines supervised fine-tuning with reasoning traces and step-level Ex-Ante Reasoning Preference Optimization (ERPO) to ground safety judgments in explicit rules while balancing helpfulness and efficiency. The method demonstrates improved safety robustness on open-source LLMs across diverse benchmarks, including scientific safety tasks, without sacrificing general performance. The work advances transparent, rule-grounded safety alignment and discusses latency trade-offs, outlining directions for more adaptive and scalable safety reasoning.
Abstract
Recent advancements in large language models (LLMs) have accelerated progress toward artificial general intelligence, yet their potential to generate harmful content poses critical safety challenges. Existing alignment methods often struggle to cover diverse safety scenarios and remain vulnerable to adversarial attacks. In this work, we propose SAFER, a framework for Safety Alignment via eFficient Ex-Ante Reasoning. Our approach instantiates structured Ex-Ante reasoning through initial assessment, rule verification, and path calibration, and embeds predefined safety rules to provide transparent and verifiable safety judgments. Specifically, our approach consists of two training stages: (1) supervised fine-tuning with synthetic traces to teach the multi-stage Ex-Ante reasoning, and (2) step-level reasoning preference optimization to jointly enhance safety, utility, and efficiency. Experiments on multiple open-source LLMs demonstrate that SAFER significantly enhances safety performance while maintaining helpfulness and response efficiency.
