AnimalFarm: Auditing the Generation and Detection of Hateful Images Featuring Anthropomorphic Characters

Junjie Chu, Ye Leng, Mingjie Li, Yiting Qu, Michael Backes, Yun Shen, Yang ZhangarXiv 2026

TL;DR

AI safety filters are surprisingly easy to bypass if you just swap humans for animals. This paper introduces AnimalFarm, a study showing that while modern AI models are decent at blocking "human-centered" hate speech, they are remarkably compliant when asked to generate hateful imagery using anthropomorphic characters (like cats, pigs, or foxes) as proxies for marginalized groups.

What Problem Does This Paper Address?

Historically, hateful propaganda has often used non-human characters to dehumanize specific groups—think of Nazi-era depictions of Jewish people as rats. As AI-generated imagery floods social media, this old tactic has found a new, automated life.

The core issue is a "safety gap." Current AI safety benchmarks and detectors are heavily biased toward human subjects. They look for human faces, skin tones, and recognizable human-on-human violence. When a hateful scene is re-cast with a cat in a turban or a pig in a specific cultural outfit, the "hate signal" becomes invisible to standard detectors, even though the harmful intent remains crystal clear to a human observer.

Figure 1: Real-world examples of hateful imagery on TikTok. These images use monkeys and gorillas to perpetuate racial stereotypes targeting Black communities [11, 37]. For exam- ple, the rightmost image depicts a gorilla wearing a pink wig to mock Black women and reached 3.9 million views before re- moval [11].

Methods

The researchers didn't just point out the problem; they built a rigorous way to test it and a few ways to fix it.

  1. AnthroHate-Prompt: A benchmark of 650 items across three tasks:
  2. Text-to-Image (T2I): Generating scenes from scratch.
  3. Image Editing (Edit): Replacing human subjects in existing hateful images with animals.
  4. Multi-Turn (MT): A conversational approach where the model first swaps the subject and then adjusts the pose.
  5. Depiction Reversal (The "Human-in-the-Middle" Trick): A training-free defense pipeline. It asks a Vision-Language Model (VLM) to describe the scene, then uses an LLM to rewrite that description, replacing the animals with humans. Finally, a judge model evaluates the human version of the text for hate.
  6. Fine-Tuning with GRPO: They fine-tuned a Qwen model using Group Relative Policy Optimization (GRPO). This reinforcement learning technique rewards the model not just for the right answer, but for following a specific "chain-of-thought" reasoning process (e.g., "I see a pig in [Context X], which is a known trope for [Group Y], therefore this is hateful").

Datasets

  • AnthroHate-Prompt: The core benchmark containing prompts and source scenes targeting Asian, Black, Jewish, and Muslim communities.
  • AnthroHate-Image: A newly collected dataset of 4,370 hateful images generated during their experiments, used to evaluate how well current detectors (like GPT-5.5 and Gemini) actually work.

Key Insights and Ideas

  • The "Species Blindness" of Detectors: Standard detectors rely on human-centered cues. When researchers looked at "relevance maps" (which parts of the image the AI focuses on), they found that detectors ignore the faces of animals even when they are performing hateful caricatures.
  • Compliance via Creativity: Models that would flatly refuse to generate a hateful image of a person often happily fulfill the request if you ask for a "cute cat" version of the same scene. The "creativity" of the model effectively acts as a bypass for its safety training.
  • Ambiguity is the Enemy: There is a significant overlap between "cute animal" features and "hateful caricature" features (like exaggerated facial expressions). This overlap confuses CLIP-based models, making them likely to classify hateful animal imagery as benign.
Examples of the three generation tasks: T2I, Image Editing, and Multi-Turn.

Key Results

  • Generation Success: Across 14,250 queries, image generation systems produced images for 92.1% of requests. Shockingly, 95.9% of those generated images contained hateful content.
  • Detection Failure: Even the most advanced detector tested, GPT-5.5, only caught 73.9% of the hateful images. Most other popular detectors caught fewer than 58%.
  • Defense Success: The researchers' "Depiction Reversal" pipeline achieved an F1 score of 0.962, while their fine-tuned model reached 0.979, proving that teaching models to "think" about proxies is a viable path forward.

Limitations and Future Work

The authors acknowledge that their study focused on a specific set of five characters and four target groups. The world of hate is, unfortunately, much more diverse. Future work needs to expand to more cultural contexts and different media types, like video and audio. Furthermore, while their "Depiction Reversal" is effective, it requires multiple model calls, which might be too slow for real-time, high-traffic moderation systems.

Summary updated

Abstract

Anthropomorphic non-human characters have long been used to convey hateful messages targeting human groups, from Nazi-era propaganda to recent AI-generated imagery on social media. However, the safety risks posed by such imagery remain largely unexplored. We thus conduct the first systematic study of hateful image generation and detection involving anthropomorphic non-human characters. We construct a benchmark from conservatively screened source scenes, covering five character types and three image generation tasks: text-to-image generation, image editing, and conversational image generation. Across 14,250 scheduled queries, image generation systems produce images for 92.1\% of queries, of which 95.9\% contain hateful content. We further collect 4,370 hateful images and evaluate five popular hateful-content detectors. Even the strongest detector, GPT-5.5, identifies only 73.9\% of hateful images, while most detect fewer than 58\%. Our analysis reveals that existing detectors often misclassify hateful images as benign when their main subjects are non-human characters. We explore two effective mitigation approaches: a training-free pipeline that maps non-human characters back to human representations before classification and a detector fine-tuned for this type of hateful content. These approaches achieve F1 scores of 0.962 and 0.979, respectively. Our findings expose significant safety gaps in both image generation and hateful-content detection. Disclaimer: This paper contains hateful text and imagery.
BibTeX
@misc{chu2026animalfarm,
  author = {Junjie Chu and Ye Leng and Mingjie Li and Yiting Qu and Michael Backes and Yun Shen and Yang Zhang},
  title = {{AnimalFarm: Auditing the Generation and Detection of Hateful Images Featuring Anthropomorphic Characters}},
  year = {2026},
  eprint = {2611.27905},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.27905},
}
Figure