Data-Efficient LLM Safety Alignment Guided by Interpretable Features

Hongyu Li, Renfen Hu and colleagues at Beijing Normal University and Tencent build Less is Safer (LIS), a 2.4K-sample safety alignment set chosen by sparse autoencoder features and paired with synthetic prompts that trigger over-refusal.
Ask this paper
Selection. Prompts are chosen to cover diverse safety features in LlamaScope SAE activations on Llama 3.1 8B. A 1.2K safety subset covers 91.7% of LLM-annotated safety features against 70.8% for a random set of the same size.
Over-refusal data. A multi-agent adversarial pipeline writes harmless prompts that still trigger refusals. Human checks rate 91% of 200 sampled items as qualified.
Results. With 2.4K samples, LIS beats TRIDENT-Core (26K), TRIDENT-Edge (19K) and WildJailbreak (262K) on the overall balance of four safety and five over-refusal benchmarks, on two model families.
Ablation. Neither the safety subset nor the over-refusal subset alone reaches the best balance, and using LLM-annotated features for filtering performs worse than the score-based pipeline.
Abstract
Existing large language models typically rely on massive fine-tuning datasets for safety alignment, which results in higher costs for safety alignment and often leads to the problem of over-refusal. We propose Less is Safer (LIS), a compact yet highly effective dataset for safety alignment, constructed through interpretable feature-guided selection and adversarial synthesis. Specifically, we leverage Sparse Autoencoder (SAE) activations to efficiently select prompts that cover diverse and interpretable safety features. Then, we employ a multi-agent adversarial synthesis framework to generate harmless prompts that nevertheless elicit unnecessary refusals. LIS contains only 2.4K samples, yet outperforms much larger datasets, e.g., TRIDENT-Core (26K), TRIDENT-Edge (19K) and WildJailbreak (262K), in overall performance on four safety and five over-refusal benchmarks. Through ablation experiments, we demonstrate that neither safety data nor over-refusal data alone can achieve optimal results. We also used safety features from SAE, annotated by an LLM, for data filtering, but the results were inferior to those obtained using the pipeline proposed in this paper.