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

NeMo Guardrails:一种带有可编程护栏的可控且安全的LLM应用工具包

NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Rails

NVIDIA(英伟达)

Traian Rebedea, Razvan Dinu, Makesh Sreedhar, Christopher Parisien, Jonathan Cohen

AI总结:

本文介绍NeMo Guardrails,一个开源工具包,通过可编程护栏控制LLM输出,实现可控且安全的对话系统,并验证其与多个LLM提供商的兼容性。

摘要:

NeMo Guardrails是一个开源工具包,用于轻松地为基于LLM的对话系统添加可编程护栏。护栏(简称rails)是一种控制LLM输出的特定方式,例如不谈论被认为有害的话题、遵循预定义的对话路径、使用特定的语言风格等。有几种机制允许LLM提供商和开发人员添加在训练时嵌入到特定模型中的护栏,例如使用模型对齐。不同的是,使用受对话管理启发的运行时,NeMo Guardrails允许开发人员向LLM应用添加可编程护栏——这些护栏是用户定义的、独立于底层LLM的,并且是可解释的。我们的初步结果表明,所提出的方法可以与多个LLM提供商一起使用,以使用可编程护栏开发可控且安全的LLM应用。

英文摘要:

NeMo Guardrails is an open-source toolkit for easily adding programmable guardrails to LLM-based conversational systems. Guardrails (or rails for short) are a specific way of controlling the output of an LLM, such as not talking about topics considered harmful, following a predefined dialogue path, using a particular language style, and more. There are several mechanisms that allow LLM providers and developers to add guardrails that are embedded into a specific model at training, e.g. using model alignment. Differently, using a runtime inspired from dialogue management, NeMo Guardrails allows developers to add programmable rails to LLM applications - these are user-defined, independent of the underlying LLM, and interpretable. Our initial results show that the proposed approach can be used with several LLM providers to develop controllable and safe LLM applications using programmable rails.

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

↑