Label-aware Hard Negative Sampling Strategies with Momentum Contrastive Learning for Implicit Hate Speech Detection

Jaehoon Kim, Seungwan Jin, Sohyun Park, Someen Park, Kyungsik Han
6/12/2024
cs.CL

Official code: Hanyang-HCC-Lab/LAHN (4 stars, MIT, last commit 2025-02-04).

Abstract

Detecting implicit hate speech that is not directly hateful remains a challenge. Recent research has attempted to detect implicit hate speech by applying contrastive learning to pre-trained language models such as BERT and RoBERTa, but the proposed models still do not have a significant advantage over cross-entropy loss-based learning. We found that contrastive learning based on randomly sampled batch data does not encourage the model to learn hard negative samples. In this work, we propose Label-aware Hard Negative sampling strategies (LAHN) that encourage the model to learn detailed features from hard negative samples, instead of naive negative samples in random batch, using momentum-integrated contrastive learning. LAHN outperforms the existing models for implicit hate speech detection both in- and cross-datasets. The code is available at https://github.com/Hanyang-HCC-Lab/LAHN

View on arXivView PDF

Code Implementations(1)

MIT

Label-aware Hard Negative Sampling Strategies with Momentum Contrastive Learning for Implicit Hate Speech Detection

41PythonMay 28, 20241 years agoMIT

Similar Papers

Cite this paper

@article{kim2024labelaware,
  title  = {Label-aware Hard Negative Sampling Strategies with Momentum Contrastive Learning for Implicit Hate Speech Detection},
  author = {Jaehoon Kim and Seungwan Jin and Sohyun Park and Someen Park and Kyungsik Han},
  year   = {2024},
  eprint = {2406.07886},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.07886v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.07886.svg)](https://codeofpaper.com/paper/2406.07886)

Discussion