Lune

ACL2026Top-tier venue

FlexGuard: Continuous Risk Scoring for Strictness-Adaptive LLM Content Moderation

Zhihao Ding, Jinming Li, Ze Lu, Jieming Shi

Abstract

Ensuring the safety of LLM-generated content is essential for real-world deployment. Most existing guardrail models formulate moderation as a fixed binary classification task, implicitly assuming a fixed definition of harmfulness. In practice, enforcement strictnesshow conservatively harmfulness is defined and enforced-varies across platforms and evolves over time, making binary moderators brittle under shifting requirements. We first introduce FlexBench, a strictness-adaptive LLM moderation benchmark that enables controlled evaluation under multiple strictness regimes. Experiments on FlexBench reveal substantial cross-strictness inconsistency in existing moderators: models that perform well under one regime can degrade substantially under others, limiting their practical usability. To address this, we propose FlexGuard, an LLM-based moderator that outputs a calibrated continuous risk score reflecting risk severity and supports strictness-specific decisions via thresholding. We train FlexGuard via risk-alignment optimization to improve score-severity consistency and provide practical threshold selection strategies to adapt to target strictness at deployment. Experiments on FlexBench and public benchmarks demonstrate that FlexGuard achieves higher moderation accuracy and substantially improved robustness under varying strictness. We release the source code and data to support reproducibility. Warning: This paper contains example data that may be offensive or harmful.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • SALAD-Bench: A Hierarchical and Comprehensive Safety Benchmark for Large Language Models cites ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversation
  • RSafe: Incentivizing proactive reasoning to build robust and adaptive LLM safeguards cites SALAD-Bench: A Hierarchical and Comprehensive Safety Benchmark for Large Language Models
  • RSafe: Incentivizing proactive reasoning to build robust and adaptive LLM safeguards cites HybridFlow: A Flexible and Efficient RLHF Framework
  • RSafe: Incentivizing proactive reasoning to build robust and adaptive LLM safeguards cites ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversation
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on8

  1. SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao et al.ICLR 2024 · 2,082 citations
  2. HybridFlow: A Flexible and Efficient RLHF FrameworkGuangming Sheng, Chi Zhang, Zilingfeng Ye, Xibin Wu et al.EuroSys 2025 · 61 citations
  3. ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI ConversationZi Lin, Zihan Wang, Yongqi Tong, Yangkun Wang et al.EMNLP Findings 2023 · 44 citations
  4. SALAD-Bench: A Hierarchical and Comprehensive Safety Benchmark for Large Language ModelsLijun Li, Bowen Dong, Ruohui Wang, Xuhao Hu et al.ACL Findings 2024 · 35 citations
  5. RSafe: Incentivizing proactive reasoning to build robust and adaptive LLM safeguardsJingnan Zheng, Xiangtian Ji, Yijun Lu, Chenhang Cui et al.NeurIPS 2025 · 17 citations

Related papers

  1. XGUARD: A Graded Benchmark for Evaluating Safety Failures of Large Language Models on Extremist ContentVadivel Abishethvarman, Bhavik Chandna, Pratik Jalan, Usman NaseemACL Findings 2026
  2. On Calibration of LLM-based Guard Models for Reliable Content ModerationHongfu Liu, Hengguan Huang, Xiangming Gu, Hao Wang et al.ICLR 2025 · 1 citation
  3. BingoGuard: LLM Content Moderation Tools with Risk LevelsFan Yin, Philippe Laban, Xiangyu Peng, Yilun Zhou et al.ICLR 2025
  4. DynaGuard: A Dynamic Guardian Model With User-Defined PoliciesMonte Hoover, Vatsal Baherwani, Neel Jain, Khalid Saifullah et al.ICLR 2026 · 18 citations
  5. GuardBench: A Large-Scale Benchmark for Guardrail ModelsElias Bassani, Ignacio SanchezEMNLP 2024 · 7 citations
Dusk over the sea between two cliffs drawn in fine vertical lines