TL;DR
EvoHarmBench introduces the first dynamic adversarial evaluation framework for content moderation systems, mimicking how real-world users adaptively rewrite harmful text to evade detection. By evolving evasion strategies at the semantic-cluster level through an automated feedback loop, the framework achieves an 80.3% attack success rate against state-of-the-art LLM moderators while preserving human readability. This work highlights a critical vulnerability gap that traditional static safety benchmarks completely fail to capture.
What Problem Does This Paper Address?
Automated content moderation is rapidly shifting from simple keyword filters to Large Language Models (LLMs). However, current evaluation methods rely almost entirely on static benchmarks. In the real world, content moderation is a dynamic cat-and-mouse game: malicious users don't just give up when their post is blocked; they iteratively modify their language using homophones, character splitting, pinyin, and metaphors until it bypasses the filter while remaining perfectly clear to other humans.
This paper addresses the significant performance gap between high safety scores on static offline benchmarks and actual vulnerability in live, deployment environments where users adaptively rewrite text based on system feedback.
Methods
The authors propose EvoHarmBench, a dynamic evaluation framework that automates human-like evasion using an LLM-driven "evaluate-then-propose" loop based on the GEPA prompt optimization framework.
Rather than optimizing attacks for isolated sentences, EvoHarmBench evolves rewriting strategies at the semantic-cluster level to discover reusable evasion patterns. The pipeline consists of four main components:
- Rewriting Model: Applies the current evasion strategy to generate mutated text variants.
- Defense Model: The target content moderator being evaluated.
- Comparison Model: Evaluates whether the rewritten text preserves the original harmful intent and scores its human readability.
- Reflection Model: Diagnoses why an attack failed (e.g., due to insufficient evasion or over-obfuscation) and refines the strategy for the next round.
Strategies are only updated if they strictly improve the cluster-level score, ensuring a monotonic increase in attack effectiveness over multiple iterations.
Datasets
The benchmark is built on a newly introduced dataset of 5,002 real-world adversarial samples collected from Chinese e-commerce, social media, and local-service platforms. These represent successful human-generated attacks that originally escaped platform moderation but were later reported by users.
- Expert Annotation: Content moderation specialists manually annotated each sample with its risk category, original meaning, and specific mutation strategy.
- Semantic Clustering: Samples were encoded using
bge-m3sentence embeddings and grouped via DBSCAN into 229 semantic sub-clusters across five major violation categories: pornographic content, gambling/fraud, advertising/traffic diversion, spam/flooding, and abusive content.
Key Insights and Ideas
- Static Safety is an Illusion: A model that appears robust under a one-shot direct audit can be systematically broken after just a few rounds of adaptive rewriting.
- SFT on Static Data is a Band-Aid: Supervised Fine-Tuning (SFT) on static moderation datasets helps LLMs recognize familiar policy violations but fails to generalize against attackers who progressively revise content based on live moderation outcomes.
- Linguistic Vulnerability is Non-Uniform: LLMs struggle heavily with flexible, coded, or weakly lexicalized expressions (like pornographic or gambling code words) where intent is implied. Conversely, explicit abusive language is much harder to disguise without losing its core meaning.
Key Results
- SOTA LLMs are Highly Vulnerable: Across seven frontier models (including GPT-5.5, Claude Sonnet 4.6, and Gemini 3.1 Pro), the average Attack Success Rate under readability constraints (ASR@Readable) reached 80.3% after 12 optimization rounds. GLM 5.1 exhibited the highest vulnerability at 88.8%.
- Billion-Scale Models Completely Break: Smaller open-source models (e.g., Qwen3-8B, DeepSeek-V2-Lite) reached an average ASR@Readable of 91.2%, with some variants exceeding 92%, indicating that iterative rewriting can almost completely dismantle their defenses.
- Category Vulnerability: Pornographic content (91.7% ASR) and Gambling/Fraud (89.8% ASR) proved to be the easiest to successfully obfuscate, while Abusive content was the most robust (62.5% ASR).
Limitations and Future Work
- No False Positive Metric: EvoHarmBench focuses exclusively on adversarial evasion and does not measure whether defense models over-block benign text (false positives) as a side effect of tightening their filters.
- Language and Platform Specificity: The dataset is currently instantiated on Chinese platforms. While the underlying problem applies universally, specific mutation patterns (like character splitting or pinyin) are highly language-dependent.
- LLM Evaluator Bias: The framework relies on an LLM (DeepSeek-V3.2-Exp) for rewriting, comparison, and reflection, which could introduce subtle evaluator biases.
- Future Directions: The authors suggest extending the benchmark to multilingual settings and exploring feedback-driven adversarial evaluation for multimodal content (text + images).
Summary updated