Auditing Moderation Robustness Under Realistic Settings

Bargav Jayaraman, Hamid Mozaffari, Virendra Marathe, Swetasudha PandaCOLM 2026

TL;DR

This paper introduces a systematic auditing framework to evaluate how easily Content Moderation (CM) models can be fooled by "realistic" text changes—perturbations that preserve the original meaning but trick the AI. The researchers found that while larger models like LlamaGuard3 are significantly more resilient than older BERT-style models, all current systems remain vulnerable to clever, low-budget attacks, though they generally maintain fairness across different demographic groups.

What Problem Does This Paper Address?

Content moderation is the frontline defense for social media, yet the models powering it are notoriously brittle. While researchers have long known that adversarial perturbations (like replacing "s" with "5") can bypass filters, most studies focus on "unconstrained" attacks that might render the text unreadable or change its meaning entirely.

The authors argue that a true audit must reflect realistic settings:

  1. Semantic Preservation: The attack shouldn't change the core meaning (e.g., hate speech must remain hate speech to a human, even if the AI misses it).
  2. Resource Constraints: Real-world attackers don't have infinite compute; they have limited "budgets" for how many times they can query a model.
  3. The Dual Threat: Most research focuses on bypassing (making bad content look good). This paper also tackles suppression (making benign content look like a policy violation), which can be used to silence specific voices or harass users.

Methods

The authors developed a robustness auditing framework where an "auditor" acts as an internal adversary with API access to the moderation pipeline.

Figure 2: Robustness Auditing Framework.

Key technical components include:

  • Perturbation Methods: They tested three approaches: Leetspeak (character substitutions), Algospeak (euphemisms and misspellings), and ReAct (a sophisticated LLM-based method that reasons about how to flip a label with minimal edits).
  • Reasonable Budgets: To define what a "realistic" change looks like, they measured the semantic drift (using cosine distance between embeddings) of natural human paraphrases. This provided a benchmark for how much a sentence can change without losing its meaning.
  • New Metrics: They introduced Effective normalized Robustness AUC (E-nRAUC). Unlike standard metrics, E-nRAUC accounts for the actual semantic drift achieved by an attack, preventing the overestimation of a model's robustness in areas the attacker couldn't even reach.

Datasets

The framework was evaluated on three major public datasets:

  • ToxiGen: A large-scale dataset of machine-generated hate speech and benign text.
  • Jigsaw: A classic dataset for toxicity classification (Unintended Bias in Toxicity Classification).
  • NoisyHate: A dataset containing human-written perturbations specifically designed to evade detection.

Key Insights and Ideas

  • Size is a Shield: Larger models (ShieldGemma-2B, LlamaGuard3-8B) are inherently more robust than BERT-style models. Their vast training data likely exposes them to a wider variety of linguistic "noise," making them harder to confuse with simple character swaps.
  • The Asymmetry of Attacks: Bypassing moderation is generally easier than suppressing benign content. Converting "safe" text to "unsafe" often requires more significant semantic shifts that might cross the "reasonable budget" threshold.
  • The "Low Confidence" Trap: Models are most vulnerable on samples where they are already uncertain (confidence < 0.6). These "low confidence" samples are the soft underbelly of moderation systems; even a tiny, nearly invisible perturbation can flip the classification.
  • Robustness Fairness: In a positive finding, the study shows that while models aren't perfectly robust, their vulnerability doesn't significantly discriminate. Robustness scores were broadly consistent across different ethnicity groups (Asian, Black, Hispanic, etc.).

Key Results

The quantitative gap between model generations is stark. As shown in Figure 1, LlamaGuard3 stands out as the most resilient, while BERT and RoBERTa struggle significantly as the perturbation budget increases.

Figure 1: Model robustness against input per- turbations with varying perturbation budget on ToxiGen dataset. E-nRAUC (Section 2.3) gives a compact robustness summary. Higher values indicate better model robustness.
  • LlamaGuard3 achieved an E-nRAUC of 0.839, indicating high overall robustness.
  • BERT lagged behind with an E-nRAUC of 0.468.
  • ReAct proved to be the most efficient "sniper" attack, finding successful flips in fewer iterations (often < 2 attempts) compared to rule-based methods, especially in low-budget scenarios.

Limitations and Future Work

The authors acknowledge that their auditor assumes API access (black-box). While realistic for many attackers, it doesn't cover "white-box" scenarios where an attacker knows the model's internal weights. Furthermore, while they briefly explored data augmentation as a mitigation strategy, they found it to be a cat-and-mouse game: fine-tuning a model on perturbed data can sometimes make it more vulnerable to new, adaptive attack patterns.

Future work is needed to develop "defense-in-depth" strategies that go beyond just adding more training data, potentially looking at structural changes to how LLMs process adversarial noise.

Summary updated

BibTeX
@inproceedings{jayaraman2026auditing,
  author = {Bargav Jayaraman and Hamid Mozaffari and Virendra Marathe and Swetasudha Panda},
  title = {{Auditing Moderation Robustness Under Realistic Settings}},
  booktitle = {COLM},
  year = {2026},
  url = {https://openreview.net/forum?id=c75ppS2dpw},
}
Figure