arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.05277cs.CR
收藏

GLiNER Guard:面向生产LLM安全与隐私的统一编码器家族

GLiNER Guard: Unified Encoder Family for Production LLM Safety and Privacy

HiveTraceLab(HiveTrace实验室)

Bogdan Minko, Sabrina Sadiekh, Evgeniy Kokuykin

AI总结:

本文提出GLiNER Guard统一编码器,实现安全分类与PII检测,提升生产LLM的安全性和隐私保护效率。

摘要:

生产级LLM系统需要在严格延迟和成本约束下同时满足安全审查和PII检测。这产生了一个权衡:自回归审查器准确但昂贵,而轻量级编码器速度快但能力有限。我们提出了GLiNER Guard(GLiGuard),一种统一的编码器,可在单次前向传递中完成安全分类和PII检测,简化安全管道。我们介绍了三种变体:紧凑型单/双编码器(145-147M)用于高吞吐量服务,以及GLiGuard Omni(209M)用于更强的审查质量。在单个A100上的动态批处理中,紧凑模型达到193个请求/秒,P99延迟低于1秒,比GLiNER2高1.6倍。Omni在公共安全基准上与更大的审查器竞争。我们还发布了PII-Bench,一个评估端到端管道中PII检测的跨度级基准。总体而言,基于编码器的防护措施为持续审查提供了实用的低成本替代方案。模型和基准已发布在HuggingFace。

英文摘要:

Production LLM systems require both safety moderation and PII detection under strict latency and cost constraints. This creates a trade-off: autoregressive moderators are accurate but expensive, while lightweight encoders are faster but less capable. We present GLiNER Guard (GLiGuard), a unified encoder that performs safety classification and PII detection in a single forward pass, simplifying safety pipelines. We introduce three variants: compact uni- and bi-encoders (145-147M) for high-throughput serving, and GLiGuard Omni (209M) for stronger moderation quality. Under dynamic batching on a single A100, the compact model reaches 193 requests/sec with P99 latency below 1s, achieving 1.6x higher throughput than GLiNER2. Omni remains competitive with much larger moderators on public safety benchmarks. We also release PII-Bench, a span-level benchmark for evaluating PII detection in end-to-end pipelines. Overall, encoder-based guardrails offer a practical low-cost alternative for always-on moderation. Models and benchmarks are released on HuggingFace.

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

↑