arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.16174cs.LGcs.AIcs.CLcs.CR
收藏

基于多层潜在原型的高效LLM审核

Efficient LLM Moderation with Multi-Layer Latent Prototypes

University of Warsaw(华沙大学)

Maciej Chrabąszcz, Filip Szatkowski, Bartosz Wójcik, Jan Dubiński, Tomasz Trzciński, Sebastian Cygert

AI总结:

提出多层原型审核器(MLPM),利用多层中间表示的原型实现轻量、高效且可定制的输入审核,在多个基准上达到最优性能,并可与输出审核结合提升响应安全性。

摘要:

尽管现代LLM在后训练过程中与人类价值观对齐,但在部署时仍需稳健的审核以防止有害输出。现有方法存在性能与效率的权衡,且难以定制以满足用户特定需求。针对这一差距,我们引入了多层原型审核器(MLPM),一种轻量级且高度可定制的输入审核工具。我们提出利用多层中间表示的原型来提高审核质量,同时保持高效率。通过设计,我们的方法对生成流水线的开销可忽略不计,并可无缝应用于任何模型。MLPM在多种审核基准上实现了最先进的性能,并在不同大小的模型系列中表现出强大的可扩展性。此外,我们展示了它能平滑集成到端到端审核流水线中,并在与输出审核技术结合时进一步提高响应安全性。总体而言,我们的工作为安全、稳健且高效的LLM部署提供了一种实用且可适应的解决方案。

英文摘要:

Although modern LLMs are aligned with human values during post-training, robust moderation remains essential to prevent harmful outputs at deployment time. Existing approaches suffer from performance-efficiency trade-offs and are difficult to customize to user-specific requirements. Motivated by this gap, we introduce Multi-Layer Prototype Moderator (MLPM), a lightweight and highly customizable input moderation tool. We propose leveraging prototypes of intermediate representations across multiple layers to improve moderation quality while maintaining high efficiency. By design, our method adds negligible overhead to the generation pipeline and can be seamlessly applied to any model. MLPM achieves state-of-the-art performance on diverse moderation benchmarks and demonstrates strong scalability across model families of various sizes. Moreover, we show that it integrates smoothly into end-to-end moderation pipelines and further improves response safety when combined with output moderation techniques. Overall, our work provides a practical and adaptable solution for safe, robust, and efficient LLM deployment.

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

↑