AnimalFarm: Auditing the Generation and Detection of Hateful Images Featuring Anthropomorphic Characters
Organizations: CISPA Helmholtz Center for Information Security · Independent Researcher · HPE
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.
Figures & tables
| Task | Model | G/Q | H/G | H/Q |
| Qwen-Image-2512 | 100.0 | 99.3 | 99.3 | |
| Z-Image-Turbo | 100.0 | 97.8 | 97.8 | |
| HunyuanImage 3.0 | 99.9 | 98.8 | 98.7 | |
| Seedream 5.0 | 98.7 | 100.0 | 98.7 | |
| Gemini 2.5 Flash | 99.0 | 99.6 | 98.6 | |
| Gemini 3.1 Flash | 97.6 | 99.6 | 97.2 |
| Detector | T2I | Edit | MT | Overall |
| GPT-5.5 | 70.6 | 76.6 | 82.1 | 73.9 |
| Gemini 3.1 Flash | 62.7 | 72.9 | 78.5 | 67.7 |
| Claude Haiku 4.5 | 36.4 | 48.3 | 56.4 | 42.5 |
| LlavaGuard v1.2 7B | 19.3 | 37.5 | 46.6 | 28.0 |
| Q16 | 50.9 | 65.8 | 67.4 | 57.0 |
| Detector | Cat | Rabbit | Fox | Pig | LABUBU |
| GPT-5.5 | 72.7 | 75.1 | 69.3 | 74.2 | 78.1 |
| Gemini 3.1 Flash | 65.2 | 69.2 | 64.3 | 67.2 | 72.5 |
| Claude Haiku 4.5 | 34.3 | 35.7 | 37.1 | 52.2 | 53.1 |
| LlavaGuard v1.2 7B | 20.3 | 26.5 | 21.7 | 30.8 | 40.5 |
| Q16 | 40.0 | 58.8 | 57.7 | 66.0 | 62.4 |
| Approach | Variant | Recall | F 1 |
| Q16 | 0.569 | 0.719 | |
| LlavaGuard v1.2 | 0.288 | 0.447 | |
| Claude Haiku 4.5 | 0.428 | 0.599 | |
| Gemini 3.1 Flash | 0.669 | 0.801 | |
| Baseline | GPT-5.5 | 0.761 | 0.864 |
| LlavaGuard v1.2 | 0.644 | 0.779 |
Appendix figures & tables10 assets
Supplementary material from the paper’s appendix.
Appendix
| Task | Images | Disagree | Hateful | Non-hateful |
| T2I | 7,956 | 141 | 74 | 67 |
| Edit | 2,903 | 231 | 149 | 82 |
| MT | 2,265 | 149 | 122 | 27 |
| Total | 13,124 | 521 | 345 | 176 |
| Target group | T2I scenes | Edit/MT seeds |
| Asian | 9 | 10 |
| Black | 16 | 11 |
| Jewish | 4 | 8 |
| Muslim | 6 | 1 |
| Total | 35 | 30 |
| Task | Model | Vendor |
| T2I | Qwen-Image-2512 [ 2 ] | Alibaba |
| Z-Image-Turbo [ 3 ] | Alibaba | |
| HunyuanImage 3.0 [ 43 ] | Tencent | |
| Seedream 5.0 [ 7 ] | ByteDance | |
| Gemini 2.5 Flash [ 42 ] | ||
| Gemini 3.1 Flash [ 12 ] |
| Task | Attempts | Q | G | H | G/Q | H/G | H/Q |
| T2I | 8,400 | 8,400 | 7,956 | 7,884 | 94.7 | 99.1 | 93.9 |
| Edit | 3,150 | 3,150 | 2,903 | 2,586 | 92.2 | 89.1 | 82.1 |
| MT | 1,350 | 2,700 | 2,265 | 2,114 | 83.9 | 93.3 | 78.3 |
| Total | 12,900 | 14,250 | 13,124 | 12,584 | 92.1 | 95.9 | 88.3 |
| Cat | Rabbit | Fox | Pig | LABUBU | |||||||||||
| Target System | G/Q | H/G | H/Q | G/Q | H/G | H/Q | G/Q | H/G | H/Q | G/Q | H/G | H/Q | G/Q | H/G | H/Q |
| Text-to-Image | |||||||||||||||
| Qwen-Image | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 100.0 | 98.6 | 98.6 | 100.0 | 98.1 | 98.1 | 100.0 | 100.0 | 100.0 |
| Z-Image-Turbo | 100.0 | 98.6 | 98.6 | 100.0 | 99.5 | 99.5 | 100.0 | 97.1 | 97.1 | 100.0 | 97.1 | 97.1 | 100.0 | 96.7 | 96.7 |
| Hunyuan Image | 100.0 | 100.0 | 100.0 | 100.0 | 99.5 | 99.5 | 100.0 | 97.6 | 97.6 | 100.0 | 97.1 | 97.1 | 99.5 | 99.5 | 99.0 |
| Seedream | 100.0 | 100.0 | 100.0 | 99.5 | 100.0 | 99.5 | 96.7 | 100.0 | 96.7 | 97.1 | 100.0 | 97.1 | 100.0 | 100.0 | 100.0 |
| Task | Target | #Q | G/Q | H/G | H/Q |
| (%) | |||||
| T2I | Asian | 2,160 | 99.0 | 99.2 | 98.1 |
| Black | 3,840 | 92.1 | 98.5 | 90.7 | |
| Jewish | 960 | 93.9 | 99.9 | 93.8 | |
| Muslim | 1,440 | 95.9 | 100.0 | 95.9 | |
| Edit | Asian | 1,050 | 97.5 | 82.6 | 80.6 |
| Chinese-ZH | English-EN | |||||
| System | G/Q | H/G | H/Q | G/Q | H/G | H/Q |
| Qwen-Image | 100.0 | 99.4 | 99.4 | 100.0 | 99.2 | 99.2 |
| Z-Image-Turbo | 100.0 | 97.9 | 97.9 | 100.0 | 97.7 | 97.7 |
| HunyuanImage | 100.0 | 98.5 | 98.5 | 99.8 | 99.0 | 98.9 |
| Seedream | 98.9 | 100.0 | 98.9 | 98.5 | 100.0 | 98.5 |
| Gemini 2.5 | 99.2 | 100.0 | 99.2 | 98.7 | 99.2 | 97.9 |
| Detector | Type | Recall |
| GPT-5.5 | Frontier VLM | 100% |
| Gemini 3.1 Flash | Frontier VLM | 97% |
| Q16 (CLIP) | CLIP classifier | 80% |
| Claude Haiku 4.5 | Frontier VLM | 83% |
| LlavaGuard v1.2 7B | Safety VLM | 70% |
| OpenAI Moderation API | Moderation API | 0% |
| Character | Depiction Reversal | Fine-Tuned |
| Cat | 91.1 | 96.9 |
| Rabbit | 92.4 | 97.9 |
| Fox | 91.9 | 96.6 |
| Pig | 94.3 | 98.2 |
| LABUBU | 93.9 | 96.6 |
Image Generation
Image generation studies models that create or edit images from text, examples, layouts, and other structured controls.
See all 520 papersInnocent Panels, Hateful Stories: Evaluating and Detecting Hateful Intent in Multi-Turn Visual Story Generation
HatefulStoryPrompts, comprising 330 multi-turn configurations from 55 hateful stories across two languages and three visual styles, and evaluate five frontier models over 4,950 attempts. Every model completes over 80% of the stories, with the strongest reaching 99.0%. We further evaluate existing moderation systems on HatefulVisualStory, a human-labeled dataset of 969 hateful image sets and 990 benign controls, and find that they frequently miss group-level hateful meaning: dedicated safety models achieve at most 34.9% recall, while a strong vision-language model reaches 67.5%. Finally, we propose complementary proactive and post-generation defenses. An interaction-aware monitor achieves 97.3% recall for prompt-only sessions and 92.6% when the user supplies the first image, while post-generation methods jointly analyzing completed image groups reach 80.2%. Our work shows that, as image generation evolves from isolated outputs to coherent visual narratives, safety must evolve accordingly, from per-image moderation to stateful reasoning over interactions and image relationships.