arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2602.02280cs.SEcs.AIcs.CLcs.CRcs.LG
收藏

RACC:面向LLM安全测试的表示感知覆盖标准

RACC: Representation-Aware Coverage Criteria for LLM Safety Testing

Peking University(北京大学)

Zeming Wei, Zhixin Zhang, Chengcan Wu, Yihao Zhang, Xiaokun Luan, Meng Sun

AI总结:

本文提出RACC,一种专为LLM安全测试设计的覆盖标准,通过提取安全表示并评估测试提示的激活情况,有效提升测试套件质量,同时对冗余输入不敏感,适用于大规模神经网络的安全测试。

摘要:

大型语言模型(LLM)面临因劫持攻击导致的严重安全风险,但当前的安全测试主要依赖静态数据集,缺乏系统性标准来评估测试套件的质量和充分性。尽管覆盖标准在较小的神经网络中效果显著,但对LLM而言由于计算开销大且安全关键信号与无关神经元激活相互交织,使其不切实际。为此,我们提出RACC(表示感知覆盖标准),一种专门用于LLM安全测试的覆盖标准。RACC首先通过一个小的校准集有害提示从LLM的隐藏状态中提取安全表示,然后将测试提示的概念激活与这些方向进行比较,并通过六个标准评估个体和组合的安全概念覆盖。在多个LLM和安全基准上的实验表明,RACC能够可靠地奖励高质量的劫持测试套件,同时对冗余或无效输入不敏感,这是神经元级标准无法实现的关键区别。我们进一步展示了RACC在两个应用中的实际价值,包括测试套件优先级和攻击提示采样,并验证了其在多样化设置和配置中的泛化能力。总体而言,RACC为覆盖引导的LLM安全测试提供了可扩展且原则性的基础。

英文摘要:

Large Language Models (LLMs) face severe safety risks from jailbreak attacks, yet current safety testing largely relies on static datasets and lacks systematic criteria to evaluate test suite quality and adequacy. While coverage criteria have proven effective for smaller neural networks, they are impractical for LLMs due to computational overhead and the entanglement of safety-critical signals with irrelevant neuron activations. To address these issues, we propose RACC (Representation-Aware Coverage Criteria), a set of coverage criteria specialized for LLM safety testing. RACC first extracts safety representations from the LLM's hidden states using a small calibration set of harmful prompts, then measures test prompts' concept activations against these directions, and finally computes coverage through six criteria assessing both individual and compositional safety concept coverage. Experiments on multiple LLMs and safety benchmarks show that RACC reliably rewards high-quality jailbreak test suites while remaining insensitive to redundant or invalid inputs, which is a key distinction that neuron-level criteria fail to make. We further demonstrate RACC's practical value in two applications, including test suite prioritization and attack prompt sampling, and validate its generalization across diverse settings and configurations. Overall, RACC provides a scalable and principled foundation for coverage-guided LLM safety testing.

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

↑