arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.06512cs.CRcs.LG
收藏

EASE:面向小语言模型的实用且高效的安全对齐

EASE: Practical and Efficient Safety Alignment for Small Language Models

Haonan Shi, Guoli Wang, Tu Ouyang, An Wang

AI总结:

EASE框架通过蒸馏最优安全推理教师能力并选择性激活推理,使小语言模型在边缘部署中兼顾安全性与效率,越狱成功率降低17%、推理开销降低90%。

摘要:

小语言模型(SLMs)越来越多地部署在边缘设备上,这使得其安全对齐至关重要但也极具挑战性。当前依赖直接拒绝恶意查询的浅层对齐方法无法提供稳健的保护,尤其是面对对抗性越狱攻击时。虽然深思式安全推理对齐能够为防御复杂攻击提供更深层的对齐,但在能力有限的小语言模型中有效植入这种推理能力仍然是一个尚未解决的挑战。此外,由于模型对几乎所有查询都进行推理,安全推理会带来显著的计算开销,使其在要求快速响应的资源受限边缘部署场景中不切实际。我们提出 EASE,这是一个新颖的框架,能够实现面向小语言模型的实用且高效的安全对齐。我们的方法首先确定最优的安全推理教师模型,该教师能够有效地将安全推理能力蒸馏到小语言模型中。然后,我们对模型进行对齐,使其对危险的对抗性越狱查询选择性地激活安全推理,同时对直接的恶意查询和一般的有益任务提供直接响应。这种选择性机制使小模型能够在抵御复杂攻击时保持稳健的安全保障,同时在良性交互中保持计算效率。实验结果表明,与浅层对齐方法相比,EASE 将越狱攻击成功率降低了最多 17%,同时与深思式安全推理对齐相比,将推理开销降低了最多 90%,使其适用于小语言模型在真实世界边缘部署中的实际应用。

英文摘要:

Small language models (SLMs) are increasingly deployed on edge devices, making their safety alignment crucial yet challenging. Current shallow alignment methods that rely on direct refusal of malicious queries fail to provide robust protection, particularly against adversarial jailbreaks. While deliberative safety reasoning alignment offers deeper alignment for defending against sophisticated attacks, effectively implanting such reasoning capability in SLMs with limited capabilities remains an open challenge. Moreover, safety reasoning incurs significant computational overhead as models apply reasoning to nearly all queries, making it impractical for resource-constrained edge deployment scenarios that demand rapid responses. We propose EASE, a novel framework that enables practical and Efficient safety Alignment for Small languagE models. Our approach first identifies the optimal safety reasoning teacher that can effectively distill safety reasoning capabilities to SLMs. We then align models to selectively activate safety reasoning for dangerous adversarial jailbreak queries while providing direct responses to straightforward malicious queries and general helpful tasks. This selective mechanism enables small models to maintain robust safety guarantees against sophisticated attacks while preserving computational efficiency for benign interactions. Experimental results demonstrate that EASE reduces jailbreak attack success rates by up to 17% compared to shallow alignment methods while reducing inference overhead by up to 90% compared to deliberative safety reasoning alignment, making it practical for SLMs real-world edge deployments.

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

↑