A Large-Scale Dataset for Hate Speech Detection on Vietnamese Social Media Texts
Paper · 2021 · Son T. Luu, Kiet Van Nguyen and Ngan Luu-Thuy Nguyen
Summary
A Vietnamese social media comment can be abusive even when its most important word looks innocuous to someone unfamiliar with the way it is written. A reader may need to recognize a disguised swear word, a shortened pronoun, or a phrase that has acquired a mocking meaning in a particular community. Automatic detection faces the same problem, with an added difficulty. It needs examples that show how to distinguish a hateful comment from an offensive one, and how to distinguish both from ordinary conversation. The authors introduce ViHSD, a dataset of 33,400 human-labeled comments collected from Vietnamese Facebook pages and YouTube videos. The comments cover entertainment, celebrities, social issues, and politics. Each receives a single label, CLEAN, OFFENSIVE, or HATE.
The authors make linguistic annotation part of the research. They have annotators practice with written guidelines, check their agreement, and revisit training or the guidelines when agreement is too low. During production, two people label every comment independently. Additional readers review disagreements, and a vote determines the final label. A separate agreement check has four people read the same 202 comments. Their average pairwise Cohen’s kappa, a measure of agreement that accounts for chance, is 0.52. The authors describe this as moderate and show how familiarity with informal Vietnamese can lead readers to interpret the same text differently.
The paper also establishes baselines for text classification, the task of assigning a category to a piece of text. On the ViHSD test set, multilingual cased BERT leads the reported comparisons with 86.88% accuracy and 62.69% macro-averaged F1. Accuracy measures the share of comments assigned their recorded label. Macro F1 gives the categories equal weight, making performance on OFFENSIVE and HATE consequential even though CLEAN dominates the data. Text-CNN reaches 86.69% test accuracy and 61.11% macro F1, and the other multilingual systems also improve on the neural baselines in macro F1.
The strongest system still frequently assigns CLEAN to comments labeled OFFENSIVE. The authors trace examples of this confusion to expressions peculiar to social media and show a HATE comment classified as OFFENSIVE when both the target and the abuse are written in abbreviated forms. ViHSD gives researchers a way to measure these failures while documenting some of the interpretive difficulties behind its labels. The paper proposes better handling of slang, abbreviations, and irregular spelling as future work.
Deep dive: A Large-Scale Dataset for Hate Speech Detection on Vietnamese Social Media Texts
ViHSD brings together human-labeled Vietnamese social media comments and tests how well classifiers distinguish clean, offensive, and hateful text. · about 31 minutes to read
The problem and its context
From a social problem to a classification task
The authors are concerned with abuse written into the ordinary exchanges of social media. A page about entertainment or a video about a public issue can attract comments whose subject is the material itself, the people featured in it, or other participants in the conversation. The introduction describes hateful messages as a threat to users and to the quality of the spaces in which they interact. The paper turns one part of that concern into a task that can be studied empirically. Given the text of a comment, can a classifier assign the category that human annotators have assigned to it?
That formulation puts the study close to sentiment analysis, which the authors use to situate it within earlier work. Both tasks ask a system to recognize something about an utterance beyond its literal topic. A comment about a celebrity can express praise, irritation, mockery, or abuse. Its subject alone settles very little about its label. In ViHSD, the system also has to learn a distinction among kinds of comments. An expression that makes a comment offensive can contribute evidence for HATE, while the authors’ examples show that understanding who is targeted can matter to the final judgment.
The task is supervised. A system sees comments paired with human decisions during training and is evaluated on comments held apart for testing. This makes the availability of annotated Vietnamese data central to the project. Collecting text supplies the input, but it leaves unanswered how examples should be labeled, how readers resolve a disagreement, and whether they interpret informal expressions consistently. The paper treats those questions as part of building a dataset that other researchers can use to compare systems.
The setting also explains why a classification label benefits from a clear name and a clearly stated unit. ViHSD assigns a category to an entire comment. A comment might contain conversational filler alongside an insult, or might be interpretable only after a short expression is decoded. The system’s task remains to make a decision about the whole text. Evidence inside the comment can matter without having a separate annotation of its own. That distinction becomes important when the authors diagnose errors by looking at particular expressions inside comments.
How earlier datasets organized the task
The paper distinguishes two ways of structuring labels in earlier hate speech datasets. A flat scheme presents categories at the same level. A hierarchical scheme can place a more specific category under a broader one or use linked decisions to describe different aspects of an example. The distinction affects what a labeled item can tell a reader. A single category can summarize a judgment about the whole item. A set of related decisions can also say, for example, whether an attack is aimed at a person or a group.
The paper uses two collections of English tweets to show the variety possible within flat labeling. The dataset by Waseem and Hovy contains 17,000 tweets and distinguishes racism, sexism, and neither of those categories. The collection by Davidson and colleagues covers 25,000 tweets and instead distinguishes hate, offense, and neither. Those schemes make different decisions visible. In the former, the categories identify kinds of abuse covered by the task. In the latter, a distinction between hate and other offensive language is part of the label vocabulary itself. ViHSD adopts the latter kind of distinction for its Vietnamese comments. The paper also describes earlier flat-label resources for Arabic and Indonesian.
In its discussion of structured labels, the paper cites work by Zampieri and colleagues in which group-directed and person-directed attacks are treated as separate binary decisions. It also describes multilingual collections such as hatEval, which covers English and Spanish, and CONAN, which includes material in English, French, and Italian. Earlier work therefore gave the authors examples of several design decisions they could make independently. A dataset can cover multiple languages, describe more than one aspect of a comment, or define distinct categories for comments that are broadly similar in tone. ViHSD concentrates on Vietnamese and produces one category per comment.
The authors also mention Hurtlex and Hatebase as lexicon resources used in earlier detection work. A lexicon gives a system a way to recognize expressions already associated with abuse. The quality of that evidence depends in part on whether a comment uses a form the resource can recognize. Conversely, a recognizable offensive expression may leave open how the whole comment should be categorized. The data and error analysis later in the paper return to both problems. Some forms are hard to recognize in social media writing, and recognition of an insult still leaves the question of its use in the comment.
What the authors wanted to add for Vietnamese
Vietnamese hate speech detection already had a shared-task dataset. The authors identify VLSP-HSD, used in the VLSP 2019 shared task, as a predecessor. Their stated concern is that the account of that dataset gave no description of the annotation procedure or of a method for evaluating annotation quality. ViHSD responds by making the process of producing labels a subject of the paper. Readers can see how practice is organized, who makes an initial decision, when more readers are brought in, and how consistency is estimated.
The authors also frame Vietnamese as a low-resource language for the kind of experiments they want to carry out. Their concern is the supply of task-specific labeled examples. Earlier work had already shown promising applications of deep learning and pretrained systems for detecting abuse, but a system that has learned general representations of text still needs supervision for the categories in this task. The authors also identify a gap in attention to the sentiment characteristics of Vietnamese hate speech. Their examples bring that concern down to the level of actual comments, where social meanings can be carried by an abbreviated or figurative expression.
These considerations motivate the paper’s two connected pieces of work. The first gives Vietnamese social media comments labels that can be used as training and evaluation data. The second uses the resulting benchmark to compare ways of assigning those labels automatically. Documenting the first makes the second interpretable. To understand what counts as an error in the benchmark, a reader needs to know what the system is being asked to reproduce and how that decision was made.
The method, step by step
Collecting comments and defining the unit of annotation
The authors collected comments from Vietnamese Facebook pages and YouTube videos. They looked for sources with substantial interaction and commenting enabled without restrictions. The topics included entertainment and celebrities as well as politics and social issues. This strategy gives the dataset a range of subjects within a specific collection setting. The paper starts from places where users are already writing comments to be read by others, then assigns a classification label to each selected comment.
After collection, the authors removed named entities to preserve anonymity. This is a data preparation decision, made before the text is used as annotated material. It matters because a personal or public name can be part of how a reader identifies who is being addressed. References can also be expressed through pronouns, descriptions, or other words that remain in the comment. The error analysis later looks at cases where identifying a target from those textual clues appears to be difficult. The paper describes the removal step as a privacy measure and studies the comments in the form prepared for the dataset.
The annotation scheme supplies three possible decisions. CLEAN is the ordinary or non-abusive category in the scheme. OFFENSIVE and HATE distinguish kinds of problematic content. Annotators choose one label for the complete comment, which means that the task gives each comment a single recorded outcome even if several pieces of evidence contribute to it. The stored label codes are CLEAN (0), OFFENSIVE (1), and HATE (2). Those numbers identify the classes. They are used as category codes, and the paper evaluates whether the predicted category matches the recorded category.
The paper describes why finding the evidence for a decision can be hard. It uses forms such as M.n, a contraction used for addressing everyone, and mik, an informal self-reference, to illustrate how commonplace abbreviation is. These forms also show why unusual spelling alone would make a poor guide to the label. Shortened words occur in everyday conversation as well as in abuse. Another example, lũ quan ngại, is described as a disparaging way of referring to people seen as habitually pessimistic and prone to posting negative content. A reader who misses that usage may reach a different judgment about the tone and function of the comment.
Training annotators and resolving disagreements
The authors begin with a practice phase. Annotators receive detailed guidelines, read them, and then label a sample of comments. The team compares their judgments. If agreement is too low, the process returns to training and may also return to the guidelines. These are distinct ways of responding to the same symptom. Further training can help readers apply an existing distinction. A guideline revision can address a distinction that needs to be explained more clearly or illustrated with a better example. The procedure allows either response before full annotation begins.
The paper measures agreement using Cohen’s kappa. The statistic compares the agreement observed between two annotators with the amount expected by chance given their labeling tendencies. This matters in a task with a common category. If both readers frequently choose CLEAN, the fact that they match frequently needs to be interpreted in light of how frequently they each use that label. Kappa expresses agreement relative to that expectation. The paper indicates an acceptable level in its description of the training process, following the work it cites on agreement:
κ > 0.5
Here κ is Cohen’s kappa, > means greater than, and 0.5 is the threshold the authors cite for acceptable agreement. This threshold is a criterion for judging consistency. A separate part of the method determines which label a disputed comment ultimately receives.
In the production phase, two annotators read the entire dataset. When they choose the same category, their judgments agree and no additional reader is called for under the described procedure. When the labels differ, a third person reads that comment. If all three readers pick different categories, the process calls for a fourth reader. The final category is determined by a vote. With three possible categories, a fourth vote in that last case backs one of the labels that already received a vote. The process gives that label the most support among the readers who assessed the item.
The authors take inspiration from peer review, where an additional judgment can help resolve disagreement. The design directs more reading time to disputed items while having two people assess every comment from the beginning. The rationale is that routine agreements require less labor than an approach in which all four annotators read all comments. The paper presents the efficiency of this arrangement as a consequence of how reader assignments are allocated. Its reported quantitative assessment concerns agreement rather than elapsed annotation time.
How ViHSD comments receive their labels
The steps in order.
Checking agreement on a common sample
The authors set aside a separate common reading exercise to assess consistency. They randomly select 202 comments from the dataset and ask four annotators to label all of them. Having every reader assess the same sample lets the authors compare reader pairs on common evidence. This differs from the production procedure, where later readers see a comment because an earlier pair disagreed. In the common exercise, readers are comparable even on comments that would have passed through production without escalation.
The authors compute kappa for each pair and average the pairwise values. The final reported average is:
κ = 0.52
Here κ represents the reported average of the pairwise Cohen’s kappa scores for the common sample, = gives the value of that average, and 0.52 is the reported agreement score. This is a measure of consistency among annotators. The vote used in production serves a separate purpose by giving a comment a usable category for training and evaluation.
Some of the paper’s examples show how differences in interpretation can enter the agreement calculation. An annotator who recognizes the abbreviation Dm as profanity can treat it as evidence of abuse. Another reader may give the same letters little weight and choose CLEAN. The paper gives a similar account of the figurative group reference lũ quan ngại. The disagreement can arise before the reader ever reaches the formal label distinction, because the readers have arrived at different understandings of the expression. Training can therefore address both the criteria for selecting a label and the linguistic evidence that informs the choice.
Turning the annotated comments into training data
The authors use a conventional supervised formulation for the task. The training texts form a collection written as:
D = {X₁, X₂, …, Xₙ}
Here D is the training collection, = defines it, and the braces enclose its members. X denotes a training text. The subscripts ₁ and ₂ identify the first and second members, while ₙ identifies the member indexed by n, the number of training texts. The ellipsis stands for the intervening members. The formulation refers to a training text generically as:
Xᵢ ∈ D
Here i is the index of a training example, Xᵢ is the text at that index, ∈ means that it belongs to the collection, and D is the training collection. Each example is associated with a category from the following generic set:
{1..k}
The braces enclose the available category indices, 1 is the starting index in this generic notation, the two dots denote the range up to the endpoint, and k is the number of categories. ViHSD uses its own stored codes, given above, for the named categories. The generic notation expresses the learning problem: train with texts whose categories are known, then use the learned classifier to assign a category to an unseen text.
For the corpus split, the authors allocate comments to training, development, and test partitions in a 7-1-2 proportion, in that order. The training partition supplies labeled examples for learning. The development partition provides a separate set for examining performance during development. The test partition is where the paper reports the baseline comparison. The authors describe the distribution of labels as similar across the partitions, with CLEAN dominant in all of them. This gives the held-out comparison a category balance resembling that of the rest of the dataset.
Preparing text for the classifiers
The experimental text preparation starts with word segmentation using pyvi. Here tokenization and segmentation refer to identifying the units of text that a classifier will process. At the word segmentation stage, the authors use the tool to divide Vietnamese comments into words. This provides an input representation on which the subsequent filtering and classification can operate. It is particularly relevant to the paper’s error analysis because the words and spellings that readers find difficult are also among the units the pipeline must handle.
The authors then remove words on a Vietnamese stopword list. A stopword list identifies common items that the processing pipeline filters out. They also convert text to lower-case, with an exception for cased pretrained transformer systems. Those variants retain the case information included in their input. The final cleaning step removes items such as hashtags, URLs, and mention tags. Together, these operations define the version of a comment that enters the benchmark classifiers after the dataset has been prepared and labeled.
The pipeline addresses recurring features of raw comments by applying a common sequence of transformations. Word segmentation and cleanup can make inputs more regular. The paper’s examples also illustrate a separate challenge that remains after this preparation. A string can be retained as part of a comment while its conversational meaning stays obscure. Abbreviations that stand for profanity, unusual substitutions, and figurative phrases require interpretation beyond the decision to keep or discard a character sequence. The authors treat more specific normalization of those forms as future work.
Training the convolutional and recurrent baselines
The first family of classifiers uses fastText word embeddings. An embedding represents a word as a vector of learned values that the classifier can use as input. The embeddings come from a pretrained collection covering 157 languages, and the vector for a word has 300 dimensions. The two classifiers share this kind of input but organize evidence from the sequence differently. Text-CNN looks for local patterns through convolution. The other system uses a gated recurrent unit, or GRU, to process sequential information.
A convolutional filter looks at a window of nearby words and produces a response to a pattern within that span. In the paper’s architectural description, W names the filter and h is the number of words in its window. The Text-CNN implementation uses a 2D convolutional layer with 32 filters and reports filter sizes 2, 3, and 5. The set of sizes allows the classifier to look for patterns across windows of different widths. The authors train Text-CNN for 50 epochs, with a batch size of 256, a sequence length of 100, and a dropout ratio of 0.5.
An epoch is a pass through training, and a batch is the group of examples processed together during an update. The sequence length sets the size of the input sequence used in the experiment. Dropout is a training technique that temporarily removes a share of internal activations, with the aim of limiting reliance on them individually. These settings describe how the authors ran Text-CNN on ViHSD. The filter sizes describe what portions of the word sequence its convolution can inspect together.
The GRU baseline uses a bidirectional recurrent layer. A recurrent layer carries information along a sequence as it processes successive positions, and bidirectionality allows that processing to proceed from both directions. Gates control how information is retained or updated. The ViHSD implementation uses 50 epochs, a sequence length of 100, and a dropout ratio of 0.5. Both GRU and Text-CNN use Adam to adjust their parameters during training. The architectural differences give the paper two ways to test whether useful signals in the comments are best captured by local filters or by recurrent processing under the stated settings.
Adapting multilingual pretrained systems
The other family uses the transformer and attention. Attention allows the representation of a position to draw on information from other positions in the input. In the authors’ account, transformer architectures use multi-head self-attention in place of recurrent layers. For comment classification, this gives the system another way to combine signals distributed through a text, such as an expression of abuse and a reference to the person at whom it is aimed. The architecture creates that possibility, while the experiment measures whether the complete classifier assigns the right category.
The paper compares multilingual BERT in cased and uncased versions, multilingual cased DistilBERT, and XLM-R initialized from xlm-roberta-base. DistilBERT is described as a lighter, faster variant of BERT, and XLM-R is designed for cross-lingual use. The pretrained systems cover a range of languages that includes Vietnamese. Fine-tuning adapts the pretrained weights to the new classification task using the labeled ViHSD examples. The task-specific category decisions therefore come from the annotated corpus, even though the systems begin with representations learned beforehand.
The transformer runs use a batch size of 16 for both training and evaluation, 4 training epochs, a sequence length of 100, and a manual seed of 4. The seed specifies an initialization setting for the random aspects of a run. Case is retained for the cased pretrained variants as part of text preparation. These details matter when comparing results, because the study evaluates complete configurations. Architecture, pretraining, casing, and training schedule all enter into how a given classifier performs.
Experiments and results
The held-out comparison
The benchmark asks each classifier to assign CLEAN, OFFENSIVE, or HATE to a comment from the ViHSD test partition. Its reference label is the one produced by the annotation procedure. The two fastText-based baselines provide a comparison with task-trained neural classifiers using pretrained word vectors. The multilingual transformer systems test a different starting point, with pretrained representations of text that are adapted to the same categories. Together, they situate ViHSD as an evaluation benchmark on which several approaches can be compared using a common split and the same expected outputs.
The shared test set makes the scores comparable within the benchmark. All classifiers face the same comments and the same distribution of labels. A performance comparison therefore asks how well each complete setup transfers from the labeled training comments to the held-out comments. The comparisons are also specific to the dataset’s construction. The texts originate in the selected social media sources, and the labels embody the decisions made under the paper’s guidelines and voting procedure.
Why accuracy and macro F1 tell different parts of the story
The paper evaluates the systems with accuracy and macro-averaged F1. Accuracy counts every correctly classified test comment towards the overall score. Since CLEAN dominates the dataset, getting CLEAN comments right can contribute substantially to this metric. It is possible for a classifier to perform well on that often occurring category while still missing many comments from a category that contributes fewer examples.
F1 combines precision and recall. For a given label, precision concerns how often comments assigned that label actually carry it in the test data. Recall concerns how frequently comments carrying that label are recovered by the classifier. A system that applies OFFENSIVE too freely can lose precision on that category. A system that assigns CLEAN to OFFENSIVE comments loses recall on OFFENSIVE, and those decisions also add false CLEAN predictions. The combination makes F1 sensitive to both kinds of error.
Macro averaging takes the class-level F1 scores and gives each class equal weight. Hence, difficulties with HATE or OFFENSIVE can have a substantial effect on macro F1 even though those labels account for fewer comments. Accuracy and macro F1 answer related but different questions. Accuracy measures correct decisions over comments, while macro F1 reflects how well the classifier balances finding and correctly assigning each category. Reporting them together lets the reader interpret a high accuracy in light of the category distribution.
The test scores
Text-CNN achieves 86.69% accuracy and 61.11% macro F1 on the ViHSD test set. It performs better than the GRU baseline in the reported comparison. The multilingual transformer systems, including BERT, DistilBERT, and XLM-R, improve on the deep neural baselines in macro F1. Multilingual cased BERT is the strongest system on both reported metrics, with 86.88% test accuracy and 62.69% test macro F1. The charts show the scores of the stronger fastText-based baseline and the best overall configuration.
Text-CNN and multilingual cased BERT on ViHSD test accuracy
Multilingual cased BERT has the higher test accuracy.
The numbers
| System or setting | accuracy % |
|---|---|
| Text-CNN | 86.69 |
| Multilingual cased BERT (this paper) | 86.88 |
Text-CNN and multilingual cased BERT on ViHSD test macro F1
Multilingual cased BERT leads the comparison when each category receives equal weight.
The numbers
| System or setting | macro F1 % |
|---|---|
| Text-CNN | 61.11 |
| Multilingual cased BERT (this paper) | 62.69 |
The comparison establishes that the cased BERT setup can use the annotated corpus to improve on the other tested setups under both scoring rules. It also shows that a classifier built around local patterns and pretrained word vectors is a consequential baseline. Its accuracy is close to the strongest reported result, and its macro F1 makes the advantage of the strongest classifier visible in a measure that gives all categories equal influence.
The authors draw attention to the gap between accuracy and macro F1 and connect it to the skew toward CLEAN. The gap makes the class-level behavior of the classifiers worth examining. The macro score shows that difficulty remains after the better aggregate accuracy is achieved, but it gives limited detail about where those difficulties occur. For that, the authors inspect a confusion matrix and read examples of misclassified comments from the best system.
What the strongest classifier still confuses
A confusion matrix puts the reference categories and predictions on separate axes so that readers can see the direction of mistakes. In the matrix for multilingual cased BERT, the authors identify a pronounced tendency to classify OFFENSIVE comments as CLEAN. The direction matters. The errors include failures to distinguish offensive language from ordinary conversation, alongside the problem of choosing a category for a comment already recognized as abusive.
The authors then examine particular comments. Some words are characteristic of the way people write on social media and are difficult to recognize in their usual sense. Examples involve dell, éo, and the expression coin card. The paper connects those forms with comments whose recorded label was OFFENSIVE and whose predicted label was CLEAN. The examples show how a system can miss the part of a comment on which the human decision depends even when the surrounding language is ordinary enough to process.
A further mistake concerns a comment labeled HATE and predicted as OFFENSIVE. The authors describe it as using compressed forms for a family reference and a second-person reference, together with abbreviated profanity. Their reading is that the classifier fails to identify the target and interpret the irregular wording well enough to choose HATE. Since the prediction is OFFENSIVE, the result is consistent with partial recognition of abuse. The paper uses this example to show why recovering the force of individual words may still leave the full classification unresolved.
These cases put the test scores in context. The corpus includes ordinary comments, comments whose offensive evidence is easy to overlook, and comments that require a reading of both the abuse and its target. A single accuracy score gives the same credit for any correctly labeled item. The error analysis provides a more specific account of what the classifier must learn if it is to improve on the categories that are currently difficult.
What the ablations show
The paper reports no formal ablations. Its closest evidence comes from comparing complete classifiers, examining annotator agreement, and analyzing the best classifier’s errors. Each comparison isolates a different observable part of the problem, even though the experiments do not remove individual components under matched conditions.
Comparing complete classifiers
Text-CNN outperforms GRU among the fastText-based classifiers. This establishes the ordering of the two implementations on ViHSD. Both use pretrained word vectors and share several settings, including the optimizer, sequence length, number of epochs, and dropout ratio. Their different ways of handling the sequence make the comparison informative about the systems as designed. The paper does not present a version in which the complete training setup is matched and a local convolution is swapped for recurrence in an otherwise identical classifier. The reported ordering therefore belongs to the two implemented baselines.
The transformer comparison shows a broader pattern. The tested pretrained multilingual systems improve macro F1 over the deep neural baselines, and the cased BERT variant is the best configuration on both measures. The authors read this as evidence of the value of BERT and related architectures for the task, including when pretraining covers many languages. Since the two families differ in several respects, the experiment supports the use of the full configurations. It leaves open how much of the improvement comes from the particular pretraining, attention architecture, adaptation schedule, or treatment of input text.
Case provides a good example of the care needed in interpreting a setup comparison. The cased and uncased BERT variants use different pretrained starting points and are handled differently by the lower-case step. The winning cased configuration consequently shows that this combination worked best among those tested. Establishing how much the capital letters themselves contribute would require a comparison designed around that single input property. The paper does not report such a run, so a claim about the causal effect of casing would go beyond the test results.
Locating the annotation disagreement
The shared-sample agreement exercise is a controlled comparison in a different sense. Every reader labels the same comments, which gives the authors a basis for comparing how consistently pairs read common material. The resulting average is useful because the same categories and examples form the basis of each pairwise comparison. It answers a question about the reliability of human decisions under the dataset’s annotation process.
The authors use examples to investigate what differences in those decisions might mean. If two readers interpret an abbreviation differently, they can disagree even though both are trying to follow the same guideline. If they recognize the same words but assign different social meanings to a phrase, their disagreement can arise from their understanding of the community in which it is used. Both situations can look identical in an agreement calculation. An examination of the comments gives the authors an explanation that the aggregate statistic cannot supply on its own.
The paper’s reading of lũ quan ngại illustrates that point. The phrase can be interpreted as a reference whose mocking force depends on familiarity with its use. An annotator who resolves that meaning has different evidence available from a reader who sees only a reference to people who are concerned or pessimistic. This identifies a practical role for annotation guidelines and training. They can give readers a common basis for recognizing how expressions function before they apply the label distinctions. The study reports the agreement reached under its process and uses the examples to motivate further improvements. It does not report an agreement comparison before and after a specific revision.
Identifying errors to test in future experiments
The confusion matrix adds a category-level diagnosis to the classifier evaluation. The repeated movement from OFFENSIVE to CLEAN suggests that some offensive comments carry evidence the strongest tested system fails to pick up. The inspected examples make that transition concrete by showing nonstandard words and expressions associated with such errors. The HATE example predicted as OFFENSIVE shows a second difficulty, where a hint of abusive language can be enough for one category but understanding the target can still matter to the distinction the dataset requires.
The authors propose adding vocabulary resources for slang and abbreviations, and normalizing forms that are uncommon in mainstream writing. For instance, they discuss mapping elongated spellings to their more conventional equivalents. They also point to emoji as possible evidence of positive or negative tone. These are interventions suggested by the error analysis. The experiments summarized in the results do not compare systems with and without any of these interventions, so the size and direction of their effects on the test metrics remain open.
The distinction is particularly important when several clues appear in the same mistake. A comment can contain shortened references, irregular profanity, and a target that has to be inferred. The example makes each of those features plausible as part of the difficulty. Because the authors observe them together, the example provides a reason to design a more focused experiment rather than evidence that changing any single feature would repair the prediction. The paper’s contribution here is a grounded account of where to look for causes and a benchmark on which proposed repairs could be measured.
Limitations
Limits the authors identify
The authors describe the dataset’s inter-annotator agreement as moderate. The average pairwise kappa of 0.52 on the 202-comment sample gives a quantitative estimate of consistency, and the discussion explains why the remaining disagreement matters. Readers differ in their familiarity with abbreviations, slang, and figurative language. They may therefore form different views about the meaning of a comment before making a category decision. The authors also point to the role of individual judgment in applying the guidelines. They propose continuing to train annotators and refine the guidelines as ways to improve data quality.
The voting procedure addresses the need for a final training and evaluation target. A disputed comment can receive a usable category after further review. The resulting corpus still reflects a decision made by particular readers applying the task’s conventions. An example about which readers disagree can appear in the test set with a definite label. This is how the dataset supports a standard classification experiment, and it is also why the authors’ separate evidence about agreement is consequential.
The authors identify informal writing as a limit on classifier performance. They show abbreviations, slang, and coded spellings in the comments that the cased BERT system gets wrong. Their highest macro F1 of 62.69% on the ViHSD test set leaves room for improved handling of these cases. The suggested dictionaries and normalization steps arise from what the error analysis revealed. Their expected benefits are proposals for later evaluation, and the paper gives the baseline scores attained before those changes.
The authors also tie the difference between the two evaluation metrics to the imbalance of labels. CLEAN is the most common category across the training, development, and test sets. A comparison that focuses on accuracy can therefore emphasize success on the most common examples while assigning less influence to mistakes on the rarer categories. The paper addresses this by including macro F1 and by showing the pattern of confusion for the leading system. Different measures are needed because missed offensive comments are a distinct part of the problem, even when they account for a smaller share of the test items.
Limits that follow from the collection and labels
The comments come from chosen Facebook pages and YouTube videos with substantial interaction and open participation, across the topics named by the authors. This provides a concrete population for the experiment. It also bounds claims of coverage. Less active discussions, spaces with restricted participation, and comments from other services can differ in which topics and linguistic conventions are common. The benchmark measures performance on its selected sources, so its results provide no direct estimate for those other settings.
Similarly, the distribution of labels characterizes the collected corpus and its splits. It cannot by itself tell a reader how common abuse is across Vietnamese social media. Such an estimate would require a sampling design tied to the population whose prevalence was being estimated. Here the collection aims to build an annotated benchmark from active sources, and the reported similarity of the partitions helps with within-dataset comparison. It says little about whether their category balance would recur in a different use setting.
The split is described by its proportion and label balance. The paper does not report holding out entire platforms, topics, pages, or channels as separate tests. Consequently, the reported test scores establish performance on the held-out corpus comments, without isolating transfer to an unseen source or topic. A classifier may learn expressions associated with the mixture of topics and sources in its training data. Measuring how far those signals carry would require test sets that explicitly separate the conditions of interest.
The comment-level label also bounds what a correct prediction demonstrates. A classifier can match the recorded class without pointing to the words that justify it or supplying an explanation of whom the comment targets. The authors identify spans of language informally when discussing examples, but the benchmark score concerns the category assigned to the entire comment. It therefore supports claims about label prediction. A claim about locating the abuse within the text would need an evaluation at that finer level.
Removing named entities serves the authors’ anonymity aim and can change the evidence available to a reader. Likewise, removing mention tags during preprocessing can affect the forms in which a target is identified. The paper does not compare results before and after these steps, so it cannot quantify their effect on target-sensitive decisions. The error analysis shows that targets can matter even in the processed text. It leaves open how frequently the remaining context is enough to recover them.
The same consideration applies to conversational context more broadly. The systems are evaluated on the text of a comment. The paper does not report providing surrounding replies or the content of the post or video to the classifiers. A reader may sometimes be able to infer an implied target or the force of a remark from the comment itself. The reported setup offers no direct measure of what a classifier could gain from the broader exchange. For moderation contexts in which such evidence is available, the benchmark addresses the comment-only portion of the decision.
Limits of the experimental comparisons
The leading scores establish an ordering under the reported settings. The paper specifies a manual seed for the transformer runs and reports point scores for the comparison. It gives no evidence about how stable the ordering is across different seeds, and it reports no uncertainty intervals for the scores. This matters when interpreting nearby test results. The observed ranking is a fact about the comparison, while the likelihood of obtaining the same ordering under repeated training would need additional runs.
The setups also change several properties together. Text-CNN and GRU start from pretrained word vectors, while the transformer systems start from multilingual pretraining that supplies contextual representations. The families use different training schedules and batch settings. The strongest overall result therefore provides evidence about the tested cased BERT configuration as a package. It cannot answer how a convolutional system would fare under a different optimization choice or how much multilingual pretraining contributes when architecture and training conditions are held fixed.
Selected errors give depth that the aggregate scores lack. They show, for instance, a route from an unusual word form to an OFFENSIVE comment predicted as CLEAN. They do not count how many test errors have that cause, how many have multiple causes, or how often a classifier handles a similar form correctly. Likewise, the paper’s explanations of the errors come from reading the comments. It does not report a diagnostic intervention that reveals which features the classifier used for an individual prediction. The interpretations are grounded in the examples and provide hypotheses about what to vary in a future experiment.
Finally, agreement and predictive performance answer different questions. The kappa result describes how consistently human readers classify a common sample, given their use of the categories. Accuracy and macro F1 describe how well classifiers reproduce the final recorded labels on the test split. Neither is a direct substitute for the other. The paper does not measure a human score against the classifier test results under an equivalent protocol, so the numbers do not establish a human performance ceiling. They document two conditions that matter for using the benchmark, the consistency of the labels and the ability of the tested systems to predict them.
What came after
Locating hate speech within a comment
The closest later work in task is ViHOS, from 2023. It cites ViHSD and addresses hate speech span detection for Vietnamese. A span is a stretch of text within a larger item. Span detection asks where the relevant words occur, extending the focus beyond the comment-level class that ViHSD evaluates. This creates a different way to assess a prediction. A correct class can coexist with an incorrect localization, and finding an abusive expression can leave open how to classify the comment as a whole.
The change in granularity connects directly to the kind of error ViHSD describes. When the authors explain a wrong prediction by pointing to a disguised expression or a compressed reference to the target, they move from the category of the comment to evidence within it. ViHOS makes localization the object of the detection task. The citation establishes a connection between the studies, while the tasks clarify the relationship between them. ViHSD benchmarks a decision about a whole comment. ViHOS focuses on finding the relevant text inside it.
Vietnamese evaluation in a regional setting
BHASA, also from 2023, cites ViHSD in work on a linguistic and cultural evaluation suite for Southeast Asian languages. Its scope is broader than a benchmark devoted to a single Vietnamese classification task. ViHSD’s research question concerns whether a classifier can distinguish the categories assigned to Vietnamese comments. BHASA addresses evaluation across a wider linguistic and cultural setting, where a task defined using local writing practices can represent a kind of capability that broad scores alone would leave hard to interpret.
ViHSD illustrates the language-specific material relevant to that wider scope. The categories are simple to name, but deciding among them can depend on community-specific phrasing and irregular spelling. Evaluating such distinctions requires locally interpretable examples and a stated way to judge predictions. BHASA’s citation links the Vietnamese benchmark to that regional evaluation effort. The citation by itself leaves the exact role of ViHSD in the suite unspecified.
Evaluating systems adapted to Vietnamese
Crossing Linguistic Horizons, from 2024, cites ViHSD in a study of fine-tuning and comprehensive evaluation for Vietnamese. The shared concern is how to assess systems on Vietnamese after adapting them to relevant text and tasks. In ViHSD, adaptation is measured against a specific set of human decisions on social media comments. The later work places fine-tuning and evaluation within a broader assessment of Vietnamese capabilities. Its citation connects that broader agenda to the earlier example of a dedicated, human-annotated evaluation resource.
These later works carry the discussion into different evaluation settings. ViHOS changes the unit of the prediction, from a whole comment to text within it. BHASA broadens the linguistic and cultural scope of evaluation. Crossing Linguistic Horizons situates adaptation within a more comprehensive Vietnamese evaluation. The citation links establish ViHSD as a point of reference for all three. Their stated scopes show how a narrowly defined benchmark can inform questions about localizing evidence, evaluating across languages and cultures, and measuring the behavior of systems adapted to Vietnamese.
Cite
Cite as Son T. Luu, Kiet Van Nguyen and Ngan Luu-Thuy Nguyen. 2021. A Large-Scale Dataset for Hate Speech Detection on Vietnamese Social Media Texts. Lecture notes in computer science.
@inproceedings{luu2021large,
title = {{A Large-Scale Dataset for Hate Speech Detection on Vietnamese Social Media Texts}},
author = {Son T. Luu, Kiet {Van Nguyen} and Ngan Luu-Thuy Nguyen},
booktitle = {Lecture notes in computer science},
year = {2021},
doi = {10.1007/978-3-030-79457-6\_35},
eprint = {2103.11528},
archivePrefix = {arXiv},
url = {https://doi.org/10.1007/978-3-030-79457-6_35}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/luu-2021-large-scale-dataset-hate-speech/
References
- Aggarwal, C.C., Zhai, C.: A Survey of Text Classification Algorithms. Springer US, Boston, MA (2012) OpenAlex ↗ · Scholar ↗
- Albadi, N., Kurdi, M., Mishra, S.: Are they our brothers? analysis and detection of religious hate speech in the arabic twittersphere. In: IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining (ASONAM). pp. 69–76 (2018) OpenAlex ↗ · Scholar ↗
- Alfina, I., Mulia, R., Fanany, M.I., Ekanata, Y.: Hate speech detection in the indonesian language: A dataset and preliminary study. In: 2017 International Conference on Advanced Computer Science and Information Systems (ICACSIS). pp. 233–238 (2017) OpenAlex ↗ · Scholar ↗
- Badjatiya, P., Gupta, S., Gupta, M., Varma, V.: Deep learning for hate speech detection in tweets. p. 759–760. WWW '17 Companion, International World Wide Web Conferences Steering Committee, Republic and Canton of Geneva, CHE (2017) OpenAlex ↗ · Scholar ↗
- Basile, V., Bosco, C., Fersini, E., Nozza, D., Patti, V., Rangel Pardo, F.M., Rosso, P., Sanguinetti, M.: SemEval-2019 task 5: Multilingual detection of hate speech against immigrants and women in twitter. In: Proceedings of the 13th International Workshop on Semantic Evaluation. Association for Computational Linguistics, Minneapolis, Minnesota, USA our card
- Bassignana, E., Basile, V., Patti, V.: Hurtlex: A multilingual lexicon of words to hurt. In: CLiC-it (2018) our card
- Cerri, R., Barros, R.C., de Carvalho, A.C.: Hierarchical multi-label classification using local neural networks. Journal of Computer and System Sciences 80(1), 39 – 56 (2014) OpenAlex ↗ · Scholar ↗
- Cho, K., van Merriënboer, B., Gulcehre, C., Bahdanau, D., Bougares, F., Schwenk, H., Bengio, Y.: Learning phrase representations using RNN encoder–decoder for statistical machine translation. In: Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). pp. 1724–1734. Association for Computational Linguistics, Doha, Qatar (2014) our card
- Chung, Y.L., Kuzmenko, E., Tekiroglu, S.S., Guerini, M.: CONAN - COunter NArratives through nichesourcing: a multilingual dataset of responses to fight online hate speech. In: Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics. Association for Computational Linguistics, Florence, Italy (2019) our card
- Cohen, J.: A coefficient of agreement for nominal scales. Educational and Psychological Measurement 20(1), 37–46 (1960) OpenAlex ↗ · Scholar ↗
- Conneau, A., Khandelwal, K., Goyal, N., Chaudhary, V., Wenzek, G., Guzmán, F., Grave, E., Ott, M., Zettlemoyer, L., Stoyanov, V.: Unsupervised cross-lingual representation learning at scale. In: Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics. pp. 8440–8451. Association for Computational Linguistics, Online (2020) our card
- Davidson, T., Warmsley, D., Macy, M., Weber, I.: Automated hate speech detection and the problem of offensive language (2017) our card
- Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: BERT: Pre-training of deep bidirectional transformers for language understanding. In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). Association for Computational Linguistics, Minneapolis, Minnesota (2019) our card
- Di Eugenio, B.: On the usage of kappa to evaluate agreement on coding tasks. In: Proceedings of the Second International Conference on Language Resources and Evaluation (LREC'00). European Language Resources Association (ELRA), Athens, Greece (May 2000) OpenAlex ↗ · Scholar ↗
- El-Hawary, M.E.: What happens after i submit an article? [editorial]. IEEE Systems, Man, and Cybernetics Magazine 3(2), 3–42 (2017) OpenAlex ↗ · Scholar ↗
- Fersini, E., Rosso, P., Anzovino, M.: Overview of the task on automatic misogyny identification at ibereval 2018. IberEval@ SEPLN 2150, 214–228 (2018) OpenAlex ↗ · Scholar ↗
- Fortuna, P., Rocha da Silva, J., Soler-Company, J., Wanner, L., Nunes, S.: A hierarchically-labeled Portuguese hate speech dataset. In: Proceedings of the Third Workshop on Abusive Language Online. pp. 94–104. Association for Computational Linguistics, Florence, Italy (2019) our card
- Grave, E., Bojanowski, P., Gupta, P., Joulin, A., Mikolov, T.: Learning word vectors for 157 languages. In: Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018). European Language Resources Association (ELRA), Miyazaki, Japan (2018) our card
- Ibrohim, M.O., Budi, I.: Multi-label hate speech and abusive language detection in Indonesian Twitter. In: Proceedings of the Third Workshop on Abusive Language Online. Association for Computational Linguistics, Florence, Italy (2019) our card
- Isaksen, V., Gambäck, B.: Using transfer-based language models to detect hateful and offensive language online. In: Proceedings of the Fourth Workshop on Online Abuse and Harms. Association for Computational Linguistics, Online (Nov 2020) OpenAlex ↗ · Scholar ↗
- Kang, M., Hall, P.: Hate Speech in Asia and Europe: Beyond Hate and Fear. Routledge Contemporary Asia, Taylor & Francis Group (2020) OpenAlex ↗ · Scholar ↗
- Kim, Y.: Convolutional neural networks for sentence classification. In: Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, Doha, Qatar (2014) our card
- Lecun, Y., Bottou, L., Bengio, Y., Haffner, P.: Gradient-based learning applied to document recognition. Proceedings of the IEEE 86(11), 2278–2324 (1998) OpenAlex ↗ · Scholar ↗
- Nguyen, T.N., McDonald, M., Nguyen, T.H.T., McCauley, B.: Gender relations and social media: a grounded theory inquiry of young vietnamese women’s self-presentations on facebook. Gender, Technology and Development pp. 1–20 (2020) OpenAlex ↗ · Scholar ↗
- Sanh, V., Debut, L., Chaumond, J., Wolf, T.: Distilbert, a distilled version of bert: smaller, faster, cheaper and lighter (2020) our card
- Schmidt, A., Wiegand, M.: A survey on hate speech detection using natural language processing. In: Proceedings of the Fifth International workshop on natural language processing for social media. pp. 1–10 (2017) our card
- Tuckwood, C.: Hatebase: Online database of hate speech. The Sentinal Project. Available at: https://www. hatebase. org (2017) OpenAlex ↗ · Scholar ↗
- Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A.N., Kaiser, Ł., Polosukhin, I.: Attention is all you need. In: Advances in neural information processing systems. pp. 5998–6008 (2017) our card
- Vu, X.S., Vu, T., Tran, M.V., Le-Cong, T., Nguyen, H.T.M.: HSD shared task in VLSP campaign 2019: Hate speech detection for social good. In: Proceedings of VLSP 2019 (2019) OpenAlex ↗ · Scholar ↗
- Waseem, Z., Hovy, D.: Hateful symbols or hateful people? predictive features for hate speech detection on Twitter. In: Proceedings of the NAACL Student Research Workshop. pp. 88–93. Association for Computational Linguistics, San Diego, California (2016) our card
- Yang, X., Yang, L., Bi, R., Lin, H.: A comprehensive verification of transformer in text classification. In: China National Conference on Chinese Computational Linguistics. pp. 207–218. Springer (2019) OpenAlex ↗ · Scholar ↗
- Zampieri, M., Malmasi, S., Nakov, P., Rosenthal, S., Farra, N., Kumar, R.: Predicting the type and target of offensive posts in social media. In: Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers). Minneapolis, Minnesota (2019) our card