Cross-Lingual Transfer Learning for Hate Speech Detection
Paper · 2021 · Irina Bigoulaeva, Viktor Hangya and Alexander Fraser
Summary
A system trained to recognize hate speech needs examples of the behavior it is expected to detect. Bigoulaeva and colleagues ask whether those examples can come from English when the system will be used on German text. The question involves more than vocabulary. A source dataset and a target dataset can draw different boundaries between hate speech, insults and profanity. The authors use annotated English sentences from the Stormfront forum for training and tweets from GermEval for German evaluation. They align the label schemes around attacks on groups, with GermEval’s Abuse category supplying the German positive examples.
The transfer uses bilingual word embeddings, numerical representations of words in a shared English–German space. A classifier learns from English examples and then processes German words represented in that same space. The authors also test whether it helps to continue training on German text to which the classifiers themselves have assigned labels. An ensemble of English-trained neural classifiers labels German examples, with agreement among all members used to select training material. The authors try this with GermEval tweets whose original labels are set aside and with material collected from a German-language Stormfront thread. Annotated German development data guides the choice of settings throughout, including in the English-only training condition.
For direct transfer, the linear support vector machine gives the highest Hate F1 on the German test split, at 31.80, while the BiLSTM2 neural configuration gives the highest accuracy, at 72.88. They reach those scores by making very different kinds of errors. Continuing training on automatically labeled GermEval tweets raises reported test macro F1 for three of the four neural configurations. BiLSTM1 reaches 51.77 in that experiment, with Hate F1 of 32.51. The German forum experiment also raises reported macro F1 for three configurations. Its highest value, 55.02 for BiLSTM2, comes with Hate recall of 100.00 and noHate recall of 0.25. The per-class results matter because a higher aggregate score can accompany a classifier that assigns nearly everything to the same category.
The paper shows that German text can become training material without requiring people to assign a task label to each adaptation example. It also shows how sensitive the outcome is to the choice of training source, classifier and settings. On the German tweets with existing labels, unanimous agreement among the classifiers still lets many errors through. That finding gives the transfer experiment a second purpose. It tests both how far English supervision can travel and what happens when the predictions from that first transfer become supervision for the next stage.
Deep dive: Cross-Lingual Transfer Learning for Hate Speech Detection
The study tests whether English hate speech annotations can train German classifiers and whether automatically labeled German text improves them. · about 35 minutes to read
The problem and its context
What counts as hate speech
The paper treats hate speech detection as a form of text classification. Given a piece of text, the system assigns a category from a fixed set. The practical motivation is the difficulty of reviewing online posts at the scale and speed at which they appear. The authors describe potential harms to readers as well as the burden on moderators who repeatedly encounter disturbing material. Human review also involves judgment. People following the same guidelines can disagree about individual cases, which makes the categories themselves part of the research problem.
The distinction between hate speech and offensive language determines which judgments the system has to learn. Profanity can accompany an attack, but people can also use it without hostility. An insult may be aimed at an individual without making a claim about any group. Conversely, a message can demean a group through implications that require a reader to understand the situation. The presence or absence of rude words is therefore an unreliable way to draw the boundary. The paper takes this distinction from earlier research, including Automated Hate Speech Detection and the Problem of Offensive Language.
The English annotations come from Stormfront, a white-nationalist forum. The definition used for that dataset centers on deliberate attacks tied to the identity of a group. The paper illustrates its breadth with English examples involving race and gender. It also gives examples from the same venue that receive the negative label, including approval of a video and a description of an individual in a film. The place where a sentence appears can help explain why it was collected, while the label still concerns what the sentence expresses. That distinction is especially important here because the source venue has a strong thematic identity of its own. The dataset was introduced in Hate Speech Dataset from a White Supremacy Forum.
GermEval starts from a broader question about offensive German tweets. It distinguishes ordinary material from offensive material, then separates offensive tweets into categories for insult, profanity and abuse. Its abuse definition concerns a target understood as a member or representative of a group. The target is assigned negative traits that are presented as characteristic of the group. The possible groups are left open. That gives the authors a reason to use Abuse as the closest counterpart to Stormfront’s Hate, even though the German task was designed around a different set of labels.
This choice makes the target of evaluation more specific than offensive-language detection. A tweet can be objectionable and still fall into the negative class in the authors’ experiment. For example, a tweet annotated only as an insult contributes to noHate after the conversion. An accurate prediction for that tweet is a decision about the narrower category under evaluation. It carries no broader judgment about whether the tweet is acceptable. Keeping that distinction in view is necessary when reading both the test results and the examples of classification errors.
Why more data in one language can help another
For this study, data scarcity means a shortage of examples annotated for a particular task. The authors describe German as generally well resourced, yet much less well supplied than English for hate speech detection. The catalogue they cite lists 25 English datasets with 800,000 examples in total. It lists four German datasets totaling around 19,500 examples. The paper gives Arabic as the next most represented language in the catalogue, with just over 48,000 examples. These are counts from the research landscape the authors describe, and the datasets in those totals use different definitions.
The German examples make clear why the total size of a language’s annotated collection can exaggerate what is usable for a given experiment. One dataset concerns abuse aimed at foreigners. Another concentrates on refugees. The paper also discusses collections whose annotations do not restrict the target to a single group. A corpus designed around one target can offer clear examples within its scope, but its annotations answer a different question from a corpus that applies one category across many targets. Earlier work on the reliability of refugee-related labels is one of the resources the authors situate in that landscape. Measuring the Reliability of Hate Speech Annotations
In linguistic annotation, a label records a judgment made under a particular set of instructions. When the instructions change, the same label name can hide a change in what annotators were asked to recognize. In this experiment, the authors could compare definitions and decide that the German abuse category was close enough to the English hate category to make transfer worth testing. They also had to decide what to do with categories that lacked a direct match. The shared binary task is thus an experimental construction, grounded in both sets of guidelines.
The transfer belongs to multilingual and cross-lingual NLP. English is the source language because its annotated examples supply supervision, meaning the reference labels from which the classifier learns. German is the target because the predictions whose performance the paper measures are on German text. The transfer also crosses genres. The source examples are forum sentences, while the final evaluation uses tweets. A difference between training behavior and test behavior can reflect the language change, the genre change or the way the two datasets define and sample hate speech.
The choice of German has a practical benefit for the experiment. It lets the authors ask what happens when the German adaptation examples are treated as unannotated while still having a labeled German benchmark for tuning and evaluation. With the GermEval training portion, it also lets them look back at the labels they withheld and check what their automatic annotation procedure got wrong. The German forum collection serves a different purpose. It tests adaptation when new material is collected from the web and no corresponding set of gold labels is available for a corpus-wide audit.
The routes previous studies took
The authors place their classifiers in an established tradition of hate speech and offensive-language detection. Prior work used support vector machines, convolutional neural networks and recurrent neural networks. Earlier GermEval entries give the paper more specific architectural starting points. Xi and colleagues used a convolutional approach for the broad offensive-language task. Wiedemann and colleagues combined convolution with a bidirectional recurrent layer and performed strongly on GermEval’s finer categories. The simpler of the current paper’s neural architectures follows the sentence classifier in Convolutional Neural Networks for Sentence Classification.
Some earlier cross-language studies used English training to initialize a system and then trained it on labeled target-language text. The paper describes Ranasinghe and Zampieri as following that route with a transformer-based architecture. It describes Stappen and colleagues as testing direct transfer and a condition that adds a small labeled target sample. In earlier work on German, Wiegand and colleagues combined annotated English and German data using bilingual representations. These studies illustrate different points at which target-language labels can enter a transfer experiment. Multilingual Offensive Language Identification with Cross-lingual Embeddings
Mathur and colleagues studied Hinglish, in which Hindi and English can appear together. As described by Bigoulaeva and colleagues, the earlier study trained neural classifiers on English, then continued training them on Hinglish. That procedure outperformed training on Hinglish alone. It supplies a precedent for initializing with English and adapting afterward. The current paper changes where the labels for that second stage come from. Classifiers trained on the English annotations generate the German training labels, while an annotated German development split remains available to judge choices about how to train.
The paper also discusses translation as a way to create examples across languages. Ghadery and Moens used automatic translations of an English source dataset to build multilingual training material for a multilingual BERT system. Bigoulaeva and colleagues instead use shared word representations, so their target-language inputs remain German passages taken from their original collections. The cross-language connection is made at the level of the numerical representation supplied to the classifier. This avoids requiring a system that translates each source sentence for the task. BERT
The immediate precedent for adding new examples comes from work on named entity recognition, the task of identifying and categorizing mentions such as names. The authors describe Kozareva’s method as having classifiers vote on unlabeled examples, then retraining with the expanded data. They also cite a variant in which active learning helps decide what to annotate. Their own procedure combines agreement-based selection with continued training of the English-trained neural classifiers. The connection to that earlier research is the use of predictions to obtain more supervision where annotations are scarce. A Little Annotation does a Lot of Good
The method, step by step
Build a shared classification task
The experiment begins with a decision about which English and German labels can stand for the same outcomes. The authors use Hate as the positive label and noHate as the negative one. Calling a class positive identifies the outcome whose detection is of primary interest. It gives the same role to the English source label and the German label the authors derive from Abuse. Within GermEval, Other, Insult and Profanity all become noHate. Consequently, the German test includes examples of offensive language that the classifier is expected to keep outside the hate class.
The English dataset also needs conversion. Its ordinary binary labels already match the desired task, but some examples carry Relation or Skip. The Relation category marks sentences whose hateful meaning depends on surrounding material. The authors move 168 such English comments into Hate, retaining the original contextual judgment in a binary label. They assign 92 Skip comments to noHate. Those were originally set aside because they were in another language or lacked enough usable content for the binary judgment. The conversion keeps these cases in the corpus and gives the classifier a definite training outcome for each.
The Relation decision has a useful implication for understanding the input. The label can reflect information recognized in context during annotation even though the classifier operates on the text of the example. That creates a difference between the evidence that supports the label and the evidence available to the classifier. The conversion makes these examples usable in the chosen training format, but an example that depends heavily on surrounding material can still be difficult to classify from its words alone. The binary target is consistent across examples as a file format and can still vary in how directly it is supported by the individual sentence.
The English training distribution initially favors noHate. The authors report that their early systems could respond to the imbalance by predicting that category for every example. They counter it through oversampling. The training file contains repeated copies of positive examples so that the classifiers encounter Hate much more often while learning. The resulting English set, EN-OS, has 9,580 noHate entries and 9,548 Hate entries. Repetition changes the contribution of available positive examples to training while leaving the set of distinct positive passages unchanged.
The German division establishes which material can influence which decision. The authors reserve the final 809 examples from GermEval’s official training set as DE-DEV. They use those annotated examples to choose settings such as class weights and training duration. The remainder, DE-REL, supplies tweets for automatic labeling in the adaptation stage. The official test split becomes DE-TEST after the binary conversion. It is the shared endpoint for the English-only and German-adapted comparisons. Using the same endpoint makes it possible to trace how the predictions change after adaptation.
English-to-German transfer and adaptation
The steps in order.
Give both languages a common numerical representation
A text classifier works with numerical inputs. The authors use a vector for each word, meaning an ordered collection of values that the classifier can combine with the values for other words. When vectors are learned separately for different languages, the coordinates used to describe an English word and a German word need an alignment before the same classifier can interpret them in the same way. The paper therefore starts with separate English and German representations and maps them into a shared space.
The separate representations are trained on the English and German NewsCrawl corpora with FastText SkipGram. The newspaper material spans 2007 to 2013, and the authors preprocess it with Moses. These collections provide text from which to learn how words are represented. The hate speech judgments come from the forum annotations, so the resources serve distinct purposes. FastText supplies word representations that make use of information below the level of whole words, as described in Enriching Word Vectors with Subword Information.
The authors then use MUSE to align the two sets of vectors. They report using the tools’ default settings. The intention is for corresponding or related words to occupy compatible positions across English and German. A relationship learned using the English coordinates can then be applied to coordinates looked up for German input. The alignment supplies the classifier with a common vocabulary of numerical features, without needing an English translation of each German tweet. The alignment method comes from Word Translation Without Parallel Data.
The shared space addresses a particular obstacle in transfer. A classifier built around literal English words would have no direct numerical counterpart for many of its features when it encounters a German tweet. An aligned space gives the German input a representation in terms the classifier can process. The quality of that representation for this task still depends on whether the alignment preserves relevant distinctions and whether the patterns learned from English apply in German. For instance, a word representation gives the system evidence about the words in a sentence, while the label may require a judgment about whose viewpoint a sentence conveys or whom it attacks.
Learn from sequences or from an average
The linear support vector machine, or SVM, is the baseline. For each text, the authors average its word vectors to obtain a single vector for the example. The SVM learns a linear boundary in that space. On the German side, the same averaging operation yields an input on which the learned decision can be applied. Texts with the same set of word occurrences have the same average regardless of their order. The baseline can exploit which word representations are present and how they combine overall, while the averaging operation removes the sequence in which they appeared.
The authors mention earlier SVM systems that performed well with features drawn from character sequences, word sequences or lexicons. They select an embeddings-only SVM because many of the earlier features are tied to the language in which they were designed. Using the bilingual representations also brings the baseline and neural approaches into a common comparison. The approaches receive the same kind of cross-language input, but they can use it in different ways. The SVM receives a summary of the whole example, while the neural classifiers process a sequence of word vectors.
The first neural architecture is a convolutional neural network, or CNN. Each filter in its convolution layer examines a stretch of the input and produces a response to a pattern in that stretch. As the filter moves through the text, it can react to a pattern wherever it occurs. Global max pooling retains the largest response for each filter across the text. A dense layer uses the pooled responses to make the decision. Word order within the stretches examined by the filters can therefore affect classification, although max pooling retains the strongest response instead of its position.
The CNN uses the paper’s bilingual vectors as its sole form of word embedding. The authors hold them fixed during classifier training. The trainable classifier can adapt to combinations of features useful for the English labels while the word representations remain anchored in the space used for German transfer. The authors take the remaining architectural defaults from the sentence CNN implementation they cite. In the reported experiments, the saved CNN configurations vary in their original training duration, which later makes it possible to see whether adaptation behaves the same way after different amounts of English training.
The other neural architecture processes context before convolution. A bidirectional long short-term memory layer, or BiLSTM, processes the sequence in both directions. In broad terms, it lets the representation of a position depend on the surrounding sequence before the convolutional filters look for patterns. The layer has 100 units. Its output passes to convolution with feature maps of 200 units each and kernel sizes of 3, 4, and 5. A kernel size describes the width of the stretch considered by that convolution. Global max pooling follows each convolution, and a dense layer of 100 units receives the pooled outputs.
These architectures supply different options for the same transfer mechanism. The SVM uses an average, the CNN can detect local patterns, and the BiLSTM-based classifier applies local filters after contextualizing the sequence. In each case, English examples teach the classification rule and the bilingual word representations allow German text to enter it. The comparison therefore asks whether a more elaborate way of combining those representations produces better German predictions under the available supervision. The final tests also ask how each neural option responds when the initial English supervision is supplemented with automatically labeled German text.
Choose the initial settings on German development data
The authors fit all the initial classifiers to EN-OS. They then use DE-DEV for hyper-parameter selection. A hyper-parameter is a setting chosen for the training procedure, such as how long to continue training or how heavily to penalize an error on each class. An epoch is a pass through the training dataset. The learning rate controls the size of training updates, and dropout reduces reliance on particular internal features by randomly suppressing activations during training. Class weights affect the importance the training procedure assigns to examples with each label.
Oversampling and weighting influence training in different ways. Oversampling changes how often an example from the minority class appears. Weighting changes the effect of examples of a given class when the classifier learns from them. The paper reports that even with a nearly balanced English file, the wrong weights could produce predictions on the German development set that collapsed into a single category. The authors chose settings by looking at how both classes performed. A setting could therefore be preferable even when another gave a higher aggregate development score.
The SVM’s selected noHate and Hate weights are 0.17 and 0.83. For the CNNs, the corresponding weights are 0.6 and 0.4. The configurations called CNN1 and CNN2 train for 30 and 40 epochs on EN-OS, respectively. Both use dropout of 0.7. The reported learning rate for the English-trained neural configurations is 10⁻⁴. The BiLSTM configurations both train for 15 epochs and use dropout of 0.7, with noHate weighted at 0.2 and Hate at 0.8. The authors associate the shorter BiLSTM schedule with the tendency of that architecture to overfit in their experiments.
After selecting the settings, the authors retain CNN1, CNN2, BiLSTM1 and BiLSTM2. Together they form an ensemble, meaning a group of classifiers whose outputs can be used in a shared decision. Here their joint decision determines which German predictions are suitable for the next training stage. The paper reports identical values for the listed English-training hyper-parameters of BiLSTM1 and BiLSTM2. Their separate test scores show that they make different predictions, but the table offers no listed setting that explains the difference. The linear SVM remains a reference for direct transfer. The adaptation procedure is designed around continuing neural training and controlling its updates through the learning rate.
Let agreement select German examples
The first adaptation experiment starts with DE-REL, the portion of GermEval’s training set kept apart from development. The authors set its original labels aside and apply the English-trained ensemble to the tweets. Each neural classifier returns a binary prediction for each item. A tweet enters the new corpus only when all the classifiers assign the same outcome. The agreed prediction becomes its label in DE-REL*, the name of the retained subset. The original labels can later be used to assess those decisions, separately from training.
Unanimity is stricter than selecting the label supported by the largest number of classifiers. A disputed tweet supplies no training example even if most of the classifiers favor one category. This changes the number of examples available as well as which examples survive. Agreement is a property of the classifiers, so its value depends on whether their errors differ. The members of the ensemble share the English annotations and the bilingual representation. They can therefore agree when a pattern is recognized consistently and when a common blind spot leads them to the same wrong answer.
The second adaptation source is DE-NEW, collected from a German-language Stormfront thread containing around 5,500 posts at the time of the experiment. The authors use Scrapy to extract material and treat paragraphs separated by newlines as potential individual samples. The forum gives them a source closer in style and subject matter to their English training material. The resulting text is still different from GermEval’s tweets, which remain the final test. This dataset lets the authors see what changes when the German adaptation source resembles the English forum rather than the German evaluation venue.
The authors manually prepare the crawled text to make the examples more comparable in format to tweets. They remove material such as links, isolated fragments, lists and identifiable non-German text. They also remove quotations from external materials over 1000 characters. Shorter quotations, brief news passages, individual lines of an interview and sentences mixing German with English can stay. The paper notes that English expressions occur in the GermEval tweets as well. Where the extraction splits a phrase that clearly belongs together or leaves unwanted spaces inside a word, the authors repair it.
The collection after preprocessing contains 6,586 text samples. That count describes the prepared corpus, before any would-be count of agreed predictions. The authors apply their ensemble to this new material and examine selected assigned labels by hand, using the Stormfront definition of hate speech as their guide. DE-NEW has no benchmark set of human labels equivalent to the original DE-REL annotations. The paper gives the size of the prepared German forum corpus, while the GermEval adaptation is the one for which it provides a full comparison of retained automatic labels with an existing reference.
Continue training from the English classifiers
The authors adapt each neural classifier individually. They load its English-trained state and continue training with the automatically labeled German examples. This is fine-tuning. The English training provides the starting behavior, and the later updates give the classifier a chance to respond to the language and features of the adaptation collection. The ensemble is used to produce the training labels. The final test scores belong to the individual classifiers after they have learned from those labels.
With DE-REL*, each neural classifier continues training for 3 epochs. The authors choose the other settings using class-specific and macro F1 on DE-DEV. All configurations receive adapted class weights. For example, BiLSTM1 uses weights of 0.08 for noHate and 0.92 for Hate, along with dropout of 0.8 and a learning rate of 10⁻⁷. BiLSTM2 uses weights of 0.1 and 0.9, dropout of 0.4 and a learning rate of 10⁻⁶. These settings belong to the GermEval adaptation and differ even though the classifiers start from the same source corpus.
For DE-NEW, the selected CNN schedules run for 4 epochs, use dropout of 0.2 and use a learning rate of 10⁻⁷. Their class weights match their respective DE-REL* settings. The two BiLSTM configurations use a learning rate of 10⁻¹², dropout of 0.9 and weights of 0.01 for noHate and 0.99 for Hate. BiLSTM1 continues for 2 epochs and BiLSTM2 for 3 epochs. The authors report that settings more like those used for the CNNs caused the BiLSTMs to overfit the new forum data and predict Hate throughout the German development set. The retained schedules are the settings the authors selected in response to development behavior.
Experiments and results
The data behind the scores
The Stormfront distribution table lists 9,580 English noHate examples and 1,364 English Hate examples for the binary categories it reports. The oversampled EN-OS file is the training input for the direct-transfer experiment. On the German side, GermEval supplies development, adaptation and test material. Keeping the English training file separate from the German test allows the first experiment to ask how far the classifiers transfer before they receive any German examples as supervised training inputs.
In the original German training split, GermEval has 3,321 examples labeled Other, 1,022 labeled Abuse, 595 labeled Insult and 71 labeled Profanity. On its official test split, the corresponding counts are 2,330, 773, 381 and 48. Those are the counts under the original fine-grained labels. They describe the mixture from which the authors create the narrower hate speech task. The evaluations that follow use the binary labels, with abuse standing on its own as the positive class.
The binary German development set, DE-DEV, contains 642 noHate examples and 167 Hate examples. DE-REL contains 3,345 noHate and 855 Hate examples under the benchmark’s converted labels, which are set aside when the data is prepared for bootstrapping. DE-TEST contains 2,759 noHate and 773 Hate examples. Evaluation therefore takes place on a distribution in which the negative class is much more common. The German test distribution differs both from the near balance of EN-OS and from the distribution of examples and labels retained through unanimous predictions.
Accuracy is the share of test examples assigned the correct label. Precision for Hate asks how frequently a prediction of hate speech agrees with the reference annotation. Recall asks how much of the annotated hate speech the classifier identifies. F1 combines precision and recall through a harmonic mean, giving a low value on either measure substantial influence on the result. Each can also be evaluated for noHate by treating that class as the one being tracked. This class-by-class view makes it possible to see why a classifier’s accuracy rises or falls.
The paper also reports macro-average precision, recall and F1. The per-class F1 entries and the reported macro F1 entries warrant separate attention. The reported macro F1 can diverge substantially from the arithmetic mean of the displayed class F1 scores. In particular, the highest reported macro F1 appears beside a near-zero noHate F1. The paper’s numbers are compatible with taking the harmonic mean of the macro precision and macro recall in that row. Reading the aggregate alongside the class-level results preserves the distinction between an improvement on the reported aggregate and an improvement across both categories.
Direct transfer from English
The linear SVM obtains 31.80 Hate F1 on DE-TEST after training on EN-OS. It retrieves 55.76 of the annotated Hate class by the table’s recall measure, with Hate precision of 22.24. Its noHate recall is 45.38 and its accuracy is 47.65. This is the strongest direct-transfer result on the positive class by F1, while the accuracy suggests that its readiness to predict Hate also generates many errors elsewhere. The averaged bilingual representations are enough to make the baseline competitive on the positive category in this particular comparison.
Direct transfer from EN-OS to DE-TEST by Hate F1
The linear SVM leads on the positive class before German adaptation.
The numbers
| System or setting | F1 |
|---|---|
| Linear SVM (this paper) | 31.80 |
| CNN1 | 26.95 |
| CNN2 | 26.34 |
| BiLSTM1 | 23.99 |
| BiLSTM2 | 12.91 |
CNN1 obtains 59.17 accuracy on DE-TEST and CNN2 obtains 61.04. Their Hate precision is 22.15 and 22.47, respectively, while their Hate recall is 34.41 and 31.82. Both therefore identify a smaller share of the annotated hate speech than the SVM at broadly similar precision. Their noHate recall is higher, at 66.11 for CNN1 and 69.23 for CNN2. The results show where the increase in accuracy comes from. The CNNs fare better on a category with greater representation in the German test set.
BiLSTM1 has direct-transfer accuracy of 63.22 and noHate recall of 73.50. Its Hate recall is 26.52 and its Hate F1 is 23.99. BiLSTM2 goes further in the same direction. With accuracy of 72.88, it leads the direct-transfer accuracy column, and it attains noHate recall of 90.72. Its Hate recall, however, is 9.18, with Hate precision of 21.71. The added accuracy therefore reflects strong recovery of the majority category alongside very limited recovery of the minority category.
The direct-transfer macro F1 scores are 50.57 for the SVM, 50.23 for CNN1, 50.47 for CNN2, 50.01 for BiLSTM1 and 49.93 for BiLSTM2. These scores look much closer together than the accuracy and Hate F1 results. A reader comparing only the macro F1 column would miss how differently the classifiers distribute their decisions between the categories. Precision on Hate changes relatively little across them, while recall on that class changes substantially. The table consequently supplies several answers to what it means to do best, depending on whether the emphasis is overall correctness, positive-class performance or the reported aggregate.
Agreement on German tweets
The DE-REL* confusion matrix asks whether the retained automatic labels match the hidden GermEval annotations. Among the selected tweets whose reference label is noHate, the ensemble assigns noHate to 1,490 and Hate to 412. Of the selected tweets annotated as Hate, the ensemble assigns Hate to 30 and noHate to 113. Each entry counts tweets all the classifiers agreed on. The disagreement in this matrix is between that shared prediction and the benchmark annotation.
Of the tweets retained by the unanimity rule, 1,902 have the reference label noHate and 143 have the reference label Hate. These totals describe the gold composition of the selected subset. In particular, 143 is the number of retained examples that GermEval regards as abusive under the binary conversion. It is a different quantity from the number of examples assigned the positive automatic label. That distinction matters when considering what the neural classifiers actually see in the fine-tuning input. The automatic positive examples include both 30 agreements with the positive benchmark label and 412 disagreements with a negative benchmark label.
This audit shows the difficulty with treating agreement as a substitute for annotation. Several classifiers can independently arrive at a shared label that misses a benchmark distinction, yet still have the example retained as useful training material. The results also leave room for some adaptation benefit. A German tweet can expose the classifier to target-language phrasing and the type of text used in evaluation, even when the automatic supervision is imperfect. The question the next experiment answers is whether this combination changes scores on separate German tweets.
Fine-tuning on the German tweets
After fine-tuning on DE-REL*, CNN1 moves from 50.23 to 50.41 in reported macro F1 on DE-TEST. The authors describe this as an improvement of 0.18 points. Its Hate F1 is 25.66 after adaptation, compared with 26.95 before it, while its noHate F1 rises to 74.43. CNN2 reaches macro F1 of 50.20 after adaptation, down by the reported 0.27 points. Its Hate recall falls to 18.24 and its Hate F1 to 20.04, while noHate F1 reaches 80.11. The two CNN outcomes differ on the aggregate, but both lose positive-class F1.
BiLSTM1 gives the strongest macro F1 after adaptation with the German tweets, at 51.77 on DE-TEST. The authors report a gain of 1.76 points. Its Hate F1 reaches 32.51, with recall of 53.69 and precision of 23.31. Its noHate F1 falls to 61.80 and its accuracy to 51.22. This is a clearer change in detection of annotated hate speech than the CNN1 macro gain. The configuration finds more of the positive class, while the cost shows up in performance on the negative class and in the overall accuracy.
BiLSTM2 improves by a reported 1.45 points to 51.38 macro F1. Its Hate F1 rises to 24.23, supported by Hate recall of 24.45 and precision of 24.02. Its noHate F1 is 78.52, and its accuracy is 66.53. Relative to the initial BiLSTM2, this is a shift towards recovering the positive class and away from its earlier strength on the negative class. BiLSTM1 and BiLSTM2 both improve on reported macro F1, but their resulting error profiles remain distinct. The stronger gain for BiLSTM1 comes with a larger redistribution of performance between the classes.
Fine-tuning on the German forum material
In the DE-NEW experiment, CNN1 reaches test macro F1 of 50.05. The paper reports a decrease of 0.18 points relative to its English-only result. CNN2 reaches 50.51, improving on its initial 50.47. Both CNNs have low Hate recall after adapting to the forum text, at 9.70 for CNN1 and 9.06 for CNN2. Their noHate recall is 90.36 and 91.59, respectively. CNN2’s accuracy of 73.53 is the highest in the reported fine-tuning table, while the same setting has Hate F1 of 13.02. This is an example of a configuration whose overall correctness gives little indication of how many positive cases it recovers.
BiLSTM1 reaches reported macro F1 of 50.94 on DE-TEST after using the German forum samples. Its Hate F1 is 31.72, with recall of 53.04 and precision of 22.63. On these measures it behaves more like the version adapted to DE-REL* than either of the forum-adapted CNNs. Its accuracy is 50.03 and its noHate F1 is 60.59. Both German sources therefore move this classifier towards substantially greater detection of the positive class compared with its original English-trained result.
BiLSTM macro F1 on DE-TEST by German adaptation source
The forum-adapted BiLSTM2 leads on reported macro F1 and has sharply uneven recall across classes.
The numbers
| System or setting | F1 |
|---|---|
| BiLSTM1, English training only | 50.01 |
| BiLSTM1, GermEval adaptation | 51.77 |
| BiLSTM1, German forum adaptation | 50.94 |
| BiLSTM2, English training only | 49.93 |
| BiLSTM2, GermEval adaptation | 51.38 |
| BiLSTM2, German forum adaptation (this paper) | 55.02 |
BiLSTM2 after DE-NEW is the most extreme result. Its reported macro F1 is 55.02 and its accuracy is 22.08. It has Hate recall of 100.00, Hate precision of 21.93 and Hate F1 of 35.97. For noHate, it has precision of 100.00, recall of 0.25 and F1 of 0.51. That means its rare noHate predictions are correct, while nearly all of the genuine noHate tweets are sent to the other class. Its perfect Hate recall means it finds all annotated positives, while its low precision means that genuine positives account for only a small share of the examples it flags.
The prose discussion attributes this configuration’s aggregate result to high Hate precision and high noHate recall. The class entries in the results table show the measures the other way around. High recall occurs for Hate, and high precision occurs for noHate. The table thus supports a more specific reading of the gain. This setting pairs exhaustive positive detection with extremely narrow negative prediction. It obtains the highest reported aggregate, but the per-class scores give a very different picture of coverage across the two labels.
The results from both adaptations favor a conditional conclusion. Continuing training on automatically labeled German material can change useful aspects of test performance. BiLSTM1’s greater Hate recall with either adaptation source is an example. Other changes are harder to call improvements without saying which errors matter. CNN2 fine-tuned on the forum improves its reported macro F1 while its Hate F1 decreases. BiLSTM2 takes the reported macro F1 much higher by operating at an extreme class balance. The experiment therefore demonstrates movement in German test behavior more consistently than it demonstrates simultaneous improvement on both categories.
What the ablations show
There is no formal component-by-component ablation. The paper instead compares direct transfer with fine-tuning, tests different German adaptation sources and training settings, and examines individual automatic labels. These comparisons help locate where behavior changes. Because fine-tuning introduces German examples, automatically assigned labels and a new choice of settings together, the results do not identify the contribution of each change in isolation.
What changes when training continues
The comparison within CNN1, CNN2, BiLSTM1 and BiLSTM2 is especially informative because each adapted classifier has a corresponding English-trained starting point. BiLSTM1 increases positive-class recall after working with either German source. The CNNs end up with lower Hate F1 than in their initial transfer condition, including cases where their macro F1 improves. Looking at the individual before-and-after comparisons establishes that the same broad adaptation procedure can change the classifiers in different directions. The effect depends on the starting classifier and the criteria used to call the change a gain.
The source comparison provides a further distinction. DE-REL* brings in German tweets drawn from the same benchmark as the test data. DE-NEW brings in forum passages closer in style to the original English training material. For BiLSTM1, the German tweet adaptation gives the higher macro F1 and Hate F1. For BiLSTM2, the German forum adaptation produces the largest macro F1 and the most uneven recall. Because corpus content, selection and tuning vary between these conditions, the two experiments cannot isolate the value of matching the source genre or the evaluation genre. They show that the choice of target material can be consequential even when it is all in German.
What tuning changes
In the initial transfer experiments, the authors report that the wrong class weights can lead a classifier to predict a single label across DE-DEV. A nearly balanced English training file does not prevent that outcome. The different settings reported for the CNN and BiLSTM architectures show that there is no common class-weight preference across them in the English training condition. The comparison supports the authors’ use of class-specific development scores when selecting settings. An aggregate development score can look adequate even when the predictions are uninformative about one of the classes.
Training duration matters in a related way. The chosen CNN schedules in the forum adaptation are longer than in the GermEval adaptation. The authors say the corresponding approach caused the BiLSTMs to overfit and drive their German development predictions to Hate. They choose shorter schedules, higher dropout and much smaller learning rates for the BiLSTMs. Those changes are reported jointly. The experiments show that the resulting behavior was sensitive to the training settings, but they supply no independent measurement of how much protection came from dropout, update size or stopping earlier.
The authors also try borrowing the settings of the CNN configuration that improves for the one that worsens. They report that this does not help. They suggest that the difference in original English training duration may matter, since CNN1 and CNN2 enter adaptation after different numbers of epochs. That is a plausible account of why a setting can work differently from different starting points. The paper does not present a comparison that holds the starting behavior and the adaptation examples fixed while varying only the original epoch schedule.
What individual label decisions reveal
The selected examples illustrate why the agreed predictions cannot be summarized as keyword matching. In one German tweet, the classifiers agree with the reference judgment of hate speech where the authors say the interpretation depends on a contextual allusion involving the name of a confection. In another, they give a negative label to a political statement that uses controversial language about democracy. These examples are compatible with sensitivity to combinations of words and their context. By themselves, they cannot establish which features determined the prediction or how reliably a similar allusion would be recognized in a new setting.
Other GermEval examples expose shared errors. The ensemble assigns Hate to a tweet that describes hate in critical terms but has the negative reference label. It assigns noHate to a tweet in which the annotated attack targets German boys. The authors suggest that this target differs from those ordinarily attacked in the English forum data. If source examples associate hateful language largely with particular groups, the transfer procedure may be less sensitive when a structurally similar attack concerns a group rarely targeted in training. The paper presents that explanation as a possibility grounded in this example.
Examples from DE-NEW make related distinctions. The authors inspect passages in which antisemitic views are expressed and agree with the positive predictions. They also inspect a passage critical of Nazis and a passage reporting on a Holocaust denier. Those receive noHate, in spite of vocabulary that might also occur in hateful material. Another passage criticizes a political party and is labeled Hate by the ensemble. The authors judge that its criticism falls below the attack criterion. Taken together, the examples show variation within the forum and help explain why venue or vocabulary alone would give a poor account of the labels.
The confusion matrix provides the broader context for these readings. The individual examples establish that unanimous predictions can succeed on a case with an indirect cue and fail on a case whose words appear overtly hostile. The matrix shows that the failures are numerous among the actual training examples that survive selection. It also grounds the discussion of source bias in a measurable issue without proving the cause of any particular error. The automatic supervision is a mixture of correct and incorrect judgments, and the subsequent fine-tuning results tell how that mixture affects test behavior under particular settings.
Limitations
Limits the authors identify
The authors treat label compatibility as a condition for the experiment. They could justify mapping GermEval Abuse to Stormfront Hate because both definitions allow group-based attacks with a broadly specified target. They identify differing annotation schemes as a barrier to transferring between other datasets. If one corpus groups insults with hate speech and another deliberately separates them, a shared language representation cannot reconcile those instructions. The binary conversion worked as a design choice for these datasets and left the general problem of incompatible labels open.
The paper also identifies the narrow composition of the English training source. Stormfront’s positive examples frequently concern particular targets, with the authors pointing to attacks on non-white people. A classifier can thus encounter a wide definition in the annotation instructions and a narrower range of instances in practice. The authors connect that concern to their German error example about a target rarely represented in the source. They argue for training material covering more subtypes of hate speech. The paper does not estimate how the system performs across all potential target groups.
The authors describe the fine-tuning gains as dependent on hyper-parameter choice. Some settings perform poorly because the classifier overfits the adaptation material. One CNN configuration loses macro F1 in each adaptation experiment in spite of tuning. The recurrent classifiers obtain larger aggregate gains in some conditions but require especially careful settings with the forum data. The authors also suggest that limited data could account for the relatively similar aggregate performance of the initial classifiers. That explanation is an interpretation of the observed scores and the earlier work they discuss.
The conclusion proposes trying language pairs that differ more in syntax and applying architectures such as BERT. Those plans mark the scope of the evidence. The task studied is English-to-German transfer using a shared word space and the tested classifiers. The suitability of the method for a pair with substantially different syntax, and whether another architecture could change the outcomes, remain empirical questions. German demonstrates task-specific scarcity here even though the experiment can draw on German news text, a labeled development benchmark and unlabeled web material.
Limits visible in the experiment
The zero-shot claim concerns the examples used to fit classifiers. Initial classifier updates use labeled English examples. The German fine-tuning updates use automatic labels. Both stages nonetheless rely on DE-DEV, an annotated German development set, to choose settings. That matters because the paper documents how strongly those choices affect the outcome. An application with German text but no human-labeled German examples of any kind would lack the development feedback that helps the authors distinguish useful training behavior from a collapse into a single class.
The direct-transfer experiment also changes more than language. Forum sentences are used for training and tweets for evaluation. Each collection has its own sampling choices and annotation rules. A missed tweet can therefore reflect unfamiliar German usage, differences between genres, a shift in which groups are targeted or a mismatch in the judgments the two annotation schemes capture. Because these factors vary together, the direct-transfer scores measure performance under their combined effect. They cannot establish which of those differences accounts for the largest share of errors.
The binary conversion limits what the scores cover. Mapping Insult and Profanity to noHate allows the authors to use a shared positive category. It does not yield performance measures for the original fine-grained GermEval task. The English conversion brings in context-dependent positives and examples originally skipped as unsuitable for a binary judgment. Those choices can influence what the classifier learns about each category. The experiments do not compare alternative mappings or report what happens when such English examples are excluded from the training file.
The quality audit is stronger for the GermEval adaptation than for the forum adaptation. Existing labels make it possible to count correct and incorrect predictions in the retained tweet subset. Since that audit covers only the tweets on which the ensemble agreed, it does not show how the filter compares with a less restrictive rule. DE-NEW provides manually examined examples but no equivalent benchmark annotations for a corpus-wide audit. The paper therefore cannot determine from these experiments how the label quality of the two German adaptations compares across all the examples used to train.
The scores also leave practical questions about prediction errors unresolved. Screening posts for human review and taking action on a post based on an automatic classification would place different demands on precision and recall. The paper measures agreement with benchmark labels. It does not evaluate either workflow. The BiLSTM2 result after forum adaptation makes the distinction concrete. Its Hate recall of 100.00 might be attractive for locating every positive benchmark case, while Hate precision of 21.93 indicates how many irrelevant results accompany that coverage. The tested setting cannot be judged for moderation by the reported macro F1 alone.
Finally, the reported comparisons concern particular trained configurations on one test split. The paper gives no repeated-run uncertainty for the small macro F1 changes it discusses. Improvements such as CNN1’s 0.18 points with GermEval adaptation describe the reported run. The experiment gives firmer grounds for observing substantial changes in the kinds of mistakes made than for claiming that a small gain would recur under another training run or another sample of tweets. Reporting the class-specific numbers lets readers preserve that distinction even when fine-tuning is summarized by an aggregate.
What came after
Robust Hate Speech Detection in Social Media cites the study and shifts the evaluation question toward robustness across datasets. Bigoulaeva and colleagues had already encountered that question within a cross-language experiment. Their English and German datasets differed in venue and annotation categories, so demonstrating transfer required them to specify which positive examples should count as equivalent. The later work’s stated focus is empirical evaluation across datasets. Its scope connects to the question raised here of how reliably a decision learned from one collection carries over to another.
Label Modification and Bootstrapping for Zero-Shot Transfer also cites the study. Its focus connects to the two places where the earlier procedure changes the available supervision. One is the conversion of English and German annotations into a common task. The other is the creation of training labels for German text from predictions. The earlier study treats those as distinct operations with distinct assumptions. Label modification depends on similarity between annotation definitions, while bootstrapping depends on how much useful supervision the transferred classifiers can supply. The later work takes up both operations in the setting of zero-shot transfer.
Cite
Cite as Irina Bigoulaeva, Viktor Hangya and Alexander Fraser. 2021. Cross-Lingual Transfer Learning for Hate Speech Detection. Proceedings of the First Workshop on Language Technology for Equality, Diversity and Inclusion.
@inproceedings{bigoulaeva2021cross,
title = {{Cross-Lingual Transfer Learning for Hate Speech Detection}},
author = {Irina Bigoulaeva, Viktor Hangya and Alexander Fraser},
booktitle = {Proceedings of the First Workshop on Language Technology for Equality, Diversity and Inclusion},
year = {2021},
url = {https://aclanthology.org/2021.ltedi-1.3/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bigoulaeva-2021-cross-lingual-transfer-learning-hate/