arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.01550cs.LGcs.CLcs.CR
收藏

Representation Bending 用于大型语言模型安全

Representation Bending for Large Language Model Safety

Seoul National University(首尔国立大学);Yonsei University(延世大学);AIM Intelligence(AIM智能);University of Michigan(密歇根大学);Stanford University(斯坦福大学);Amazon AWS(亚马逊AWS)

Ashkan Yousefpour, Taeheon Kim, Ryan S. Kwon, Seungbeen Lee, Wonje Jeung, Seungju Han, Alvin Wan, Harrison Ngan, Youngjae Yu, Jonghyun Choi

AI总结:

本文提出 RepBend 方法,将激活引导思想引入基于损失的微调,从根本上破坏 LLMs 中有害行为的表征,在越狱基准上使攻击成功率最高降低 95%,且不损害模型通用能力。

摘要:

大型语言模型(LLMs)已成为强大的工具,但其固有的安全风险——从有害内容生成到更广泛的社会危害——构成了重大挑战。这些风险可能因近期的对抗攻击、微调漏洞以及 LLMs 在高风险环境中的日益增多部署而被放大。现有的安全增强技术,如基于人类反馈的微调或对抗训练,仍然存在脆弱性,因为它们针对特定威胁,通常无法泛化到未见过的攻击,或需要人工系统级防御。本文介绍了 RepBend,这是一种新方法,它从根本上破坏 LLMs 中潜在有害行为的表征,为增强(可能是固有的)安全性提供了可扩展的解决方案。RepBend 将激活引导(activation steering)的思想——在推理期间引导模型行为的简单向量算术——引入到基于损失的微调中。通过广泛评估,RepBend 实现了最先进的性能,优于 Circuit Breaker、RMU 和 NPO 等先前方法,在多样化的越狱基准测试中,攻击成功率降低了高达 95%,且模型可用性和通用能力的下降微乎其微。

英文摘要:

Large Language Models (LLMs) have emerged as powerful tools, but their inherent safety risks - ranging from harmful content generation to broader societal harms - pose significant challenges. These risks can be amplified by the recent adversarial attacks, fine-tuning vulnerabilities, and the increasing deployment of LLMs in high-stakes environments. Existing safety-enhancing techniques, such as fine-tuning with human feedback or adversarial training, are still vulnerable as they address specific threats and often fail to generalize across unseen attacks, or require manual system-level defenses. This paper introduces RepBend, a novel approach that fundamentally disrupts the representations underlying harmful behaviors in LLMs, offering a scalable solution to enhance (potentially inherent) safety. RepBend brings the idea of activation steering - simple vector arithmetic for steering model's behavior during inference - to loss-based fine-tuning. Through extensive evaluation, RepBend achieves state-of-the-art performance, outperforming prior methods such as Circuit Breaker, RMU, and NPO, with up to 95% reduction in attack success rates across diverse jailbreak benchmarks, all with negligible reduction in model usability and general capabilities.

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

↑