[Paper Review] HateBR: A Large Expert Annotated Corpus of Brazilian Instagram Comments for Offensive Language and Hate Speech Detection
This paper introduces HateBR, the first large-scale expert-annotated corpus of 7,000 Brazilian Instagram comments in Portuguese for offensive language and hate speech detection. Annotated across three layers—offensive/non-offensive, offensiveness level, and nine hate speech categories—HateBR enables state-of-the-art F1-scores of 85% in baseline models, outperforming existing Portuguese-language baselines.
Due to the severity of the social media offensive and hateful comments in Brazil, and the lack of research in Portuguese, this paper provides the first large-scale expert annotated corpus of Brazilian Instagram comments for hate speech and offensive language detection. The HateBR corpus was collected from the comment section of Brazilian politicians' accounts on Instagram and manually annotated by specialists, reaching a high inter-annotator agreement. The corpus consists of 7,000 documents annotated according to three different layers: a binary classification (offensive versus non-offensive comments), offensiveness-level classification (highly, moderately, and slightly offensive), and nine hate speech groups (xenophobia, racism, homophobia, sexism, religious intolerance, partyism, apology for the dictatorship, antisemitism, and fatphobia). We also implemented baseline experiments for offensive language and hate speech detection and compared them with a literature baseline. Results show that the baseline experiments on our corpus outperform the current state-of-the-art for the Portuguese language.
Motivation & Objective
- To address the lack of large-scale, expert-annotated datasets for offensive language and hate speech detection in Brazilian Portuguese.
- To develop a robust, multi-layer annotation schema that captures contextual and pragmatic nuances in hate speech and offensive content.
- To provide a high-quality, balanced, and inter-annotator-agreed corpus for training and evaluating NLP models in the Portuguese language.
- To establish a benchmark for offensive language and hate speech detection in Brazilian social media, particularly in politically charged contexts.
- To demonstrate that well-structured annotation leads to superior model performance, surpassing current state-of-the-art results in Portuguese.
Proposed method
- The HateBR corpus was collected from Instagram comment sections of Brazilian politicians’ accounts, selected for high political and social conflict intensity.
- A three-layer annotation schema was applied: (1) binary classification (offensive vs. non-offensive), (2) offensiveness-level classification (slightly, moderately, highly offensive), and (3) hate speech group classification into nine categories.
- Annotation was conducted by a team of specialists including linguists, hate speech experts, and NLP researchers, following rigorous guidelines and training to ensure consistency and minimize bias.
- Inter-annotator agreement was measured and found to be high, validating the reliability of the annotation schema.
- Baseline models were trained using unigram and TF-IDF features with Naive Bayes, SVM, MLP, and Logistic Regression on the offensive language and hate speech detection tasks.
- Class imbalance in the hate speech detection task was addressed using undersampling to prevent overfitting and improve model generalization.
Experimental results
Research questions
- RQ1Can a large-scale, expert-annotated corpus for offensive language and hate speech detection be effectively constructed for Brazilian Portuguese, a low-resource language in this domain?
- RQ2Does a multi-layer annotation schema that includes offensiveness level and specific hate speech categories improve the quality and utility of the dataset for NLP tasks?
- RQ3To what extent does the quality of annotation (measured by inter-annotator agreement) correlate with downstream model performance in hate speech detection?
- RQ4Can baseline models trained on this corpus outperform existing state-of-the-art models for offensive language and hate speech detection in Portuguese?
- RQ5How does the HateBR corpus compare to existing Portuguese-language corpora in terms of size, balance, annotation quality, and performance benchmarks?
Key findings
- The HateBR corpus consists of 7,000 Instagram comments, with 3,500 labeled as offensive and 3,500 as non-offensive, ensuring balanced class distribution.
- The corpus achieved a high inter-annotator agreement score, validating the robustness and consistency of the proposed three-layer annotation schema.
- Baseline models for offensive language detection achieved an F1-score of 85%, significantly outperforming existing state-of-the-art models for Portuguese.
- For hate speech detection, the best baseline model achieved an F1-score of 78%, demonstrating strong performance despite class imbalance.
- The HateBR corpus surpasses existing Portuguese-language corpora in size, annotation quality, and model performance, establishing a new benchmark for the language.
- The results confirm that a well-structured, expert-annotated corpus leads to superior model performance, even when using simple baseline models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.