arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.08968cs.CLcs.AI
收藏

可控安全对齐:推理时适应多样化安全需求

Controllable Safety Alignment: Inference-Time Adaptation to Diverse Safety Requirements

Microsoft Responsible AI Research(微软负责的人工智能研究院);Johns Hopkins University(约翰斯·霍普金斯大学)

Jingyu Zhang, Ahmed Elgohary, Ahmed Magooda, Daniel Khashabi, Benjamin Van Durme

AI总结:

提出CoSA框架,通过安全配置在推理时无需重训即可使LLM适应多样化安全需求,并设计CoSAlign方法与CoSApien基准,显著提升模型可控性与实用性。

摘要:

当前大型语言模型(LLMs)的安全对齐范式遵循一刀切的方法:模型拒绝与任何被模型提供商视为不安全的内容进行交互。这种方法在面对不同文化和地区的不同社会规范时缺乏灵活性。此外,用户可能有多样化的安全需求,使得具有静态安全标准的模型过于限制而难以发挥作用,且重新对齐成本过高。我们提出可控安全对齐(Controllable Safety Alignment, CoSA),这是一个旨在无需重新训练即可使模型适应多样化安全需求的框架。我们不再对齐固定模型,而是对齐模型以遵循安全配置——即作为系统提示一部分提供的、关于期望安全行为的自由形式自然语言描述。为了调整模型安全行为,授权用户只需在推理时修改此类安全配置。为此,我们提出CoSAlign,一种以数据为中心的方法,用于对齐LLMs以轻松适应多样化安全配置。此外,我们设计了一种新颖的可控性评估协议,同时考虑有用性和配置安全性,将其总结为CoSA-Score,并构建了CoSApien,这是一个由人工编写的基准,包含具有多样化安全需求及相应评估提示的真实世界LLM用例。我们表明,CoSAlign在包括上下文对齐在内的强基线上实现了可控性的大幅提升。我们的框架鼓励在LLMs中更好地表示和适应多元化的人类价值观,从而提高其实用性。

英文摘要:

The current paradigm for safety alignment of large language models (LLMs) follows a one-size-fits-all approach: the model refuses to interact with any content deemed unsafe by the model provider. This approach lacks flexibility in the face of varying social norms across cultures and regions. In addition, users may have diverse safety needs, making a model with static safety standards too restrictive to be useful, as well as too costly to be re-aligned. We propose Controllable Safety Alignment (CoSA), a framework designed to adapt models to diverse safety requirements without re-training. Instead of aligning a fixed model, we align models to follow safety configs -- free-form natural language descriptions of the desired safety behaviors -- that are provided as part of the system prompt. To adjust model safety behavior, authorized users only need to modify such safety configs at inference time. To enable that, we propose CoSAlign, a data-centric method for aligning LLMs to easily adapt to diverse safety configs. Furthermore, we devise a novel controllability evaluation protocol that considers both helpfulness and configured safety, summarizing them into CoSA-Score, and construct CoSApien, a human-authored benchmark that consists of real-world LLM use cases with diverse safety requirements and corresponding evaluation prompts. We show that CoSAlign leads to substantial gains of controllability over strong baselines including in-context alignment. Our framework encourages better representation and adaptation to pluralistic human values in LLMs, and thereby increasing their practicality.

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

↑