本文提出基于可解释特征的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.
Vision Language Model for Interpretable and Fine-grained Detection of Safety Compliance in Diverse Workplaces
School of Mechanical, Aerospace, and Manufacturing Engineering(机械、航空航天与制造工程学院);University of Connecticut(康涅狄格大学);Department of Computer Science(计算机科学系);University of California Irvine(加州大学欧文分校)
ReFrame: Evidence-Guided Test-Time Safety Alignment in Multimodal Large Language Models
College of Computer Science and Technology, National University of Defense Technology(国防科技大学计算机学院);State Key Laboratory of Complex & Critical Software Environment(复杂与关键软件环境国家重点实验室);School of Computer Science, Wuhan University(武汉大学计算机学院)
From Words to Collisions: LLM-Guided Evaluation and Adversarial Generation of Safety-Critical Driving Scenarios
Professorship of Autonomous Vehicle Systems, TUM School of Engineering and Design, Technical University of Munich(自主车辆系统教授职位,技术大学慕尼黑工程与设计学院);Munich Institute of Robotics and Machine Intelligence (MIRMI)(慕尼黑机器人与机器智能研究所);TUM School of Computation, Information and Technology, Department of Computer Engineering, Technical University of Munich(技术大学慕尼黑计算、信息与技术学院,计算机工程系)
Interpretable Steering of Large Language Models with Feature Guided Activation Additions
Raffles Science Institute(莱佛士科学学院);Raffles Institution(莱佛士书院);Nous Research(努斯研究机构);Centre for Frontier AI Research (CFAR)(前沿人工智能研究中心);Agency for Science Technology and Research (A*STAR)(新加坡科技研究局)
Discovery of Interpretable Physical Laws in Materials via Language-Model-Guided Symbolic Regression
Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);School of Physics(物理学院);Hefei National Laboratory(合肥国家实验室);Institute for Advanced Study in Physics(物理高级研究学院);Shenzhen Institute of Advanced Technology(深圳先进技术研究院)
Safe Pruning LoRA: Robust Distance-Guided Pruning for Safety Alignment in Adaptation of LLMs
School of Electronics and Computer Science, University of Southampton, UK(索姆塞特大学电子与计算机科学学院);Department of Computer Science, University of Liverpool, UK(利弗pool大学计算机科学系)
Unifying VLM-Guided Flow Matching and Spectral Anomaly Detection for Interpretable Veterinary Diagnosis
School of Mathematics, Shandong University(山东大学数学学院);Shenzhen Loop Area Institute(深圳河套学院);Yeshiva University(叶史瓦大学);Qilu University of Technology(齐鲁工业大学);Shandong Normal University(山东师范大学);Chuzhou University(滁州学院)
Interpretable Few-Shot Retinal Disease Diagnosis with Concept-Guided Prompting of Vision-Language Models
Monash University(莫纳什大学);Centre for Eye Research Australia(澳大利亚眼科研究中心);Royal Victorian Eye and Ear Hospital(皇家维多利亚眼耳医院);The University of Melbourne(墨尔本大学);The Hong Kong Polytechnic University(香港理工大学);Centre for Eye and Vision Research(眼与视觉研究中心);Indian Institute of Technology Bombay(印度理工学院孟买分校);Airdoc-Monash Research Lab(Airdoc-莫纳什研究实验室)
VLM-SAFE: Vision-Language Model-Guided Safety-Aware Reinforcement Learning with World Models for Autonomous Driving
Lyles School of Civil and Construction Engineering, Purdue University(普渡大学莱尔斯土木与建筑工程学院);Department of Civil and Environmental Engineering, University of Wisconsin-Madison(威斯康星大学麦迪逊分校土木与环境工程系);Google(谷歌)
Automated Algorithmic Discovery for Scientific Computing through LLM-Guided Evolutionary Search: A Case Study in Gravitational-Wave Detection
International Centre for Theoretical Physics Asia-Pacific(国际理论物理中心亚太中心);University of Chinese Academy of Sciences(中国科学院大学);Taiji Laboratory for Gravitational Wave Universe(引力波宇宙Taiji实验室);Tsinghua University(清华大学)
MolEvolve: LLM-Guided Evolutionary Search for Interpretable Molecular Optimization
Hong Kong University of Science(香港科技大学);Hong Kong Polytechnic University(香港理工大学);Tsinghua University(清华大学);Harbin Institute of Technology (Shenzhen)(哈尔滨工业大学(深圳))
Self-Guided Adaptive Safety Alignment: Synthesizing and Internalizing Guidelines in Reasoning Models
Beijing Key Lab of Traffic Data Analysis and Mining(北京交通大数据分析与挖掘重点实验室);Beijing Jiaotong University(北京交通大学);School of Information Technology and Management(信息科技与管理学院);University of International Business and Economics(国际经济贸易大学)
SafetyAnalyst: Interpretable, Transparent, and Steerable Safety Moderation for AI Behavior
University of California, Berkeley(加州大学伯克利分校);University of Washington(华盛顿大学);Duke University(杜克大学);Carnegie Mellon University(卡内基梅隆大学);Stanford University(斯坦福大学)
Interpretable and Explainable Logical Policies via Neurally Guided Symbolic Abstraction
Technical University of Darmstadt(达姆施塔特工业大学);National Research Center for Applied Cybersecurity(国家应用网络安全研究中心);Eindhoven University of Technology(埃因霍温理工大学);Hessian Center for AI (hessian.AI)(黑森人工智能中心);German Research Center for AI (DFKI)(德国人工智能研究中心)
SDGO: Self-Discrimination-Guided Optimization for Consistent Safety in Large Language Models
National Key Laboratory for Novel Software Technology, Nanjing University(南京大学计算机软件新技术全国重点实验室);Meituan Inc.(美团公司);Dalian University of Technology(大连理工大学)