Label modification and bootstrapping for zero-shot cross-lingual hate speech detection
Paper · 2023 · Irina Bigoulaeva, Viktor Hangya, Iryna Gurevych et al.
Summary
A hate speech detector trained in English has two things to learn before it can work in German. It needs a way to recognize related expressions across languages, and it needs English training examples that teach it the distinction the German task actually asks it to make. The second requirement is easy to miss. A dataset may put personal insults, profanity, and attacks on groups under the same heading, while another treats them as separate categories. Bigoulaeva and colleagues study both problems together. They train on English posts from the Stormfront forum and evaluate on German tweets from GermEval, using no human-labeled German examples to fit the cross-lingual classifiers. They use a labeled German development set to choose settings.
The authors make the two datasets comparable by looking at what their labels mean. Stormfront’s positive class concerns attacks on groups based on aspects of their identity. GermEval has a class called Abuse that comes closest to this definition. The authors map it to Hate and put GermEval’s Insult, Profanity, and Other categories into noHate. They also resolve Stormfront’s extra labels and duplicate English positive examples to balance the source training set. To transfer what the classifiers learn, they use aligned word embeddings for the convolutional and recurrent classifiers, and multilingual BERT’s own shared representations for the third classifier.
On the German test set, the English-trained classifiers show different strengths. The convolutional classifier reaches 67.44 recall for Hate, while multilingual BERT reaches 52.29 precision for that class and has the highest macro-average F1 of the English-trained classifiers. The authors then let the classifiers vote on labels for German text and continue training each classifier on those labels. The votes heavily favor noHate. Still, with automatically labeled GermEval tweets, the recurrent classifier’s Hate F1 reaches 17.47, up from 14.43, and multilingual BERT’s macro-average F1 reaches 51.17. The convolutional classifier ends up predicting noHate across the entire German test set. The effects of adaptation also change when the German training material comes from a forum instead of Twitter.
Separate experiments train and test within each language to examine the choice between duplicating positive examples and removing negative ones. Balanced oversampling gives every architecture its highest English Hate F1 among the settings tested. On German, the best choice for Hate F1 varies by architecture. The study shows that English supervision can support German detection under a shared label definition, and that automatically labeled German text can help some classifiers. It also shows why the success of those steps has to be judged on the positive class itself. A classifier can improve its aggregate score while losing the ability to flag any hate speech.
Deep dive: Label modification and bootstrapping for zero-shot cross-lingual hate speech detection
Bigoulaeva and colleagues align English and German hate speech labels and test whether training on automatically labeled German text improves detection. · about 36 minutes to read
The problem and its context
The scarcity is specific to the task
A social platform receives messages in several languages, and a moderation policy has to be applied to all of them. Human review faces the volume of material, the difficulty of agreeing on borderline cases, and the effects of repeated exposure to hostile content. The paper takes those constraints as reasons to study automatic detection. Its specific research problem is how to use existing labeled text when the language in which detection is needed has relatively little suitable training material.
The authors point out that labeled hate speech resources are concentrated in English. German is their example of a language that can have substantial resources in general and still be underserved for a particular task. Even when a German hate speech dataset exists, its instructions may cover a different target from the one a detector is supposed to recognize. A corpus about hostility toward refugees would offer a different kind of supervision from one that covers attacks on groups across several themes. The relevant resource is a collection with usable labels for the intended task, in the language where training or evaluation has to take place.
This is a setting for multilingual and cross-lingual NLP. In transfer learning, the source language supplies labeled examples, and the target language is where the resulting classifier must work. Earlier studies described by the authors vary in how much target-language supervision they assume. Some initialize a target-language classifier using training carried out in English and then update it on labeled examples in the target language. Others add a small set of human-labeled target examples to the source data. These procedures can make good use of a small annotation effort when one is feasible. Bigoulaeva and colleagues focus on fitting the classifier without that target-language training supervision. The paper calls this zero-shot transfer and distinguishes it from few-shot learning. Its use of labeled German data for setting selection matters when interpreting what zero-shot covers in the experiments.
An annotation scheme defines the task
In this kind of text classification, the categories used for linguistic annotation determine what counts as a training success or an evaluation error. A reader may readily recognize that a post is hostile and still be unsure whether a particular dataset treats it as hateful. The guidelines may ask whom it attacks, whether the attack depends on group membership, and whether the speaker uses a direct insult or an indirect suggestion. Those choices determine how otherwise similar posts are labeled.
The history reviewed in the paper makes the terminology problem concrete. Early studies used several terms for hostile online interaction. The survey by Schmidt and Wiegand traces that variation, and Davidson and colleagues draw attention to a recurring overlap between hate speech and ordinary offensiveness. An umbrella category for offensiveness can include swearing, attacks on an individual, and group-directed abuse. A collection that uses Offensive as a category alongside Hate Speech may instead intend it to cover individual targets. The same label name can therefore indicate a broad parent category in one collection and a narrower class in another. Schmidt and Wiegand’s hate speech survey and Davidson and colleagues’ study of hate speech and offensive language
The typology by Waseem and colleagues separates questions about how abuse is expressed from questions about whom it targets. The paper describes a related distinction in the Offensive Language Identification Dataset, or OLID. Its scheme moves from whether a tweet is offensive to the kind and target of the offense. An offensive insult aimed at a group fits a description of hate speech within this framework. GermEval uses Abuse as a particular subtype of offense, whereas the discussion of OLID uses abuse in a broader sense. Knowing the place of a term in each scheme is more informative than matching terms across dataset documentation. Understanding Abuse and Predicting the Type and Target of Offensive Posts in Social Media
A dataset can narrow the task through the examples it collects as well as through its labels. HatEval studies hateful tweets targeting immigrants or women. The annotation work discussed by Ross and colleagues focuses on refugees and Muslims. The paper illustrates the consequences with posts that use vulgar language toward female politicians. One is positive under HatEval’s guidelines, while another is negative in a collection whose definition and subject are different. The posts are separate examples, and the comparison illustrates how a collection’s scope can shape the treatment of similar language. HatEval and Measuring the Reliability of Hate Speech Annotations
These discrepancies are consequential for transfer. Imagine that English training has repeatedly rewarded flagging direct insults aimed at individuals. If the German evaluation counts those insults as negative, successfully carrying over that behavior creates errors. Better cross-language representations would help preserve what the classifier learned, including the behavior that the target guidelines consider wrong. The paper cites prior experiments in which detectors generalized poorly between datasets and often treated vulgar words as evidence of hate speech even in nonoffensive material. That finding gives the authors a reason to inspect the categories before interpreting a transfer score.
Earlier routes across languages and datasets
One route is machine translation. A pipeline can translate target-language material into the source language and run a classifier on the translation. The paper describes work that combines translation with information from an abusive-language lexicon. It also identifies practical drawbacks: a translation system must itself be available, training it can depend on parallel material, and translations can introduce errors. Those concerns motivate an approach in which the classifier receives comparable numerical representations of original English and German text.
There are two ways to obtain those representations in the paper’s account. Separate word-vector spaces can be trained on text from each language and then mapped into a common space. Alternatively, multilingual pretraining can supply shared representations as part of the classifier’s starting point. Earlier work had already used multilingual BERT to train in one language and evaluate in another without intermediate target-language training. Other studies used cross-language representations to augment labeled German data with English examples or used English training as a starting point for fitting classifiers on labeled examples in another language. The availability of target labels changes which of these comparisons is relevant. Exploiting Similarities among Languages for Machine Translation and Exposing the Limits of Zero-shot Cross-lingual Hate Speech Detection
Prior work also suggested that label names alone are a poor guide to compatibility. Fortuna and colleagues compared the contents of classes in different corpora by summarizing their texts with vectors and examining the relationships between the resulting class representations. The paper reports that classes with different names could contain similar material. It also describes an earlier multilingual resource-building effort that combined English datasets from separate domains after reducing the source taxonomies to a common binary distinction. In that effort, the openly and covertly aggressive categories of TRAC both contributed to the abusive side. The case illustrates how a mapping can make data usable for a shared task while discarding a distinction that mattered to the original dataset. Fortuna and colleagues’ analysis of hate speech datasets and Benchmarking Aggression Identification in Social Media
Multilingual collections with deliberately compatible guidelines offer another way to avoid discrepancies. The authors are interested in the situation where the language a practitioner needs falls outside such a collection. Training and evaluation then draw on separate resources, developed for their own purposes. Choosing those resources becomes part of the research design. The intended transfer is between languages under a reasonably shared definition, with a forum-to-Twitter difference still present.
The paper also builds on prior uses of bootstrapping, where classifiers supply new training labels. It describes an earlier named entity study that used a group of classifiers to vote on unlabeled examples and then trained again with the enlarged corpus. A previous study by Bigoulaeva and colleagues used voted German labels to continue training classifiers for hate speech detection. The present study follows that procedure and adds multilingual BERT to the group. The authors also describe related work that used a multilingual transformer to provide target-language labels for a separate target-language classifier. In the present design, the same classifiers that vote on the labels are subsequently trained on them.
Rare positives complicate learning and evaluation
Hate speech datasets commonly contain more negative than positive examples. That reflects the kind of stream in which a detector might be used, and it creates a training problem of its own. A large number of negative examples can make a classifier look successful when it rarely predicts hate speech. Positive examples can also be too scarce to cover the ways group-directed hostility is expressed. Changing the class ratio exposes the classifier to a different frequency of positive examples, although it leaves the underlying range of positive language limited by the original data.
The authors distinguish interventions on the data from interventions on the training objective or decision rule. A training objective can give errors in one class more weight. A decision threshold can change how readily a classifier chooses a label. Data resampling changes which examples the classifier encounters and how often. The study compares two simple forms of resampling. Oversampling repeats minority-class examples. Undersampling removes some majority-class examples. The former retains the original negative material, while the latter can reduce its variety. The former can also expose the learner to the same positive wording more often. Which effect matters most is an empirical question the paper investigates alongside transfer.
The method, step by step
Decide what a positive example means
The starting point is a pair of datasets whose positive classes can plausibly represent the same task. The authors select Stormfront for English training because its definition is broad with respect to the identity of the group being attacked. The collection contains roughly 10,000 examples from a white-nationalist forum. Under its guidelines, a deliberate attack tied to characteristics of a group can qualify as hate speech. The examples discussed in the paper include attacks on religious and racial groups. They also include a neutral description of an individual and a derogatory attack aimed at a single person. Those latter examples are negative under the Stormfront scheme. The distinction depends on the role of the target in the statement, even when the language is highly offensive.
The German material comes from the 2018 GermEval shared task. Its coarse annotation separates offensive tweets from other tweets. In the finer annotation, offensive material can be assigned Insult, Profanity, or Abuse. The authors focus on Abuse, which covers cases where a negative judgment treats its target as a representative of a group and attributes negative characteristics to the group. GermEval’s definition also leaves the kind of group open. This makes the class a plausible counterpart to Stormfront’s Hate label.
The paper’s examples show what is preserved by this choice. A German tweet insulting a politician as an individual stays on the negative side of the binary task. A tweet assigning acts of violence to an entire religious group falls on the positive side. A profane phrase can appear in a negative example because the binary label asks about group-directed hate. These are distinctions drawn from the annotation rules, with the authors’ examples illustrating how those rules work.
The German mapping sends Abuse to Hate. It sends Other, Insult, and Profanity to noHate. The resulting negative class is consequently broader than civil or neutral language. A negative example can still be insulting or vulgar enough to qualify as offensive in the original shared task. A classifier can therefore be correct under this binary mapping and still leave a post unflagged that an offensive-language detector would be expected to flag.
Stormfront already has the main binary labels, but it also has two categories that require a decision. There are 168 examples marked Relation, in which the hateful meaning depends on surrounding material. The authors map them to Hate. There are 92 examples marked Skip, which includes material that is non-English or too uninformative to receive one of the main labels. The authors map those examples to noHate. These decisions retain the examples in the binary resource. They also give an isolated input a positive target in some cases where the evidence needed to see the attack is outside that input.
Split the corpora and balance the source training set
After conversion to binary labels, each language has a training, development, and test split. The English split names are EN-TRAIN, EN-DEV, and EN-TEST. The authors draw a small random test sample with a class distribution intended to reflect the corpus, preserving the rest for development and training. The development examples are kept separate from the test examples, and the remainder supplies EN-TRAIN. The paper reports a 7:1 noHate-to-Hate ratio for each English split.
For German, the authors retain the official GermEval test set as DE-TEST. From the original training portion, they take the last 809 examples for development and call that split DE-DEV. The remaining training examples are DE-TRAIN. The reported noHate-to-Hate ratio is 4:1 in each of these German splits. In the cross-lingual experiments, DE-DEV is used to select settings, and the human labels in DE-TRAIN are withheld from classifier fitting. The experimental roles of the splits matter because DE-TRAIN has annotations that the authors can later consult to check the automatically assigned labels.
The main English training set used for transfer is a resampled version of EN-TRAIN. The authors duplicate Hate examples until they are as frequent as noHate examples, producing EN-OS[1:1]. The equality concerns the number of training entries available to the classifier. The oversampled version retains the negative examples and presents repeated positives from the same pool of distinct texts. Neither the German test set nor its class distribution is balanced to match this training scenario.
From English annotations to German hate speech detection
The steps in order.
Give the classifiers a representation that can cross languages
For the convolutional and recurrent classifiers, the authors build English and German word vectors with FastText SkipGram. They use NewsCrawl text dating from 2007 to 2013, prepared with Moses tools. A training context supplies evidence about how words are used, and lexical semantics becomes accessible through relationships between the resulting vectors. FastText incorporates information from parts of words in its representations. The resulting English and German vectors initially occupy separately trained spaces. Enriching Word Vectors with Subword Information
The authors then use MUSE to map the two spaces into alignment. In an aligned space, an English word and a German word with a corresponding meaning can be represented by nearby vectors. The idea is that a pattern learned through English inputs will then receive related numerical cues for German inputs. This operates at the level of word representations. The downstream classifiers still have to process each text as a sequence, and differences in the way languages put words together remain relevant. The authors report using default parameters for the tools that produce and align the vectors. Word Translation Without Parallel Data
The convolutional neural network, or CNN, takes these vectors as its input. Its filters examine windows of neighboring words and produce responses at different positions. Global max-pooling keeps the strongest response for each filter, and a dense layer uses the pooled responses for classification. In practical terms, a local phrase can supply a strong signal wherever it appears in the input. The paper follows Kim’s sentence-classification architecture and uses the associated implementation’s default values for the remaining architecture settings. The aligned input embeddings in this experiment are fixed during CNN training. Kim’s convolutional approach to sentence classification
The second architecture uses a bidirectional long short-term memory layer, abbreviated BiLSTM. A recurrent layer builds a representation as it processes a sequence. Bidirectional processing makes information from both reading directions available to the higher layers. Here, the authors give the BiLSTM layer 100 units. Its output goes into a convolutional stage with feature maps of 200 units each and kernel sizes of 3, 4, and 5. Pooling follows each convolution, and the pooled outputs go to a dense layer of 100 units. The convolutional stage thus operates on representations that have already incorporated surrounding sequence information. The authors adapt the architecture from a GermEval participant and use their aligned vectors as inputs.
The third classifier uses multilingual BERT, abbreviated mBERT. This is a transformer pretrained on Wikipedia material in 104 languages. Its multilingual representations are learned as part of pretraining, so the authors can use the architecture directly with English and German inputs. The separate FastText and MUSE pipeline is specific to the other classifiers. In the paper’s terminology, training mBERT on the task means fine-tuning, or updating its pretrained parameters using examples labeled for the hate speech distinction.
The paper compares complete classifier setups. The CNN and BiLSTM use explicitly mapped word vectors and different ways of processing sequences. mBERT brings its own multilingual pretraining and processes text with a different architecture. Those differences create a reason to try combining their predictions, since they may respond to different cues. They also make architectural comparisons broader than a test that changes just one layer at a time.
Fit on English and select settings for German
Each classifier learns the binary task from EN-OS[1:1]. The same trained classifier can then be applied to German using its corresponding shared representation. The authors select settings such as learning rate and training duration on DE-DEV. A learning rate controls the size of a parameter update. An epoch is a pass through the training set. Batch size controls how many examples supply the signal for an update, and dropout changes how much of the network’s internal activity is temporarily omitted during training.
The CNN and BiLSTM are also tested with weights for the two classes in the loss, the quantity that training seeks to reduce. A class weight changes how much that class’s examples contribute to the updates. This can matter even when examples have already been resampled. Resampling sets their frequency of presentation, while class weights set their relative contribution when they are encountered. The paper’s mBERT setup uses no such class weights.
The distinction between parameter fitting and selecting settings is important. At this stage, the updates for the task use English labels. German development labels can still influence which trained version is carried forward. The German test split is used to evaluate the resulting choice. The initial classifiers provide both a direct-transfer comparison and the starting weights for the subsequent German training stage.
Let the classifiers label German training material
Bootstrapping uses an initial classifier to assign labels to material that can then serve as further supervision. The authors apply all the English-trained classifiers to each German example in a candidate training set. A majority vote supplies its label. These labels are also called pseudo-labels because they are supplied by predictions. Each classifier subsequently resumes training from its own English-trained state, using the shared voted labels. The paper describes a single labeling and continuation stage for each German corpus.
The voting rule can be written as follows.
ŷ(x) = argmax₍c ∈ C₎ ∑ᵢ 𝟙[hᵢ(x) = c]
Here x is a German input text and ŷ(x) is the label assigned to it. C is the set containing Hate and noHate. The symbol c denotes the candidate label being counted, and ∈ means it belongs to that set. The index i identifies a classifier in the ensemble, and hᵢ(x) is its prediction for the input. The indicator 𝟙 contributes a vote when its condition is true and contributes nothing otherwise. The sum ∑ᵢ counts the votes for a label, and argmax selects the label with the largest count. The left-hand equality assigns that choice to the input, and the equality inside the indicator tests whether an individual prediction matches the candidate. With a binary decision and the CNN, BiLSTM, and mBERT each casting a vote, one label has a majority.
The first source for bootstrapping is DE-TRAIN. Its original human annotations are put aside during this procedure. The authors apply the ensemble to its tweets and call the resulting automatically labeled set DE-REL*. Since the corresponding original annotations exist, they can compare the votes with human judgments afterward. That comparison observes the quality of the training signal the classifiers actually received. The training stage itself uses the votes.
The other source, DE-NEW, comes from a German-language thread on Stormfront collected for the authors’ earlier work. At the time of collection the thread had around 5500 posts. The collection procedure treats paragraphs separated by newlines as candidate samples, so a post can yield multiple units. The subsequent screening removes material such as non-German texts, bullet-point lists, very short fragments, and cut-off lines. Quotations longer than 1000 characters are removed under the documented rules, while short quoted material and mixed German-English sentences can be kept. Individual lines of interview dialogue can be treated separately. The authors describe correcting a few obvious breaks or spacing errors by hand. The resulting dataset has 6,586 text samples, almost all in German.
That cleanup changes the granularity and presentation of the material to make it more comparable to tweets. The text still comes from a forum, and separating it into samples can limit what context travels with each example. DE-NEW has no corpus-wide set of human labels. The authors inspect selected cases to understand what the ensemble recognizes, and judge the usefulness of training on the corpus through subsequent evaluation on DE-TEST. They say the forum corpus is withheld from public distribution for privacy reasons and can be supplied individually on request.
Training on DE-REL* and training on DE-NEW are separate continuations from the English-trained classifiers. Neither continuation depends on the other. The classifiers can use different settings in each, since continuing training on voted German labels presents a different distribution and training signal from the balanced English set. The test remains the same redefined binary task on GermEval tweets.
Vary class balance in a separate experiment
The authors investigate resampling in a separate design that keeps training and testing within the same language. This is also where their German training splits can supply human-derived labels for fitting. The source English ratio in EN-TRAIN is 7:1, and the original German DE-TRAIN is smaller and has a reported ratio of 4:1. The authors construct variants around 7:1, 2:1, and 1:1, always writing the negative class first.
In the names of the resulting datasets, US means undersampling and OS means oversampling. To construct the 2:1 variants, the authors remove negative examples until the desired class ratio is reached. The balanced undersampled variants likewise remove negatives until the classes are equally frequent. The balanced oversampled variants keep the negatives and duplicate positives to reach equality. The German DE-OS[7:1] setting reproduces the more skewed ratio of the original English training set. The unmodified English set supplies the corresponding English condition at that ratio.
The paper mentions exploratory experiments with SMOTE, which generates artificial minority examples. The authors report poor performance in those initial experiments and use copying for the oversampling results they present. The chosen comparison gives the class ratio a practical meaning. An identical ratio can come from a short training set that discards negatives or a longer one that repeats positives. The two settings can therefore share a ratio while giving the classifier different evidence and different numbers of training entries.
Experiments and results
What the scores measure
The main transfer experiment trains on EN-OS[1:1] and evaluates on DE-TEST. The direct English-trained classifiers are the baselines for the corresponding German continuation runs. The German monolingual experiment answers a separate question about resampling when target-language training annotations are available. Likewise, the English monolingual runs evaluate on English material. Their scores describe within-language learning, with settings selected on the development split for the corresponding language.
The paper reports accuracy, class-specific precision and recall, and F1. Accuracy gives the share of all examples assigned their correct label. For Hate, precision asks what share of the flagged examples are positive according to the test labels. Recall asks what share of the actual positives the classifier flags. Those questions can produce very different answers. A classifier that flags many examples can recover many actual positives while mistakenly flagging a large number of negatives. A very selective classifier can make largely correct positive predictions while missing most actual positives.
F1 combines precision and recall. It penalizes a setting in which one of the two is much weaker than the other. In standard notation, the class-specific measure used in the paper can be written as follows.
F₁ = H(P, R)
F₁ denotes the class’s F1 score. P is precision for that class and R is recall for it. H is the harmonic mean, which weights the combined value towards the lower of its two inputs. The equality states that the F1 score is this mean of the class’s precision and recall.
The paper also reports macro-average precision, recall, and F1. For macro F1, the positive and negative class scores receive equal weight, even though the test contains more negatives. This makes it possible to compare overall performance without giving the larger class the same dominance it has in accuracy. As the bootstrapping results show, macro F1 is still worth reading alongside the separate class scores. It can rise through better performance on the negative class even when any useful positive prediction has disappeared.
Direct transfer from English to German
The CNN shows the clearest example of recall and precision pulling apart. Its Hate recall on DE-TEST is 67.44, and its precision for the same class is 21.94. Its Hate F1 is 33.11. The corresponding noHate recall is 33.56, and the CNN’s overall accuracy is 40.91. The classifier detects many of the German positives, but it does so while assigning Hate to a large share of all the material it sees. The negative score is an essential part of understanding that result.
The BiLSTM makes a different tradeoff. Its noHate F1 on DE-TEST is 82.14, with recall of 86.99. Its Hate recall is 11.38, precision is 19.69, and F1 is 14.43. Its accuracy is 70.44 and macro F1 is 48.28. These scores describe a classifier much stronger at recovering negatives than positives. The higher accuracy relative to the CNN reflects behavior that suits more of the test examples. The CNN’s positive recall identifies a different strength.
The authors report 52.29 Hate precision for mBERT on the same test split. They identify mBERT as the strongest of the English-trained classifiers on the macro-average measures. The results therefore offer several kinds of evidence for transfer. The CNN can retrieve a substantial share of positives, the BiLSTM can recover a substantial share of negatives, and mBERT can make relatively precise positive predictions. Those strengths concern the binary German labels defined by the paper and establish a starting point for comparing each classifier with its adapted version.
What the ensemble writes into its training data
The majority vote on DE-TRAIN yields a 43:1 ratio of predicted noHate to predicted Hate in DE-REL*, compared with the original split’s reported 4:1 ratio under human-derived labels. In the authors’ comparison with those original labels, the ensemble incorrectly sends 573 actual Hate examples to noHate. It sends 42 actual noHate examples in the opposite direction. The imbalance in the voted corpus thus combines a relative shortage of examples marked positive with a substantial number of genuinely positive examples treated as negatives.
The majority-voted version of DE-NEW has a predicted noHate-to-Hate ratio of 45:1. Its similarity to the ratio in DE-REL* is a property of the output of the same ensemble. The authors suggest the similarity could mean that the difference in style between forum samples and tweets presented little obstacle for the ensemble. The distributions alone leave the quality of that transfer open. For DE-NEW, there are no corpus-wide human labels against which to count either type of error.
These distributions help explain why the adaptation stage is a difficult test. By this stage, the classifiers can learn from new German text, but the signal is the ensemble’s estimate of the labels. The predominantly negative distribution can encourage a very conservative positive decision. German inputs may at the same time be useful for learning how the task appears in the target language. The test results reflect the combination of these influences.
Continuing training on automatically labeled GermEval tweets
With DE-REL* as continuation data, the BiLSTM improves its Hate recall from 11.38 to 15.52 on DE-TEST. Its Hate precision reaches 19.97, its Hate F1 reaches 17.47, and its macro F1 reaches 48.77. The authors report a 4.14-point gain in Hate recall and a 3.04-point gain in Hate F1 relative to the English-trained version. Accuracy is 67.89 after this run, while noHate F1 is 80.07. The improvement on positive retrieval comes with poorer scores on the majority class. This is the clearest bootstrapping gain for the BiLSTM when the outcome of interest is positive-class F1.
mBERT’s Hate precision reaches 53.85 after training on DE-REL*. Its Hate recall is 15.14, its Hate F1 is 23.64, and its macro F1 is 51.17. The paper describes the increases over the English-trained run as 1.56 points in Hate precision, 1.27 in Hate F1, and 0.71 in macro F1. The adapted classifier has the highest macro F1 among the classifiers trained on this pseudo-labeled set. Its precision and recall still indicate a selective positive decision.
The CNN predicts noHate for the entire German test split after this continuation. It obtains 78.11 accuracy and 100.00 noHate recall, while all its reported Hate measures are 0.00. Its macro F1 is 43.86, above the 40.09 of its direct-transfer version. The resulting behavior demonstrates why the paper’s different metrics need to be kept distinct. The increase in macro F1 comes with a complete loss of positive detection. This CNN run also shows exactly how misleading the majority class can make a comparison based on accuracy alone.
Macro F1 on GermEval DE-TEST after continuation on automatically labeled GermEval tweets
Multilingual BERT leads the classifiers trained on the voted GermEval labels.
The numbers
| System or setting | Macro F1 |
|---|---|
| CNN | 43.86 |
| BiLSTM | 48.77 |
| mBERT (this paper) | 51.17 |
Continuing training on automatically labeled forum text
When continuing on DE-NEW, the BiLSTM obtains 20.24 Hate precision on DE-TEST. That is higher than its precision on the direct English transfer and after the continuation on GermEval tweets. Its Hate recall is 11.00 and its Hate F1 is 14.25, each below its corresponding direct-transfer value. Its macro F1 is 48.41. The paper’s table places this above the direct-transfer score of 48.28 and below the score of 48.77 from the GermEval continuation. DE-NEW helps the BiLSTM on some measures, with the gain in positive precision accompanied by a small loss in the combined positive score.
mBERT trained further on DE-NEW reaches 52.59 Hate precision, 10.15 Hate recall, and 17.02 Hate F1. Macro F1 is 47.94. The authors report an increase of 0.30 points in positive precision relative to English-only fitting, alongside declines in the other positive measures and in macro F1. The strength of the result after continuation on GermEval tweets therefore depends on which German data supplies the voted labels.
The CNN again produces the all-noHate result, with 78.11 accuracy and 0.00 Hate F1. The larger supply of German forum samples does not correct the collapse in this classifier. On the same evaluation split, the recurrent and transformer architectures retain positive predictions under both continuations. Their results indicate sensitivity to the combination of architecture, voted labels, and German text source.
BiLSTM Hate F1 on GermEval DE-TEST by source of continuation data
Continuing on voted GermEval tweets gives the strongest positive-class result for the BiLSTM.
The numbers
| System or setting | Hate F1 |
|---|---|
| English training only | 14.43 |
| English training followed by DE-REL (this paper) | 17.47 |
| English training followed by DE-NEW | 14.25 |
Resampling within English and German
In the English monolingual experiment, balanced oversampling yields the highest Hate F1 for every architecture among the reported sampling settings. The CNN goes from 23.79 on the unmodified EN-TRAIN setting to 60.26 on EN-OS[1:1]. Its balanced undersampled setting reaches 49.77. The BiLSTM obtains 38.91 for the original setting, 39.18 for balanced undersampling, and 43.18 for balanced oversampling. For both classifiers, preserving the original negative examples and duplicating positives gives the better positive result of the two balanced settings.
The mBERT comparisons are especially pronounced on the English test split. Its Hate F1 is 54.26 with the original EN-TRAIN distribution, 66.67 with EN-US[2:1], and 56.14 with EN-US[1:1]. The score is 97.98 with EN-OS[1:1], where its macro F1 is 98.71. These are results of training and testing on the Stormfront English corpus. The test on GermEval is a separate evaluation of language and domain transfer.
Monolingual mBERT Hate F1 on Stormfront EN-TEST by English training sample
Balanced oversampling gives mBERT its strongest positive-class result on the English test split.
The numbers
| System or setting | Hate F1 |
|---|---|
| EN-TRAIN | 54.26 |
| EN-US[2:1] | 66.67 |
| EN-US[1:1] | 56.14 |
| EN-OS[1:1] (this paper) | 97.98 |
On the German monolingual test, the settings that maximize positive F1 vary. The CNN gets its best Hate F1, 44.33, when trained on DE-US[2:1]. Its strongest macro F1, 64.29, comes from DE-OS[1:1], with a Hate F1 of 42.48. That distinction matters because the favored sampling decision changes with the measure. A practitioner who cares chiefly about the positive class might make a different choice from one using equal-weighted performance across both classes.
The BiLSTM’s strongest German Hate F1 is 35.54 with DE-US[1:1]. Its balanced oversampled setting has a Hate F1 of 35.04 and the highest macro F1 for the BiLSTM on German, 58.88. mBERT favors DE-OS[1:1] on both measures, obtaining 63.70 Hate F1 and 71.81 macro F1. Its corresponding scores with German balanced undersampling are 62.90 and 70.02. The difference between the two balanced options is relatively small for positive F1 in German, especially alongside the results of the English runs.
Taken together, the experiments support a narrower claim than simply preferring a balanced distribution. Training with substantial imbalance can leave the minority class poorly served. The best way of changing the distribution varies with which corpus and classifier are in use, and with the score chosen to judge success. The monolingual results explain why the authors use balanced English oversampling as their source setup. The effect of alternative English sampling settings on German transfer is a separate comparison.
What the ablations show
Resampling changes both frequency and available evidence
The paper’s closest tests of individual design choices are the comparisons between sampling settings and between the two sources of pseudo-labeled German text. It also reports tuning behavior and examines selected labeling errors. The label alignment is part of the definition of the main experiments. There is no controlled performance comparison that keeps the target task fixed and varies only that alignment. Likewise, the vote is tested as a combined procedure, without separate continuation runs based on labels from each voter. Those omissions define which explanations the existing comparisons can support.
The sampling experiment gives a clear case where the class ratio alone cannot predict the outcome. For English, EN-US[1:1] and EN-OS[1:1] are both balanced. Undersampling narrows the set of negative examples. Oversampling preserves that set and raises the number of positive training entries through duplication. The positive F1 advantage of the oversampled version appears across the CNN, BiLSTM, and mBERT. The comparison shows that how balance is obtained can matter as much as the ratio. It leaves the advantage of retaining negative examples entangled with the effects of repeated exposure to positives and a longer training set.
The German CNN results help locate the effect in precision and recall. With the more skewed DE-OS[7:1], Hate recall is 29.44 on DE-TEST. Under DE-US[2:1] it is 52.78, and under DE-US[1:1] it is 55.5. The corresponding positive precision values are 38.48, 38.21, and 36.26. The paper observes that the positive sample count is the same in these training variants. The decline with heavier imbalance is therefore visible even without a reduction in the count of Hate examples. The relative prominence of the negatives changes the behavior, particularly the classifier’s willingness to predict the positive class.
The BiLSTM illustrates another response to the skewed German setting. With DE-OS[7:1], it gets 89.22 Hate recall but 20.19 Hate precision. Its noHate recall is 8.26. When trained on DE-US[2:1], its Hate F1 is 32.59, close to the 32.93 reported under the more skewed setting, yet its noHate recall reaches 84.45. The similar positive F1 scores conceal very different labeling behavior. The authors interpret the skewed-setting result as the classifier overfitting to the minority class. The class-specific measures show what gives that interpretation force: high positive recall occurs alongside very weak negative recovery and low positive precision.
The mBERT runs provide a comparison in which a smaller training corpus still supports stronger minority-class performance than the CNN or BiLSTM achieve. In German, mBERT’s balanced oversampled run reaches 63.70 positive F1, while the best positive scores of the others are 44.33 for the CNN and 35.54 for the BiLSTM. Its within-English performance is nonetheless much higher. The authors discuss the greater amount of English training data as one possible explanation. The languages, text sources, and pretrained representations also differ, so the language comparison offers a hypothesis about dataset size beyond what this design can isolate.
The two German corpora supply different continuation signals
Both bootstrapping runs use English-trained voters and their binary majority decision. Each continuation starts from the English-trained classifier and is evaluated on the same test split. This gives the difference in German training material a clear place in the experimental design. The voted GermEval tweets tend to yield stronger positive-class results than the voted forum samples, particularly for mBERT. The BiLSTM’s positive precision is the exception among the improvements discussed, with its best value in these transfer runs coming from the forum continuation.
Several properties of the training material change together. The GermEval material comes from the same collection as the evaluation tweets. The forum data is larger, prepared from a different kind of online writing, and has a slightly more skewed predicted label distribution. The authors also select different continuation settings where needed. One can therefore conclude that the choice of German corpus and resulting training setup matters. The comparison gives less direct evidence about which property of the corpus accounts for the difference. The paper raises the predicted class ratio and domain as possible explanations.
The error counts on DE-REL* establish that the ensemble’s scarcity of positive predictions is partly an error in reading the corpus. The comparable predicted proportions on DE-NEW establish that the ensemble makes similarly rare positive calls there. They leave open how accurate those calls are. Training on that second corpus is consequently a test of whether the full set of voted labels is useful for the target task. It gives no comprehensive measure of whether the ensemble has correctly labeled the forum itself.
Examples show when words are insufficient
The authors inspect cases where the votes get both kinds of decision right, as well as cases where they disagree with the available annotations or the authors’ judgment. In DE-REL*, they discuss correctly flagged texts that attribute violence to a religious group or endorse prejudicial actions towards people identified by skin color. They also discuss a correctly rejected tweet that uses a word associated with hate and agitation while criticizing the use of such rhetoric. The latter example illustrates the difference between talking about hateful conduct and engaging in it.
A missed positive in DE-REL* concerns a statement about intersex people. The authors suggest that this kind of gender-related example may be underrepresented in the English forum material. It is an explanation for the individual error, given the source setting, rather than a measured pattern for all gender-related content. Its importance for the transfer problem is that a broad positive label can still be taught through a training sample with uneven coverage of the groups that label is supposed to encompass.
The forum examples include passages the authors consider correctly flagged because they demean groups, including one aimed at mixed-race families. They also inspect neutral or descriptive passages where group names or language associated with hateful discourse appear. A report about a Holocaust-denial case is treated as negative by the ensemble and by the authors. Such cases give concrete evidence that the vote can use cues beyond the simple presence of particular terms. The evidence concerns the examples examined and leaves open what the classifier depends on across the rest of the corpus.
Another forum example is a false positive in the authors’ judgment. It refers to powerful or privileged people but, read by itself, contains no group attack that meets their criteria. The paper raises the possibility that expressions about power and wealth are associated with more explicitly hateful passages elsewhere in the source data. The case illustrates how associations can appear to supply the missing hostility. It also makes the case for examining whether a reference to a group is part of a claim about it, or simply part of a descriptive passage.
Tuning helps some runs and leaves the CNN unstable
The initial English training exposes differences in optimization behavior. The authors report that their mBERT runs favor smaller batches than the CNN and BiLSTM. The CNN has a tendency to settle on one label, even when the authors vary its learning rate or class weights. Its best direct-transfer run uses a single epoch and a large batch. The authors include it in the ensemble because at that stage it produces both labels and has positive recall on the target test. That initial behavior gives a reason to see whether its predictions contribute a different signal to a vote.
During continuation, changes to dropout and class weighting fail to restore a useful spread of CNN predictions. The BiLSTM retains a spread of predictions under settings that share some of the CNN’s characteristics. mBERT can also continue to recognize positives. The authors discuss weak initial CNN training and amplification of preexisting class preferences as possible causes. These interpretations fit the observed instability and the extreme skew of the voted labels. The reported comparisons leave their separate effects unresolved. In particular, the CNN’s collapse after adaptation cannot establish that a CNN’s vote is always harmful or that excluding it would have improved the labels produced by this ensemble.
Limitations
Limits the authors identify
The authors frame the language pair as an initial setting. English and German provide a test in which cross-language representations, separate corpora, and incompatible annotations all matter. The paper calls for testing pairs with greater syntactic differences. Its evidence concerns transfer from English to German with the selected corpora. The study also leaves the cultural dimension for further investigation. Similar positive categories in the annotation instructions leave room for differences in who is attacked, how attacks are expressed, and what background knowledge a reader needs to recognize them.
The authors also see a limit in the need for manual label modification. Their mapping is feasible because Hate and Abuse have enough overlap to justify treating them as corresponding categories. Some available resources may have positive labels whose scope cannot easily be reconciled with the intended target task. The authors identify methods for combining differently annotated datasets without manual conversion as future work. The present study shows the operation of one reasoned mapping between selected resources.
The sampling conclusions are likewise qualified. The paper suggests that keeping the majority examples through oversampling may be advantageous when the majority class is much larger. It asks for more investigation into how dataset size and class balance affect minority-class performance. The two collections differ in more than size and initial class ratio. Their results motivate that relationship as a research question and give practical examples of how it can appear.
The paper explicitly discusses the role of hyper-parameters and the possibility that classifiers can reinforce biases in the labels they generate. The CNN’s behavior makes the point concrete. The authors leave for future work the question of why the BiLSTM and mBERT are less prone to collapsing in these runs. They also identify the lack of complete human annotation for DE-NEW and note the privacy restrictions on public access. The selected qualitative examples therefore bear a different kind of evidence from the comparison with original annotations in DE-REL*.
Limits visible in the experimental design
The first qualification concerns target supervision. The cross-lingual classifiers are fitted on English human annotations and, in the adaptation experiment, on automatically labeled German text. The labeled German development set is used for hyper-parameter selection. A deployment in which no German examples can be annotated for either training or development would also need another basis for selecting settings. The study does not measure the results under that tighter resource constraint. Referring to the German supervision by its role in development and fitting makes the comparison easier to interpret.
The second concerns what the binary task keeps. The relabeling deliberately removes the distinction among GermEval Other, Insult, and Profanity for the purpose of the classifier’s output. The original shared task asked different questions, including whether text is offensive more broadly. A score in this study therefore applies to the reduced group-directed hate task. It cannot establish performance on the full GermEval taxonomy. Similarly, the mapping of Stormfront Relation into Hate carries a contextual judgment into sentence-level training. Some inputs may lack the very context that gave rise to the label, while the examples placed in noHate from Skip introduce a different kind of ambiguity.
The third qualification concerns what caused the performance differences. Changing languages in the main comparison also changes corpora and platforms. The authors observe short informal messages in the English forum, and they describe length-based and format-based screening to bring the samples closer to tweets. A classifier can still encounter different communities, topics, conventions, and that change in source alongside the language change. Direct-transfer performance gives the outcome of that combined shift. It cannot attribute a particular error to language, platform, topic, or annotation policy individually.
Likewise, differing architectures and representation pipelines are tested together. mBERT’s performance reflects its architecture, multilingual pretraining, and the particular training design. The CNN and BiLSTM use FastText vectors mapped with MUSE and have their own tuning. The results can compare these setups as used. They leave open the effect of changing the representation while holding all other parts of a classifier fixed. An apparent advantage in the monolingual sampling results therefore applies most directly to the complete setup that produced it.
The pseudo-label experiments also combine several quantities that are worth distinguishing. A German corpus can be large, contain useful target-language expressions, and still have a small pool marked positive by the voters. High label agreement can come from consistent identification of negatives or from a shared reluctance to flag positives. The vote supplies a convenient training target; the DE-REL* error counts show that its label distribution is an imperfect account of the underlying data. The paper does not compare uniform voting with confidence-based selection, rebalancing the voted data, or using only individual voters. Its modest gains for some classifiers establish that the particular ensemble procedure can help under these conditions.
The final qualification concerns breadth of evaluation. The paper uses annotated test examples and reports precision, recall, and F1 for its mapped labels. The example analysis identifies suggestive failure modes, including contextual ambiguity and uneven coverage of targets. It does not quantify performance for each kind of target or each type of group-directed attack. Nor can it establish how a moderation decision would turn out when a human reviewer had broader conversation context. The results characterize sentence- or tweet-level prediction under the paper’s annotation choices.
What came after
The later paper MSMO-ABSA cites this study in work on cross-lingual aspect-based sentiment analysis. That task concerns sentiment associated with particular aspects of what is being discussed, shifting the application away from the binary decision about group-directed hate. The later paper’s title identifies multi-scale and multi-objective optimization as its approach. The citation establishes a connection across applications of cross-lingual classification. The specific role of Bigoulaeva and colleagues’ label mapping, majority vote, or resampling procedure in that later approach is unspecified.
Cite
Cite as Irina Bigoulaeva, Viktor Hangya, Iryna Gurevych and Alexander Fraser. 2023. Label modification and bootstrapping for zero-shot cross-lingual hate speech detection. Language Resources and Evaluation.
@inproceedings{bigoulaeva2023label,
title = {{Label modification and bootstrapping for zero-shot cross-lingual hate speech detection}},
author = {Irina Bigoulaeva, Viktor Hangya, Iryna Gurevych and Alexander Fraser},
booktitle = {Language Resources and Evaluation},
year = {2023},
doi = {10.1007/s10579-023-09637-4},
url = {https://doi.org/10.1007/s10579-023-09637-4}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bigoulaeva-2023-label-modification-bootstrapping-zero-shot/