arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2505.18882cs.CY
收藏

大语言模型中的个性化安全:一个基准和基于规划的代理方法

Personalized Safety in LLMs: A Benchmark and A Planning-Based Agent Approach

University of Washington(华盛顿大学);University of California, Los Angeles(加州大学洛杉矶分校);University of California, Santa Barbara(加州大学圣塔芭芭拉分校);Microsoft Research(微软研究院);Universitat Politecnica de Valencia(瓦伦西亚理工大学);William & Mary(威廉与玛丽学院)

Yuchen Wu, Edward Sun, Kaijie Zhu, Jianxun Lian, Jose Hernandez-Orallo, Aylin Caliskan, Jindong Wang

AI总结:

本文提出个性化安全框架PENGUIN和RAISE,通过获取用户背景信息提升LLM的安全性,实验显示安全评分提升达31.6%。

摘要:

大语言模型(LLMs)通常在相同提示下为所有用户生成相同或相似的响应,这在高风险应用中可能对用户造成严重安全风险,因为用户之间的脆弱性差异很大。现有的安全评估主要依赖于上下文无关的指标,如事实性、偏见或毒性,忽略了相同响应可能因用户背景或状况的不同而带来不同的风险。我们引入了个性化安全来填补这一空白,并提出了PENGUIN——一个包含14000个场景的基准,涵盖七个敏感领域,包括上下文丰富和上下文无关的变体。评估六个领先的LLMs,我们证明个性化用户信息可使安全评分提高43.2%,证实了个性化在安全对齐中的有效性。然而,并非所有上下文属性对安全增强贡献相同。为此,我们开发了RAISE——一个无需训练的两阶段代理框架,战略性地获取用户特定的背景信息。RAISE在六个基础LLMs上将安全评分提高高达31.6%,同时保持低交互成本,平均仅为2.7次用户查询。我们的发现突显了在安全关键领域中选择性信息收集的重要性,并提供了一种无需模型再训练的个性化LLM响应的实用解决方案。这项工作为适应个体用户情境的安全研究奠定了基础,而不是假设一个普遍的损害标准。

英文摘要:

Large language models (LLMs) typically generate identical or similar responses for all users given the same prompt, posing serious safety risks in high-stakes applications where user vulnerabilities differ widely. Existing safety evaluations primarily rely on context-independent metrics - such as factuality, bias, or toxicity - overlooking the fact that the same response may carry divergent risks depending on the user's background or condition. We introduce personalized safety to fill this gap and present PENGUIN - a benchmark comprising 14,000 scenarios across seven sensitive domains with both context-rich and context-free variants. Evaluating six leading LLMs, we demonstrate that personalized user information significantly improves safety scores by 43.2%, confirming the effectiveness of personalization in safety alignment. However, not all context attributes contribute equally to safety enhancement. To address this, we develop RAISE - a training-free, two-stage agent framework that strategically acquires user-specific background. RAISE improves safety scores by up to 31.6% over six vanilla LLMs, while maintaining a low interaction cost of just 2.7 user queries on average. Our findings highlight the importance of selective information gathering in safety-critical domains and offer a practical solution for personalizing LLM responses without model retraining. This work establishes a foundation for safety research that adapts to individual user contexts rather than assuming a universal harm standard.

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

↑