Skip to content

Legilimens: a practical unified content moderation framework for large language model servicesLegilimens: Practical and Unified Content Moderation for Large Language Model Services

arXiv· arXiv:2408.15488· CCS 2024· Jialin Wu, Jiangyi Deng, Shengyuan Pang, Yanjiao Chen, Jiayang Xu, Xinfeng Li, Wenyuan Xu·Indexed by this site · 24 days ago· Originally publishedDefenses
AI summary

The researchers propose Legilimens, a content moderation framework for large language model services that balances moderation effectiveness and computational efficiency by extracting concept features from conversational LLMs. To address the effectiveness-efficiency dilemma in which simple moderation models are fragile and complex models incur high compute costs, the framework uses red-team-model-based data augmentation to improve robustness against state-of-the-art jailbreak attacks, and provides a theoretical analysis of its cost-effectiveness relative to other methods. Experiments cover 5 host LLMs, 17 datasets and 9 jailbreak methods, verifying the framework's effectiveness, efficiency and robustness against normal and adaptive attackers; comparisons with commercial and academic baselines show better performance, and it can be applied in few-shot settings and extended to multi-label classification tasks.

Read originalCCS 2024