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

GUARD-SLM:基于令牌激活的对抗 Jailbreak 攻击防御方法用于小语言模型

GUARD-SLM: Token Activation-Based Defense Against Jailbreak Attacks for Small Language Models

Knight Foundation School of Computing and Information Sciences(奈特基金会计算与信息科学学院);Security, Optimization, and Learning for InterDependent networks laboratory (solid lab)(安全、优化与相互依赖网络学习实验室);Florida International University(佛罗里达国际大学)

Md Jueal Mia, Joaquin Molto, Yanzhao Wu, M. Hadi Amini

AI总结:

本文研究了小语言模型在面对异构攻击时的脆弱性,提出GUARD-SLM方法通过分析隐藏层激活来过滤恶意提示,提升小语言模型的安全性。

摘要:

小语言模型(SLMs)正逐渐成为大语言模型(LLMs)的高效替代品,具有更低的计算成本和延迟。然而,现有对抗防御方法对异构攻击的鲁棒性有限,主要是由于对语言模型不同层内部表示的不完全理解。本文对9种对抗攻击在7个SLMs和3个LLMs上进行了系统性经验研究,发现SLMs对绕过安全对齐的恶意提示高度敏感。通过分析不同层和模型架构的隐藏层激活,发现不同输入类型在内部表示空间中形成可区分的模式。基于此观察,我们提出GUARD-SLM,一种轻量级的基于令牌激活的方法,在推理过程中过滤恶意提示,同时保留良性提示。研究结果突显了语言模型各层的鲁棒性限制,并为安全的小语言模型部署提供了实用方向。

英文摘要:

Small Language Models (SLMs) are emerging as efficient and economically viable alternatives to Large Language Models (LLMs), offering competitive performance with significantly lower computational costs and latency. These advantages make SLMs suitable for resource-constrained and efficient deployment on edge devices. However, existing jailbreak defenses show limited robustness against heterogeneous attacks, largely due to an incomplete understanding of the internal representations across different layers of language models that facilitate jailbreak behaviors. In this paper, we conduct a comprehensive empirical study on 9 jailbreak attacks across 7 SLMs and 3 LLMs. Our analysis shows that SLMs remain highly vulnerable to malicious prompts that bypass safety alignment. We analyze hidden-layer activations across different layers and model architectures, revealing that different input types form distinguishable patterns in the internal representation space. Based on this observation, we propose GUARD-SLM, a lightweight token activation-based method that operates in the representation space to filter malicious prompts during inference while preserving benign ones. Our findings highlight robustness limitations across layers of language models and provide a practical direction for secure small language model deployment.

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

↑