Skip to content

Repository for the paper "ViHateT5: Enhancing Hate Speech Detection in Vietnamese with A Unified Text-to-Text Transformer Model" (ACL'2024 - Findings)

Notifications You must be signed in to change notification settings

tarudesu/ViHateT5

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ViHateT5: Enhancing Hate Speech Detection in Vietnamese with A Unified Text-to-Text Transformer Model

This is the official repository for the paper ViHateT5: Enhancing Hate Speech Detection in Vietnamese with A Unified Text-to-Text Transformer Model, which was accepted at the ACL 2024.

@inproceedings{thanh-nguyen-2024-vihatet5,
    title = "{V}i{H}ate{T}5: Enhancing Hate Speech Detection in {V}ietnamese With a Unified Text-to-Text Transformer Model",
    author = "Thanh Nguyen, Luan",
    editor = "Ku, Lun-Wei  and
      Martins, Andre  and
      Srikumar, Vivek",
    booktitle = "Findings of the Association for Computational Linguistics ACL 2024",
    month = aug,
    year = "2024",
    address = "Bangkok, Thailand and virtual meeting",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2024.findings-acl.355",
    pages = "5948--5961"

Introduction

ViHateT5

Recent advancements in hate speech detection (HSD) in Vietnamese have made significant progress, primarily attributed to the emergence of transformer-based pre-trained language models, particularly those built on the BERT architecture. However, the necessity for specialized fine-tuned models has resulted in the complexity and fragmentation of developing a multitasking HSD system. Moreover, most current methodologies focus on fine-tuning general pre-trained models, primarily trained on formal textual datasets like Wikipedia, which may not accurately capture human behavior on online platforms. In this research, we introduce ViHateT5, a T5-based model pre-trained on our proposed large-scale domain-specific dataset named VOZ-HSD. By harnessing the power of a text-to-text architecture, ViHateT5 can tackle multiple tasks using a unified model and achieve state-of-the-art performance across all standard HSD benchmarks in Vietnamese. Our experiments also underscore the significance of label distribution in pre-training data on model efficacy. We provide our experimental materials for research purposes, including the VOZ-HSD dataset, pre-trained checkpoint, the unified HSD-multitask ViHateT5 model, and related source code on GitHub publicly.

Dataset

The VOZ-HSD dataset consists of 10.7M+ AI-annotated comments with two labels HATE (1) and CLEAN (0) from Vietnamese users' comments on VOZ Forum. Note that the labels generated by the AI Classifier are only used for data analysis, not for fine-tuning in any downstream tasks.

Pre-training

We follow the released code of this repo in order to pre-train the ViHateT5 on raw texts from the VOZ-HSD dataset.

Fine-tuning

The pre-trained ViHateT5 is then fine-tuned on multiple HSD benchmark datasets, including:

  1. ViHSD: Vietnamese Hate Speech Detection (Labels: HATE, OFFENSIVE, and CLEAN)
  2. ViCTSD: Constructive and Toxic Speech Detection for Open-domain Social Media Comments in Vietnamese (TOXIC and NONE)
  3. ViHOS: Vietnamese Hate and Offensive Spans Detection (Hate Speech Spans)

The fine-tuned ViHateT5-HSD model is available on HuggingFace.

Please feel free to contact us by email luannt@uit.edu.vn if you have any further information!

About

Repository for the paper "ViHateT5: Enhancing Hate Speech Detection in Vietnamese with A Unified Text-to-Text Transformer Model" (ACL'2024 - Findings)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published