arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.08442cs.LGcs.AI
收藏

JurEE 而非 Judges:利用小型专业化 Encoder Ensembles 保障 LLM 交互安全

JurEE not Judges: safeguarding llm interactions with small, specialised Encoder Ensembles

Dom Nasrabadi

AI总结:

本文提出 JurEE,一个由高效仅含编码器的 transformer 模型组成的集成框架,通过提供概率性风险估计和定制化风险阈值,在内容审核任务上实现了比 LLM-as-Judge 更高的准确性、速度和成本效益。

摘要:

我们引入了 JurEE,这是一个由高效、仅包含编码器的 transformer 模型组成的集成模型,旨在加强基于 LLM 系统中 AI-用户交互的安全防护。与现有的 LLM-as-Judge 方法不同,这些方法通常在跨风险分类的泛化上存在困难且仅提供文本输出,JurEE 能针对广泛存在的常见风险提供概率性风险估计。我们的方法利用了多样化的数据源,并采用渐进式合成数据生成技术(包括 LLM 辅助增强),以提升模型的鲁棒性和性能。我们创建了一个内部基准测试,包含 OpenAI Moderation Dataset 和 ToxicChat 等其他知名基准,在此基准上,我们发现 JurEE 显著优于基线模型,展现出卓越的准确性、速度和成本效益。这使其特别适用于需要严格内容审核的应用,例如面向客户的聊天机器人。该编码器集成模型的模块化设计允许用户设置定制化的风险阈值,从而增强了其在各种安全相关应用中的通用性。JurEE 的集体决策过程(每个专门的编码器模型都对最终输出做出贡献)不仅提高了预测准确性,还增强了可解释性。这种方法为需要稳健内容审核的大规模实施提供了一种比传统 LLM 更高效、更高性能且更经济的替代方案。

英文摘要:

We introduce JurEE, an ensemble of efficient, encoder-only transformer models designed to strengthen safeguards in AI-User interactions within LLM-based systems. Unlike existing LLM-as-Judge methods, which often struggle with generalization across risk taxonomies and only provide textual outputs, JurEE offers probabilistic risk estimates across a wide range of prevalent risks. Our approach leverages diverse data sources and employs progressive synthetic data generation techniques, including LLM-assisted augmentation, to enhance model robustness and performance. We create an in-house benchmark comprising of other reputable benchmarks such as the OpenAI Moderation Dataset and ToxicChat, where we find JurEE significantly outperforms baseline models, demonstrating superior accuracy, speed, and cost-efficiency. This makes it particularly suitable for applications requiring stringent content moderation, such as customer-facing chatbots. The encoder-ensemble's modular design allows users to set tailored risk thresholds, enhancing its versatility across various safety-related applications. JurEE's collective decision-making process, where each specialized encoder model contributes to the final output, not only improves predictive accuracy but also enhances interpretability. This approach provides a more efficient, performant, and economical alternative to traditional LLMs for large-scale implementations requiring robust content moderation.

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

↑