Skip to main content
QUICK REVIEW

[Paper Review] Hate Speech Detection on Vietnamese Social Media Text using the Bidirectional-LSTM Model

Hang Thi-Thuy, Huy Duc Huynh|arXiv (Cornell University)|Nov 9, 2019
Hate Speech and Cyberbullying DetectionComputer Science9 references24 citations
TL;DR

This paper proposes a Bidirectional Long Short-Term Memory (Bi-LSTM) model with FastText word embeddings for classifying Vietnamese social media text into three categories: Clean, Offensive, or Hate speech. The system achieves a 71.43% F1-score on the public test set of the VLSP 2019 shared task, outperforming other models like SVM, Logistic Regression, and GRU, demonstrating the effectiveness of Bi-LSTM with pre-trained embeddings for Vietnamese hate speech detection.

ABSTRACT

In this paper, we describe our system which participates in the shared task of Hate Speech Detection on Social Networks of VLSP 2019 evaluation campaign. We are provided with the pre-labeled dataset and an unlabeled dataset for social media comments or posts. Our mission is to pre-process and build machine learning models to classify comments/posts. In this report, we use Bidirectional Long Short-Term Memory to build the model that can predict labels for social media text according to Clean, Offensive, Hate. With this system, we achieve comparative results with 71.43% on the public standard test set of VLSP 2019.

Motivation & Objective

  • To develop an automated system for detecting hate speech in Vietnamese social media text, addressing the challenge of manual moderation.
  • To improve classification accuracy by leveraging deep learning architectures tailored for sequential text data in low-resource languages like Vietnamese.
  • To evaluate and compare multiple models—SVM, Logistic Regression, GRU, and Bi-LSTM—on the same dataset to identify the most effective approach.
  • To optimize model performance through preprocessing, word embedding selection (FastText vs. baomoi.vn.model), and hyperparameter tuning.
  • To contribute a competitive solution to the VLSP 2019 shared task on hate speech detection in Vietnamese social networks.

Proposed method

  • Preprocessing involves converting text to lowercase, removing URLs, mentions, non-alphabetic characters, and selected stopwords, followed by tokenization into integer sequences.
  • Word embeddings are used in the form of pre-trained FastText and baomoi.vn.model.txt vectors to capture semantic meaning of Vietnamese words.
  • The core model is a Bidirectional Long Short-Term Memory (Bi-LSTM) network that processes sequences in both forward and backward directions to capture contextual dependencies.
  • The Bi-LSTM model is trained end-to-end with categorical cross-entropy loss and Adam optimization, using sequences padded to a fixed length.
  • Performance is evaluated using F1-score, precision, recall, and accuracy on both training and public/private test sets.
  • Model comparison is conducted across multiple architectures: SVM, Logistic Regression, GRU, and Bi-LSTM, with hyperparameters tuned for each.

Experimental results

Research questions

  • RQ1Can a Bi-LSTM model effectively classify Vietnamese social media text into three classes: Clean, Offensive, or Hate speech?
  • RQ2How does the choice of word embedding (FastText vs. baomoi.vn.model.txt) affect the performance of the Bi-LSTM model on hate speech detection?
  • RQ3How does the Bi-LSTM model compare in performance to traditional machine learning models (e.g., SVM, Logistic Regression) and other deep learning models (e.g., GRU) on this task?
  • RQ4Why does the Bi-LSTM model perform better on the public test set than on the private test set, and what factors may contribute to this discrepancy?
  • RQ5What preprocessing steps are most effective in improving model generalization for low-resource, morphologically rich languages like Vietnamese?

Key findings

  • The Bi-LSTM model with FastText word embeddings achieved the highest F1-score of 71.43% on the public test set, ranking second among all submissions.
  • The model achieved 95.67% accuracy, 85.61% precision, 67.36% recall, and 73.84% F1-score on the training set when using FastText embeddings.
  • The Logistic Regression model performed poorly, achieving only 51.15% F1-score on the public test set, indicating limited effectiveness for this task.
  • The GRU model achieved 65.01% F1-score on the public test set, outperforming SVM (63.87%) but underperforming the Bi-LSTM model.
  • The Bi-LSTM model with baomoi.vn.model.txt embeddings achieved lower performance (53.62% F1-score) compared to FastText, indicating that embedding quality significantly impacts results.
  • Despite strong performance on the public test set, the model ranked sixth on the private test set, suggesting potential domain shift or overfitting to public data.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.