Detecting Toxicity in News Articles: Application to Bulgarian
Paper · 2019 · Yoan Dinkov, Ivan Koychev and Preslav Nakov
Summary
An exaggerated headline, an attack on a social group, and a misleading account of an event present different problems for a reader. The authors ask whether a detector can distinguish these and other forms of toxicity in Bulgarian online news. Their unit of analysis is the full article, with separate attention to its headline and body. The categories cover sensationalism, fake news, conspiracy theories, and hate speech, as well as defamation, delusion, anti-democratic content, and pro-authoritarian content. The study responds to a literature that, in the authors’ account, had concentrated on English and frequently handled narrower tasks such as checking individual claims.
The researchers obtained 221 flagged articles from Media Scan, which had spent five years monitoring Bulgarian outlets and recording judgments about their coverage. To create a non-toxic category, they added 96 articles from publishers with no recorded toxicity examples in Media Scan. For each story, they collected measurements of its writing and numerical representations of its text. An English translation let them use resources developed for English. They also recorded attributes of the outlet, such as whether it identified a chief editor.
The authors fitted separate logistic regression classifiers, which use numerical inputs to estimate category probabilities. A classifier could work with local Bulgarian vocabulary patterns, for instance, while another used a representation of the translated text or information about the outlet. The strongest individual text representation came from vocabulary patterns learned in the study collection. The best result overall came from an additional logistic classifier that took the individual classifiers’ probability estimates as its input. Putting the original features together in a single input was less successful.
In 5-fold cross-validation on the collected articles, the combined classifier achieved 59.0% accuracy and 39.7% macro-F1. Always choosing non-toxic gave 30.3% accuracy and 5.2% macro-F1. The latter metric gives each category the same influence and rewards predictions that recover the category while avoiding false assignments to it. The combined classifier did best on non-toxic articles, assigned a noticeable share of fake news examples to conspiracy, and rarely selected the smallest categories. The gains show that the available signals could recover a range of the recorded judgments. The error patterns show how unevenly that ability was distributed.
Deep dive: Detecting Toxicity in News Articles: Application to Bulgarian
A study of how Bulgarian news articles can be classified by type of toxicity using headlines, article bodies, and publisher information. · about 38 minutes to read
The problem and its context
What makes toxicity an article-level question?
The paper begins with the competition for attention in online news. Readers have limited time, and a publisher has an incentive to present something striking enough to make them stop and read. In the authors’ account, that incentive can favor the dramatic treatment of an ordinary event or the circulation of a misleading story. Human review takes expertise and time, especially when a judgment depends on checking factual details or contacting someone involved. The authors investigate what can be automated by treating the problem as text classification.
The term toxicity covers several different kinds of editorial judgment in the paper. Sensationalism concerns the emphasis a story gives to an occurrence. A routine event can be reported with accurate details and still be presented as vastly more important than those details warrant. In the authors’ description of fake news, an apparently credible story can use distorted dates, statistics, or locations to build a misleading account. The distinction makes the treatment of an event relevant alongside the accuracy of the details used to describe it.
A conspiracy story can offer a highly detailed explanation while supplying little confirmed or scientific evidence for it. The examples the authors discuss as typical concern politics or unusual scientific phenomena. Hate speech brings a different question into view, since its target can be a particular individual or a social group and its language can be intended to hurt or intimidate. The scheme extends to anti-democratic content, pro-authoritarian content, defamation, and delusion. The paper gives more explicit definitions for the categories it introduces through examples and takes the full set of labels from Media Scan.
These categories can overlap. A story can give a sensational presentation to an unsupported explanation, and a misleading account can also attack someone. The authors explicitly allow multiple toxicity labels in their description of articles. They present their experimental task as classification across the toxic categories and an added non-toxic category. This combination makes the origin of each label important. The judgments reflect a monitoring project’s assessment of published stories, including what the project found worth documenting and how it described the problem.
Media Scan’s entries could contain more information than a category name. For some stories, the project explained the reason for the judgment with examples. In some cases it documented requests to the article’s authors for clarification of questionable facts. An article thus had an editorial history that could include a review of particular passages and an attempt to resolve a factual issue. The automated task starts from that record and asks how far the judgment can be recovered from measurements of the article and the outlet.
The authors locate their study within natural language processing for Bulgarian. They identify earlier Bulgarian work on fake news and clickbait that used data gathered through a hackathon. Media Scan offered a different source of examples and a broader set of editorial problems to distinguish. The focus on Bulgarian also affected the choice of methods. Resources that had been developed for English could contribute through translation, while the wording and vocabulary of the Bulgarian source could be represented directly.
How earlier work chose what to judge
The literature the paper reviews approaches veracity at several scales. A claim can be checked against evidence. An article can be characterized as a whole. An account can be assessed for manipulative behavior, and an outlet can be studied for the dependability of its reporting. Changing the unit of judgment changes what counts as an example. A statement can be evaluated independently of nearby statements, while an article-level decision has to reflect the publication as a whole. Work on users, such as the studies of opinion manipulation in forums, has patterns of participation available to it. Finding Opinion Manipulation Trolls in News Community Forums
For fact-checking and rumor detection, the paper describes work that gathers reactions from social media or looks for information on the Web. One useful signal is stance, the position a response or document takes towards a claim. An account might support, dispute, or otherwise address a statement. The credibility of the source matters when using that position as evidence. The authors also mention the way responses are worded, associated metadata, and the timing of activity. These are opportunities to examine evidence beyond the wording of the target claim itself. Automated Fact Checking
The paper describes shared evaluations that gave researchers common tasks. RumourEval concerned rumors and the support they attracted. The CLEF CheckThat! tasks included identifying claims in political debates and evaluating their factuality. FEVER addressed extracting and verifying facts. The authors also discuss work that treats stance as a prediction problem in its own right, including experiments associated with the Fake News Challenge and research on Arabic. A stance judgment supplies the relation between a piece of text and a claim. A verification judgment additionally depends on what the source and the available evidence can establish. RumourEval and FEVER
Reliability can itself be the prediction target. The paper explains an approach in which researchers observe an outlet’s treatment of claims that people have already checked. Agreement with true claims and disagreement with false ones can then count in the outlet’s favor. Other work described in the paper approaches trustworthiness through the presence of false facts at a source. An outlet-level estimate can also enter a different task as prior information, meaning context available before the system considers the particulars of the story or claim at hand. Predicting Factuality of Reporting and Bias of News Media Sources
The authors draw attention to the problem of assigning an outlet’s category to everything it publishes. Earlier article datasets sometimes inherited reliability judgments from publishers. This makes it easier to obtain training material, since each additional article arrives with a label derived from its source. Evaluation on such data measures agreement with the inherited judgments. To evaluate the factuality of particular documents, the authors emphasize the value of checking those documents individually. They cite research in which professional journalists assessed the factuality of selected articles and researchers then applied quantitative analysis of writing style. A Stylometric Inquiry into Hyperpartisan and Fake News
Other article-level work looked at which linguistic features occurred in material from publishers associated with hoaxes, satire, propaganda, or trusted reporting. The paper cites this as evidence of sustained interest in the language of false and questionable coverage. It also points out the limited number of outlets in that earlier study. The combination of scope and scale matters here. An experiment may analyze a diverse set of linguistic properties while learning from a narrow slice of the places that publish the material. Truth of Varying Shades
Why the headline and the body get different treatment
Earlier work by Horne and Adalı gave the authors a reason to keep headlines and bodies separate. As the paper describes it, that work compared real news, fake news, and satire and found that fake news and satire shared several properties. The researchers also observed that fake news could concentrate information in the headline and use simpler, shorter, or more repetitive material in the body. A reader who sees only the headline encounters a different amount and arrangement of information from a reader who proceeds through the story.
This distinction carries over to measurable properties. A burst of capitals at the top of a story and the same capitals scattered across the body have different positions in the reader’s encounter with the article. A measurement that pools everything into a single count would obscure that position. Separate measurements allow the classifier to learn different associations for the headline and the body, including associations that depend on their very different lengths.
The authors also draw on an earlier line of feature engineering that characterized news through its structure, sentiment, engagement, subject matter, complexity, bias, and moral language. That work widened the available description beyond surface counts. In the Bulgarian study, such measurements sit alongside representations learned from text and attributes collected for the publisher. The resulting comparison asks what each source of information can contribute when the target is a set of article-level toxicity judgments.
The method, step by step
Recovering articles and assigning the comparison category
Media Scan covered 700 outlets. Of these, 150 were associated with at least one article the project had identified as toxic. The publishers included digital newspapers, media groups, and blogs. To build the experimental corpus, the authors started with the project’s annotated entries and followed links back to the publishers. Those entries supplied the toxicity labels. The publishers’ pages supplied the article text.
Access to the original pages was uneven. Media Scan sometimes contacted publishers about a story, and publishers sometimes removed the article afterwards. The monitoring project kept PDF copies that could preserve the version its judgment concerned. The authors restricted their collection to articles whose HTML pages were still accessible and whose contents had stayed unchanged. The PDFs therefore formed a potential source of additional examples outside the experiment. The restriction also meant that the judgment and the recovered text could refer to the same version.
The authors ran a crawler to retrieve the contents of the labeled pages. A crawler can apply a common extraction procedure across many sites, but the pages in this study used different structures. The procedure expected HTML that exposed the needed parts in a recognizable form. The authors inspected the collected material, corrected the problems they found, and filled in missing information. Separating the article body from its headline was important to everything that followed. Getting that distinction wrong would change the counts derived from the text and the passages sent to the encoders.
The resulting set of flagged articles supplied the toxic categories. For the comparison group, the researchers fetched 96 articles from 25 outlets with no toxicity examples in Media Scan. Each of those articles entered the dataset under the non-toxic label. For the flagged side, the starting point was an individual article that had attracted a particular judgment. For the comparison side, it was the previous record of the outlet. The classifier received these labels as the targets for learning.
Each record joined the headline and body to the identity of its outlet. The Bulgarian text could go straight to feature extraction. The authors also obtained an English translation with the Google Translate API, since several resources they wanted to use were available only in English or were better developed for it. The translation was an additional input derived from the Bulgarian article, and the same recorded label applied to both versions.
From Media Scan records to a toxicity decision
The steps in order.
Building a vocabulary representation from the dataset
A feature is a value the classifier can use in making a decision. A headline’s length can be a feature with a straightforward meaning. A text vector is a collection of values that encodes properties of the wording, and its individual coordinates can depend on many words at once. One route to obtaining such a vector starts with the vocabulary of the articles and learns a compact representation of the patterns in that vocabulary. The authors used latent semantic analysis, commonly abbreviated LSA, for this purpose.
They first represented the headlines and bodies with TF-IDF. This weighting combines term frequency, which describes a term’s occurrence in a piece of text, with inverse document frequency, which responds to how widely the term occurs in the collection. A word used in a particular story and scattered sparsely through the other documents can receive more weight than vocabulary that occurs everywhere. The result represents the terms of each headline or body through their weighted occurrence. TF-IDF
A vocabulary vector can have a coordinate for each term under consideration, even though a particular article uses only a fraction of those terms. The authors used singular value decomposition to reduce the vectors to fewer coordinates. The decomposition finds directions of variation in the weighted document data. Retaining some of those directions lets a coordinate represent a pattern involving several terms. The classifier can then learn associations with those patterns in place of relying on individual term counts alone. The paper applies this principle to representing the input to a classifier, drawing on the same kind of representation used in latent semantic indexing.
The headline vectors retain 15 dimensions and the article bodies retain 200. Here a dimension is a position in the reduced vector. The body can accordingly carry more coordinates from the decomposition. A body and its headline may mention the same event with different vocabulary or distribute their emphasis differently. Representing the parts independently gives the classifier access to each of those accounts. The authors say they fitted LSA on their own data, so the vocabulary patterns reflect the text assembled for the study.
It helps to distinguish the fit of the representation from the fit of the classification rule. The vocabulary weighting and decomposition identify ways to describe the articles numerically. The logistic classifier learns which values of that description are associated with a recorded category. Someone examining the method can therefore ask where the description acquired its knowledge of the words and where the decision acquired its knowledge of the labels. For LSA the article collection supplies both ingredients, through different operations.
Using pretrained representations
Another route to a feature vector starts with an encoder trained on other material. The encoder receives a passage and produces numerical values that reflect the text in context. The researchers can then fit a toxicity classifier on those values. This lets the learned representation come from a much larger training effort while the task-specific classifier learns from the relatively small Bulgarian corpus.
For BERT, the authors used BERT-as-a-service to obtain vectors of 768 values. The method section describes a pretrained multilingual, cased version, which preserves the distinction between upper and lower case. Each headline or body went through the encoder with a limit of the first 512 tokens. A token is a unit of text consumed by the encoder, and a token count can differ from the word counts used to describe the articles. A long body can therefore contribute an opening segment to this representation. BERT and Tokenization
The BERT procedure needs a way to summarize the output associated with an input sequence. The authors tried pooling strategies, which reduce that output to a vector of fixed length. For headlines they chose REDUCE MAX. For each coordinate, this operation retains the largest value among the positions being pooled. Different positions can therefore supply different coordinates of the headline vector. For bodies they chose CLS TOKEN, which takes the vector associated with a designated classification token. The body representation uses the output at that position for its summary of the input.
The authors used XLM for another representation that could handle Bulgarian. Built on a Transformer architecture, it underwent pretraining for 15 languages, among them Bulgarian and English. The version selected for the study had been fine-tuned on cross-lingual natural language inference. Fine-tuning adapts a pretrained system with additional training for a particular task. Natural language inference concerns the relationship between statements. The paper repurposes the resulting XLM representations as vectors for headlines and bodies, each listed with 1,024 coordinates in the feature inventory. Transformer and attention and Fine-tuning
The Universal Sentence Encoder operated on the English text. The authors used a pretrained version from TF Hub and sent it the first 300 tokens of each headline or body. The output was a vector with 512 dimensions for the corresponding article part. This representation and the BERT representation have different input limits and different output sizes. The output size describes how many values arrive at the classifier. The input limit determines which part of the article can influence those values. Universal Sentence Encoder
ELMo provided a further set of features for the translated articles. The method behind it is trained to make use of context from both directions, so a word’s representation can change depending on the passage around it. For the toxicity experiment, the authors generated the ELMo representation separately for each headline and body. The feature inventory lists 1,024 dimensions for each. The description gives the size of the resulting vectors and leaves the details of passage-level aggregation less explicit than it does for BERT. Deep Contextualized Word Representations
Each encoder can summarize properties of a story that its original training made available in its output. Its relevance to toxicity has to be learned from the labeled examples. It might encode language associated with the subject of an article or the way the article presents that subject. The logistic classifier has access to the numerical coordinates, while the connection between a coordinate and a particular editorial distinction remains implicit. The locally fitted vocabulary representation and the pretrained encoders give the experiment ways to compare those sources of information.
Measuring visible properties of the writing
The stylometric features describe quantities a reader can in principle trace back to the text. For each article part, the authors count words, characters, non-alphanumeric characters, upper-case characters, and words that begin with an upper-case character. They also record average word length. The body receives sentence-based measurements as well. These cover the number of sentences and average sentence length expressed in characters and in words.
The capitalization counts illustrate why closely related measurements can be useful together. A word written entirely in capitals contributes more upper-case characters than a word with an initial capital. Both contribute to the count of words with an upper-case initial. The separate counts can thus reflect different patterns of emphasis. They are also sensitive to ordinary conventions, such as capitalizing a name, which is one reason their association with a class has to be evaluated on articles rather than assumed from their definition.
The sentence measurements give another view of the story’s structure. Word count describes the extent of the body, while the sentence measures capture how the author divides that material into units. Stories with similar total lengths can differ substantially in their typical sentence length. The system can learn whether such measurements help with the categories. The paper supplies them as descriptive features without attaching an editorial judgment to a particular length or count.
The authors obtained a richer feature set from the NELA toolkit, which was applied to the English translations. It returned 129 measurements for each headline and another 129 for the body. The structural group uses elements such as function words, pronouns, grammatical categories, and features developed to characterize clickbait headlines. The sentiment group draws on scores from word lists and a fuller sentiment analysis system. These features let the classifier observe language properties defined by existing resources. Part-of-speech tagging and Sentiment & emotion
Other NELA measurements cover readability, the relation between distinct words and word occurrences, and vocabulary associated with cognitive processes such as certainty or insight. A word list can also provide an indication of whether a passage concerns science or personal matters. The paper describes additional features for engagement, bias, subjectivity, and the kinds of moral language examined in earlier research. These values summarize aspects of the translated wording and supply inputs for training. Type–token ratio and Linguistic Models for Analyzing and Detecting Biased Language
A lexicon-based measurement depends on the words that appear after translation. If the English rendering chooses a different word to convey roughly the same meaning, the set of matches can change. The use of translation is therefore part of the feature extraction procedure. It makes the English-language tools available and determines the precise text on which they operate. The original Bulgarian features are another route from the same article to the classifier.
Turning outlet characteristics into inputs
The outlet record provides context that can be shared by several articles. The authors collected binary indicators for the presence of a chief editor, a responsible person, and a designated domain owner, as well as for a server location in Bulgaria. An indicator is set to 1 when the condition holds and to 0 otherwise. Each measures a distinct characteristic. An identified chief editor and an identified owner, for instance, describe different responsibilities even when they coincide.
The paper defines a popularity feature using the outlet’s ranking on the Alexa traffic analysis platform. Its stated reciprocal rule can be written as follows.
P = 1 ÷ r
Here P is the popularity input and r is the outlet’s Alexa rank. The constant 1 is the dividend, ÷ indicates division, and the equals sign defines P. An outlet with a smaller rank number receives a larger feature value. The conversion gives the numerical input a direction consistent with the ordering implied by the ranking.
Age gives the other numerical publisher feature. The authors measure the elapsed days from the outlet’s creation date to 01.01.2019 and apply a logarithm.
A = log(d)
Here A denotes the transformed age, d denotes the elapsed days, and log is the logarithm applied to the value inside the parentheses. The equals sign defines A. The paper’s illustration maps an age of 5,113 days to a feature value of 3.70. The transformation lets age vary on a compressed scale instead of carrying the full range of raw day counts into the fit.
Together, these characteristics give the publisher classifier a short input. They can distinguish profiles among outlets while leaving the headline and story text entirely to other classifiers. The publisher features concern properties of the organization, its domain, its audience ranking, and its age. Their value in this task depends on whether those properties are associated with the way articles entered the labeled collection.
Joining decisions after the first stage
Logistic regression is the principal classifier. It learns how to weight features so that it can estimate probabilities for the available categories. A feature whose values occur more often with one label than with others can contribute to the estimate for that label. The training procedure has to find weights while accounting for many features jointly. Each individual experiment gives the classifier a particular set of inputs, such as the dimensions of LSA, the representations from a pretrained encoder, or the recorded attributes of the outlet.
One way to combine evidence is to concatenate features. In that setup, the coordinates from different groups appear side by side in the same input. The fitted decision has direct access to the individual values from each group. Its training examples must provide enough information to estimate how these values matter for the task, including cases where several groups describe similar properties of the same words. The authors included direct combinations in their comparison.
The best-performing design learns from the individual classifiers’ outputs. The paper gives the source runs as 2-5, 7-10, 12 in its main comparison. For each article, those first-stage classifiers supply posterior probabilities, meaning the category probabilities estimated after observing the relevant features. A final logistic classifier learns from the resulting collection of estimates. This procedure is often called stacking, since the predictions of the first stage become the inputs to a subsequent stage.
Passing probabilities preserves more detail about the first-stage decision than passing its chosen label. A text classifier can favor fake news while also assigning considerable probability to conspiracy. A classifier with the same first choice might place almost all its probability there. The final stage can learn to treat those patterns differently. It can also learn how a probability from one input group behaves in the presence of probabilities from the others. This example describes the information available to the architecture. The paper evaluates the resulting choices over the corpus.
The authors state that they guarded against label leakage when training the final classifier. The issue arises because a first-stage prediction for an article can reflect whether the classifier already trained on that article’s label. Predictions made under those conditions can carry information that would not be available for a newly encountered article. Training the final stage requires predictions constructed with that dependency in mind. The authors describe the precaution and the probability inputs, with a more detailed account of the cross-validation used for tuning the individual classifiers.
The paper announces the release of the experiment code and an explanation of the computing environment in the authors’ repository. The release also covers the corpus, the article text and translations, the generated features, and the associated metadata. These materials correspond to intermediate steps in the experiment as well as to its final predictions. The corpus defines the examples and labels, while the features make it possible to examine how the different descriptions of each article enter the classifiers.
Experiments and results
What was evaluated
The dataset contains 221 flagged articles and 96 classified as non-toxic, with 164 outlets represented overall. The paper reports a mean headline length of 70.47 characters and 11.08 words. For article bodies, the corresponding means are 3,613.70 characters and 556.83 words, with 31.64 sentences on average. These measurements describe the whole collection. They put the separate treatment of headline and body in context and help explain why the encoder limits are relevant to the body. The reported word averages and the encoder limits use different units.
The non-toxic group is the largest category. Fake news and conspiracy follow it in frequency, according to the authors’ discussion of the confusion matrix. A classifier consequently encounters some kinds of decisions much more frequently than others. The size of a class affects how much distinct training material it supplies and how many opportunities the evaluator has to observe a correct prediction for that class. It also determines how frequently always choosing that category would yield the recorded answer.
The authors ran 5-fold cross-validation. Each fold serves in turn as the held-out part of the evaluation while the remaining articles are used for fitting. This gives the researchers a way to evaluate on held-out records while making use of the small collection throughout the experiment. For each individual configuration, a further cross-validation operates within the training portion to tune the logistic regression. That inner procedure uses the training articles to select settings. The outer evaluation provides the reported comparison. The authors count 15,000 additional experiments for the tuning process.
The paper describes 14 setups. The comparison includes the majority baseline, individual text and publisher configurations, combinations that use the original feature values, and the classifier that combines probability estimates. Some of the individual settings use the Bulgarian source and others use the translation. For the main result, the test concerns the complete article-classification procedure. The nested tuning also matters for understanding the individual runs, since the authors sought suitable logistic regression settings for each kind of input.
What accuracy and macro-F1 count
Accuracy measures how often the classifier’s answer matches the recorded answer. Each prediction contributes to the aggregate, so a class with many examples can account for a substantial share of the score. The majority baseline demonstrates this directly. It always chooses non-toxic, a category that the paper’s evaluation discussion says makes up 30.30% of the dataset. The headline comparison reports 30.3% accuracy for that rule.
Macro-F1 starts from the performance for individual categories. To see what it measures, consider articles labeled conspiracy. Precision for conspiracy asks what share of the predicted conspiracy articles carry that recorded label. Recall asks what share of the recorded conspiracy articles received the prediction. A system that uses the category indiscriminately might find many of its actual cases while also assigning it to many articles labeled otherwise. A system that is very sparing with the category can show the reverse pattern. F1 combines precision and recall through their harmonic mean, rewarding performance on both.
The macro average gives each category’s F1 score equal weight. Missing a small category therefore has a direct effect on the average even when the category contributes few examples to accuracy. The baseline can recover the articles labeled non-toxic by using that answer everywhere, but many of its predictions for the category are also false positives. It misses the other categories altogether. The two measures together give a view of overall agreement and a view in which the less populous classes have equal standing. Evaluation & benchmarks
The headline comparison
The authors’ final logistic classifier achieved 59.0% accuracy in the 5-fold evaluation. The majority baseline obtained 30.3% on the same corpus. The paper also reports a 3.5% absolute accuracy gain over the strongest individual classifier. That comparison shows the gain from the additional stage against an already informative classifier, while the comparison with the baseline shows what the fitted system adds to the simplest rule based on class frequency.
Accuracy for Bulgarian news toxicity in cross-validation
Combining the probability estimates yields more correct article classifications than choosing the largest class throughout.
The numbers
| System or setting | Accuracy % |
|---|---|
| Majority rule using non-toxic | 30.3 |
| Logistic classifier using probability estimates (this paper) | 59.0 |
On the same evaluation, the final classifier scored 39.7% macro-F1 and the baseline scored 5.2%. The richer inputs accordingly helped under both ways of aggregating performance. The macro result measures how much of that gain is visible when every category counts equally. The distribution of the gain among the categories requires the confusion analysis, since different patterns of errors can produce the same average.
Macro-F1 for Bulgarian news toxicity in cross-validation
The combined classifier improves the average that gives each category the same weight.
The numbers
| System or setting | Macro-F1 % |
|---|---|
| Majority rule using non-toxic | 5.2 |
| Logistic classifier using probability estimates (this paper) | 39.7 |
The two charts describe agreement with the labels attached to the collected articles. A label such as hate speech or conspiracy has the meaning assigned in this corpus. The detector’s output can be compared to those judgments quantitatively, including when it predicts a different class. The task gives a direct measure of classification performance under the paper’s evaluation. Questions about whether the classifier would retain that performance for different outlets, annotators, or publishing periods require other comparisons.
What the individual runs contribute to the comparison
The paper identifies LSA as the strongest individual text representation. Its features come from term-use patterns fitted on the collected text, followed by dimensionality reduction. The result puts a representation derived from local vocabulary ahead of the individual pretrained representations in this experiment. That ranking matters because dimension count and training scale vary across the candidates. A compact representation can be especially suitable when the available labeled articles give limited opportunities to estimate which features are relevant to the category definitions.
The authors also describe BERT as performing well for both the original and the translated input. Its paired runs are important because their comparison holds the chosen headline and body pooling procedures fixed. The paper reports an absolute improvement of close to 4.5% for the translated input in that comparison, describing it as an improvement in performance without naming the metric in the sentence that gives the figure. It does not supply a matched test there that assigns a separate share of the gain to translation, pretraining, or either article part.
Outlet information by itself was predictive. For the run restricted to the 6 publisher features, the authors report a 12% improvement over the majority baseline. Their statement of that figure leaves the metric and the convention for computing the improvement unspecified. The directional conclusion is that the outlet measurements improved the predictions compared with always selecting non-toxic. The result shows why the researchers regarded this small group of features as a candidate to feed into the final stage.
Directly combining the feature values generally produced weaker results than the strongest individual inputs. The authors connect this to the dimension of the joint input relative to the amount of labeled data. They also report that the tested combination drawn completely from pretrained representations did better than the tested mixture of local and transferred features. This is a comparison of particular combinations. The complete set of results puts an individual, locally derived representation in first place among text inputs and a combination based on classifier probabilities in first place overall.
What the ablations show
Which comparisons isolate a source of information?
The paper compares feature families on their own, different ways of putting them together, and alternatives for fitting the classifier. These comparisons show which ingredients are useful when given a particular role. The study does not report a sequence of runs in which each input is removed from the final stack while the remaining setup is held fixed. Its standalone runs therefore answer a question about the predictive signal available to each first-stage classifier. The contribution of that classifier after the other probability estimates arrive remains open.
The publisher run makes the distinction concrete. A classifier can make useful predictions from the outlet record by itself. A final classifier receiving the outlet probabilities alongside the text probabilities might use the publisher most when the text is ambiguous. It might also see a strong association that is already reflected in the other probabilities. An outlet-only comparison shows there is signal in the publisher information; it gives no direct measurement of the loss that would follow from removing it from the combined decision.
The local vocabulary result supports a similarly focused interpretation. LSA can represent patterns that recur in these articles, and those patterns helped discriminate the recorded labels. Several explanations fit that result. The weights could be picking up useful topic vocabulary, expressions characteristic of a category, or ways of writing common to some outlets. The paper reports the ranking of feature sets and discusses its relationship to local training. It does not trace the winning representation back to particular terms or documents. The reason it succeeds on an individual prediction remains unobserved in this comparison.
The study separates headline and body in feature extraction, which makes a comparison of their contributions possible in principle. For the main BERT configurations, the authors also distinguish their pooling procedures. The reported selection gives the representation used in the final comparison. The paper does not give a numerical breakdown of how much overall accuracy comes from the headline, how much comes from the body, or how each chosen pooling operation changes the rare categories. The design preserves those parts of the input, while the headline result assesses them as parts of a larger procedure.
Combining features and combining predictions
The closest comparison to the final architectural choice is between a direct combination of features and a combination of fitted probabilities. In the former, each feature can carry its own learned weight. This gives the classifier access to potentially useful detail and obliges it to estimate effects for a larger collection of values. In the latter, each first-stage classifier has already used training examples to convert its group of features into estimates about the categories. The final stage learns from a set of values whose meanings are aligned to those categories.
The results favor the second procedure for this corpus. The authors’ explanation centers on how much the decision must learn from a small training set. Probabilities summarize the associations within each feature family before the feature families are combined. Doing so limits the number and variety of values that the last classifier needs to handle. The comparison changes the structure of the fit as well as the form of its input, so it supports the procedure as a whole. It leaves the separate contributions of compression and staged fitting unresolved.
The comparison among mixtures of pretrained and local features also helps interpret what a strong individual input means. The locally fitted LSA representation works well by itself. The tested direct fusion that incorporates local and pretrained inputs falls behind the direct fusion composed of pretrained inputs. The usefulness of a numerical description in isolation and its usefulness beside several other descriptions depend on different fits. This is consistent with the authors’ concern about increasing the number of inputs while holding the supply of labeled articles fixed.
What the translated runs can tell us
The BERT language comparison preserves the use of max pooling for headlines and of the classification token for article bodies. This controls part of the procedure for turning the encoder output into a vector. The original and translated passages still present different wording to the encoder, and the resources used with those inputs are part of the comparison. The outcome gives evidence for the tested English route as a whole.
The authors suggest that the amount of material available for English pretraining could help explain the result. In their discussion they cite 5.7M English Wikipedia articles and 250K Bulgarian Wikipedia articles. Those figures describe the sizes of the corresponding Wikipedia collections in the paper’s explanation. The study does not independently vary the size of pretraining data for a fixed language and architecture. The figures motivate the explanation, while the measured comparison is between the reported runs on Bulgarian text and on its English translation.
A translation can make the text easier for an English-oriented resource to represent. It can also shift the words, syntax, and emphasis that supply the evidence. Either property can affect what reaches the logistic classifier. The language comparison gives the net result in the selected BERT setup. It does not attribute the improvement to a particular category, choice of wording, or property of the translation. The success of Bulgarian LSA also supplies a concrete case in which transferring a representation through English was unnecessary to obtain a strong individual result.
Altering the examples and the classifier
Class imbalance prompted the authors to try random oversampling. This gives some existing minority-class articles more opportunities to influence the fit. They also tried SMOTE, a method that generates synthetic minority examples. The resulting training inputs can alter the attention paid to smaller classes without obtaining new article judgments. The paper describes trying both forms of oversampling with the configurations in the main comparison and reports no improvement. SMOTE
These trials distinguish a difficulty observed in the data from the effect of a particular response to it. The smallest categories gave the learner relatively few examples. Additional occurrences of existing training material or synthetic feature values still depend on what those examples represent. A variety of topics or writing styles missing from the original examples remains unavailable as independently reviewed text. The experiments show how the tested sampling schemes performed and leave open the effect of acquiring more distinct articles under those labels.
The authors also tried a feed-forward neural classifier, in which the inputs pass through successive layers on their way to a prediction. The first fully connected hidden layer had 64 units with a ReLU activation, which retains positive inputs and sets negative inputs to zero. The next had 32 units with a Tanh activation, which turns its inputs into values within a bounded range. The authors applied dropout at 0.35 to each layer and used Adam to fit the parameters. Dropout temporarily suppresses activations during training, reducing the fit’s reliance on the same set of units throughout.
The neural classifier failed to produce an improvement across the parameter values the authors explored. They suggest that the small corpus provided too little evidence for the larger number of parameters. The experiment evaluates a specific family of neural configurations on this problem. Its practical implication for the study is that the added flexibility did not yield a measured gain over the logistic approach. The results give limited grounds for anticipating how that balance would change if the training corpus grew.
What the confusion matrix adds
The paper’s confusion matrix collects the best classifier’s predictions over the dataset. Such a matrix compares the category given in the data with the category predicted. Correct decisions appear where those categories agree. The remaining cells identify directions of error, such as assigning articles from one recorded category to another. This detail matters when the aggregate results are used to understand a classifier intended to distinguish several kinds of toxicity.
The authors identify non-toxic as the category with the strongest performance. They also point to fake news articles assigned to conspiracy. The direction of that error matters. The classifier can recognize a pattern associated with problematic material and still select the wrong type in the scheme used for the experiment. Because fake news and conspiracy are the next largest categories, the substitution is visible even where the classifier had more examples to learn from than it had for the rarest classes.
Category overlap is one possible reason to examine the mistaken articles more closely. In the paper’s descriptions, fake news can distort factual details and a conspiracy account can offer an elaborate explanation with weak evidence. A story can possess features of both. A confusion matrix records what the classifier chose in relation to the recorded judgment, and its entries alone cannot establish whether the error arose from overlap, shared vocabulary, similar subject matter, or the properties of the learned decision.
The rare labels show a different pattern. According to the authors, the best classifier gives hardly any predictions for the three smallest categories, which together comprise less than 18% of the dataset. The problem is limited recovery of those judgments through the classifier’s output. Even a system that improves the average performance and separates some frequent categories can offer little practical coverage for a reader interested in one of these rare forms of toxicity. The matrix adds that information to what can be learned from accuracy and macro-F1.
Limitations
Constraints the authors identify
The authors give particular weight to the size and imbalance of the dataset. They report that the three least frequent categories together have fewer than 60 articles, while the non-toxic group has 96 on its own. Each training fit in cross-validation uses a portion of those already limited records. The imbalance therefore concerns the amount of distinct material the classifier has available to understand a rare category, as well as the frequency with which it sees that label. The scarcity is their suggested explanation for the difficulty with larger feature combinations and the neural classifier.
The collection procedure also limited the supply of recoverable material. Media Scan preserved some stories in PDF form, whereas the study used available pages whose material had stayed unchanged. The authors identify processing the PDFs as a way to expand the collection. They also suggest seeking articles from a further source through a process informed by Media Scan. These directions would bring new cases into the corpus, with consequences for its balance and for the range of stories represented under each label.
The authors discuss the scarcity of language resources suitable for a small Bulgarian news corpus. Their study addresses it in part by using English translations, and they suggest that the available English training material helps account for the translated BERT result. The local vocabulary result shows that a representation fitted directly to the study collection can also be effective. The two findings characterize the choices tested in this corpus. The authors frame language resources as one of the factors to consider when interpreting their different representations.
Their proposed technical work includes revisiting the neural architecture and the way examples are sampled. They mention the possibility of combining oversampling with undersampling, in which some examples from more frequent groups are used less. They also propose trying additional information sources. These are plans in response to observed difficulties. In the completed experiment, the tested oversampling variants and neural settings yielded no improvement, and the rarest categories remained poorly covered.
Limits that follow from the experimental setup
The corpus represents a series of selection decisions. The flagged cases had first to come to the attention of Media Scan and be recorded there. They also had to survive the authors’ availability and version checks. The paper describes instances in which publishers removed articles after being contacted. If removal was more common for certain problems, the restriction to available, unchanged articles could have altered the mix of cases. The experiment does not quantify how the included articles differ from those available only through the archive or from articles outside the monitoring project.
The source of the comparison group creates a further constraint. A non-toxic article was obtained from a publisher with no recorded toxic examples in Media Scan. The absence of a recorded case could reflect an outlet’s editorial practices or the coverage of the monitoring project. Conversely, a publisher with a recorded case can publish articles that would pass the same scrutiny. A collection built from these separate routes can contain information about the way outlets were sampled alongside information about the qualities of particular stories. The study does not estimate the rate at which an independent article review would revise the comparison labels.
Publisher features make this distinction consequential. Articles from the same outlet have the same values for characteristics such as its server location or whether it names a chief editor. If the training and held-out records include the same publisher, those values can recur across the split. The paper gives results for 5-fold cross-validation without a separate evaluation in which entire publishers are held out. The performance of the publisher inputs on previously unseen outlets therefore remains uncertain. A dataset including both comparison and flagged articles from the same publishers would also pose a different test of whether the predictions track the story or the outlet profile.
There is a related question about what material was visible when the local text representation was fitted. TF-IDF weights depend on document frequencies, and the decomposition depends on the documents included in its input. If the fitting procedure used text from the held-out portion, that text could influence the representation without supplying its labels. The paper describes fitting LSA on the study data and tuning logistic regression within the training portion of each fold. It does not say whether the vocabulary statistics and decomposition were re-estimated separately for each outer training split. The authors’ stated precaution about leakage into the final classifier concerns the probability inputs and does not settle this representation question.
The treatment of overlapping labels also affects the interpretation of the reported metrics. The study allows more than one toxicity label to apply in its task description and then reports a multiclass experiment. The paper gives limited detail on how a record with several applicable labels enters the classifier and the calculation of a correct answer. A prediction counted as a substitution could be interpreted differently if the article was also considered an example of the predicted category. An agreement study among annotators or a breakdown of overlaps could clarify that issue, and neither is reported.
These uncertainties apply to different kinds of performance claims. One can ask how well a classifier reproduces Media Scan’s published judgments. One can also ask whether a different group of reviewers would reach similar judgments, or whether the classifier would agree with them. The first question is the one operationalized by the corpus and its evaluation. The latter questions depend on the consistency of category definitions and the labeling procedure. The paper offers examples of review and clarification through Media Scan, while leaving agreement across independent reviewers unmeasured.
What the available inputs allow the classifier to judge
The authors give two of their encoders limited spans of the input. When an article extends beyond the span, later text has no effect on that encoder’s vector. This matters if the headline and opening state a claim and a later passage supplies the qualification that determines how to read it. Features computed from the whole article can still register general facts about the omitted passage, such as its contribution to length. Such measurements have a different role from representing the meaning of the qualification. The paper does not report an evaluation organized by article length or by where the material motivating the judgment appeared.
The properties captured through English also depend on the translation. This is particularly visible for the lexicon and style measurements. A rendering can convey the main proposition while changing the words that match a sentiment list, the placement of a modifier, or a mark of emphasis. These possibilities arise from using the translated piece as the input to those measurements. The reported BERT comparison tests classification after that transformation. The experiment does not examine which properties of the Bulgarian phrasing are carried through consistently.
Some grounds for an editorial judgment lie outside the article and the publisher metadata. A date or location may look plausible until it is checked against independent evidence. A purported scientific explanation may require asking what research supports it. Media Scan’s recorded attempts to seek clarification illustrate how such evidence can enter human review. The detector described in the paper learns associations between its inputs and the resulting judgments. Its probabilities express a fit to the categories learned from the collection. Determining the truth of a specific claim would require evidence about the claim itself.
The political and interpersonal labels raise a related question about the context needed to apply them. A repeated expression may have distinct significance depending on the people involved or the use of the quotation in the story. The representation captures some properties of the published language, and the classifier can learn associations the corpus makes available. Its performance assesses the use of those associations under the study’s category scheme. The paper does not separately evaluate a reader’s ability to audit the reasons for one prediction or to resolve a disputed label.
Finally, the reported outcome is classification in a cross-validation experiment. The authors’ motivation concerns the speed and impact of toxic material in circulation. Those effects depend on how a detector would be used, which articles it would flag for attention, and how editors or readers would respond. Evaluating those outcomes would require observing a different process. The paper measures prediction against recorded categories and uses the confusion matrix to show where the resulting classifier still falls short.
What came after
Later use of the Bulgarian corpus or of the paper’s probability-based combination is undocumented here. The authors themselves identify follow-up work on the collection. Processing the PDFs preserved by Media Scan would recover some of the stories excluded by the HTML requirement. Seeking additional material through a similar monitoring process could widen the set of publishers and provide more cases for classes that were scarcely predicted. The paper presents these as possible extensions.
The authors also place the work within Tanbih, a project intended to help readers understand the news they encounter, including propaganda and media bias. The connection explains the interest in distinguishing kinds of problematic material at the point where a reader sees an article. The reported experiment establishes how much the classifier could recover from the selected inputs under the study’s evaluation. Its weakest results concern the categories with the fewest examples, which remain the clearest unresolved part of the classification task.
Cite
Cite as Yoan Dinkov, Ivan Koychev and Preslav Nakov. 2019. Detecting Toxicity in News Articles: Application to Bulgarian. Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019).
@inproceedings{dinkov2019detecting,
title = {{Detecting Toxicity in News Articles: Application to Bulgarian}},
author = {Yoan Dinkov, Ivan Koychev and Preslav Nakov},
booktitle = {Proceedings of the International Conference on Recent Advances in Natural Language Processing (RANLP 2019)},
year = {2019},
doi = {10.26615/978-954-452-056-4\_029},
url = {https://doi.org/10.26615/978-954-452-056-4_029}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/dinkov-2019-detecting-toxicity-news-articles-application/