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

从提示风险到响应风险:大型语言模型安全行为的配对分析

From Prompt Risk to Response Risk: Paired Analysis of Safety Behavior of Large Language Models

Microsoft(微软)

Mengya Hu, Qiong Wei, Sandeep Atluri

AI总结:

本研究通过配对分析人类标注的提示和响应记录,探讨了大型语言模型在四个危害类别(性、自残、仇恨和暴力)和有序严重性级别上的安全行为,发现61%的响应比提示减少了危害,3%的响应升级了危害,并揭示了安全行为与无害性之间的权衡。

摘要:

大型语言模型的安全评估通常报告二元结果,如攻击成功率(ASR)、拒绝率或有害与安全分类,这些结果隐藏了提示与响应之间风险的变化。我们通过对四个危害类别(性、自残、仇恨和暴力)和有序严重性级别(安全、低、中、高)的人类标注提示和响应记录进行配对分析,发现61%的响应相对于提示减少了危害,36%的响应保持了严重性,3%的响应升级了危害。升级分为两种机制:良性提示触发未请求的有害细节,以及在更高严重性级别上保持任务的响应。类别分解显示,性内容在此样本中表现出最高的危害持续性,这由相同严重性级别的合规性驱动,而非来自良性输入的漂移。联合相关性分析揭示了有用性与无害性之间的权衡:合规性升级仍保持高度相关,而安全响应包含低相关性的通用拒绝。最后,少样本LLM评估者表现出提示/响应检测的不对称性,数据校准无法弥补这种不对称性。评估者提示可在https://github.com/microsoft/PairedSafety获取。

英文摘要:

Safety evaluations of large language models (LLMs) typically report binary outcomes, i.e. attack success rate (ASR), refusal rate, or harmful versus safe classification, which hide how risk changes between prompt and response. We present a paired analysis over human labeled prompt and response records across four harm categories (Sexual, Self harm, Hate and Violence) and ordinal severity levels (Safe, Low, Medium, High). 61% of responses reduce harm relative to the prompt, 36% preserve severity, and 3% escalate. The escalation splits into two mechanisms: benign prompts triggering unrequested harmful detail, and answers that stay on task at higher severity than the prompt. Category decomposition shows that Sexual content exhibits the highest harm persistence in this sample, driven by compliance at the same severity rather than drift from benign inputs. Joint relevance analysis exposes a helpfulness versus harmlessness tradeoff: compliance escalations remain highly relevant, whereas safe responses include generic refusals with low relevance. A public supporting evaluation over 600 prompts and six models reproduces the framework's measurements and two directional signals, while few-shot LLM graders exhibit a prompt/response detection asymmetry that data calibration does not close. Grader prompts, public-evaluation artifacts, and analysis code are shared at https://github.com/microsoft/PairedSafety.

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

↑