---
title: "Constructive and Toxic Speech Detection for Open-Domain"
description: "How UIT-ViCTSD separates useful contributions from toxicity in Vietnamese news comments, and how well PhoBERT detects each on the test set."
canonical: "https://research.elamur.ai/free/en/papers/nguyen-2021-constructive-toxic-speech-detection-open/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/nguyen-2021-constructive-toxic-speech-detection-open/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Constructive and Toxic Speech Detection for Open-Domain Social Media Comments in Vietnamese

# Constructive and Toxic Speech Detection for Open-Domain Social Media Comments in Vietnamese

Paper · 2021 · Luan Thanh Nguyen, Kiet Van Nguyen and Ngan Luu-Thuy Nguyen

**Authors:** Luan Thanh Nguyen, [Kiet Van Nguyen](https://md.research.elamur.ai/free/en/authors/kiet-van-nguyen/) and [Ngan Luu-Thuy Nguyen](https://md.research.elamur.ai/free/en/authors/ngan-luu-thuy-nguyen/) · **Year:** 2021 · **Venue:** Lecture notes in computer science · **Licence:** [CC BY-NC-SA 4.0 (arXiv)](https://creativecommons.org/licenses/by-nc-sa/4.0/)

Lecture notes in computer science · [licence](https://creativecommons.org/licenses/by-nc-sa/4.0/)

- [DOI 10.1007/978-3-030-79457-6_49](https://doi.org/10.1007/978-3-030-79457-6_49)
- [arXiv 2103.10069](https://arxiv.org/abs/2103.10069)

## Summary

A comment can explain why a policy might fail while insulting the people who support it. Another can express approval politely without adding much to the discussion. These cases matter if a platform wants to surface useful contributions and detect harmful language. The two decisions call for different judgments about the same text. The authors develop a way to make and test those judgments for Vietnamese comments, where the previous research they review had addressed emotion, sentiment and hate speech but had yet to offer a dataset focused on constructiveness.

The paper introduces UIT-ViCTSD, a collection of 10,000 comments from VnExpress. It contains 1,000 comments from each of ten news domains. Three readers annotate every comment using guidelines developed through practice and discussion of disagreements. They judge whether a comment substantiates a point of view and contributes to the topic, and separately judge its level of toxicity. The authors start with several levels of toxicity and merge the categories that indicate some toxicity for the classification experiments. Their dataset analysis finds constructive comments at toxic levels, so an automatic assessment has reason to keep the two judgments separate even when both are reduced to yes-or-no decisions. The dataset depends on [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

The authors compare conventional classifiers and neural architectures with PhoBERT, a pretrained system adapted to Vietnamese. They fine-tune it for the comment tasks and report test macro-averaged F1 scores of 78.59% for constructiveness and 59.40% for toxicity. Macro F1 gives each class equal weight in the final score, which matters when the labels occur at different rates. The paper reports its strongest performance with PhoBERT. The toxicity result remains weaker, and the authors draw attention to the relative scarcity of toxic examples in comments drawn from a moderated news site. The experiments treat each judgment as a separate [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/) task.

The paper establishes a benchmark for distinguishing what a comment contributes from how it addresses other people. Its annotation exercises show that the readers reached higher agreement after revisiting difficult cases and refining the guidelines, while the prediction errors show that both decisions still pose problems. The scores measure performance against the dataset’s labels on a held-out split. They leave open how well the approach would work on other platforms, how reliably it could distinguish degrees of toxicity, and what effect automatic classification would have on a discussion.

## Deep dive: Constructive and Toxic Speech Detection for Open-Domain Social Media Comments in Vietnamese

How UIT-ViCTSD separates useful contributions from toxicity in Vietnamese news comments, and how well PhoBERT detects each on the test set. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A useful contribution is a separate editorial judgment

When readers look through the responses to a news article, they may find a comment that supplies an explanation, adds a relevant detail or develops an opinion. Such a comment gives later participants something they can engage with. A response that merely signals delight or annoyance may be socially intelligible while contributing little under the authors’ definition. Constructiveness, in this study, concerns whether the comment gives readers material that can advance the topic.

This emphasis gives the task a specific scope. Imagine a comment on a transport proposal that expresses frustration and then explains which passengers would lose a connection. The explanation can make it constructive even if the tone is harsh. A friendly expression of support for the same policy can be non-constructive if it leaves the reason unstated. These are illustrations of the distinction the guidelines ask readers to draw. The mere presence of a positive or negative reaction settles neither label.

Toxicity concerns another quality of the interaction. The authors discuss expressions that can cause harm, including attacks, ridicule and some kinds of impolite disagreement. Their strongest category covers overtly offensive comments directed at individuals or organizations. Weaker cases can depend on context and on how a reader interprets the attitude behind the words. A comment can therefore give a reason to continue the substantive discussion while giving another participant a reason to disengage.

The authors motivate automation by the quality of online conversations. Identifying substantive comments could help users find information in a busy discussion. Detecting toxic comments could help manage language that discourages participation or cuts exchanges short. Those motivations lead to supervised evaluation against human judgments. The experiment measures how well a classifier reproduces the judgments recorded in UIT-ViCTSD. The effects of highlighting, filtering or reorganizing comments would require observations of actual discussions under those interventions.

#### How earlier work approached online comments

The related-work discussion begins with practices for finding comments worth reading. The authors describe The New York Times using human moderators to highlight selected contributions as NYT Picks. They also discuss Yahoo News in Japan, where readers can react to others’ comments and those reactions are associated with how comments are ranked for usefulness. The Yahoo News annotated collection gave researchers material for studying the ranking of constructive comments. Editorial selection and reader response both point to an interest in surfacing useful material, though each supplies a different kind of evidence about usefulness.

The paper also cites the work of Napoles and colleagues on identifying good online conversations. Their task, referred to as ERICs, uses the classification of comments to help identify worthwhile exchanges. In the UIT-ViCTSD study, the direct prediction target is the individual comment. An exchange and one contribution to it are different units of analysis. Several individually brief replies may form an intelligible conversation, while a single substantive reply can appear in an otherwise unproductive thread. The present annotation scheme gives the authors a unit they can collect, label and compare consistently across subject areas.

The authors identify the C3 dataset as a closer precedent. That study centered on constructive comments and examined the relationship between constructiveness and toxicity. It gives the Vietnamese study a basis for asking whether useful content and objectionable wording can coexist in the same contribution. UIT-ViCTSD makes that question part of the data design by assigning both types of judgment to each comment. Separate datasets for helpfulness and abuse would permit comparisons between collections, while paired labels allow inspection of how the judgments overlap in the very same items.

The earlier work explains why the paper takes both dimensions seriously. Selection for quality can depend on how much a contribution develops the subject. Moderation can depend on how that contribution treats other people. A single ranking of comments from good to bad would require a policy for weighing those aspects when they conflict. The paper’s two tasks leave that policy decision outside the definition of either label.

#### The gap in the Vietnamese datasets the authors reviewed

The authors place the study within Vietnamese [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/), the computational study and processing of language. They describe Vietnamese as comparatively short of resources and point to existing datasets that make particular social-media or feedback tasks measurable. UIT-VSMEC supplies annotations for emotion in Vietnamese social media. UIT-VSFC supplies labeled student feedback for sentiment analysis. The authors also cite work on hate-speech detection in Vietnamese social media. Those resources establish that Vietnamese opinions and harmful content had already been studied in labeled data. [Low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/)

Each task gives the reader who labels a comment a different question. Sentiment analysis can concern the evaluation expressed in a piece of feedback, while emotion recognition can concern the feeling expressed. Constructiveness asks whether the writer develops a position or contributes relevant information. Strong dissatisfaction can accompany a detailed argument. Enthusiasm can occur in a comment with very little information. A label for hate speech likewise addresses a particular kind of harmful content, while UIT-ViCTSD’s toxicity guidelines cover a range that includes context-dependent and less overt cases. [Sentiment & emotion](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/)

In the literature the authors review, there was no Vietnamese dataset devoted to comment constructiveness. Translating a task definition supplied only part of what they needed. They emphasize that a word can take on different meanings in different settings and that implied attitudes are difficult to classify. A way of disagreeing can sound matter-of-fact, frustrated or mocking depending on its use. The researchers consulted work on English comments while developing criteria they could apply to their Vietnamese material. Their iterative annotation procedure was a way to see where those criteria worked and where the readers needed further guidance.

The paper calls the setting open-domain because the comments cover a range of subjects. From a classification perspective, a reasoned response about health may use a different vocabulary from a reasoned response about sport or law. A news site offers that subject variety within one venue. The paper’s choice of venue gives it a practical collection boundary and a relatively consistent setting for comparison. It also makes the scope of the problem clearer. The benchmark is about comments on different news topics drawn from that setting, while Vietnamese social media in general is the broader problem that motivates the study.

### The method, step by step

#### From comments to predictions

The study first turns comments into labeled examples, then uses part of the collection to train classifiers and the rest to evaluate them. A comment provides the text. A human judgment provides the answer that the classifier is expected to reproduce. For constructiveness, the answer concerns whether the comment develops the discussion. For toxicity, the answer used in the prediction experiment concerns whether the comment crosses the boundary from non-toxic to some degree of toxicity.

There are two preparation steps between collecting the text and training the system. The first is to make the annotation rules usable by several readers, then resolve their judgments into labels for the dataset. The second is to prepare the comment text for computational processing. The first determines what the system should learn to recognize. The second determines how the system receives the words and other textual features from which it learns.

From Vietnamese news comments to evaluated predictions The steps in order.

#### Collecting comparable amounts of text across subjects

The authors surveyed candidate sources before deciding to collect VnExpress comments. They wanted a site with a substantial supply of responses relevant to their research questions. They built a crawler with Python and BeautifulSoup4. The result, UIT-ViCTSD, contains 10,000 comments. The list of domains includes news, sports, world, health, law, cars, business, science, education, and entertainment. Each supplies 1,000 comments. The authors identify the dataset in their research group’s dataset collection.

Taking the same number of comments from each domain controls the amount of text drawn from the categories of news coverage. It leaves the distributions of the annotation labels free to differ. For instance, a topic can supply as many comments as another topic while yielding fewer comments that readers judge constructive. The paper inspects that variation after annotation. Counts by topic and counts by label answer separate questions about how the dataset is composed.

The use of comments from a single news outlet also makes the domain labels relatively easy to interpret. They identify subject categories within the collection. Their coverage concerns what readers discuss and the kinds of stories they respond to. The collection procedure does not create parallel samples from different platforms. When the authors later connect the shortage of toxic comments to moderation, the choice of venue becomes part of the explanation for the learning conditions as well as part of the collection method.

#### Giving annotators a workable definition of constructiveness

The constructive judgment uses the labels 1 for constructive and 0 for non-constructive. A constructive contribution develops or backs up the writer’s position on the article or its subject. The guidelines emphasize detail, information and opinions specific enough to extend what can be discussed. Non-constructive contributions tend to contain little information. The paper uses simple emotional reactions to characterize that category.

The distinction is about what the reader can take from the comment. Consider an objection to a proposed change in a school schedule. An objection that explains how the change affects students’ travel develops a position by connecting the proposal to a consequence. A bare expression of annoyance gives the annotator much less on which to base a constructive judgment. The implied rule concerns the reason or detail contributed. A contribution can be concise and still include such a detail, while length alone can also come from repetition or irrelevant material.

The task requires the annotator to interpret the relationship between the comment and its subject. Supporting a point of view is a broader criterion than using a list of words associated with argument. Similarly, a writer may add relevant information without displaying a distinctive tone. The annotation scheme gives definitions, examples and cases the team regards as easy to confuse. The difficult cases matter because an agreement about a clear example gives little guidance about where to draw a boundary in an ambiguous one.

Three annotators judge each comment. The final constructiveness label is chosen by agreement of at least two of the three, expressed in the paper as a 2/3 rule. This converts the set of individual binary judgments into the class used for learning and evaluation. A comment can receive a definite final label even when one annotator preferred the other class. The agreement analysis describes that judgment process separately from the finalized label.

#### Recording a range of toxicity

For toxicity, the guidelines give annotators a set of ordered categories. Very toxic comments include direct attacks or offensive expressions aimed at individuals or organizations. The next category, toxic, covers behavior such as mockery and impolite criticism. Quite toxic is more context-sensitive. The authors describe comments that can be harmful to some readers and that may express disappointment in a way that depends on the situation. Non-toxic marks the bottom of the scale. Its description includes ordinary emotional responses, which can at the same time offer little substance.

That wording makes the examples important. The mention of simple emotion in the description of non-toxic comments can help identify a common case at that end of the scale. It leaves room for a detailed, constructive contribution to be non-toxic as well. The fact that readers also marked some constructive contributions at toxic levels explains why the study records both judgments before it experiments with automatic detection.

The practical challenge changes across the scale. Directly attacking someone may make the target and attitude comparatively visible in the words. Deciding whether a critical comment is mocking or potentially hurtful can require the reader to infer tone and consider context. Readers can agree that two comments express dissatisfaction while treating one as ordinary criticism and the other as toxic. The scheme asks for the degree of toxicity during annotation, so readers must make distinctions that the eventual binary classifier is spared.

The authors say that the final toxicity judgment is based on averaging the ratings of the three annotators. Their account gives the averaging rule but does not specify how every intermediate value is mapped back to a named level. That distinction matters when reconstructing the dataset. A majority rule for constructiveness selects one of the original categories directly. An average of ordered ratings can fall between categories, and a reproducible pipeline would need to specify what happens at that point.

When the authors inspect the resulting distribution, they find that the non-toxic category greatly outnumbers the others. They combine quite toxic, toxic and very toxic into a single toxic class for the experiments. A positive prediction consequently means that the comment belongs somewhere within that combined group. The binary target preserves the distinction between absence and presence as recorded in the final labels. It removes distinctions among the levels of harm that the readers initially assigned.

Merging the levels gives the toxic class examples of a wider range of behavior. It also asks the classifier to find a common decision boundary across behaviors that can look different in the text. A blunt attack and an indirectly harmful remark can both warrant the same training answer after the merge. The reduction in output categories simplifies the classification task, while the diversity within the positive class remains relevant to interpreting the result.

#### Training the annotators and measuring agreement

Before labeling the collection, the team practiced in five rounds, with 200 comments per round. The authors developed a labeling tool as well as written guidelines. After a round, they examined cases where the labels conflicted and revised the scheme. Their description of the dataset workflow also includes reviewing and relabeling cases with low agreement. The process builds a link between abstract definitions and particular examples. A disputed comment can expose a criterion that readers understood differently even when they agreed with the general aim of the task.

Agreement compares the annotations from different readers. It answers whether those readers apply the distinctions consistently. For this purpose the paper names Fleiss’ kappa, a measure intended to account for agreement that would be expected by chance. This matters when a common label attracts many judgments. Frequent matches can occur simply because readers frequently select that label, while a chance-adjusted measure asks whether the matches go beyond the expected level.

The equation appears in the paper in this form.

```
Aₘ = (Pₑ − P₀) / (1 − P₀)
```

Aₘ denotes the inter-annotator agreement measure. Pₑ denotes the expected probability of agreement, and P₀ denotes the observed probability of agreement among the annotators. The symbol 1 represents certainty on the probability scale. The numerator subtracts observed agreement from expected agreement, and the denominator is the share left below certainty after subtracting observed agreement. The slash denotes division.

There is an inconsistency between the printed expression and the ordinary interpretation of the named statistic. With the definitions the paper assigns to the terms, the numerator becomes negative when observed agreement exceeds expected agreement, and the denominator vanishes at perfect observed agreement. The reported exercise scores can be described as the authors’ inter-annotator agreement figures. Their computation cannot be independently reconstructed from the equation and the aggregate percentages alone.

The authors attribute some of the early disagreement to differences in annotators’ subject knowledge. A reader who recognizes the significance of a specific reference may find a contribution more informative than a reader unfamiliar with the issue. A reader’s interpretation of the circumstances can likewise affect the apparent hostility of a remark. By going over cases together, the team could clarify which considerations should count and illustrate how a distinction should work at its boundary. The recorded changes in agreement reflect the exercise as a whole, including both practice and changes to the guidelines.

#### Holding out data and preparing the text

The authors divide the labeled collection into training, validation and test partitions in the ratio 70:20:10, using `train_test_split` from scikit-learn. The training partition supplies examples from which the classifiers learn. The validation partition is available for choices made during development. The test partition supplies held-out examples for judging performance. Interpreting the resulting score depends on that separation. Recognition of a label on a new example within this collection is the evidence the test is designed to provide.

Text preparation starts with removing HTML tags. The crawler acquires material from webpages, where markup can accompany the comment. The paper then describes word segmentation. In Vietnamese text, spaces commonly separate syllables, including syllables that belong to a single word. A process that reads each space-delimited segment as an independent word can therefore miss word boundaries important to the analysis. The general preprocessing route uses ViTokenizer. For PhoBERT, the authors describe using VnCoreNLP and FAIRSeq in the preprocessing and segmentation pipeline. [Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/)

The authors also create a dictionary to normalize abbreviations. Informal comments can use a short form where another writer uses a more standard form. Normalization gives the classifier a more consistent representation of an expression across those instances. It is a distinct choice from segmentation. Segmentation identifies units to process, while normalization changes how some of those units are written before learning. The paper illustrates the dictionary with examples and describes its role in reducing variation in the comments.

Further cleanup removes extra spacing and special characters and treats capital letters as part of the normalization. The authors deliberately preserve numbers because they consider numerical information relevant to whether a comment contributes something substantive. A numerical detail can be part of a reason or account. The underlying rationale is that some textual variation is incidental to the learning task, while other material can carry evidence about the author’s contribution. The experiments assess the overall pipeline with these choices in place.

After preprocessing, conventional and neural baselines need numerical representations with which to learn from text. The authors describe vectorizing training text and using pretrained word representations for the neural baselines. A word representation associates a word with a set of numerical values. That lets the network accept words as inputs and work with similarities encoded in their representations instead of treating the original strings as arithmetic quantities. The paper considers fastText, which includes Vietnamese among its languages, and Vietnamese PhoW2V. The word-level PhoW2V representation used here has 300 dimensions. [Word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/)

#### Adapting PhoBERT to the annotation tasks

The primary system takes a transfer-learning approach. Broad pretraining gives PhoBERT a starting representation of Vietnamese text. Training on UIT-ViCTSD can then adapt that representation to signs relevant to the human judgments. Examples from the new collection supply the task-specific supervision. In this case, learning to recognize constructive contributions means adapting to the dataset’s meaning of a substantive response. Learning to recognize toxicity means adapting to its merged toxic category. [Fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/)

The paper explains PhoBERT through BERT and RoBERTa. BERT learns contextual representations from unlabeled text using a bidirectional architecture. A representation of an expression can depend on text around it on either side. PhoBERT follows the RoBERTa approach with adaptations for Vietnamese. Its role here is to supply that pretrained starting point, while the labeled comment examples specify what decisions the system should make. [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/)

This use of context fits a challenge the authors identify in the dataset design. A word by itself can support several interpretations, and the task may depend on which interpretation is plausible in the sentence. A contextual representation gives the classifier a mechanism for letting the surrounding wording influence that decision. It is a mechanism for processing the input, while its ability to resolve a particular kind of context-sensitive judgment is an empirical question. Predicting the correct label also leaves open which parts of the input the system relied on.

For PhoBERT, the authors set the learning rate to 3e-5 and the batch size to 24. The learning rate controls the scale of parameter updates during fine-tuning. The batch size is the number of examples processed together for a training update. For selecting suitable parameters across the systems, the authors describe using GridSearchCV, which searches a set of candidate configurations using cross-validation. The paper presents constructiveness and toxicity as separate prediction tasks. It gives each its own evaluation, without the scores implying that the system exploited one set of labels to predict the other.

### Experiments and results

#### What the comparison tests

The classifiers are evaluated on UIT-ViCTSD. The data cover ten subject domains on the same site, and the 70:20:10 split defines the training, validation and test setting. The constructiveness experiment uses the binary labels assigned through annotation. The toxicity experiment uses the binary labels obtained after combining the toxic levels. A score for one task describes agreement with the labels for that task. Even though the underlying comments come from the same collection, the labels represent distinct decisions and have different distributions.

The comparisons bring together different families of classifiers. Logistic regression provides a basic approach to learning a boundary between the labels using numerical text features. A support vector machine provides another boundary-based approach, using a separation criterion that favors a margin between classes. Random forest uses an ensemble of decision trees, combining their predictions. These are the paper’s conventional baselines. They put PhoBERT’s performance in the context of simpler ways to learn from a collection of labeled comments. [Machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/)

The neural baselines include an LSTM, a recurrent architecture that can carry information forward while processing a sequence. This lets the representation of a later part of a comment depend on material processed earlier. The paper also uses Bi-GRU-LSTM-CNN, which combines bidirectional recurrent layers with a convolutional component. The recurrent components provide ways to represent patterns in a sequence, and the convolutional component can respond to local patterns. The authors use pretrained fastText and PhoW2V representations in this part of the comparison. The alternatives vary in architecture as well as in how they receive lexical information.

These experiments compare complete approaches to the same labeled tasks. A complete approach includes the input preparation the authors describe for it, its representation of the text and its training procedure. A performance difference can show which overall approach did better in the benchmark. An explanation attributing the difference to one component would require that component to be varied under otherwise comparable conditions.

#### The agreement results behind the benchmark

The annotator exercises measure how consistently the task can be applied by the people producing the benchmark. The paper reports 21.7% agreement on constructiveness in the initial exercise and 59.48% after the fifth round. It reports 30.4% on toxicity initially and 58.74% after the fifth round. These are inter-annotator agreement figures from the practice process. The procedure for teaching and revising the categories precedes evaluation of the classifiers on the test data.

Constructiveness agreement across UIT-ViCTSD annotation rounds The annotators reached higher agreement after practice and guideline revision.

**The numbers**

| System or setting | Reported inter-annotator agreement % |
| --- | --- |
| Initial annotation round | 21.7 |
| Final annotation round (this paper) | 59.48 |

Toxicity agreement across UIT-ViCTSD annotation rounds The final exercise produced higher agreement on toxicity.

**The numbers**

| System or setting | Reported inter-annotator agreement % |
| --- | --- |
| Initial annotation round | 30.4 |
| Final annotation round (this paper) | 58.74 |

The initial and final figures describe the annotation tasks practiced at those stages. In particular, the final toxicity agreement should be read in the context of the labeling procedure, where annotators consider levels. The prediction task is subsequently defined by a merged label. The paper does not give a separate agreement figure for that binary decision. Thus the annotation comparison describes the process that produced the dataset without putting a numerical ceiling on classifier performance.

#### How accuracy and macro F1 read the same predictions

Accuracy is the fraction of evaluated comments whose predicted label matches the recorded one. Each comment contributes equally to that fraction. When a category is common, predictions on its examples account for much of the accuracy. In a toxicity dataset with many non-toxic comments, classifying common cases correctly can therefore contribute heavily to the overall result, even if detecting toxic cases remains hard.

F1 combines precision and recall. For a particular class, precision concerns the share of predictions of that class that match the recorded labels. Recall concerns the share of recorded examples of the class that the system retrieves. A detector can often be made more cautious about predicting a class, which may change the two quantities in different directions. F1 summarizes their joint behavior using a harmonic mean, which is sensitive when either quantity is low.

Macro-averaged F1 gives each class’s F1 equal influence in the final score. For the toxicity test, toxic and non-toxic examples thus contribute through two class scores with equal weight. The same procedure gives equal weight to the constructive and non-constructive class scores on the other task. Macro F1 makes performance in the less frequent class more consequential than it is in accuracy, while still compressing distinct error patterns into a single value. Two systems with the same macro F1 can differ in the balance between their precision and recall or in which class accounts for the higher class score. [Evaluation & benchmarks](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/)

#### The reported test scores

The paper reports a macro F1 of 78.59% for PhoBERT on the UIT-ViCTSD constructiveness test. This score covers the decision between constructive and non-constructive comments. It is the strongest performance the authors describe for their constructiveness comparison. The corresponding result for PhoBERT on toxic versus non-toxic classification is 59.40% test macro F1. These headline numbers are aggregate scores across the classes of the respective tasks. They are distinct from the precision or recall for an individual class.

The results table in the paper is described as comparing the different systems using accuracy and macro F1. The numerical results identified in the discussion give the headline comparison for PhoBERT. They do not establish the margin over a particular baseline, the ranking among the conventional and neural baselines, or an accuracy value for either PhoBERT task. Those quantities are needed to judge whether an alternative came close or whether the ordering of approaches changes with the metric.

The toxicity score is lower than the constructiveness score in this evaluation. The authors explain the toxicity result partly through label imbalance and also discuss noisy labels. The scarcity of toxic comments means that there are fewer labeled instances from which to learn the range of ways toxicity appears. Macro averaging then gives the toxic class as much weight as the non-toxic class in the final score. The learning conditions and the evaluation statistic are separate parts of that account. The fact that macro F1 weights the classes equally cannot supply examples missing from the training data.

The two scores characterize the tasks as operationalized in UIT-ViCTSD. Their ordering could reflect differences in frequency, how readily the judgments can be inferred from the text, or the kinds of mistakes made under the annotation scheme. The paper analyzes several of those factors through distributions and prediction errors. It does not vary them independently. The comparison gives a reason to examine toxicity more closely without settling which factor produced how much of the gap.

#### Reading the confusion matrices

The authors use confusion matrices to inspect the types of prediction errors. A confusion matrix organizes examples by recorded label and predicted label. Entries where the two agree are correct classifications. The remaining entries indicate which way the decision went wrong. For constructiveness, one such error is assigning the constructive label to a comment recorded as non-constructive. The reverse mistake is to miss a comment recorded as constructive. A single aggregate F1 score can coexist with quite different amounts of those two errors.

The authors single out predicting constructive 1 in place of non-constructive 0 as the prominent constructiveness confusion. They associate a figure of 14% with this error. The prose does not unambiguously identify the denominator for that percentage, so it is best read as the figure the authors report for the direction of confusion. It should not be treated as the share of all test comments that were false positives or as the fraction of constructive predictions that were false.

For toxicity, the paper reads the matrix as showing that performance still needs improvement under the study’s conditions. It connects the result to a collection dominated by non-toxic comments, explaining that official news sites already prevent some toxic material from appearing. The matrix reveals how the classifier’s predictions compare with the labels on the comments available to it. The moderation explanation concerns how the collection acquired that distribution. A comparison with data gathered under different moderation practices would be needed to measure its effect.

### What the ablations show

The paper reports no component ablation, and instead analyzes annotator agreement, comment lengths and label distributions, the overlap between the labels, and the errors made by the full classifier.

#### Agreement improved under a changing annotation procedure

The practice rounds give the authors repeated opportunities to observe how their definitions behave when several people apply them. The initial agreement figures show that the task descriptions alone produced substantial disagreement during training. The final figures show that the readers worked more consistently after multiple rounds of practice and revision. This is evidence about the process the authors used to establish a common standard.

The guidelines and the annotators both changed during the exercise. Readers gained experience and went over difficult comments together. The authors also updated the instructions in response to the types of disagreement they saw. The comparison therefore reflects a combined change. The agreement results cannot isolate how much came from a particular change in wording, how much came from familiarity, or whether the comments used in the final round were comparably difficult. Those questions would require a design that held parts of the exercise constant.

Agreement is also different from validity. Readers can learn to apply a rule consistently, while the rule can still leave open whether their judgments capture all the ways a comment is useful or harmful. Conversely, disagreement can reflect several intelligible interpretations of a comment. The value of the paper’s exercise is that it makes the effort to operationalize the concepts visible. Readers can see that the labels emerged from explicit definitions and revisions as well as from individual judgments.

#### Length is associated with constructive labels

The paper examines how constructive and non-constructive comments are distributed by length. It reports that constructive comments tend to be long relative to non-constructive comments. That pattern fits the criteria used in annotation. An explanation, a specific observation or a developed opinion often takes more space than a simple expression of feeling. A classifier trained on the collection may consequently encounter length alongside the more direct signs of an argument or useful detail.

The association helps explain an ambiguity in interpreting test success. A method can score well partly by exploiting a correlate that is easy to detect. Establishing whether a classifier recognizes the difference between an elaborated point and lengthy but uninformative text would require comparisons where length is held reasonably similar. The paper’s descriptive analysis identifies a potential correlate in UIT-ViCTSD. Because it supplies neither a length-only baseline nor a length-controlled test, it leaves the importance of that correlate to PhoBERT’s decisions unresolved.

The distribution across domains makes another distinction visible. The dataset includes equal numbers of comments from each news domain, while constructive comments remain less numerous than non-constructive ones overall. The domain counts by class let readers see how the label distribution varies within that design. They concern the composition of the collected material. They cannot tell whether a classifier’s successes are distributed evenly across domains or concentrated in domains with more favorable training examples.

The authors’ interest in balancing the dataset follows from the label distribution, rather than from an imbalance in how many comments they took from each subject. These are different axes along which a collection can be balanced. A change to the number of constructive items could alter the amount of information the classifier sees about that class. It would also alter the distribution under evaluation if applied to the test set. The paper reports the distribution of the collected data and treats rebalancing as future work.

#### The labels overlap in individual comments

The analysis of constructiveness at different toxicity levels answers a question that separate performance scores cannot answer. The authors find comments labeled constructive among those given toxic judgments. This supports their argument that a contribution can contain useful material alongside expression that the annotators judge harmful. A benchmark that defined constructiveness by requiring an absence of toxicity would remove that combination by construction.

The overlap is descriptive. It shows that the two judgments sometimes coincide in the same comment. Their association across the whole collection would require examining how the labels are distributed jointly, and the existence of overlapping cases gives no reason to assume statistical independence. A classifier can in principle be influenced by cues that correlate with both labels. The paper shows the overlap in the human judgments, separate from any relationship between the systems’ errors on the two tasks.

The same distribution leads to the choice to merge the toxicity levels. That choice defines the experiment. It does not supply an ablation comparing binary detection with prediction of the original levels. The benchmark scores give evidence about detecting membership in a broad toxic category. They cannot establish that collapsing the original scale improved performance, or show whether the hardest decisions occur near the boundary with non-toxic comments.

#### The comparisons rank approaches rather than explain their components

The baseline experiments place PhoBERT alongside conventional and neural alternatives. The training procedures and representations differ across those systems. The paper does not present a controlled variant of PhoBERT with pretraining removed, or compare otherwise identical versions of its system with alternative preprocessing decisions. Its strongest reported result therefore concerns an assembled system on the benchmark.

This distinction matters for interpreting choices like retaining numbers. The paper gives a substantive reason to preserve them, since a number can express a relevant detail. It does not report performance on comparable training and test conditions where numerical expressions were removed. The same applies to abbreviation normalization and segmentation. Their inclusion is documented as part of text preparation. Their individual contributions remain unmeasured.

The confusion matrices provide a complementary view by identifying directions of error. Predicting constructiveness for a comment annotated as non-constructive is a case of assigning more value than the annotators recorded under the scheme. The matrix cannot tell whether the system was responding to length, to wording associated with argument or to another cue. For toxicity, a class imbalance is a plausible reason for weak performance, as the authors suggest. The error analysis indicates where the complete system struggles and leaves causal attribution open.

### Limitations

#### Limits and future work the authors state

The authors identify unequal class frequencies as a central difficulty. Constructive comments are less common than non-constructive comments in their dataset. For toxicity, non-toxic comments dominate even after the other categories are combined. This matters for training because the rarer examples must represent a variety of possible forms. It also matters for interpreting evaluation because a score depends on the mixture of cases the system encounters and on how the metric weights them.

The paper traces part of the scarcity of toxicity to how the comments reached the dataset. VnExpress is an official news source, and the authors explain that such sites block toxic material. A classifier developed from comments visible to the crawler learns from the resulting collection. The study therefore evaluates detection in a setting where moderation has already shaped the examples researchers can observe. The authors propose adding toxic comments from other social platforms to improve coverage.

The authors also point to noisy data and propose removing comments they consider inappropriately annotated and adding comments with more suitable labels. Noise can include disagreement at a genuinely difficult boundary as well as annotations the group would revise after reassessment. The practice process shows that disagreements were common enough to warrant attention. The authors’ proposed changes indicate an interest in giving the classifier more reliable supervision as well as a different balance of examples.

These are plans for extending the study. The paper’s reported benchmark uses the collection as built for the experiments. It does not give a measured effect for a revised annotation set, a rebalanced split or additional comments from elsewhere. Such changes could improve access to particular behaviors while also changing the distribution against which a later score should be interpreted. The reported figures belong to the current data and label definitions.

#### Further limits of the experimental setup

The news domains broaden the subject coverage within VnExpress. Generalization across venues is a different question. A new platform may attract different conventions for expressing approval, making jokes or arguing about a topic. Its own rules can also affect which language appears in the material available for collection. A held-out partition from the same collection tests performance on unseen examples within that setting. An external collection would be needed to measure transfer across platforms.

Likewise, the reported split is a division of the collection into training, validation and test data. The paper gives the ratio and the splitting tool. It does not supply a test that withholds an entire domain, nor results that indicate how performance varies by domain. An equal allocation when collecting the comments is consistent with a range of outcomes on the test data. The average performance may conceal difficulty on a particular subject, especially where recognizing a useful contribution depends on background knowledge.

Comments are labeled and evaluated as individual units. The authors motivate the task with conversation quality, and their labeling criteria can draw attention to the article and the situation. They do not report comparative performance with extra context from an article or surrounding replies. Such context matters most for comments whose stance is elliptical or whose tone depends on what a previous participant said. The task shows what the system can do under the study’s comment-classification setup. It cannot quantify the benefit of supplying broader conversational context.

The meaning of constructiveness is also bounded by the guidelines. Developing a position and adding relevant information may be valuable to the discussion, while the classification target is neither a factual verification task nor an evaluation of the soundness of an argument. An elaborate comment may contain a claim that would require independent checking. UIT-ViCTSD evaluates labels about contribution and toxicity, and it offers no separate measure of whether the information is true.

The brief description of the toxicity aggregation leaves a reproducibility issue. The mean of the annotators’ ratings can fall between the levels, and the account does not describe all the decisions needed to map such ratings into final categories. This matters particularly at the boundary between non-toxic and the lowest toxic level. A choice at that boundary could change the set of positive training examples and the labels on which the experiment is scored. The paper also leaves the printed kappa expression at odds with the interpretation of the statistic it names, so the independent reproduction of the agreement percentages requires details beyond that expression.

The binary outcome removes information useful for deciding how to respond to a comment. It says only whether a comment belongs to the merged group. The test score gives no evidence about assigning a specific degree of severity or identifying the words that led human readers to consider a comment toxic. It also leaves open whether the classifier is more reliable for direct attacks than for indirect mockery. Such questions require labels and evaluation at the corresponding level of detail.

Finally, the measures compare predictions with human-assigned labels. The annotators’ reported agreement improves, and disagreements remain part of the evidence about the difficulty of operationalizing both constructs. A classifier’s agreement with the final label may represent good performance on the benchmark while leaving open whether a reader with a different interpretation would reach the same decision. Similarly, the benchmark cannot establish what happens when a platform uses its predictions to highlight or hide comments. The paper motivates those uses through the potential value of better conversations and evaluates the narrower question of whether a classifier can reproduce the labels.

### What came after

The citing work includes research on Vietnamese hate-speech spans, aspect-based sentiment and the evaluation of pretrained Vietnamese systems. Each of these subjects connects to a different part of UIT-ViCTSD. The links establish that the studies cite the paper. Their titles establish the tasks they address, leaving the details of any data reuse or direct experimental comparison open.

[ViHOS](https://md.research.elamur.ai/free/en/papers/hoang-2023-vihos-hate-speech-spans-detection/) concerns hate-speech span detection for Vietnamese (2023). A span is a portion of a text identified by its position within that text. Locating hate speech therefore asks for a more specific output than assigning a label to an entire comment. A comment-level decision can tell a reader that the item was judged harmful within the label scheme. A span-level decision addresses where the relevant language appears. The connection to UIT-ViCTSD is the study of harmful Vietnamese text, with both the target and the unit of prediction changing. UIT-ViCTSD covers a broad toxic category, while hate speech is the named focus of ViHOS.

That change in granularity also connects to the observation that a useful contribution can contain toxic expression. A whole-comment judgment preserves the fact that the two qualities can coexist, because the paper records them separately. A span task allows attention to a portion of the comment where the harmful expression occurs. The dimensions remain distinct. Identifying a harmful phrase would leave the substance of the rest of the contribution to be judged under its own criteria, and a constructive label would leave the location of harmful expression unspecified.

[Crossing Linguistic Horizons](https://md.research.elamur.ai/free/en/papers/truong-2024-crossing-linguistic-horizons-finetuning-comprehensive/) studies fine-tuning and broad evaluation for Vietnamese (2024). The link to UIT-ViCTSD is the role of task-specific evaluation in assessing adaptable pretrained systems. Nguyen and colleagues make that role concrete with a paired labeling scheme, specific data partitions and class-sensitive measures. A broader evaluation has a larger scope, asking how adaptation performs across the tasks it examines. The citation situates UIT-ViCTSD among research relevant to that evaluation without specifying whether its data constituted one of the tests.

[Span Detection for Aspect-Based Sentiment Analysis in Vietnamese](https://md.research.elamur.ai/free/en/papers/thanh-2021-span-detection-aspect-based-sentiment/) addresses a different text localization problem (2021). Aspect-based sentiment concerns an evaluation tied to a particular aspect of what is being discussed. A span detection formulation requires finding relevant text within a larger unit. That level of analysis contrasts in scope with assigning a comment-wide judgment about whether the writer develops a viewpoint. The evident connection is the study of Vietnamese evaluative language through a defined prediction task. A localized expression of dissatisfaction could occur in a detailed, constructive comment, so its sentiment and the constructiveness of the contribution answer different questions.

The two span studies illustrate how changing the unit of prediction changes the evidence a dataset must contain. A comment-level label supports evaluation of a decision about the item as a whole. A span task requires evidence specifying portions of text. The broad evaluation study connects to the other side of the UIT-ViCTSD design, where the annotated task gives researchers a concrete way to assess what succeeds after adaptation to Vietnamese. The subsequent citations place the work in a field with several complementary ways to evaluate comments and other Vietnamese text, each defined by the judgment it asks a system to make.

## Cite

Cite as Luan Thanh Nguyen, Kiet Van Nguyen and Ngan Luu-Thuy Nguyen. 2021. Constructive and Toxic Speech Detection for Open-Domain Social Media Comments in Vietnamese. Lecture notes in computer science.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.1007/978-3-030-79457-6_49](https://doi.org/10.1007/978-3-030-79457-6_49) · [arXiv 2103.10069](https://arxiv.org/abs/2103.10069)

```bibtex
@inproceedings{nguyen2021constructive,
  title = {{Constructive and Toxic Speech Detection for Open-Domain Social Media Comments in Vietnamese}},
  author = {Luan Thanh Nguyen, Kiet {Van Nguyen} and Ngan Luu-Thuy Nguyen},
  booktitle = {Lecture notes in computer science},
  year = {2021},
  doi = {10.1007/978-3-030-79457-6\_49},
  eprint = {2103.10069},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1007/978-3-030-79457-6_49}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
