arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.16183cs.CLcs.AI
收藏

可解释特征引导的数据高效大语言模型安全对齐

Data-Efficient LLM Safety Alignment Guided by Interpretable Features

Beijing Normal University(北京师范大学);Tencent(腾讯)

Hongyu Li, Zhan Yu, Zhe Zhao, Kimmo Yan, Xiong Kuang, Renfen Hu

AI总结:

本文提出基于可解释特征的Less is Safer(LIS)数据集,用其进行大语言模型安全对齐,仅2400个样本就优于26000、19000、262000样本的对应数据集,解决了现有方法成本高、过度弃权的问题。

摘要:

现有大语言模型通常依赖海量微调数据集进行安全对齐,这导致安全对齐成本较高,且常出现过度弃权(不执行)的问题。我们提出Less is Safer(LIS),这是一种紧凑但高效的安全对齐数据集,通过可解释特征引导的选择与对抗合成构建而成。具体而言,我们利用稀疏自编码器(Sparse Autoencoder, SAE)的激活值高效选择涵盖多样且可解释安全特征的提示词;随后采用多智能体对抗合成框架生成无害但会引发不必要弃权(不执行)的提示词。LIS仅包含2400个样本,却在4个安全基准和5个过度弃权(不执行)基准的整体性能上优于大得多的数据集,如TRIDENT-Core(26000个)、TRIDENT-Edge(19000个)和WildJailbreak(262000个)。通过消融实验,我们证明仅安全数据或仅过度弃权数据无法达到最优结果。我们还使用大语言模型标注的SAE安全特征进行数据过滤,但结果不如本文提出的流程所得结果。

英文摘要:

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.

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

↑