Elamur Research

ViHOS: Hate Speech Spans Detection for Vietnamese

Paper · 2023 · Phu Gia Hoang, Canh Duc Luu, Khanh Quoc Tran et al.

Summary

A moderation system can flag a comment without helping a reader see what triggered the flag. That distinction matters when a long comment mixes ordinary conversation with an insult, or when the abuse is expressed through a comparison whose individual words look harmless. ViHOS is a Vietnamese benchmark that asks a system to locate the relevant stretches of text. A stretch, or span, can be as short as part of a word or as long as the phrase that conveys an insult. A comment can have several spans, and a clean comment should produce no highlights.

The authors build ViHOS from Vietnamese social media comments previously labeled at the comment level. The resulting corpus contains 26,467 human-annotated spans across 11,056 comments. Its guidelines ask annotators to capture the expression that conveys the abuse, which can involve a disrespectful form of address, a veiled reference, a symbol, or a phrase that needs to be read as a whole. The authors also manually check and add 5,528 clean comments. These give a detector examples for which leaving the text unmarked is the intended response.

XLM-R Large records the best macro F1 on the full ViHOS test set, at 0.7770, and leads on the subset of comments with a single span, at 0.7214. The paper gives conflicting accounts of the winner on comments with multiple spans. Its abstract names PhoBERT Large, while the detailed results give XLM-R Large the highest F1, at 0.7357, and the discussion agrees with that ordering. All tested systems receive higher scores in the experiment with the added clean comments. The comparison changes the available data as well as the prevalence of comments for which the correct output is empty, so it tests the effect of the complete dataset change.

The development-set analysis shows how a highlight can be misleading even when it points near the right expression. A detector may catch only part of a censored insult, miss a politically loaded reference, or select words whose meaning depends on a conversation it cannot see. The authors release ViHOS publicly under an agreement for research and related uses. They regard the reported accuracy as insufficient for practical use and warn that incorrect predictions could damage users’ reputations.

Deep dive: ViHOS: Hate Speech Spans Detection for Vietnamese

ViHOS marks the words and characters that make Vietnamese social media comments hateful or offensive and tests how accurately systems find them. · about 35 minutes to read

The problem and its context

From flagging a comment to showing its wording

A comment-level detector answers a question about the message as a whole. Depending on the labeling scheme, its answer can be a decision about whether a comment crosses a threshold or an assignment to a category of abusive behavior. A human reviewer still has to read the comment and identify the relevant language. If the message includes several sentences, shifts between meanings, or uses an ordinary word in a hostile way, the reviewer cannot infer from a category label which passage the system is pointing to. ViHOS asks for an answer that can be displayed directly over the comment.

The authors motivate this output through the work of social media moderators. A reviewer can use the highlight to find the relevant portion quickly and then bring their knowledge of the conversation to bear. The original text remains available around the mark. This matters because the highlighted expression and the circumstances that make it harmful can occupy different places. A pronoun can show disrespect toward someone named elsewhere. A comparison can take its force from a preceding claim. A remark addressed to another participant can be hard to interpret when the preceding turn is missing. The benchmark makes the textual location explicit while leaving contextual judgment with the reader.

The change in output creates distinctions that a comment label cannot express. A system might correctly recognize that a comment contains an insult and still leave out the key part of the phrase. It might find a direct insult while overlooking a second one conveyed by allusion. It might highlight an ordinary phrase in a comment that should receive no marks. All of these cases matter if the highlight is the part a reviewer looks at first. A detector that is good at assigning whole-comment labels would still need to be evaluated on the separate task of selecting text.

A span also has a boundary. Its beginning and end are part of the answer, even when there is little dispute that the general passage is offensive. Highlighting only the object of a demeaning comparison can make a neutral noun look abusive in isolation. Highlighting several surrounding clauses can make the response less informative and attribute the problem to wording that plays no part in it. The authors therefore define the job through examples and boundary rules instead of relying on a list of terms. Their guidelines are part of what makes the task an instance of linguistic annotation.

What earlier benchmarks asked

In the paper’s account, much of the work on hate speech had concentrated on English, where researchers could draw on more corpora and stronger pretrained systems. The authors also identify work on Arabic, Dutch, and French. Their discussion of earlier approaches moves from conventional machine learning and neural systems using word representations to pretrained approaches used in shared evaluations. The difference that motivates ViHOS lies in what the resource asks researchers to predict. A corpus can be large and useful for Vietnamese moderation research while still giving no supervision for where a highlight should begin or end.

The paper points to Vietnamese resources including ViHSD, HSD-VLSP, and UIT-ViCTSD. ViHSD supplies the starting comments for ViHOS. Its categories give the authors a way to find comments likely to contain relevant language and to draw a set of candidate clean comments. ViHOS adds judgments about locations inside those messages. This relationship matters because the distinction between a source category and a new span label becomes visible during annotation. A comment selected from the source’s abusive categories can end up with no span under the new instructions. The earlier dataset addresses the broader problem of text classification.

The paper places its work alongside research on different categories and targets of offensive speech. The earlier studies it describes include both binary decisions and finer categories. Either approach can tell a reader something about the message. Neither format inherently specifies which wording expresses the abuse. The distinction between offensive language and hate speech is already a concern in earlier classification research. ViHOS gives that broader problem a location-based output by asking what should be marked under the authors’ working definition of hateful or offensive language. That context includes Automated Hate Speech Detection and the Problem of Offensive Language.

The closest task the authors identify is the English toxic-span shared task. Its dataset contains 10,629 posts drawn from Civil Comments, and the intended output is the wording that makes a post toxic. It establishes the precedent for judging the location of toxic language separately from a post-level decision. ViHOS takes a related kind of prediction into Vietnamese. Its design also explicitly includes checked clean comments so that evaluation can begin with a complete comment whose correct output may be empty. The earlier benchmark is SemEval-2021 Task 5: Toxic Spans Detection.

The paper’s other close comparison is HateXplain, which contains 20,148 Gab and Twitter posts. The paper describes its posts as manually assigned to hateful, offensive, or normal categories, with marked words serving as rationales for classifying the message. A rationale and a span prediction can look alike on screen. The difference is the role assigned to the marked text in the task. In the paper’s account of HateXplain, the spans support a judgment about the whole post. In ViHOS, recovering the spans is itself the supervised objective and the outcome on which the baselines are evaluated.

The authors identify a gap where language, annotation, and task design meet. Vietnamese social media comments were available for related tasks, and there was precedent for drawing attention to toxic wording in English. Establishing a Vietnamese span benchmark required deciding how to handle the forms that abuse took in the available comments. Among them were disrespectful address, words with missing diacritics, concealed spellings, political references, and comparisons whose meaning arises from the phrase as a whole. Those decisions determine what a detector is expected to learn and what a reported score can establish.

The method, step by step

Selecting comments for both kinds of answer

ViHOS begins with public social media comments from ViHSD. The source dataset contains 27,624 comments labeled CLEAN, 3,514 labeled HATE, and 2,262 labeled OFFENSIVE. The authors remove duplicate comments from the HATE and OFFENSIVE material, leaving 5,528 comments to examine for spans. This selection gives annotators a collection likely to contain a range of relevant expressions. The source labels guide collection, while the annotation guidelines determine which characters in each selected comment, if any, receive marks.

The authors also draw from the CLEAN category and have annotators check those comments for language covered by the ViHOS definition. They add 5,528 that pass the check. The clean comments serve two purposes in the authors’ design. They make it possible to present complete comments to a detector without first screening out every negative example. They also give the learning procedure direct evidence that some comments should receive no marks anywhere. The authors choose the same number of added clean comments as comments inherited from the deduplicated abusive categories. Final span status is determined after annotation, so the two source groups do not map exactly onto the two possible outcomes.

A fresh span judgment can leave previously flagged material unmarked. In the finished dataset, the authors identify 168 comments from the annotation process that contain no qualifying span, in addition to the separately added clean material. This is important when interpreting the later experiment described as removing the additional clean comments. That condition removes a particular source of negative examples. The distinction is between the added set and the rest of ViHOS, whose labels came from the span annotation process.

From Vietnamese social media comments to span predictions

The steps in order.

From Vietnamese social media comments to span predictionsStep 1: Select abusive and clean comments from ViHSD1. Select abusive and clean comments from ViHSDStep 2: Train annotators on shared examples2. Train annotators on shared examplesStep 3: Establish reference spans and resolve disagreements3. Establish reference spans and resolve disagreementsStep 4: Annotate remaining comments and verify clean examples4. Annotate remaining comments and verify clean examplesStep 5: Split the corpus for training and evaluation5. Split the corpus for training and evaluationStep 6: Encode span boundaries with sequence tags6. Encode span boundaries with sequence tagsStep 7: Train and evaluate detectors against human annotations7. Train and evaluate detectors against human annotations

Deciding how much language to mark

The working definition covers expressions that harass, insult, curse at, or disrespect other people. It includes abuse connected with sensitive characteristics, attempts to turn groups against one another, and indirect expressions such as insinuations and figurative language. The guidelines also make room for insults expressed through an inappropriate form of address. The authors ask annotators to consider whether removing or replacing the relevant expression would take away the hateful or offensive element. In a comment with several separate attacks, that reasoning applies to identifying what each selected expression contributes.

The paper illustrates the approach with a comment belittling an administrator. The form used to refer to the administrator is disrespectful, so the annotation can select that part of the subject without including the ordinary reference to the administrator’s role. Elsewhere in the same comment, a verb literally associated with breathing is used for speaking, and the remark likens the administrator’s thinking to that of a young child. The attack comes through the combined wording. Marking the child reference alone would leave out what makes it insulting. The annotation therefore includes the larger expression while keeping it separate from the disrespectful form of address.

This example shows why the unit that an annotator examines and the unit that a detector returns can differ. The annotators are encouraged to parse a comment into sentence-like or clause-like units so that they can identify subjects, predicates, and other components. The intended minimum is a subject–predicate grouping, with room for one such grouping to occur inside another. The comments often omit subjects, verbs, connectors, or punctuation. The authors use the grammatical analysis to help annotators work out the structure of the meaning despite those omissions. Once they have identified the function of a passage, the marks can cover a smaller part of the clause or extend across multiple components.

The guidance on comparisons makes that decision concrete. An object used as an insult may need to be included, along with enough of the comparison to express the demeaning relationship. Another apparent comparison may require the broader phrase because the object is ordinary on its own. The guidelines also say to leave ordinary conjunctions unmarked and distinguish accepted terms for LGBTQ+ people from inappropriate forms of reference. Even when nearby words occur in the same sentence as offensive content, the instructions allow annotators to omit them.

The same principle can require an unusually broad mark. The appendix includes a remark about a person returning to the country and being sent to prison instead of isolation. The authors treat the entire proposition as the relevant expression under their guidance on violations of human rights. In such a case a reader has to understand the relationship between the actions being proposed and the person affected. Selecting an isolated term would lose that relationship. In other cases, separate marks for a disparaging address and an insult preserve the boundaries between distinct expressions. The desired span length depends on where the guideline-defined meaning resides.

Handling spellings, symbols, and indirect expression

The appendix gives annotators procedures for nine types of difficult online language. Comments without diacritics are still read under the ordinary definition of a span. Annotators can reread them to work out plausible meanings. If a longer passage remains hard to interpret, the guidelines let annotators prioritize readily identifiable abusive wording. The paper also distinguishes accidental spelling errors from deliberate misspellings used as mockery. A spelling variation may be part of how the author of a comment presents the insult, so resolving its meaning and marking the original text are separate operations.

The procedures address forms whose written appearance can conceal their meaning. A pun may require a different reading of the phrase from the one apparent on first inspection. A homonym can carry an offensive interpretation even when its visible words can be read innocently. Foreign wording is assessed using the same definition applied to Vietnamese wording. An obscene abbreviation can be marked in its entirety. A string made by running several words together can receive a mark on just the portion that expresses the abuse. These examples explain why complete orthographic words would be too coarse as the final annotation unit.

Symbols raise the same issue from another direction. If a nonword symbol conveys the relevant meaning on its own, the guidelines permit a mark on the symbol. If the meaning comes from the symbol and surrounding language together, the selection can cover the whole expression. The paper gives examples of punctuation inserted in words and of characters spaced apart to disguise them. The annotation follows the characters that carry the understood expression, including altered material when it belongs inside the span. This makes the benchmark a test of finding evidence in the comment as written.

For metaphors, metonymy, and allusions, deciding what the author meant precedes deciding where to mark. A metaphor can use an apparently harmless image to insult someone. A metonymic reference can stand for an institution or idea associated with the words on screen. An allusion can draw on shared knowledge that the comment never states. The guidelines generally ask annotators to mark enough of the wording to retain the indirect attack. They also allow annotators to consult a Vietnamese dictionary and ask them to keep reactions to disturbing material from determining the scope of the mark.

These procedures combine a semantic judgment with a precise transcription of its extent. The annotator first makes sense of the expression and then places its boundaries on the original characters. A dictionary entry could help with the former judgment, and a character-level output makes the latter possible. Neither can supply an absent conversation. Where context is missing, the paper asks annotators to imagine a plausible original setting. That decision makes it possible to complete the task on isolated comments, while introducing a source of uncertainty that matters when the results are interpreted.

Training annotators and checking their work

The authors use LightTag for the annotation and organize the work into phases. They recruit six undergraduate native speakers of Vietnamese. In the pilot, the annotators study an initial version of the instructions, give feedback, and independently mark the same 100 randomly sampled comments. The authors repeat this training and assessment procedure in four rounds. Because the annotators share the material within a round, their marks can be compared in pairs rather than judged by whether each person selected a similar number of spans.

The authors use macro F1 as the main measure of inter-annotator agreement and character-level Cohen’s kappa as a secondary measure. In a pairwise comparison, F1 emphasizes the correspondence between the marks made by the two annotators. Kappa adjusts observed agreement for agreement expected from the annotators’ labeling frequencies. The authors explain why negative cases are difficult to define for spans. Annotators choose stretches of varying lengths, so there is no ready-made list of negative spans comparable to a list of items in an ordinary classification exercise. Turning the task into decisions about individual characters gives kappa a defined set of positions, while making the abundance of outside characters influential.

The pilot scores show how agreement changed while the annotators learned the task and the guidance was refined. The first round gives an average pairwise F1 of 0.7085 and a kappa of 0.4161. The subsequent round pairs are F1 of 0.7186 with kappa of 0.4568, and F1 of 0.7534 with kappa of 0.4936. In the last pilot round, average F1 is 0.8219 and kappa is 0.6402. The authors qualify the annotators after finding that no pairwise F1 falls below 0.8. That threshold concerns agreement between annotators at the end of training. It is separate from the F1 used later to rank automatic predictions.

The authors then sample 600 comments from the deduplicated HATE and OFFENSIVE pool for a reference set. Two of the guideline developers independently annotate these comments and discuss disagreements afterwards. The discussion also leads to further updates to the guidelines. The prose reports agreement as F1 of 0.86 and kappa of 0.72 for this stage. The agreement table places 0.7239 and 0.8219 under kappa and F1 for the reference phase, followed by 0.7215 and 0.8585 for the main phase. The F1 entries and prose descriptions thus give different accounts of the reference phase, and the paper leaves that discrepancy unresolved.

For main annotation, the remaining 4,928 comments are divided into separate assignments. The authors also divide the reference material into batches of 100 and place a batch in each assignment. Each trained annotator marks an assignment and is assessed against the reference comments it contains. Falling below an F1 of 0.81 requires repeating the annotation until the criterion is met. The paper reports a mean F1 of 0.86 for the completed phase. This procedure uses shared annotation rules, reconciled reference judgments, and a check embedded in the ordinary assignment. It creates a practical test of consistency on reference material while allowing annotators to apply the same guidance to comments that the reference developers did not both mark.

Preparing the tagging systems

The prediction task is formulated as sequence tagging: assign a label to each position in an ordered input and use the labels to recover stretches of interest. The authors describe tagging characters in IOB format. A beginning tag marks the first character of a span, an inside tag marks a continuation, and an outside tag marks a character outside the annotated material. A new beginning can distinguish a new span from continuation of a previous one. The framework for representing boundaries comes from Text Chunking using Transformation-Based Learning.

There are two levels to keep in view when interpreting the experiments. At the output level, the benchmark defines spans over characters in the original comments. At the input level, systems can organize that text into syllables or words. VnCoreNLP is used for the preprocessing described in the paper, with syllable-level input for XLM-R and word-level input for PhoBERT. The BiLSTM-CRF family is tried with both. Input units can influence which pieces of an unfamiliar spelling are readily represented. The target boundaries still concern what should be highlighted in the comment. The paper gives the tagging format and the input granularity, while leaving the precise alignment procedure between them less explicit than the training settings for tokenization.

The BiLSTM-CRF baseline has a lexical representation layer, a bidirectional sequence layer, and a conditional random field. The authors initialize the lexical layer with pretrained PhoW2V vectors in the syllable and word settings. A vector provides a numerical representation of a text unit. The bidirectional layer builds a representation using sequence context from both directions, and the conditional random field scores possible tag sequences together. Considering adjacent labels jointly suits a task in which the relationship between the start and continuation of a span is part of the output. The architecture is drawn from Neural Architectures for Named Entity Recognition.

For the recurrent baseline, the paper gives a PhoW2V embedding size of 100 and an LSTM hidden state size of 60. The training settings are Adam with a learning rate of 0.001, a mini-batch size of 64, dropout listed as [0.1, 0.1], and training for 10 epochs. A mini-batch is a group of examples used for a training update, and an epoch is a pass through the training material. The two versions keep the broad architecture in common while changing the input units and using the corresponding vectors. The numerical representations supplied by that lexical layer are word embeddings.

XLM-R and PhoBERT provide the pretrained alternatives, each tested in Base and Large configurations. They bring linguistic representations learned before the ViHOS experiments and are adapted to the tagging task with the annotated comments. XLM-R is the multilingual alternative. The paper describes its pretraining data as 2.5T across 100 languages, including 137GB of Vietnamese texts. Its role in the comparison is to test a multilingual pretrained system on Vietnamese span detection, using the syllable-level setup described by the authors. The underlying approach comes from Unsupervised Cross-lingual Representation Learning at Scale.

PhoBERT is the Vietnamese-only alternative. The paper describes it as following RoBERTa’s architecture and approach, with pretraining on 20GB of Vietnamese data. The authors cite its performance on other Vietnamese language tasks as a reason to include it. For ViHOS, PhoBERT receives word-level input. The comparison against XLM-R therefore combines differences in the prior training and in the text passed to the tagger. It measures the performance of those complete settings on the task. The Vietnamese pretrained system is PhoBERT.

The authors use Simple Transformers for adaptation of the pretrained systems. The setup as reported ran Adam for 10 training epochs, using batches of 8 and a 2e-5 learning rate. According to the paper, the baseline runs used a machine equipped with an NVIDIA Tesla P100 GPU and 26 GB of RAM. The annotated training comments give the pretrained systems supervision for recognizing the beginning, continuation, and absence of spans. Updating a pretrained system for the task is fine-tuning.

From individual predictions to an aggregate score

For evaluation, the authors describe comparing each gold prediction pair, where gold means the human reference annotation, and taking the arithmetic mean of the resulting F1 scores. The averaging step can be written as follows.

F̄ = (Σᵢ Fᵢ) / N

F̄ is the macro-averaged F1 reported for the evaluation collection. Fᵢ is the F1 for the case indexed by i, with a case consisting of a reference answer and the corresponding system prediction. Σᵢ indicates summation over those cases, and N is the number of cases included in the average. The equals sign specifies the aggregate, and division by N gives each included case equal weight. This describes the averaging reported by the authors. The paper does not give a worked calculation showing how an empty reference and an empty prediction enter that average.

Precision and recall represent different aspects of agreement with the reference. Precision asks how much of the selected material belongs in the reference. Recall asks how much of the reference the prediction recovers. F1 combines the two. A highlight that catches only a fragment can get credit for its overlap while losing recall, and an overly broad highlight can recover the reference while losing precision. The paper lists precision, recall, and F1 for the test subsets. Because the evaluation is described as averaging scores across cases, the displayed F1 should be read on its own terms. Taking a harmonic mean of the displayed aggregate precision and recall is a different operation from calculating F1 for each case and then averaging it.

Experiments and results

What the splits contain

The paper divides the 11,056 comments into training, development, and test subsets at an 8:1:1 ratio. The training material is used to fit the systems, the test material supports the headline comparisons, and the development material is where the authors examine prediction failures. The corpus-level description gives 5,360 comments with hateful or offensive spans and 5,696 without them. Of those without spans, 5,528 were deliberately added after checking, and 168 come from the material originally examined for abusive language. The breakdown describes the result of annotation rather than simply carrying the source dataset’s category labels forward.

In the test split, the span-count figures include 575 no-span comments, or 51.99% of that split, and 235 single-span comments, or 21.25%. The dataset statistics give 296 multi-span test comments, or 26.76%. The span-count table further describes 202 test comments with 2 - 3 spans, 68 with 4 - 6 spans, 21 with 7 - 10 spans, and 5 with >10 spans. The frequent case within the multi-span category therefore lies towards the lower end of the paper’s span-count bands. Its harder examples can also require the detector to find many distinct stretches in the same comment.

Span length varies independently of how many spans a comment contains. In the test set, the length table reports 647 spans of 1 syllable, representing 52.77% of test spans, and 474 spans in the 2 - 3 syllable band, representing 38.66%. The same table records 14 test spans in the >10 syllables band, or 1.14%. The short selections are common, but the benchmark includes cases where capturing the whole expression requires going beyond a short word or phrase. These lengths describe syllables for corpus analysis, while the actual ground truth is marked by character.

The paper’s test statistics give an average length of 9.04 for clean comments and 16.13 for comments in its Ha/Off row, both measured at the syllable level. Length is relevant to the interpretation of a subset score. More text gives a system more places to find a marked expression and more places to raise a false alarm. At the same time, longer comments can contain clues elsewhere in the text that help identify a span. The aggregate results do not assign a separate effect to length. The length figures describe the mix of material on which those results were obtained.

The full test set

The comparison includes syllable and word variants of BiLSTM-CRF, alongside the Base and Large configurations of XLM-R and PhoBERT. The recurrent variants test a sequence tagging architecture using pretrained lexical vectors. The other systems start with contextual representations learned through pretraining and are fine-tuned on ViHOS. The paper uses macro F1 as the primary comparison and describes its final F1 figures as averages over more than ten runs with different random seeds. Using different runs makes the scores less dependent on a particular initialization or training run, although the main results do not give a separate spread for each value.

Baseline systems on the full ViHOS test set by macro F1

XLM-R Large leads the full-data comparison, followed by PhoBERT Large.

Baseline systems on the full ViHOS test set by macro F1BiLSTM-CRF with syllable embeddings: 0.7453BiLSTM-CRF with syllable embeddings0.7453BiLSTM-CRF with word embeddings: 0.7036BiLSTM-CRF with word embeddings0.7036XLM-R Base: 0.7467XLM-R Base0.7467XLM-R Large (this paper): 0.7770XLM-R Large (this paper)0.7770PhoBERT Base: 0.7569PhoBERT Base0.7569PhoBERT Large: 0.7716PhoBERT Large0.7716
The numbers
System or settingMacro F1
BiLSTM-CRF with syllable embeddings0.7453
BiLSTM-CRF with word embeddings0.7036
XLM-R Base0.7467
XLM-R Large (this paper)0.7770
PhoBERT Base0.7569
PhoBERT Large0.7716

The highest full-test F1 belongs to XLM-R Large. The same row gives precision of 0.8071 and recall of 0.7887. PhoBERT Large has precision of 0.8028 and recall of 0.7835. The recurrent syllable baseline has precision of 0.7452 and recall of 0.7769. Thus some of the differences in F1 accompany different balances between how selectively a system highlights text and how extensively it recovers the reference. The score that leads the full-test comparison also leads both displayed precision and recall in that panel.

The full-test ranking puts PhoBERT Base above XLM-R Base on macro F1, while the Large configurations reverse the order of the two families. Within these particular settings, the results support comparisons such as XLM-R Large versus XLM-R Base, or PhoBERT Large versus PhoBERT Base. The cross-family ranking is more conditional. It depends on the specific configuration and test material, which is one reason the authors report more than the winning full-test result.

Comments with a single span

The single-span subset asks how well the systems locate the one reference stretch in each included comment. A comment with one span can contain a long stretch of offensive language, and there can be nearby wording that looks offensive but belongs outside the mark. The constraint is about the number of separate reference selections. It does not fix their length, supply their location, or restrict the detector to making exactly one prediction.

Baseline systems on the ViHOS single-span test subset by macro F1

XLM-R Large leads, and the pretrained systems score above both recurrent baselines.

Baseline systems on the ViHOS single-span test subset by macro F1BiLSTM-CRF with syllable embeddings: 0.4329BiLSTM-CRF with syllable embeddings0.4329BiLSTM-CRF with word embeddings: 0.3594BiLSTM-CRF with word embeddings0.3594XLM-R Base: 0.7203XLM-R Base0.7203XLM-R Large (this paper): 0.7214XLM-R Large (this paper)0.7214PhoBERT Base: 0.7016PhoBERT Base0.7016PhoBERT Large: 0.7067PhoBERT Large0.7067
The numbers
System or settingMacro F1
BiLSTM-CRF with syllable embeddings0.4329
BiLSTM-CRF with word embeddings0.3594
XLM-R Base0.7203
XLM-R Large (this paper)0.7214
PhoBERT Base0.7016
PhoBERT Large0.7067

The single-span scores show that the stronger systems and the recurrent baselines are farther apart on this subset than their full-set scores suggest. XLM-R Large reports single-span precision of 0.7577 and recall of 0.7679. PhoBERT Large reports 0.7435 precision and 0.7567 recall in the same setting. The paper describes the difference between the pretrained multilingual and monolingual systems as having no significant effect on the result in this subset. It provides the scores for comparing those configurations, with no accompanying significance test specified in the results discussion.

The ranking within a column also depends on which measure is read. XLM-R Base has single-span precision of 0.7604, while the Large configuration leads on F1. A stronger score on the combined measure can coexist with a lower displayed precision when the system also finds more of the reference material. The comparison is especially relevant for highlights because the two kinds of error have different consequences. Extra selected text can send a reviewer to an irrelevant expression. Missing the decisive part can make the highlighted words difficult to understand.

Comments with multiple spans

The multiple-span subset changes the kind of reference answer. A prediction may recover some expressions and miss others, or it may treat interrupted language as one continuous highlight. This setting also exposes the difference between detecting that a comment contains abuse and recovering its distributed locations. The paper gives the detailed comparison below.

Baseline systems on the ViHOS multiple-span test subset by macro F1

The results table places XLM-R Large first on this subset.

Baseline systems on the ViHOS multiple-span test subset by macro F1BiLSTM-CRF with syllable embeddings: 0.5068BiLSTM-CRF with syllable embeddings0.5068BiLSTM-CRF with word embeddings: 0.4013BiLSTM-CRF with word embeddings0.4013XLM-R Base: 0.7327XLM-R Base0.7327XLM-R Large (this paper): 0.7357XLM-R Large (this paper)0.7357PhoBERT Base: 0.7092PhoBERT Base0.7092PhoBERT Large: 0.7321PhoBERT Large0.7321
The numbers
System or settingMacro F1
BiLSTM-CRF with syllable embeddings0.5068
BiLSTM-CRF with word embeddings0.4013
XLM-R Base0.7327
XLM-R Large (this paper)0.7357
PhoBERT Base0.7092
PhoBERT Large0.7321

The detailed table and the results discussion put XLM-R Large ahead of PhoBERT Large on multiple-span macro F1. The text reports their difference as 0.0036 in that setting. The abstract instead names PhoBERT Large as the multiple-span winner. The chart follows the detailed table and the discussion. Its ranking should be read with that disagreement in mind. The reported precision and recall also help characterize the settings. XLM-R Large has precision of 0.7829 and recall of 0.7569, while PhoBERT Large has precision of 0.7878 and recall of 0.7557.

Each baseline has a higher reported multiple-span F1 than single-span F1. The authors suggest that the greater number of offensive expressions can provide more features for the systems to use. The experiment compares subsets drawn from the test set according to the number of annotated spans. That means the pattern is an observation about those groups of comments. It leaves open how much of the difference comes from the availability of more recognizable expressions, the kinds of abuse in the groups, or other characteristics of the selected comments.

The full-test macro F1 values are higher than the corresponding scores in both positive subsets. The paper reports that XLM-R Large’s full-test F1 exceeds its single-span F1 by 0.0556 and its multiple-span F1 by 0.0413. For PhoBERT Large the reported differences are 0.0649 and 0.0395, respectively. The full test includes comments without spans, while the positive subsets are defined by the presence of one or more. The overall value therefore reflects a different set of cases. The specific scoring convention for empty answers matters for explaining how those cases contribute to the aggregate.

What the ablations show

Adding the clean comments

The clearest comparison that alters the experimental setup uses ViHOS with and without the 5,528 additional clean comments. The paper reports the change for every tested baseline. All receive higher F1 in the full-data condition, and the reported improvement across the comparison is 0.1002±0.0210. The gain holds across the BiLSTM-CRF settings and across both pretrained families. The result supports the choice to include checked clean material in the benchmark when evaluating detectors on a mix of comments.

The ranking also changes. Without the added clean comments, PhoBERT Large leads at 0.6867 F1, and XLM-R Large records 0.6756. With the added comments, XLM-R Large leads at 0.7770 and PhoBERT Large reaches 0.7716. The paper reports a gain of 0.1014 for XLM-R Large and 0.0849 for PhoBERT Large. This condition-dependent ranking is relevant when comparing the two systems. A score on a corpus enriched for comments that might contain abuse answers a different empirical question from a score on the full collection assembled for the task.

The remaining values tell the same directional story across different starting scores. The syllable BiLSTM-CRF has F1 of 0.6241 without the added comments and 0.7453 on the full data. The word version has 0.6244 and 0.7036 in the corresponding conditions. XLM-R Base has 0.6479 without the added material and 0.7467 with it. PhoBERT Base has 0.6738 without the added material and 0.7569 on the full data. The close reduced-data scores for the recurrent variants and their ordering on full data show that the effect of the dataset condition can differ even within a common architecture.

The authors interpret the increase as evidence that added clean comments reduce bias toward abusive predictions. The dataset design gives a reason for that interpretation. Outside labels within an abusive message show that some characters should be ignored, while a fully clean message gives the system a whole input for which leaving everything unmarked is correct. The comparison measures the outcome of adding a body of such examples. It changes the data volume and composition together. The reported aggregates leave open the separate contributions of learning to suppress false alarms, encountering more training text, and scoring on the resulting mixture of cases.

There is another distinction between this comparison and the full-test versus positive-subset results. The full-data comparison removes a particular set of added comments from the data condition. The subset comparison selects test cases by how many spans the annotators found. Comments with no VerHOS span can originate in the source pool initially labeled abusive. As a consequence, removing the added clean set and filtering the test set to comments with positive spans are different changes. The paper’s labels for the experiments are best read with that distinction in view.

Granularity, pretraining, and the unit of comparison

The recurrent baselines provide a paired comparison of syllable and word input with corresponding PhoW2V embeddings. The syllable variant has higher F1 on the full test as well as on both positive subsets. Its full-test and positive-subset results show that the granularity selected for a word representation can matter in this benchmark. The reduced-data comparison gives slightly higher F1 to the word variant. Each setting changes both how the sequence is divided and which pretrained vectors are used, so the comparison measures the paired design choices.

The paper also contrasts pretrained systems with BiLSTM-CRF. On the single-span subset, it reports a difference of 0.3521±0.0099 in F1 in favor of the pretrained systems. On the multiple-span subset, the reported difference is 0.3212±0.0132. The individual results show where these comparisons are particularly pronounced. The separation on the positive subsets is much more apparent than in the full-test figures, where the syllable BiLSTM-CRF reaches 0.7453 and XLM-R Base reaches 0.7467. A reader interested in locating actual offenses can use the positive-subset scores to see a distinction that the full-set aggregate can compress.

The authors attribute the stronger pretrained-system results to better lexical representations and feature extraction on social media text. Their comparison is consistent with that account. It contains multiple changes at once, including architecture, prior training, and input representation. The recurrent settings also start with pretrained lexical vectors. The result therefore supports the tested contextual systems as baselines for ViHOS and leaves the advantage attributable specifically to a given architectural or training choice unresolved.

The comparisons between Base and Large settings hold more of the setup in common. Both Large variants score above their own Base variants in the reported full-test and positive-subset F1 results. Meanwhile, comparing the two Large systems combines syllable versus word input with different pretraining corpora and system families. The paper’s example involving a censored expression suggests a possible effect of input granularity, but the design does not repeat that prediction with the same pretrained system under both granularities. The example illustrates a plausible mechanism, and the full comparison measures the systems as configured.

How the errors appear in individual comments

The authors examine predictions from PhoBERT Large and XLM-R Large on 100 randomly selected development comments. Their error analysis uses 12 categories. Some categories describe disagreements between predictions and references, such as highlighting clean wording or selecting the wrong boundary. Some describe a property of the language, such as allusion, abbreviation, a spelling problem, unfamiliar domain knowledge, an idiom, absent diacritics, or figurative meaning. The taxonomy also allows for errors in the annotation itself and groups other difficulties such as rare characters, mixed languages, and words written together.

The prominent categories identified by the authors include wrong span selection, incorrect boundaries, allusion, reference annotation errors, and missing context. They tell different stories about an unsuccessful highlight. A boundary error can mean that a system found the general area but returned an incomplete expression. An unrelated selection can mark clean language as though it were offensive. Allusion and missing context suggest difficulties figuring out what an expression conveys. Annotation errors indicate that some disagreements involve a questionable reference even under the paper’s own rules. An F1 value can reflect all of these situations, whereas looking at the predicted text lets the authors distinguish them.

One case involves an insult whose second part contains asterisks. PhoBERT Large marks the ordinary word for a head within the phrase, while XLM-R Large marks the censored portion. Both leave the expression incomplete relative to the reference. The authors connect the difference to the word-level and syllable-level settings and suggest that the syllable-level input helped XLM-R recognize the obscured portion. The visible result is that each system locates a different piece of the relevant expression. Whether that difference arose specifically from segmentation remains open because the comparison also changes the pretrained system.

A political comment contains a reference to a rival group through the color of a flag. Both systems mark fragments elsewhere in the comment, but neither recovers the complete expression that names the group in a derogatory way. This case makes the semantic difficulty independent of unusual spelling. The systems can identify pieces of a nearby direct insult while failing to recover an indirect reference. Finding the latter requires inferring what the reference denotes and how the comment uses it before placing a boundary around the expression.

Another case contains an idiom from folk poetry contrasting thieves with officials. The predictions select pieces of the wording. The authors treat the idiom as a source of confusion because the abuse is expressed through a conventional comparison, so isolated words do not capture how the lines work together. A final example contains a conspicuous profanity and a verb for digging whose object is absent. The detectors behave differently around the verb. The contrast within that comment shows how a comparatively recognizable cue can coexist with a passage whose status depends on what the conversation is about.

The error study gives concrete evidence about what kinds of judgments remain difficult. It examines a sample from the development split and does not establish a test-set error rate for each phenomenon. Several categories also concern different levels of explanation. Wrong boundaries describe the shape of a prediction, while an allusion describes a feature of the comment that may contribute to the error. Keeping those levels in view helps explain what the analysis adds beyond the system rankings. It shows what a particular mismatch looks like and where an account based on scores alone would leave the reader guessing.

Limitations

Limits the authors identify

The authors describe missing context as a limitation of the data collection and annotation. Some comments are difficult to understand in isolation. Annotators are asked to imagine a plausible original context, which helps them make a judgment when the surrounding exchange is unavailable. A plausible reconstruction can differ from what actually happened or from another reader’s reconstruction. The missing material can include the target of a remark, the topic of a reply, or the referent of an indirect phrase. This leaves both human judgment and automatic prediction dependent on what can reasonably be recovered from the words in the comment.

The paper also describes the baseline performance as too modest for practical use. A highlight makes a concrete claim about a particular piece of a person’s language. A false selection can put the emphasis on a neutral expression, and a partial selection can obscure the relationship that made the surrounding wording offensive. If users rely heavily on those predictions, the authors warn that inaccuracies can harm people’s reputations. The paper motivates span detection through a possible moderation use and tests the quality of the highlights against annotations. The benefits and consequences of displaying those highlights to moderators remain a separate empirical question.

The authors acknowledge a risk from releasing a corpus of abusive expressions, including its possible use to build abusive chatbots. They make the corpus available for research and related purposes under a usage agreement because they consider its research value greater than the risks. The annotation work also exposes people to offensive material. The students were informed about the content and encouraged to stop if they became overwhelmed. The comments came from ViHSD, whose collection process preserved user anonymity. These are the precautions and tradeoffs the paper describes for creating and releasing the resource.

In discussing future work, the authors propose expanding the size and variety of the dataset and applying processing before or after detection to handle irregular social media text and complex expressions. These are responses to the limitations they observed. The reported experiments establish baseline performance under the existing data and training setup. They leave the effects of additional coverage, normalization, and other processing to future evaluation.

Limits visible in the study design

The source corpus gives ViHOS a defined population of comments and makes collection feasible. The initial selection is guided by ViHSD’s labels, with separate manual checking of deliberately added clean material. The resulting mix describes the authors’ benchmark, while the frequency and character of similar language in other streams of Vietnamese social media remain open. A system measured on this mixture may see a different prevalence of clean comments or different kinds of indirect speech elsewhere. The paper does not report a transfer experiment to a separately collected Vietnamese corpus that would quantify that change.

The target reflects the paper’s working definition of hateful and offensive wording. That definition includes direct insults and several kinds of pragmatic judgment. The decision about whether a form of address is disrespectful may depend on the participants and circumstances. Political references and comparisons may require community knowledge. The agreement procedure demonstrates that trained annotators can converge under the guidelines, with checks against reconciled examples. It leaves open how much judgments would change across different annotator groups or when the original conversation is available.

The development-set review identifies annotation errors, and the authors state that they did not change the released annotations as a result of that review. This matters when a system disagrees with a reference. In most evaluation cases the reference is the available basis for judging the highlight. In cases where the paper itself identifies a faulty annotation, the formal disagreement can reflect unwanted behavior, a reference problem, or an interaction between them. The analysis shows that such examples exist, but it supplies no corrected benchmark score that would estimate their effect on the ranking.

The task uses a shared kind of mark for hateful or offensive material. The reported span scores answer how well a system locates material covered by that combined definition. They provide no separate measurement of how accurately it identifies the target of a remark or distinguishes categories of abuse. A mark could be useful for finding an expression even if the detector’s reason for selecting it differs from the annotator’s. The score measures agreement on the selected text and leaves the internal basis of that selection unresolved.

Several reporting details limit what can be recovered from the tables alone. The paper gives a character-based target and says that systems are trained with different input granularities, but its methodological description leaves details of the conversion from input tags to character boundaries unclear. The macro F1 description leaves the empty-reference and empty-prediction convention unspecified. That convention is especially relevant to a benchmark in which the full test has many no-span comments. Knowing it would clarify the relation between full-set F1 and the scores on comments with actual spans.

The paper reports run-averaged performance, but the main comparison does not give per-system variability or confidence intervals for small differences. The highest entries can therefore be identified as rankings of the reported averages. How stable those orderings are across runs and alternative samples remains uncertain. In the multiple-span setting, the mismatch between the abstract and the results table is a separate reporting issue. The numerical results and corresponding discussion support the table’s ordering, while the abstract gives a different winner.

Similarly, the clean-data comparison does not isolate a change in prediction bias. A direct test of that interpretation would need evidence about errors on the same evaluation cases under comparable scoring conditions, with the effect of the extra training material distinguished from the composition of the evaluated data. The paper instead gives the performance of each complete dataset condition. Its strongest claim is about the value observed for adding the checked clean material under that comparison. Broader claims about moderation fairness across targets or communities would require measurements the paper does not report.

What came after

The later citing work gives several distinct contexts for ViHOS. The closest in task is an English shared-task overview that focuses on identifying tokens contributing to explicit hate. Its unit of analysis is again a location inside a larger message. The title specifies token-level selection and explicit hate, whereas ViHOS marks characters under a Vietnamese definition that includes indirect and offensive expressions. The citation places the studies in a common span-detection line. It leaves open whether the shared task adopted any particular ViHOS rule for drawing boundaries or used its data in an experiment. Overview of the HASOC Subtrack at FIRE 2023

VietMix cites ViHOS in work on Vietnamese–English code-mixed machine translation. It presents a naturally occurring parallel corpus and an augmentation framework, as its title indicates. The connection to ViHOS is the treatment of Vietnamese text that can contain material from another language. The annotation appendix in ViHOS treats foreign words as part of the comment and evaluates their contribution under the same span definition. VietMix addresses mixed-language input with a translation objective. Its citation establishes a connection between the studies, while the available account leaves the specific use of ViHOS comments or annotations undetermined. VietMix

HARM cites ViHOS in work that learns a hate-aware reward for evaluating natural-language explanations of offensive content. ViHOS supplies a precise kind of textual evidence by marking the portion of the original comment that expresses the offense. A natural-language explanation has a different form because it can state why wording is offensive or describe what a reference means. Evaluating such explanations is related to the motivation for giving a moderator more information than a flag alone, while asking for a different output. The citation does not establish whether HARM used ViHOS spans as supervision or as evaluation data. HARM

The study of hate speech detection in Turkish and Arabic cites ViHOS from a broader investigation across languages. ViHOS’s contribution to that context is evidence of how one benchmark defines the detection task and adapts its annotation to a language’s online usage. The Turkish and Arabic study’s title identifies its languages and broader detection scope. It does not specify adoption of ViHOS’s character-level procedure, its guidelines, or its clean-data comparison. The explicit connection is that the study cites the Vietnamese benchmark within a wider body of hate speech detection research. Hate Speech Detection in Turkish and Arabic

Cite

Cite as Phu Gia Hoang, Canh Duc Luu, Khanh Quoc Tran, Kiet Van Nguyen and Ngan Luu-Thuy Nguyen. 2023. ViHOS: Hate Speech Spans Detection for Vietnamese. Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2023.eacl-main.47

@inproceedings{hoang2023vihos,
  title = {{ViHOS: Hate Speech Spans Detection for Vietnamese}},
  author = {Phu Gia Hoang, Canh Duc Luu, Khanh Quoc Tran, Kiet {Van Nguyen} and Ngan Luu-Thuy Nguyen},
  booktitle = {Proceedings of the 17th Conference of the European Chapter of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.eacl-main.47},
  url = {https://doi.org/10.18653/v1/2023.eacl-main.47}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/hoang-2023-vihos-hate-speech-spans-detection/