TL;DR
This paper introduces a fully automated, multi-agent framework that systematically synthesizes adversarial "hard examples" to test and secure multimodal content moderation models. By using these agent-curated edge cases as in-context demonstrations at test time, the system slashes the target model's False Negative Rate (FNR) from 41.2% to 24.5% on a public safety benchmark—completely eliminating the need for costly human labeling.
What Problem Does This Paper Address?
Multimodal Large Language Models (MLLMs) are increasingly tasked with enforcing complex content safety and advertising policies. However, malicious actors constantly evolve their tactics, exploiting subtle visual cues, obfuscated text, or complex cross-modal interactions that standard training datasets miss.
Unearthing these "unknown unknowns" at the policy boundary typically requires manual red-teaming or active learning loops. Unfortunately, human expert review is profoundly unscalable, creating a massive bottleneck as policies evolve and threat vectors shift. This paper tackles the challenge of autonomously discovering and resolving these highly ambiguous, boundary-pushing edge cases without human intervention.
Methods
The authors propose an automated, agentic data curation framework operating on an iterative "Explore and Mutate" paradigm.
The architecture consists of several specialized components:
- Architect Agent ($M_A$): Powered by Gemini 3.1 Pro, it analyzes policy text and a small batch of seed examples to synthesize novel vulnerability hypotheses and image generation prompts. It leverages a persistent memory store of past successes and failures to guide its search.
- Operator Agent ($M_O$): An image generation model (Nano Banana Pro) that materializes the Architect's prompt into a synthetic composite image.
- Verification Block: The synthetic image is evaluated by the Target Model ($M_T$) and a Level I Committee of Raters ($CR_1$) (three independent instances of Gemini 3 Flash). If the committee unanimously agrees on a label but the Target Model disagrees, a Target Error is flagged, and the image is saved as a successfully mined hard example.
- Debate & Jury Block: If the Level I Raters disagree among themselves, they enter a structured debate round to reconcile their perspectives. If a deadlock persists, the case escalates to a Level II Jury Committee ($CR_2$) (three instances of Gemini 3.1 Pro) to establish the final ground truth.
At test time, when an unseen image is evaluated, the system uses Retrieval-Augmented Generation (RAG) to dynamically extract the top-$k$ ($k=4$) most semantically similar hard examples from the curated pool, using them as in-context learning (ICL) demonstrations to calibrate the target model's decision boundary.
Datasets
The framework was evaluated on two primary benchmarks:
- HoliSafe-Bench: A public safety benchmark. The authors created a dedicated "hard subset" of 918 images where a naive zero-shot model's predictions contradicted the ground truth.
- Proprietary Ads Safety Dataset: An internal dataset containing over 3,000 images sampled from real Google Ads traffic, annotated by domain-expert human raters across multiple unsafe and safe categories.
Key Insights and Ideas
- The 75/25 Rule for Exploration: Through ablation studies, the authors found that a generation ratio of 75% novel exploration to 25% targeted mutation provides the optimal balance. Relying too heavily on mutation causes the Architect agent to stall in local optima, making minor tweaks that exploit the same homogeneous gaps.
- Frontier Models are Required for Curation: The effectiveness of automated vulnerability mining scales heavily with the reasoning capacity of the underlying curation models. Upgrading the pipeline backbone from Gemini 2.5 to Gemini 3 Series yielded significantly more nuanced failure modes, which translated directly to stronger downstream model robustness.
- Implicit Boundary Shifting: Introducing dense adversarial instances as in-context examples shifts the model's implicit decision boundary toward a more conservative, high-recall safety posture. This trade-off slightly reduces precision due to over-flagging but drastically minimizes dangerous false negatives.
Key Results
The combination of explicit policy prompting and dynamic hard-example retrieval yielded substantial improvements across both benchmarks:
- HoliSafe-Bench: Under detailed policy prompting, retrieving from the agent-curated Hard Pool reduced the False Negative Rate (FNR) of Gemini 3 Flash to 24.5%, outperforming the zero-shot baseline (41.2% FNR) and retrieval from a standard "Regular" synthetic pool (29.7% FNR).
- Proprietary Ads Safety Dataset: The Few-Shot Hard configuration achieved an absolute FNR reduction of 59.4 points compared to the zero-shot naive baseline, demonstrating strong transferability to real-world production traffic.
Limitations and Future Work
Despite its success, the authors note several limitations:
- Synthetic-to-Real Domain Gap: Current diffusion models still struggle to perfectly replicate complex real-world adversarial tactics like multi-image composite layouts or sophisticated typographic text obfuscation.
- Inference Overhead: Running dynamic $k$-shot RAG at runtime introduces visual embedding extraction and similarity computation latencies. Future work will explore distilling these curated hard examples directly into smaller student models via fine-tuning to eliminate runtime overhead.
Summary updated