arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.16497cs.LGcs.AIcs.CLcs.CRstat.ML
收藏

用于鲁棒语言模型的平滑嵌入

Smoothed Embeddings for Robust Language Models

Mitsubishi Electric Corporation(三菱电机株式会社);Pennsylvania State University(宾夕法尼亚州立大学);The Ohio State University(俄亥俄州立大学);Mitsubishi Electric Research Laboratories(三菱电机研究所)

Ryo Hase, Md Rafi Ur Rashid, Ashley Lewis, Jing Liu, Toshiaki Koike-Akino, Kieran Parsons, Ye Wang

AI总结:

针对LLMs易受越狱攻击的问题,提出在生成每个输出词元时添加随机噪声并聚合的RESTA防御方法,以更好保留语义信息,实现了优于基线防御的鲁棒性与实用性权衡。

摘要:

提升大型语言模型(LLMs)的安全性和可靠性是实现可信AI系统的关键。尽管对齐方法旨在抑制有害内容的生成,但LLMs往往仍容易受到越狱攻击,这些攻击利用对抗性输入破坏对齐并诱导有害输出。我们提出了随机嵌入平滑与词元聚合(RESTA)防御方法,该方法在生成每个输出词元期间向嵌入向量添加随机噪声并进行聚合,旨在更好地保留语义信息。实验表明,与基线防御相比,我们的方法实现了更优的鲁棒性与实用性权衡。

英文摘要:

Improving the safety and reliability of large language models (LLMs) is a crucial aspect of realizing trustworthy AI systems. Although alignment methods aim to suppress harmful content generation, LLMs are often still vulnerable to jailbreaking attacks that employ adversarial inputs that subvert alignment and induce harmful outputs. We propose the Randomized Embedding Smoothing and Token Aggregation (RESTA) defense, which adds random noise to the embedding vectors and performs aggregation during the generation of each output token, with the aim of better preserving semantic information. Our experiments demonstrate that our approach achieves superior robustness versus utility tradeoffs compared to the baseline defenses.

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

↑