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

Zhihao Ding, Jinming Li, Ze Lu, Jieming Shi

TL;DR

Traditional LLM guardrails treat content moderation as a static binary task, making them highly brittle when safety policies change or vary across platforms. This paper introduces FlexBench, a new benchmark to evaluate moderation under varying strictness levels, and FlexGuard, a model that outputs continuous risk scores rather than binary labels. By adjusting a single score threshold, FlexGuard seamlessly adapts to different enforcement regimes without sacrificing accuracy or requiring retraining.

What Problem Does This Paper Address?

Content moderation is rarely black and white. What is acceptable on one platform (e.g., adult content on X) might be banned on another (e.g., a general-audience Reddit community). Furthermore, safety policies constantly evolve over time.

The same content is treated differently under varying enforcement strictness. This demonstrates the limitation of binary moderators, which cannot adapt to changing strictness requirements.

Current LLM guardrails typically formulate moderation as a binary classification problem (safe vs. unsafe). This implicitly ties the model to a single, rigid definition of harm. When deployed in environments with different strictness requirements, these binary moderators suffer severe performance drops because they cannot adapt to shifting boundaries.

F1 scores on FlexBench across three strictness regimes; Performance drop from best to worst of each method is marked.

Methods

To overcome this rigidity, the authors propose FlexGuard, an LLM-based moderator that predicts a risk category and a calibrated continuous risk score $r \in [0, 100]$.

The training and deployment pipeline consists of three main phases:

  1. Rubric-Guided Score Distillation: Since most public datasets only provide binary labels, the authors use a strong LLM judge (Doubao-1.6-Pro) guided by expert rubrics to generate continuous pseudo-scores and rationales. These scores are then mathematically calibrated to ensure they remain consistent with the original dataset's binary safety labels.
  2. Risk Alignment Training: The model (built on a Qwen3-8B backbone) undergoes a two-stage training process. First, a Supervised Fine-Tuning (SFT) warm-up teaches the model to output structured rationales and scores. Second, Group Relative Policy Optimization (GRPO) reinforcement learning is applied using a dense reward function that penalizes both incorrect category predictions and score deviations.
  3. Adaptive Threshold Selection: At inference time, users can implement different strictness regimes simply by changing the score threshold ($t_\tau$). The paper outlines two strategies: Rubric Thresholding (using predefined semantic cutoffs like 20, 40, or 60) and Calibrated Thresholding (optimizing the threshold on a small validation set).
Overview of (a) FlexBench construction and (b) FlexGuard.

Datasets

The authors introduce FlexBench, a human-annotated benchmark specifically designed for strictness-adaptive moderation. It contains 4,000 instances balanced across five severity tiers (Benign, Low, Moderate, High, Extreme) and seven risk categories (including violence, sexual content, and jailbreaks). These tiers map directly onto three distinct strictness regimes: Strict, Moderate, and Loose.

For training, FlexGuard utilizes the training splits of Aegis2.0 and WildGuardMix, which are rigorously deduplicated against FlexBench to prevent data leakage.

Key Insights and Ideas

  • Binary Guardrails are Brittle: Evaluating existing state-of-the-art models on FlexBench revealed massive performance swings. For instance, Qwen3Guard’s F1 score dropped by 19.2% when moving from a strict to a loose prompt moderation regime.
  • Continuous Scoring as a Unified Interface: Instead of running expensive multi-stage post-checks to determine risk severity after a binary flag, predicting a continuous score upfront provides a computationally efficient and flexible interface for downstream applications.
  • RL with Dense Rewards is Crucial: The ablation studies highlighted that reinforcement learning via GRPO with a dense regression reward was the single largest contributor to making the model's scores truly monotonic and aligned with human-perceived severity.

Key Results

FlexGuard demonstrates superior accuracy and robustness across varying strictness regimes compared to top-tier baselines:

  • FlexBench Superiority: FlexGuard with calibrated thresholding achieved the highest average F1 scores and the best worst-regime performance on FlexBench. It outperformed Doubao-1.8 by 5.85% on prompt moderation and GPT-5 by 9.64% on response moderation.
  • Generalization to Public Benchmarks: When evaluated on standard, static public benchmarks (such as ToxicChat, HarmBench, and BeaverTails), FlexGuard maintained highly competitive performance, proving that its flexibility does not come at the cost of general moderation capability.

Limitations and Future Work

While promising, the paper notes several limitations:

  • English-Only Focus: The benchmark, rubrics, and evaluations were conducted entirely on English data. Extending this framework to multilingual and code-mixed settings remains future work.
  • Training Source Dependence: The score distillation pipeline relies on a limited set of public training sources. The impact of shifting training distributions or adding more diverse data sources was not systematically explored.
  • Alternative RL Algorithms: The alignment stage was restricted to GRPO with a specific score-regression reward; alternative post-training alignment algorithms (like DAPO or GSPO variants) were left for future investigation.

Summary updated

BibTeX
@inproceedings{ding2026flexguard,
  author = {Zhihao Ding and Jinming Li and Ze Lu and Jieming Shi},
  title = {{FlexGuard: Continuous Risk Scoring for Strictness-Adaptive LLM Content Moderation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.263},
}
Figure