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

DeHate: A Stable Diffusion-based Multimodal Approach to Mitigate Hate Speech in Images

Dwip Dalal, Gautam Vashishtha, Anku Ranui, Aishwarya N. Reganti, Parth Patwa, Mohd Sarique, Chandan Gupta, Keshav Nath, Viswanatha Reddy, Vinija Jain, Aman Chadha, Amitava Das, Amit P. Sheth, Asif EkbalarXiv 2025 · OpenReview

Abstract

The rise in harmful online content not only distorts public discourse but also poses significant challenges to maintaining a healthy digital environment. In response to this, we introduce a multimodal dataset uniquely crafted for identifying hate in digital content. Central to our methodology is the innovative application of watermarked, stability-enhanced, stable diffusion techniques combined with the Digital Attention Analysis Module (DAAM). This combination is instrumental in pinpointing the hateful elements within images, thereby generating detailed hate attention maps, which are used to blur these regions from the image, thereby removing the hateful sections of the image. We release this data set as a part of the dehate shared task. This paper also describes the details of the shared task. Furthermore, we present DeHater, a vision-language model designed for multimodal dehatification tasks. Our approach sets a new standard in AI-driven image hate detection given textual prompts, contributing to the development of more ethical AI applications in social media.

Introduction

The explosion of AI-generated and user-uploaded content has made the internet a complex landscape for content moderation. Multimodal hate speech—where the interplay between text and imagery creates harmful narratives—is particularly difficult to manage. While text-based detection has matured, identifying and mitigating hate within an image remains a significant challenge.

Existing solutions often rely on binary classification, leading to the outright removal of content. This paper introduces the concept of "dehatification": a nuanced approach that identifies specific hateful regions in an image and obscures them. This allows the non-hateful portions of the discourse to remain visible while ensuring that underlying models are trained on more ethical, "cleaned" datasets.

Methodology

The researchers propose a two-part framework involving synthetic data generation and a specialized model architecture designed for localized mitigation.

The DeHate Pipeline

The pipeline begins with hateful text prompts, which are fed into Stable Diffusion 2.0 to generate corresponding synthetic images. To locate the specific visual elements that correspond to the hateful text, the system utilizes the Digital Attention Analysis Module (DAAM).

DAAM interprets the cross-attention maps produced during the diffusion process. By analyzing which pixels the model focused on when generating specific hateful words, the system creates a precise map of the harm. These attention maps are then converted into binary masks, and the pixels within these masks are blurred using localized averaging. This "erases" the hateful content while maintaining the image's overall color palette and context.

The DeHate pipeline: original image, attention map, and the resulting dehatified output.

The DeHater Model

For the task of unsupervised image masking, the researchers developed the DeHater model. This vision-language architecture consists of:

  • Encoder: A frozen CLIP model used to extract robust multimodal features.
  • Decoder: A U-Net-inspired architecture with skip connections to preserve localized spatial information.
  • Modulation: Feature-wise Linear Modulation (FiLM) is employed to condition the decoder, helping it focus specifically on the segmentation of hateful spans based on the input text.
Comparison of attention maps for different textual prompts, illustrating the precision of the DAAM module in localizing concepts.

The DeHate Dataset

A core contribution of this work is the deHate Dataset, released to the research community to foster further innovation in multimodal moderation.

  • Source: The dataset is built upon Hatenorm, a parallel corpus of hateful and normalized text.
  • Composition: It contains 2,411 total instances (1,687 for training and 724 for testing).
  • Format: Each entry includes the original hateful prompt, the generated hateful image, and the final "dehated" (blurred) version.
  • Bias Mitigation: To ensure the data is as ethical as possible, the dataset was expanded using a "Debiased LLM" created via Dataless Model Merging, reducing inherent biases in the synthetic generation process.

Key Results

The authors hosted a shared task at the Defactify 3 workshop (AAAI 2024) to benchmark various approaches. The primary evaluation metric was Intersection over Union (IoU), measuring the overlap between predicted blurred masks and the ground truth.

  • Baseline Performance: The authors' DeHater model achieved an IoU of 0.49.
  • Top Performer: The winning team, UniteToModerate, achieved an IoU of 0.55 by combining the NExT-Chat and UniFusion models.

These results indicate that while the proposed methods are effective, precise visual dehatification remains a significant open challenge, as even the best models struggle to achieve high IoU scores on complex multimodal content.

Conclusion and Future Work

DeHate represents a shift from simple content deletion toward active harm mitigation. By using attention maps as a ground-truth tool for localization, the framework provides a path toward more socially responsible AI.

Future research will focus on improving explainability—using LLMs to provide natural language justifications for why specific regions were blurred—and expanding the framework's linguistic diversity beyond English to address global cultural contexts.

Summary updated

BibTeX
@misc{dalal2025dehate,
  author = {Dwip Dalal and Gautam Vashishtha and Anku Ranui and Aishwarya N. Reganti and Parth Patwa and Mohd Sarique and Chandan Gupta and Keshav Nath and Viswanatha Reddy and Vinija Jain and Aman Chadha and Amitava Das and Amit P. Sheth and Asif Ekbal},
  title = {{DeHate: A Stable Diffusion-based Multimodal Approach to Mitigate Hate Speech in Images}},
  year = {2025},
  eprint = {2509.21787},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.21787},
}
Figure