HateTinyLLM : Hate Speech Detection Using Tiny Large Language Models

Tanmay Sen, Ansuman Das, Mrinmay Sen
4/26/2024
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Hate speech encompasses verbal, written, or behavioral communication that targets derogatory or discriminatory language against individuals or groups based on sensitive characteristics. Automated hate speech detection plays a crucial role in curbing its propagation, especially across social media platforms. Various methods, including recent advancements in deep learning, have been devised to address this challenge. In this study, we introduce HateTinyLLM, a novel framework based on fine-tuned decoder-only tiny large language models (tinyLLMs) for efficient hate speech detection. Our experimental findings demonstrate that the fine-tuned HateTinyLLM outperforms the pretrained mixtral-7b model by a significant margin. We explored various tiny LLMs, including PY007/TinyLlama-1.1B-step-50K-105b, Microsoft/phi-2, and facebook/opt-1.3b, and fine-tuned them using LoRA and adapter methods. Our observations indicate that all LoRA-based fine-tuned models achieved over 80\% accuracy.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sen2024hatetinyllm,
  title  = {HateTinyLLM : Hate Speech Detection Using Tiny Large Language Models},
  author = {Tanmay Sen and Ansuman Das and Mrinmay Sen},
  year   = {2024},
  eprint = {2405.01577},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.01577v1}
}

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/2405.01577.svg)](https://codeofpaper.com/paper/2405.01577)

Discussion