NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Towards Comprehensive Detection of Chinese Harmful Memes

Junyu Lu, Bo Xu, Xiaokun Zhang, Hongbo Wang, Haohao Zhu, Dongyu Zhang, Liang Yang, Hongfei Lin

Introduction

Harmful memes—multimodal units where text and images combine to convey offensive or socially detrimental messages—pose a significant challenge for content moderation on social media. While research into meme toxicity has expanded, it remains heavily skewed toward English-language content. Chinese memes, however, present a unique set of challenges that standard English-centric models are ill-equipped to handle. These include complex linguistic nuances like homophones and metaphors, as well as culturally specific phenomena such as "dispirited culture" (Sang culture).

To bridge this gap, this research introduces TOXICN MM, the first large-scale dataset specifically designed for detecting harmful Chinese memes, and proposes the Multimodal Knowledge Enhancement (MKE) detector. By leveraging Large Language Models (LLMs) to extract cultural and linguistic context, the MKE framework significantly improves the detection of memes that rely on subtle puns or niche internet slang.

The TOXICN MM Dataset

The primary contribution of this work is the creation of TOXICN MM, a comprehensive dataset comprising 12,000 memes collected from popular Chinese platforms, including Weibo and Baidu Tieba. Unlike previous datasets that rely on binary "harmful vs. benign" classifications, TOXICN MM provides fine-grained annotations across several dimensions:

  • Harm Categories: Memes are categorized into Targeted Harmful, General Offensive, Sexual Innuendo, and Dispirited Culture.
  • Modality Contribution: The dataset tracks how harm is delivered—whether through Text-Image Fusion (where neither element is toxic in isolation), Harmful Text, or Harmful Image.
  • Potential Toxicity: TOXICN MM is the first major dataset to include "Potential Toxicity," capturing harm that lacks a specific target but remains socially detrimental, a crucial feature for navigating the Chinese internet landscape.

Analysis of the dataset reveals that over 50% of targeted harmful memes rely on text-image fusion. This finding underscores the inadequacy of unimodal (text-only or image-only) detectors, as the toxicity often emerges only when the visual and textual components are interpreted together.

Methodology: Multimodal Knowledge Enhancement (MKE)

Detecting the harm in a meme often requires understanding its "hidden" meaning—the cultural or linguistic context that isn't explicitly stated. To address this, the researchers developed the Multimodal Knowledge Enhancement (MKE) detector. The framework operates in two primary stages:

1. Knowledge Mining

The system utilizes an LLM (such as GPT-4) as a "knowledge miner." Given the meme's text and image, the LLM generates "enhanced captions" that explain the underlying linguistic characteristics, metaphors, or cultural background. This process transforms implicit cultural knowledge into explicit textual information.

2. Knowledge Integration

These AI-generated explanations are integrated into a trainable detector. Using a cross-attention mechanism, the model fuses the original text and image features with the LLM’s contextual explanations. The system was benchmarked using standard architectures, including CLIP and a hybrid fusion of RoBERTa (for text) and ViT (for images).

Results and Key Insights

The MKE detector demonstrated superior performance across all tasks. On binary detection, the model achieved a macro F1-score of 80.23 using a CLIP backbone, representing a significant improvement over standard multimodal fusion models.

Key Findings:

  • The Dominance of Text: Interestingly, fine-tuned text-only models (e.g., RoBERTa) frequently outperformed image-only models (e.g., ResNet/ViT). This suggests that in the Chinese meme ecosystem, the linguistic "punchline" or wordplay often carries more weight than the visual element.
  • LLMs as Contextual Bridges: While LLMs struggle with direct zero-shot classification—often failing to recognize the nuance of "dispirited culture"—they excel at providing the necessary context. Using LLMs to provide a "cultural cheat sheet" for a specialized model proved more effective than relying on the LLM for the final judgment.
  • Category Difficulty: Detecting "Sexual Innuendo" and "Dispirited Culture" remains the most difficult task, with F1 scores typically 10-20 points lower than those for "General Offensive" content. GPT-4, while strong at identifying sexual innuendo, often misinterprets self-deprecating humor as harmless.

Limitations and Future Directions

Despite its success, the study identifies several hurdles for real-world implementation. The current dataset lacks certain categories, such as memes containing fake news, which were scarce in the sampled platforms. Furthermore, the subjectivity of "harmfulness" remains a challenge, as annotator bias can influence dataset labels.

From a technical standpoint, the latency involved in using LLMs for real-time "knowledge mining" could be prohibitive for high-volume social media feeds. Future work will focus on expanding the dataset to more platforms and exploring "instruction fine-tuning" to improve the direct detection capabilities of LLMs, potentially removing the need for a separate backbone model.

Summary updated

BibTeX
@inproceedings{lu2024towards,
  author = {Junyu Lu and Bo Xu and Xiaokun Zhang and Hongbo Wang and Haohao Zhu and Dongyu Zhang and Liang Yang and Hongfei Lin},
  title = {{Towards Comprehensive Detection of Chinese Harmful Memes}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
}
Figure