arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.19169cs.CRcs.CL
收藏

OpenGuardrails:面向大语言模型的可配置、统一且可扩展的护栏平台

OpenGuardrails: A Configurable, Unified, and Scalable Guardrails Platform for Large Language Models

The Hong Kong Polytechnic University(香港理工大学)

Thomas Wang, Haowen Li

AI总结:

针对大语言模型的安全、鲁棒性与隐私合规问题,研究提出开源平台OpenGuardrails,通过可配置策略、统一护栏架构和量化模型设计,实现多类风险防御,在多语言基准上达SOTA,支持企业级部署。

摘要:

随着大语言模型(LLM)日益集成到现实应用中,确保其安全性、鲁棒性与隐私合规性已变得至关重要。我们提出OpenGuardrails,这是首个完全开源的平台,统一了基于大模型的安全检测、操纵防御与可部署护栏基础设施。OpenGuardrails可防范三大类风险:(1)内容安全违规,如生成有害或露骨文本;(2)模型操纵攻击,包括提示注入、越狱与代码解释器滥用;(3)涉及敏感或隐私信息的数据泄露。与以往的模块化或基于规则的框架不同,OpenGuardrails具备三项核心创新:(1)可配置策略适配机制,可针对每个请求自定义不安全类别与敏感度阈值;(2)基于LLM的统一护栏架构,在单个模型内同时执行内容安全与操纵检测;(3)量化可扩展模型设计,通过GPTQ将140亿参数的稠密基础模型压缩至33亿参数,同时保留98%以上的基准准确率。该系统支持119种语言,在多语言安全基准上取得了当前最优性能,可作为安全网关或基于API的服务部署供企业使用。所有模型、数据集与部署脚本均以Apache 2.0许可证发布。

英文摘要:

As large language models (LLMs) are increasingly integrated into real-world applications, ensuring their safety, robustness, and privacy compliance has become critical. We present OpenGuardrails, the first fully open-source platform that unifies large-model-based safety detection, manipulation defense, and deployable guardrail infrastructure. OpenGuardrails protects against three major classes of risks: (1) content-safety violations such as harmful or explicit text generation, (2) model-manipulation attacks including prompt injection, jailbreaks, and code-interpreter abuse, and (3) data leakage involving sensitive or private information. Unlike prior modular or rule-based frameworks, OpenGuardrails introduces three core innovations: (1) a Configurable Policy Adaptation mechanism that allows per-request customization of unsafe categories and sensitivity thresholds; (2) a Unified LLM-based Guard Architecture that performs both content-safety and manipulation detection within a single model; and (3) a Quantized, Scalable Model Design that compresses a 14B dense base model to 3.3B via GPTQ while preserving over 98 of benchmark accuracy. The system supports 119 languages, achieves state-of-the-art performance across multilingual safety benchmarks, and can be deployed as a secure gateway or API-based service for enterprise use. All models, datasets, and deployment scripts are released under the Apache 2.0 license.

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

↑