Skip to content

CaseLaw: A Policy-Decoupled Training-Free Content Moderation FrameworkCaseLaw: A Policy-Decoupled Framework for Training-Free Content Moderation

arXiv· arXiv:2611.11812· Qi Lu, Sen Li, Likun Shi, Xiaolong JiangXiaohongshu; University of Science and Technology of ChinaIndexed by this site · 13 days ago· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

Xiaohongshu et al. propose the training-free content moderation framework CaseLaw: it externalizes policy updates as case library edits, and after the MFO-RedNotes policy change its precision/recall at each risk level exceeds the baselines.

Threat modelThe paper is not an attack paper: the defender needs to maintain moderation accuracy when the policy (label space, risk boundaries, exemption rules) changes. CaseLaw assumes that content semantics are relatively stable while policy changes; adaptation is done only by updating the external case library (case labels, thresholds, policy-label mapping), while the deployed representation model and extraction prompts remain frozen, requiring no retraining or prompt rewriting.

Questions
Content moderation inherently depends on policy: boundaries are subjective and frequently updated, while rule rewriting, model retraining, and redeployment are costly; rule-based LLM agents make inconsistent judgments on content at the same boundary, and fixed classifiers struggle to adapt to policy revisions.
Methods
CaseLaw reframes moderation as precedent-based retrieval plus thresholded voting: NoteCap extracts multimodal content into evidence-preserving structured semantics, which after embedding with a frozen encoder is retrieved in an editable case library, and cases whose similarity reaches their respective thresholds each cast one vote; policy adaptation changes only the case library, while the model and prompts stay unchanged.
Experiments and results
On the self-built MFO-RedNotes (50,000 entries, 10,000 relabeled after a policy change), under both the original policy and the changed policy, CaseLaw ranks first in precision/recall at every risk level, leading the strongest baseline by 10.7–18.7 percentage points after the change; CoPro five-category macro average is 90.02%/89.94%; TBBT also ranks first on all three sub-versions.
Limitations and future work
The authors note: performance depends on the accuracy, coverage, balance, and freshness of the case library, and comparison with general-purpose guardrail models is affected by category mapping. Experiments cover two self-built/public benchmarks plus TBBT text comments; the paper does not report inference latency or operating cost.
Experimental setupNoteCap · MFO-RedNotes、CoPro(五类别) et al. · Precision、Recall et al.
Evaluated models
NoteCap
Benchmarks
MFO-RedNotesCoPro(五类别)The Big Ban Theory (TBBT)
Metrics
PrecisionRecallMacro-F1Top5-diff样本方差 (pp2)
AI summaryCaseLaw is a policy-decoupled, training-free content moderation framework that turns moderation into precedent-based retrieval and voting. It uses NoteCap to extract and freeze structured semantics that preserve evidence; policy adaptation only updates the semantic case library, without retraining or changing prompts. Under two policy settings on MFO-RedNotes, precision/recall reach up to 86.8%/90.1%, and on CoPro 94.5%/92.3%, outperforming baselines.

CaseLaw is a policy-decoupled, training-free content moderation framework that turns moderation into precedent-based retrieval and voting. It uses NoteCap to extract and freeze structured semantics that preserve evidence; policy adaptation only updates the semantic case library, without retraining or changing prompts. Under two policy settings on MFO-RedNotes, precision/recall reach up to 86.8%/90.1%, and on CoPro 94.5%/92.3%, outperforming baselines.

Related events and news

0 events · 1 news mentions

News that mentions this paper

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Addresses the problem that in content moderation policies change frequently while existing systems require rule rewriting, retraining, or redeployment, and judgments are inconsistent.

    Core problem: content moderation is policy-dependent; when policy changes, existing rule-based or fine-tuned systems must rewrite rules, retrain models or redeploy, which is costly and slow to iterate.

    • Scenario and importance: platforms need to moderate user-generated content at scale, and the same content may receive different judgments on different platforms, cultures, user groups or policy time points; the authors argue that a practical system must both accurately identify harmful content and adapt quickly when policy definitions, severity or boundaries change.
    • Shortcomings of existing methods (as stated in the paper): rule-guided LLM agents may give different results when repeatedly evaluated on the same content and prompt, and are sensitive to wording, format, input length and the position of relevant information; classifiers with fixed parameters are reproducible but their decision boundaries struggle to accommodate policy revisions, and adaptation often requires retraining, rewriting policy prompts and redeployment.
    • Core observation: the authors argue that the semantics of moderated content are relatively stable, while policies, risk boundaries and enforcement priorities evolve; adaptation can therefore be moved from model optimization to explicit case-level knowledge.
    • Proposed in the paper: CaseLaw—a case-driven, policy-decoupled training-free moderation framework; an evidence-preserving structured semantic representation and a dedicated extraction model NoteCap (trained on 100,000 labeled notes and then frozen); the MFO-RedNotes benchmark (50,000 entries, of which 10,000 are relabeled after a policy change) and a five-category CoPro comparison.
    • Threat model (defender perspective):
      • Defender's goal: maintain accurate moderation across a sequence of policy states (new labels, boundary revisions, mapping changes).
      • Assumption: content semantics are relatively stable and policy is variable; adaptation only updates the external case library.
      • Capability constraints: no retraining of the deployed model, no prompt rewriting (training-free, prompt-invariant).
      • Victim/protected object: the deployed moderation system and its consistency after policy changes.
  2. What related research exists?

    Related work falls into three groups: automated moderation and AI safety, policy operationalization and prompt-based moderation, and retrieval-augmented and case-based moderation.

    Automated content moderation and AI safety

    • Keyword filtering, hash matching, and supervised classifiers are the traditional paths for moderation at scale; the paper notes that automated methods are sensitive to language variation and contextual ambiguity (Nobata et al. 2016; Gorwa et al. 2020).
    • Word embeddings and Transformer/bidirectional pretraining provide semantic representations (Mikolov et al. 2013; Devlin et al. 2019, etc.); the paper notes that stronger semantic capability does not eliminate policy dependence.

    Policy operationalization and prompt-based moderation

    • Traditional pipelines convert policies into annotation guidelines and datasets for supervised training (Markov et al. 2023; Palla et al. 2025).
    • Policy-as-Prompt approaches write policies directly into prompts (Brown et al. 2020; Ouyang et al. 2022; Palla et al. 2025), combined with CoT and ReAct multi-step reasoning (Wei et al. 2022; Yao et al. 2023); the paper notes that LLM judgments are sensitive to prompt format, input length, and information position (Sclar et al. 2024; Liu et al. 2024a), making consistent enforcement across policy versions difficult.

    Retrieval-augmented generation and case-based moderation

    • RAG uses external non-parametric memory to provide updatable knowledge (Lewis et al. 2020; Gao et al. 2024); dense retrieval and Faiss support large-scale similarity search (Lin et al. 2023; Douze et al. 2026).
    • Class-RAG (Chen et al. 2024) uses a library of safe/unsafe examples for real-time semantic hot-fixing; the paper notes that similarity between raw examples may be insufficient to support fine-grained, policy-dependent judgments, which often depend on structured risk cues and subtle distinctions near boundaries.

    Baselines and benchmarks: The compared baselines are Zero-shot, Fixed few-shot, Fine-tuning, Class-RAG, and Llama Guard; the benchmarks are the self-built MFO-RedNotes, five-category CoPro (Liu et al. 2024b), and TBBT in the appendix (Cerulli et al. 2026).

    The authors position this work as moving policy adaptation from model optimization to an editable semantic case library, with the representation model frozen throughout, distinguishing it from classifiers that require retraining and retrieval methods that rely on similarity between raw examples.

  3. How does the paper address this problem?

    CaseLaw uses a frozen NoteCap to extract structured semantics, retrieves precedents in an editable case library and votes by threshold; policy adaptation only changes the case library.

    Overall approach: CaseLaw reframes moderation as case-based semantic reasoning—multimodal content is first turned into evidence-preserving structured semantics, embedded into a fixed semantic space, and used to retrieve precedents; precedents vote for labels according to their respective thresholds; policy changes manifest only as revisions to the case library.

    Problem formulation

    • Input x may contain text, images, video, and audio; the label space Yt varies with policy state pt. The goal is, under the constraints Θt+1=Θt and πt+1=πt (model and prompts unchanged), to maximize the average accuracy across policy states max 1/T∑t Acct(Lt), i.e., maintain performance only by updating the case library Lt.

    Structured semantic extraction (NoteCap)

    • NoteCap is supervised-trained on 100,000 notes annotated according to the same structured schema; the supervision target is semantic organization and evidence preservation rather than specific policy labels, and after training it is frozen across policy versions.
    • Multimodal handling: OCR extracts text from images, ASR transcribes speech in audio and video, and these together with the original images and video frames serve as multimodal input for evidence selection.
    • Output is a five-tuple ax=(Ex, Cx, Tx, Bx, Mx): evidence segments, core claim, topic, subtopic, expression type; evidence segments are selected by Topme{ρθ(gj,x)}, with 6–8 sentences/segments retained in practice and the core claim about 150–200 words.
    • Design rationale (given by the paper): directly embedding the original text is noisy, while summary-only embedding loses wording that determines risk severity; evidence preservation can reduce the semantic drift caused by summary-only.

    Case library construction

    • Each case stores a six-tuple ci=(ui, ai, zi, yi, ri, τi): original content, structured semantics, embedding, policy-dependent label, decision rationale, and case-level similarity threshold.
    • Threshold calibration: before insertion, thresholds are calibrated on a validation set containing safe and violating notes, choosing the operating point based on its effect on violating-note recall and safe-note false-positive rate; cases with implicit risk cues use higher thresholds.
    • Embedding: the serialized representation τ(ai) is passed through a frozen encoder Eϕ to obtain zi; queries retrieve top-k nearest cases via ANN.

    Thresholded precedent voting

    • A retrieved case ci participates in voting only when its cosine similarity si≥τi, and each qualifying case casts one vote for its current label; the final label is chosen lexicographically by ŷ=argmaxℓ(nℓ, ∑ci∈ Vℓ si/nℓ), i.e., vote count first, then average similarity of supporting cases for ties.
    • When no case reaches the threshold, the item goes to human review; with k=16 and a 40,000-case library, no top-label ties occurred in evaluation, and residual ties also go to human review.

    Policy adaptation and success criteria

    • Policy updates are realized through case-level revisions: label corrections, threshold recalibration, and case insertion, with model parameters and prompts unchanged.
    • Success criteria: compare per-category precision/recall under the original and changed policies of MFO-RedNotes and on the five CoPro categories; Appendix A gives an information-theoretic proposition: if structured semantic clusters N provide label information beyond the classifier's coarse region R, then conditional entropy does not increase (the authors use this to argue that structured refinement can reduce moderation uncertainty).
  4. What experiments did the paper conduct?

    Comparing five baselines on MFO-RedNotes before and after the policy change, on the five CoPro categories and on TBBT, CaseLaw ranks first in every column, and ablations are performed on representation, voting depth and the case library.

    Experimental setup

    • Systems evaluated: CaseLaw and five baselines—Zero-shot, Fixed few-shot, Fine-tuning, Class-RAG, and Llama Guard (using its original safeguard checkpoint, with categories mapped to benchmark labels).
    • Backbones and components: The language model backbone and reference structured extractor for Zero-shot/Fixed few-shot/Fine-tuning is Qwen3.5-35B-A3B; Fine-tuning uses LLaMA-Factory full-parameter fine-tuning; representation experiments uniformly use Qwen3-Embedding-8B; CaseLaw has no classification model backbone and uses the voting rule in Eq. (10).
    • Datasets: MFO-RedNotes has 50,000 multimodal notes (40,000 train/5,000 validation/5,000 test), with 20 expert reviewers labeling four risk levels according to policy; the policy revision changes the labels of 10,000 notes (20%); CoPro has five categories (Safe, Sexual, Hate, Violence, Shocking) with a balanced validation set of 5,000 notes, 1,000 per category; Appendix C uses three TBBT subreddit subsets.
    • Metrics: Precision/Recall (%) per category, macro average; ablations include the mean of five runs, sample variance (pp2), and Top5-diff.
    • Parameters: In Table 1, CaseLaw uses k=16; experiments use a server with 32 NVIDIA H800 GPUs.
    • Annotation quality control: Five rounds, each randomly sampling 10% for double-blind review; a round passes only if agreement exceeds 95%, otherwise relabeling is performed.

    Main results

    According to Table 1 (MFO-RedNotes, precision/recall %):

    Swipe horizontally to read the table

    MethodSafe (original policy)High-risk (original policy)Safe (after change)High-risk (after change)
    Zero-shot56.6/54.550.7/50.757.2/55.345.4/46.2
    Fixed few-shot71.5/72.268.1/67.864.2/62.156.6/52.5
    Fine-tuning78.1/85.081.2/76.266.7/67.567.5/66.2
    Class-RAG81.0/85.382.5/78.368.2/69.368.3/65.8
    Llama Guard66.3/65.760.3/60.361.0/59.551.9/49.3
    CaseLaw85.3/88.385.3/90.186.8/88.084.4/83.8
    • Under the original policy, CaseLaw ranks first in all eight columns (four risk levels × precision/recall), with gains of 1.5–11.8 percentage points over the strongest baseline; after the change it also ranks first in all eight columns, with gains of 10.7–18.7 percentage points (Table 1).
    • Baselines drop more after the change: Fine-tuning macro-average precision/recall falls from 77.2%/76.6% to 65.1%/65.6%, Class-RAG from 79.5%/78.6% to 66.0%/66.1%; CaseLaw's equal-weight average over the four categories falls from 84.6%/83.9% to 82.9%/82.8%. The authors state this reflects the advantage of case-level semantic stability, changing only the semantic-to-label mapping.
    • On CoPro, CaseLaw ranks first in all ten category-level comparisons, with macro-average precision 90.02% and recall 89.94%, exceeding the strongest baseline Class-RAG (84.80%/84.78%) by 5.22 and 5.16 percentage points; Violence reaches 94.5%/92.2% (Table 2).

    Representation and extractor ablations

    • Representation ablation (Table 3): On the MFO-RedNotes subset (1,000 Safe + 1,000 Unsafe) and CoPro, NoteCap's precision/recall gains over Summary only are 12.6–13.7 and 13.2–17.2 percentage points, respectively; NoteCap's variance across five runs is 0.00 pp2, while Summary only fluctuates with variance of 0.07–0.12 pp2.
    • Extractor stability (Table 4): On the MFO-RedNotes validation set, original policy, k=16, NoteCap's Top5-diff is 0.0% (both categories), Gemini-3.1-Pro is 16.8%/12.0%, GPT-6.1-sol is 11.6%/7.6%, and Qwen-3.8-Max is 22.6%/17.5%; NoteCap's precision/recall variance is 0.00 pp2, and its Unsafe precision/recall of 96.3%/94.9% is the highest among the extractors.
    • Embedding distribution (Figure 3, Figure 5): t-SNE visualizes 1,000 safe + 1,000 risky notes; the authors state that NoteCap produces tighter intra-class clusters and clearer inter-class separation than direct embedding and summary-only, and the same holds in Appendix D compared with InternVL3-14B-Instruct and Llama-4-Scout-17B (the dimensionality-reduction plots show only cluster distributions; the interpretation is the authors').

    Other ablations and analyses

    • Voting depth (Figure 4): As k goes from 4 to 16, Safe precision/recall rises from 77%/76% to 85%/88%, and Unsafe from 72%/73% to 85%/82%; at k=24 it is 87%/87% and 85%/84%, and beyond k=16 changes are within two percentage points.
    • Case library size (Table 7): From 1,000 to 40,000 cases, Macro-F1 rises from 64.0% to 83.8%.
    • Label balance (Table 8): As the largest/smallest label ratio goes from 1:1 to 8:1, Macro-F1 falls from 83.8% to 69.3%, and the worst-label recall falls from 76.6% to 51.4%.
    • Semantic redundancy (Table 9): As the proportion of near-duplicate cases goes from 0% to 75%, the number of clusters falls from 40,000 to 17,240, and Macro-F1 falls from 83.8% to 69.5%.
    • TBBT (Appendix C, Table 6): CaseLaw ranks first in all six comparisons across the braincels, theredpill, and chapotraphouse subsets (e.g., chapotraphouse 89.8%/90.5%), with gains of 4.2–10.2 percentage points over the strongest baseline.
  5. What are some points that can be further explored?

    The authors point out two limitations: the quality of the case library and the mapping of guardrail model categories; the experiments cover two main benchmarks plus TBBT, and latency and cost are not reported.

    Limitations pointed out by the authors and future directions

    • Case library dependence (Limitations section): CaseLaw externalizes policy knowledge rather than eliminating policy dependence; performance is still affected by the accuracy, coverage, balance and freshness of the case library.
    • Mapping sensitivity of the comparison (Limitations section): the comparison with general-purpose guardrail models is sensitive to the mapping of their native safety categories to benchmark policy labels.
    • The paper does not list Future Work separately outside Limitations; the case library maintenance process given in Appendix E (cold-start labeling, continuous logging into the library, threshold calibration, targeted maintenance at policy changes) is a system design description rather than a future direction.

    Scope of experimental coverage

    • The systems under test are CaseLaw plus five baselines (Zero-shot, Fixed few-shot, Fine-tuning, Class-RAG, Llama Guard); the main benchmarks are MFO-RedNotes (50,000 entries, including both before and after policy change settings) and five-category CoPro (5,000 validation set), with three TBBT subreddit text comment subsets added in the appendix.
    • The extractor comparison covers Gemini-3.1-Pro, GPT-6.1-sol, Qwen-3.8-Max and NoteCap (Table 4), and the embedding distribution comparison additionally includes InternVL3-14B-Instruct and Llama-4-Scout-17B (Figure 5).
    • The stability experiment consists of five repeated runs and reports sample variance; the main results tables (Table 1, Table 2) do not report the number of repetitions or statistical significance tests.
    • Risk domains cover gender opposition (MFO-RedNotes), five categories of general safety (CoPro) and three community comment moderation sets (TBBT); the paper does not report inference latency, throughput or running cost, and the efficiency claim ("lightweight") has no corresponding measured numbers.
    • The policy change scenario is one kind: 10,000 notes relabeled by four expert-defined exemption rules (Appendix B); other types of policy change are not covered.
  6. Summarize the main content of the paper

    CaseLaw externalizes policy adaptation as case library edits, adapting to policy changes without training, and exceeds baselines in per-category precision/recall on three benchmarks.

    CaseLaw is a policy-decoupled, training-free content moderation framework proposed by Xiaohongshu et al., addressing the high cost of rule rewriting, retraining, and redeployment when policies are frequently updated.

    • Method: NoteCap (trained on 100,000 labeled notes and then frozen) extracts multimodal content into evidence-preserving structured semantics (6–8 sentences per evidence segment, core claim about 150–200 words); after embedding with a frozen encoder, it performs ANN retrieval in an editable case library, and precedents whose similarity reaches their own threshold each cast one vote, with the label determined by vote count and average similarity; policy updates only change case labels, thresholds, and mappings, while the model and prompts stay unchanged.
    • Main results: Under the original and changed policies of MFO-RedNotes, CaseLaw ranks first in all precision/recall comparisons across the four risk levels, leading the strongest baseline by 10.7–18.7 percentage points after the change (Table 1); baselines drop more after the change, e.g., Fine-tuning macro average falls from 77.2%/76.6% to 65.1%/65.6%.
    • Generalization: On CoPro, five-category macro-average precision/recall is 90.02%/89.94%, exceeding Class-RAG by 5.22/5.16 percentage points (Table 2); on the three TBBT subreddit subsets, all six comparisons rank first (Table 6).
    • Ablation: Across five runs of NoteCap, Top5-diff is 0.0% and variance is 0.00 pp2, outperforming three general-purpose extractors (Table 4); case library size, label balance, and semantic deduplication all affect performance, with Macro-F1 dropping from 83.8% to 69.3% at a label ratio of 8:1 (Table 8).
    • Authors' conclusion: Case-library-driven policy adaptation is a practical, scalable, and transparent moderation direction under rapid policy evolution; they also acknowledge that performance depends on case library quality and that comparison with general-purpose guardrail models is affected by category mapping.
Read originalarxiv.org