garak:一个用于安全探测大语言模型的框架
garak: A Framework for Security Probing Large Language Models
AI总结:
本文提出garak框架,通过结构化探测发现大语言模型中的潜在漏洞,推动从整体视角重新思考LLM安全评估。
摘要:
随着大语言模型(LLMs)被部署并集成到成千上万的应用中,对模型如何响应对抗性攻击进行可扩展评估的需求迅速增长。然而,LLM安全是一个移动目标:模型产生不可预测的输出,不断更新,且潜在对手高度多样:任何能够访问互联网并具备良好自然语言能力的人。此外,在一个情境中构成安全弱点的问题在另一个情境中可能并不构成问题;一刀切的防护措施仍然停留在理论层面。在本文中,我们主张是时候重新思考什么构成“LLM安全”,并追求一种整体的LLM安全评估方法,其中问题的探索与发现是核心。为此,本文介绍了garak(生成式AI红队测试与评估工具包),这是一个可用于发现和识别目标LLM或对话系统中漏洞的框架。garak以结构化的方式探测LLM以发现潜在漏洞。该框架的输出描述了目标模型的弱点,有助于就独特情境下漏洞构成要素进行知情讨论,并可为LLM部署的对齐和政策讨论提供参考。
英文摘要:
As Large Language Models (LLMs) are deployed and integrated into thousands of applications, the need for scalable evaluation of how models respond to adversarial attacks grows rapidly. However, LLM security is a moving target: models produce unpredictable output, are constantly updated, and the potential adversary is highly diverse: anyone with access to the internet and a decent command of natural language. Further, what constitutes a security weak in one context may not be an issue in a different context; one-fits-all guardrails remain theoretical. In this paper, we argue that it is time to rethink what constitutes ``LLM security'', and pursue a holistic approach to LLM security evaluation, where exploration and discovery of issues are central. To this end, this paper introduces garak (Generative AI Red-teaming and Assessment Kit), a framework which can be used to discover and identify vulnerabilities in a target LLM or dialog system. garak probes an LLM in a structured fashion to discover potential vulnerabilities. The outputs of the framework describe a target model's weaknesses, contribute to an informed discussion of what composes vulnerabilities in unique contexts, and can inform alignment and policy discussions for LLM deployment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。