RuG @ EVALITA 2018: Hate Speech Detection In Italian Social Media
Paper · 2018 · Xiaoyu Bai, Flavio Merenda, Claudia Zaghi et al.
Summary
A system trained to recognize hateful Facebook comments may make very different mistakes when it starts reading tweets. At EVALITA 2018, the RuG team tested for that change using Italian messages from both platforms. The task was a form of text classification. For each message, the system had to decide whether it belonged to the hate or non-hate class. The organizers supplied separate collections of labeled Facebook comments and tweets, making it possible to test each classifier on messages from the same platform as its training data and on messages from the other platform. The collections also differed in their topics and in how often their messages were labeled hateful.
The team built word embeddings from over 1M comments gathered from selected Facebook pages where the authors expected hateful or offensive language to occur. These embeddings represent words by numerical vectors learned from their surrounding language. The strongest official submission, a linear support vector machine, combined the vectors with features that recorded sequences of words and characters. The other submission used logistic regression to combine predictions from that classifier and a convolutional neural network, along with the length of the message and the proportion of its tokens found in a list of offensive terms.
The support vector machine beat the ensemble in every official comparison. When training and testing stayed on the same platform, it reached a macro-F1 of 0.7751 on Facebook and 0.7934 on Twitter. Macro-F1 gives the hate and non-hate classes equal weight. Training on Facebook and testing on Twitter brought the score to 0.5409, while training on Twitter and testing on Facebook yielded 0.6021. The standalone neural network, evaluated outside the official rankings, scored 0.6093 in that last setting, slightly ahead of the support vector machine.
The cross-platform errors differed by direction. With Facebook training data, the support vector machine recovered many of the tweets labeled hateful, but it also assigned the hate label to many tweets annotated as non-hateful. With Twitter training data, it was more likely to miss hateful messages than non-hateful ones. The authors connect these patterns to differences in the training collections and suggest that the Facebook-derived embeddings may also have played a part. The study compares complete classifiers, so it leaves the embeddings’ independent contribution unresolved. Across the subtasks, the authors identify messages that convey hate less directly as the main source of errors.
Deep dive: RuG @ EVALITA 2018: Hate Speech Detection In Italian Social Media
How RuG used word embeddings to detect hate speech in Italian Facebook comments and tweets at EVALITA 2018, and what happened when it switched platforms. · about 32 minutes to read
The problem and its context
From harmful language to a classification task
The paper starts from a practical problem for social media platforms. People post offensive and abusive messages at a scale that motivates automated detection, while individual messages vary widely in how they express hostility. Some directly insult a target. Others communicate hostility through less explicit wording, which gives a classifier fewer obvious lexical clues. Both forms matter to the task because each message receives a judgment about hate speech as a whole. Recognizing a familiar insult may contribute to that judgment, but the classifier ultimately needs to decide what label to assign to the message containing it.
The authors place HaSpeeDe within growing interest in harmful online language in natural language processing and computational social science. Their introduction points to multilingual datasets, workshops, and shared evaluations as ways researchers were approaching the problem. It identifies related work on offensive language, abuse, trolling, and cyberbullying, with a survey by Schmidt and Wiegand and a typology of abusive language tasks by Waseem and colleagues. HaSpeeDe defines a specific target within that broader area by asking for binary judgments on Italian social media messages. A Survey on Hate Speech Detection using Natural Language Processing and Understanding Abuse.
The shared-task format matters to the scope of the study. The organizers define the prediction target and supply the labeled examples, while participating teams develop their own ways to represent and classify the messages. The RuG paper describes a participation system under those conditions. Its evidence comes from how the team's submissions perform against the shared labels, against each other, and relative to other entries. Questions about a platform’s moderation decisions, what action should follow a classification, or how readers experience the language are outside the experiment the team conducts.
The hate versus non-hate distinction reflects work done before the competition. The organizers harmonized separate linguistic annotation efforts so that examples from Facebook and Twitter could be used in a common classification task. Binary granularity means that the relevant prediction is membership in one of those categories. The evaluation can therefore count a correct hate decision even when the classifier gives no account of the target, the kind of hostility, or how the message communicates it. That division between the label and the reasoning behind it is important when interpreting the paper's discussion of errors.
What changes when the source changes
The organizers provided both same-platform and cross-platform conditions. In HaSpeeDe-FB, the classifier learns from Facebook comments and is evaluated on other Facebook comments. In HaSpeeDe-TW, both stages use Twitter. The cross-platform conditions take their names from the training source. Cross-HaSpeeDe FB uses Facebook data for training and Twitter data for evaluation. Cross-HaSpeeDe TW trains on Twitter and evaluates on Facebook. Reading the name this way makes it possible to follow which messages a classifier has learned from and which messages it is being asked to judge.
Each cross-platform task has a same-platform counterpart with the same test collection. To examine a change in performance on tweets, compare HaSpeeDe-TW with Cross-HaSpeeDe FB. To examine a change in performance on Facebook comments, compare HaSpeeDe-FB with Cross-HaSpeeDe TW. In either comparison, the messages being judged stay fixed while the labeled examples used for training change. That makes the setup more informative about transfer than a comparison in which both the training and test sets change at once.
The collections differ in ways that make transfer demanding. Facebook comments cover broad topics such as religion, politics, immigration, and gender issues. The Twitter collection centers on groups that can be targets of hate speech, including migrants, Muslims, and Roma. A classifier could therefore encounter immigration-related language in both settings while seeing different kinds of examples of it. A useful association learned from the Facebook collection might depend on the vocabulary of particular discussions, while a useful association learned from the Twitter collection might depend on how particular groups are referred to there. The paper connects the shape of the Twitter collection to the prior annotation work from which it was drawn. An Italian Twitter Corpus of Hate Speech against Immigrants.
The prevalence of the labels varies too. The organizers matched the collection sizes across platforms, which controls how many labeled messages are available for each source. The groups of messages still provide different amounts of evidence about hate and non-hate, and the balance within a platform can change from training to testing. Thus, the design combines several changes that a classifier may have to handle. It encounters a different platform, a differently assembled set of topics and targets, and a different relationship between the labels. The common label set makes their effects observable in the same metric, while the details of the collections matter to any explanation of those effects.
Why learn from additional comments
The authors use supervised learning for their submissions. In this setting, the classifier learns to associate features of a message with the label supplied for that message. The team followed a closed-task setting for labeled training, using the examples supplied by the organizers. It drew on outside Facebook comments for a different purpose. Those comments were used to learn representations of words from their contexts, without supplying extra examples of the supervised hate versus non-hate decision.
This choice addresses a specific question about the evidence a classifier can use. Exact sequences of words and characters can capture recurring expressions in the labeled data. But a form that occurs in the test collection may appear rarely in the labeled training collection, and language from the other platform may express hostility in different terms. Numerical word representations learned from a much larger collection provide another route by which a classifier can use what it has seen. For the RuG team, the source of those representations was part of the design. They expected selected Facebook discussions to contain language whose use would be especially relevant to recognizing hateful or offensive messages.
The paper builds on earlier work for the technical means to implement that idea. It uses the skip-gram approach associated with word2vec for the word representations. For the neural classifier, it adapts existing convolutional architectures for sentence classification. It also points to a related RuG effort for the German GermEval shared task, developed in parallel and sharing elements of the Italian systems. Within the Italian study, the connection among these choices is the attempt to turn the same word vectors into different kinds of evidence for a message-level decision. Efficient Estimation of Word Representations in Vector Space and Convolutional Neural Networks for Sentence Classification.
The method, step by step
Learn word vectors from selected Facebook discussions
The team first built a resource that both classifiers could use. It selected Facebook pages where comments on posts were likely to include hate or offense and gathered over 1M comments. The selection operated at the level of the pages the authors chose to collect from. The study refers to the resulting vectors as hate-rich embeddings because of the language expected in that collection. The name describes the source of the vectors. The process assigns a vector to a word based on contexts of use, and the later classifiers learn how to use that vector for the hate speech task.
This is a use of distributional semantics, in which a word's surrounding language provides evidence about its use. In skip-gram training, the word under consideration supplies the input, and nearby words provide the prediction targets. The process is repeated across the collected text. The resulting representation of each word is a set of numerical coordinates. Each coordinate can participate in the later classification, with its value learned from patterns in the comments. In particular, the vectors do not require an author to decide in advance which words carry similar shades of insult or hostility.
The team configured word2vec to use 300 dimensions, a 5-word context window, and a minimum word count of 1. The dimensionality is the number of coordinates assigned to each represented word. The window setting governs which nearby tokens supply the context for learning those coordinates. The frequency setting permits forms occurring as rarely as the stated minimum to be represented in the vocabulary. Membership in that vocabulary still depends on a form occurring in the collection used to learn the embeddings. A later message can contain forms for which the lookup returns no vector.
The motivation for selecting the source is easiest to see by considering which occurrences influence the representation. A word used repeatedly in some kind of hostile discussion will be represented in relation to the surrounding language of those uses. Which pages the team collects from therefore matters even in the absence of labels on individual scraped comments. The source can emphasize particular patterns of use, such as wording common to the discussions on those pages. That same mechanism can preserve vocabulary and topics more specific to the source than to hate speech in general.
The paper directs readers to the companion study on source-driven representations by Merenda and colleagues for the Facebook page list, fuller details of the collection process, and a preliminary evaluation. In the shared-task study, the resource is already available when the supervised training begins. Facebook comments supply the contexts for the word vectors even when tweets supply the labeled examples used to fit a classifier.
From collected comments to the RuG submissions
The steps in order.
Give the linear classifier both exact and distributed features
The first submission uses a linear support vector machine, or SVM, fitted with scikit-learn's LinearSVC. A linear classifier combines the entries in a message's feature vector into a decision score. During training, the labeled examples determine which features push that score towards hate and which push it towards non-hate. The support vector machine uses a margin criterion, which favors a separation between the classes in the feature space while allowing training examples to fall on the wrong side when the evidence overlaps.
The paper describes limited preprocessing. The team lowercases the tokens and removes stop words using the Python stop-words package. A token is a unit into which the message has been split for analysis. Lowercasing makes forms that differ in capitalization coincide at that stage. Stop-word removal filters out forms found in the package's list before the remaining forms contribute to the representation. The paper gives this preprocessing account for the SVM. Its description of the ensemble does not separately specify that the same filtering governs the neural input or the calculation of the lexicon feature. Tokenization.
The SVM first represents the surface form of a message using n-grams, which are contiguous sequences of units. Its word n-grams span lengths 1–3. A feature can thus concern a single word or a short sequence in which that word participates. Character n-grams span lengths 2–4 and represent smaller strings. These can share information across forms containing the same fragment, even when the complete word forms differ. The two groups of features capture related evidence at different scales. Word features distinguish short expressions in their observed order, while character features let shorter sequences contribute wherever they occur.
Those features give a sparse representation. The possible feature coordinates cover the sequences the system can represent, while an individual message activates or supplies values for only a small portion of them. This makes it possible for a linear classifier to learn an association with a particular string directly. It also sets a limit on what the exact-sequence features can do. If a useful phrase from the labeled data fails to recur in a new message, its feature cannot convey that evidence by itself. Some character fragments may still recur, and the authors add the word vectors as a further source of overlap.
For that part of the representation, the classifier looks up each word in the hate-rich embedding vocabulary. The result for a covered word has 300 dimensions. A word absent from the embedding vocabulary is skipped during pooling. The intention is to turn the vectors of the covered words into a single vector for the message. The team uses maximum pooling, or max pooling, which takes the greatest value observed for each coordinate across those vectors.
vᵢⱼ = max { eⱼ(w) : w ∈ Wᵢ }
Here, i identifies the message, j identifies a coordinate of the embedding, and vᵢⱼ is that coordinate in the pooled message vector. The symbol w denotes a word in the message. Wᵢ contains the words in message i for which an embedding is available, and eⱼ(w) is coordinate j of the vector looked up for word w. The braces enclose the eligible values, the colon introduces the membership condition, and ∈ means that w belongs to that set. The max operation selects the greatest of the eligible values. The paper describes ignoring uncovered words but gives no separate pooling rule for a message with no covered words.
Different coordinates of the pooled vector can come from different words within the same message. The operation preserves their strongest coordinate values and discards the positions at which those values occurred. Repetition of an identical word vector cannot increase a maximum once that vector has supplied it. The result is also the same if the same covered words are reordered. Local order can still enter through the word and character sequences in the other part of the SVM representation. The pooling rule gives that richer surface representation one fixed-length set of features derived from contextual use.
The authors concatenate the sparse n-gram features and the dense pooled vector. Concatenation puts both sets of coordinates into the input for the same decision. There is no need to decide before training whether a particular message should be judged by its exact words or by its embedding features. The fitted score can draw on both. A phrase associated with one label in the training examples can receive a weight through the sequence features, while an embedding coordinate can receive a weight that applies across the messages whose pooled vectors take on the relevant value.
The SVM uses balanced class weights. Class weights change how heavily training errors on the different labels count during fitting, giving the less represented class greater weight per example. They leave the original distribution of messages and topics in place. This distinction matters when reading the transfer results. Balancing weights does not supply new wording, add missing examples of implicit hate, or reveal the prevalence of hate on the test collection. The paper otherwise reports default SVM parameters, including the following setting.
C = 1
C is the penalty parameter governing the tradeoff between a wider margin and violations of that margin in training. The value 1 is the default used in the submission. The paper does not compare that setting with other values of C. Once the classifier has been fitted on the designated platform's labeled data, it applies its learned decision to the message representation for each instance in the designated test collection.
Learn local patterns with a convolutional network
The second submission uses the SVM's judgment alongside that of a convolutional neural network, or CNN. The CNN starts from the same hate-rich embeddings and uses them as an ordered input sequence. That gives the convolution access to neighboring word vectors before the system compresses the sequence to a representation of the whole message. By comparison, the SVM's dense input compresses across the message immediately, while its explicit n-grams handle local strings separately.
A convolutional filter processes a short stretch of the input and gives it an activation, a numerical response to the pattern in that stretch. The same filter is used at successive positions. It can learn to respond to patterns across several neighboring word vectors, which gives it a way to treat two passages similarly when they contain similar combinations of vectors. The authors use a single convolutional layer and report 6 filters, filter sizes of 3, 5, 8, and a stride of 1. Filter size controls how many consecutive input positions are considered together. The stride determines how far the filter moves between consecutive evaluations.
The network then applies max pooling to the convolutional activations. These are learned responses to local stretches of the message, which distinguishes this pooling step from taking the maximum over the input word vectors in the SVM. The selection lets a strong response survive wherever it originated in the sequence. The pooled output is flattened and concatenated for the fully connected layer, which has 50 hidden units with a rectified linear activation, or ReLU. The units can use combinations of the pooled responses. ReLU passes positive values through and clips negative values to zero.
A sigmoid output supplies the binary prediction. A sigmoid maps a score to the interval used to express probability, enabling the network to represent the balance of support for the labels. The authors train it with binary cross-entropy, which penalizes the network according to the probability it assigns to the annotated label. Adam is the optimizer used to adjust the network parameters to reduce this loss. The batch size is 64, which controls the number of training examples processed together for updates, and the team trains for 10 epochs, or passes through its training data.
The authors apply dropout at two locations. During training, dropout randomly suppresses some inputs or activations so the downstream computation has to operate with partial information. The rate is 0.6 between the embedding input and the convolutional layer. It is 0.8 between the pooling output and the fully connected layer. The locations affect different parts of the computation. The first operates on what is passed from the word representations to the local pattern detector. The second operates on the pooled responses being sent to the layer that combines them. These values describe the submitted design. The study does not report a search over dropout rates or an experiment separating their effects.
Combine the predictions and two message features
The ensemble adds a logistic regression classifier above the SVM and CNN. It is a meta-classifier because it uses the judgments of the other classifiers as inputs. The paper describes each message's representation for this stage through the SVM prediction, the CNN prediction, the message length in characters, and the share of its tokens belonging to an offensive-word list. The final classifier learns how these features together predict the hate and non-hate labels. It can assign different weights to the two incoming judgments, instead of having to rely on their agreement.
The character count is a direct feature of the message. It gives the logistic regression access to a property that neither component's output is required to preserve. A message's length does not determine its class, but if length helps distinguish the labeled examples alongside other features, the logistic regression can use it. The same reasoning applies to membership in the offensive-word list. This evidence enters as a single feature alongside the predictions, leaving the labeled examples to determine its contribution.
The list draws on Tullio De Mauro's Le Parole per ferire and the Italian Wiktionary's category for offensive vocabulary. The feature counts token occurrences that match an entry and relates that count to the total number of tokens in the message. Using the message's token count as the denominator makes it a measure of concentration. A fixed count of matches occupies a larger share of a short message than of a longer one. The count uses occurrences, so multiple uses of the same listed word can each contribute.
rᵢ = mᵢ / nᵢ
Here, i identifies the message, rᵢ is the proportion of its tokens found in the list, mᵢ counts the matching token occurrences, and nᵢ is the total token count of the message. The slash denotes division. The feature concerns list membership, which is a different source of evidence from the embeddings. A token can have a learned vector without appearing in the list, while a list match contributes to the numerator because of its lexical form. This gives the ensemble direct access to explicit offensive vocabulary alongside its components' more general predictions.
The authors obtained the component predictions for ensemble training by cross-validation. In cross-validation, the labeled collection is divided into groups called folds. The SVM and CNN are trained on the other folds and used to predict messages in the held-out fold. Rotating which fold is held out yields predictions across the training collection. The paper reports 10 folds for its cross-validation procedure. The figure for the ensemble distinguishes a training example, with features assembled from cross-validation predictions and the message itself, from a test example, for which the predictions come from applying the trained components.
This arrangement lets the logistic regression train on decisions for messages that the corresponding component fit has not already seen as labeled training items. It is a consequential difference from fitting on a collection and then treating that fit's decisions on the very same examples as evidence about its behavior on new messages. The procedure allows the ensemble to observe patterns in component errors within the source collection. It still learns those patterns from the platform designated for training. In a cross-platform condition, the final decision has to use the learned combination on messages from the other platform.
The team also used training-set cross-validation to decide which architectures to enter. The organizers permitted two submissions per subtask, and the authors chose the SVM and the ensemble from the architectures considered. The CNN remained part of the ensemble even though its standalone test scores were outside the official competition. The paper makes the team’s code and system outputs available under the repository name evalita2018-rug.
Experiments and results
The messages and the score
The organizers supplied 6,000 labeled Italian messages for training. There were 3,000 Facebook comments and 3,000 tweets, with 1000 test messages for each platform. A task used the training collection assigned to its source platform. In particular, the cross-platform experiments changed which of the two collections supplied the training examples. They retained the test collection for the destination platform. The team knew the labels of its training examples, while the distribution of the test labels was unavailable during development.
The Facebook training collection contained 1,618 non-hate comments and 1,382 hate comments. The paper gives the hate share there as 46.06%. For Twitter training, there were 2,028 tweets labeled non-hate and 972 labeled hate, with the hate share reported as 32.40%. These figures establish an imbalance in the training examples even though the overall collection sizes match. Both training collections have more non-hate examples, and the labels are closer to evenly represented in Facebook training.
The Facebook test set reverses the ordering of the classes, with 323 non-hate comments and 677 hate comments. The Twitter test set contains 676 non-hate and 324 hate tweets. As a consequence, a change of training platform means more than substituting one source of wording for another. It also changes the number of available examples for each label. And even when training and testing both use Facebook, the class that is less common in training is more common at test time. The distinction between training source and test composition helps make sense of the paper's class-by-class analysis.
The competition ranks the runs by macro-F1. To understand the score, consider the predictions for a particular label. Precision asks what share of the messages assigned that label actually carry it in the test annotations. Recall asks what share of the messages carrying that label the classifier managed to recover. F1 combines precision and recall by taking their harmonic mean, so a low value for either pulls down the class score. Macro-F1 averages the scores for hate and non-hate with equal weight. Correctly predicting the more prevalent label therefore covers only part of what the metric rewards. Evaluation & benchmarks.
The paper reports two types of comparison. The team evaluates the linear SVM, the ensemble, and the CNN on the same tasks, with the CNN as a standalone reference outside the competition rankings. The authors also give the highest competition score for each task, which provides a separate benchmark for the official submissions. The comparison among the RuG systems measures what happened when the team changed the complete decision procedure. The competition scores and ranks give context about how the official runs placed among other entries evaluated under the same task rules.
Results on the Facebook test set
The linear SVM achieved a macro-F1 of 0.7751 on HaSpeeDe-FB, ranking 6/14. The ensemble scored 0.7428 and ranked 9/14. The standalone CNN reached 0.7138. With training examples and evaluation messages both drawn from Facebook, the ensemble performed between its two components. The leading competition score was 0.8288. This comparison places the SVM within the field on Facebook while showing that some other submissions achieved a higher balance of class-level performance.
On Cross-HaSpeeDe TW, the Facebook test comments are unchanged and the training source is Twitter. The SVM scored 0.6021 and ranked 6/13, while the ensemble scored 0.5545 and ranked 7/13. The competition's highest score was 0.6985. The standalone CNN obtained 0.6093 in this transfer direction. Its result qualifies any claim that the linear SVM won every comparison in the paper. The SVM leads the team's official runs in the condition, and the CNN has the highest score of the three RuG systems evaluated there.
RuG systems on the Facebook test set by training source, macro-F1
Facebook training scores higher for each system, while the standalone CNN leads the RuG systems trained on Twitter.
The numbers
| System or setting | Macro-F1 |
|---|---|
| Facebook training, linear SVM (this paper) | 0.7751 |
| Facebook training, ensemble | 0.7428 |
| Facebook training, CNN | 0.7138 |
| Twitter training, CNN | 0.6093 |
| Twitter training, linear SVM | 0.6021 |
| Twitter training, ensemble | 0.5545 |
The class-level scores explain what the Facebook-trained SVM does well on the Facebook test set. For hate, precision is 0.8531 and recall is 0.8581. For non-hate, precision is 0.6990 and recall is 0.6904. The system's success on that collection therefore reflects both its ability to find hateful comments and the reliability of its hate predictions under the benchmark labels. It achieves lower values on both measures for non-hate. Looking only at the aggregate score would conceal which class accounts for that performance.
With Twitter training and the same Facebook test examples, the SVM's hate precision is 0.7971 and its hate recall is 0.5745. Its non-hate precision is 0.4375 and its non-hate recall is 0.6934. Hate predictions are often correct, but many annotated hate comments fail to receive one. Non-hate recall remains higher than hate recall, even though hateful comments are the more common class on this test collection. The difference between recall and precision for each label helps explain why an apparently strong value for hate precision can coexist with much weaker macro-F1.
Results on the Twitter test set
On HaSpeeDe-TW, the SVM achieved a macro-F1 of 0.7934, ranking 3/15. The ensemble received 0.7530 and ranked 9/15, and the standalone CNN scored 0.7363. The best competition entry recorded 0.7993. The paper draws attention to the fact that the RuG SVM has both a higher score and a better rank in its same-platform Twitter task than in its same-platform Facebook task, although the highest score among all entries is higher on Facebook. A team's relative position and the leading overall score thus tell different parts of the comparison.
When trained on Facebook and evaluated on the same tweets in Cross-HaSpeeDe FB, the SVM obtained 0.5409 and ranked 8/13. The ensemble scored 0.4845 and ranked 9/13, and the CNN scored 0.4692. The leading competition result for the condition was 0.6541. For the SVM, the change in training data caused a larger decline on the fixed Twitter test set than on the fixed Facebook test set in the reverse direction. That observation is about these particular train–test pairings. The lower of the two cross-platform scores belongs to the run trained on Facebook.
RuG systems on the Twitter test set by training source, macro-F1
Twitter training scores higher for each system, and the linear SVM leads under either training source.
The numbers
| System or setting | Macro-F1 |
|---|---|
| Twitter training, linear SVM (this paper) | 0.7934 |
| Twitter training, ensemble | 0.7530 |
| Twitter training, CNN | 0.7363 |
| Facebook training, linear SVM | 0.5409 |
| Facebook training, ensemble | 0.4845 |
| Facebook training, CNN | 0.4692 |
For same-platform Twitter, the SVM's non-hate precision is 0.8577 and its non-hate recall is 0.8831. Its hate precision is 0.7401 and its hate recall is 0.6944. As the authors observe, the strong aggregate result on that task owes much to performance on non-hate. The classifier can recover hateful tweets, but its judgments for them are weaker on both measures. The higher same-platform score on Twitter therefore comes with a different class profile from the Facebook score, where the strongest precision and recall are on hate.
With Facebook training, the same Twitter test set brings a marked change in that profile. Hate recall is 0.8302, above the hate recall from Twitter training, but hate precision is 0.3997. Non-hate recall is 0.4023, and non-hate precision is 0.8318. Under this condition, the system identifies many of the hateful tweets while losing the ability to recover much of the non-hate class. The low hate precision shows the accompanying cost. Many tweets receiving a hate prediction are labeled non-hate. The macro-F1 decline thus includes a shift in the kinds of errors the system makes, even as recall improves for one of the labels.
What the ablations show
What can be learned from the architecture comparison
The paper reports no feature-removal ablation. Its analyses instead compare complete classifiers, examine changes in training source on fixed test sets, and inspect class-level scores and errors.
The architecture comparison is informative about the usefulness of the combination the authors actually built. The ensemble has access to the SVM's prediction in every condition, as well as the CNN's prediction and the two message features. It nonetheless finishes below the SVM on every test condition. The trained logistic regression evidently did not turn the additional inputs into a better decision on these collections. In three conditions the ensemble beats the CNN while trailing the SVM. In the remaining condition, Twitter training with Facebook evaluation, the ensemble finishes below both. Those outcomes show that the rankings of the components on held-out data do not directly determine the ranking of their combination.
The authors attribute the ensemble's weakness partly to the CNN's generally lower scores. The comparison supports that explanation in the conditions where the CNN is the weakest of the tested systems. The reverse-transfer result adds a qualification. In that setting the CNN is individually strongest, yet the ensemble remains weakest. There are several inputs to the logistic regression, and it learns how to use them from the training platform. Its performance may depend on which errors the components make on the same messages and whether the relationships learned on the training folds carry over. The paper supplies aggregate results without a joint breakdown of component errors, so it cannot establish how those factors interacted.
The standalone SVM score is also a limited comparison for attributing effects inside the ensemble. It shows how the SVM's own decision compares with the decision made when logistic regression uses that prediction together with other features. It does not isolate any particular addition. There is no reported ensemble with the CNN prediction withheld, with only the two component predictions, or with just one of the extra message features removed. Consequently, the outcome establishes that the whole combination underperformed the SVM, while leaving the contributions of length, offensive vocabulary, and the CNN input undetermined.
What the matched test sets reveal about errors
The transfer experiments hold the test messages constant and exchange the training collection. On Twitter, that lets us see that the Facebook-trained SVM's lower score cannot be explained by its having been assigned a harder set of tweets than the Twitter-trained SVM. Both face the same tweets and the same reference labels. The Facebook-trained system's high hate recall alongside its low hate precision points to a greater tendency to predict hate on that collection. The strong non-hate recall of the Twitter-trained system shows how much that tendency matters when the test set contains many non-hateful messages.
The corresponding comparison on Facebook exposes a different pattern. The SVM trained on Twitter recovers hate comments less frequently than the SVM trained on Facebook. It still achieves relatively strong hate precision because a substantial share of the comments it does call hateful belong to that class. The authors note that hate recall remains below non-hate recall in the settings trained on Twitter. They also report that more than 50% of errors in all runs in those settings consist of hateful messages classified as non-hateful. That share is a proportion of errors, whereas recall is a proportion of annotated class members. The two measures describe distinct aspects of the tendency to miss hate.
The authors relate these patterns to the two sources of labeled data. Twitter training has a larger imbalance toward non-hate and concentrates on specific targets. Facebook training supplies a more balanced collection and features broader topics. The authors suggest that the SVM's word and character sequences tie some of its decisions closely to the wording of the training examples. Because both the wording and the class mix vary across the collections, swapping training sources tests the combined change. Class-balanced training weights can change the cost of mistakes while leaving those differences in the examples intact.
The paper also proposes a role for the Facebook-derived embeddings. The authors see the strongest signs of an influence in the settings trained on Facebook, where hate recall exceeds non-hate recall. They suggest that the Facebook comments used for the vectors and those used for supervised training may share topics or jargon. On the Facebook test set, the pattern accompanies strong hate precision as well as strong hate recall. On the Twitter test set, high hate recall accompanies overprediction. The proposed source match can thus account for a pattern that looks favorable in one setting and unfavorable in another, depending on how the resulting predictions fit the test collection.
That interpretation has to be distinguished from a direct measurement of what the embeddings add. Their Facebook origin stays fixed when the team changes labeled training sources. A transfer result can reveal how the entire representation and fitted decision respond to that change. It cannot show what would happen if the same SVM used only its surface features or a word representation learned from another kind of collection. The paper likewise compares the SVM with a CNN that uses the same embeddings in a different computation. Its scores can establish which complete classifier works better in a given setup without establishing which type of word vector is best.
What the error examples reveal about the task
The authors describe both direct and implicit hate in the Facebook and Twitter collections. With a direct insult or an overtly offensive term, the SVM's surface features and the ensemble's list feature have a potentially salient string to work with. A message can also express hostility more subtly, with ordinary vocabulary doing different work in context. The authors identify those less direct messages as the principal source of errors across the tasks. The observation says something more specific than the aggregate drop under transfer. Even within a platform, useful word-level evidence can leave the intended judgment hard to recover.
The only lexical item the authors single out in their discussion of annotation disagreement is rivoluzione, meaning revolution. They report that all messages containing it in the collections were labeled hateful and question whether the linguistic evidence in those messages warrants the labels. The example concerns the messages containing the word, instead of the dictionary meaning of the word itself. It illustrates a separate problem from a classifier missing the hostile intent of an implicitly hateful message. Some decisions may be difficult because the cues are indirect. Others may be difficult to assess because the reference judgment itself is debatable.
The paper offers this analysis qualitatively. There are no separately reported scores for explicit hate, implicit hate, or cases involving annotation disagreement. The reader can use the authors' observations to understand plausible sources of mistakes, but cannot use them to estimate how common each type is or how much of a given aggregate score it explains. The class-level figures have a narrower and more measurable meaning. They establish which labels the SVM predicts reliably and which labels it misses under each combination of training and test source.
Limitations
Limits identified by the authors
The authors find that their systems remain sensitive to the training collections and point to differences in topics and collection strategies as likely explanations for weaker performance across platforms. The paper's central method was intended to make lexical information travel better. Its vectors offer evidence beyond exact sequences, but the full SVM also depends directly on the word and character patterns in labeled training messages. Test comments or tweets can have different distributions of those patterns. The cross-platform results show that access to the specialized vectors was insufficient to maintain the corresponding same-platform scores.
The shift in class balance compounds the difficulty. The authors observe an inclination to overpredict hate on Twitter after Facebook training, alongside a tendency to miss hateful messages in the Twitter-trained settings. Their explanation appeals both to the labels in the training material and to the source of the embeddings. They describe the embeddings' influence on the Twitter-trained cases as less clear. This is an important qualification because the training source changes while the embedding source remains Facebook. The pattern of mistakes can be described with confidence from precision and recall, while the paper presents possible causes in terms of the properties of the collections.
Implicit hate is an additional limitation the authors identify explicitly. Building representations from settings rich in offensive or hateful language still leaves their systems struggling with subtle expressions. A word's learned contexts, or even a learned pattern over nearby words, may provide weak evidence when the hostility depends on how the whole utterance is understood. The study exposes that problem through errors in the benchmark. It does not use a separate task that measures how well the classifiers recognize different ways of expressing hate.
The authors also treat some reference labels as open to disagreement. Their example involving rivoluzione raises the question of what evidence supports a categorical judgment on particular messages. Because the shared task evaluates agreement with the annotations, a disputed label is still the reference for computing the score. The paper calls attention to the uncertainty through discussion and leaves the original comparison in place. It does not quantify how frequently judgments are disputed or recalculate results under alternative annotations.
For future work, the authors propose moving further away from dependency on exact wording by looking for recurring writing patterns. They mention text bleaching as a possible approach. In the paper's account, bleaching replaces some of the visible detail of token strings with more abstract representations intended to preserve useful signals. The idea addresses the observed sensitivity to particular lexical material and is presented as an avenue for future investigation. The systems tested here retain word- and character-level information, and the results do not measure what bleaching would do on the Italian tasks.
Limits of the evidence
The strongest causal question concerns the specialized embeddings. The reported results establish the behavior of classifiers that use them. The paper offers no matched comparison with an otherwise identical SVM using only n-grams, or with embeddings learned from differently selected text under equivalent settings. Without such a comparison, a strong official rank cannot show how much the extra Facebook collection contributed. Likewise, an unfavorable transfer score cannot show that the external vectors worsened performance. The paper can identify the feature set associated with each outcome and suggest how the source might influence the decisions.
The transfer setup also combines several factors under the names Facebook and Twitter. Each platform is represented by a particular collection with its own topic coverage, targets, and label balance. The training collections differ along all of those dimensions. Holding the test set fixed identifies the performance change associated with substituting one complete training collection for the other. It leaves open which collection property accounts for how much of the change. The fact that the larger decline occurs on the Twitter test set describes the experiment accurately, but the setup cannot establish a general rule about the relative difficulty of transferring in the two directions.
Macro-F1 makes the tasks comparable in how they value the two labels. It does not remove the influence of collection composition. Precision changes with the pool of examples available to be mistaken for a class, and recall depends on which examples belong to that class in the test set. Equal weighting of the class scores leaves those properties of the underlying test messages in place. For that reason, the paper's class counts and precision and recall values provide essential context for interpreting the overall scores. They show how the two sides of the binary task contribute to the reported result.
The paper reports scores and ranks without estimates of variability. Values such as 0.6093 and 0.6021 describe the observed results on the Facebook test set when training uses Twitter. They establish the ordering in that evaluation. The results do not give a measure of how stable the ordering would be across new collections or repeated fits. Similarly, the training cross-validation informs the team's submission choices, but the paper does not report those fold scores in a way that would let readers examine the stability of the choice. The official ranking and the standalone CNN score are consequently best read as evidence about their respective runs.
Finally, the prediction unit is the message with a binary label. Correct classification therefore supplies evidence that the system agrees with the shared-task annotation on that message. It does not establish that the system can identify the specific target, articulate the reason for the decision, or resolve the disagreements the authors describe. The result is a comparison of systems on annotated Italian comments and tweets under specified training conditions. The authors' discussion of indirect hostility and uncertain labels marks where that evaluation meets questions it was not designed to resolve.
What came after
The documented connection is with the competition-wide Overview of the EVALITA 2018 Hate Speech Detection Task, which cites the RuG study and is cited by it. The two papers work at different scales. The RuG report describes how one team constructed its word representations and combined evidence to make predictions. The overview describes the shared task in which those runs were evaluated. RuG draws on it for the task background and for the leading cross-platform results, situating its own transfer scores within the wider evaluation.
The overview's connection is contextual and comparative. The shared labels and conditions make it possible to read RuG's findings alongside the broader field's results, including the fact that the highest-scoring competition entries also scored lower on the cross-platform tasks than the leading entries on the corresponding same-platform tasks. That comparison gives context to the difficulty of the transfer settings. It leaves the question of the specialized embeddings' contribution to the RuG systems where the participation paper leaves it. The overview is documented as a task account, with no separate experiment reported there that adopts or extends RuG's Facebook-derived embeddings.
The distinction matters for what can be carried forward from the study. The linked work records the benchmark context, so readers can locate the RuG scores within a common evaluation instead of treating them as isolated results. The participation paper supplies the account of how a classifier using surface sequences and source-driven word vectors behaved as the source of labeled training changed. Together they document a case in which competitive same-platform performance coexisted with weaker transfer and different errors in each direction. The proposed move towards more abstract writing patterns remains a direction the authors identify for subsequent work.
Cite
Cite as Xiaoyu Bai, Flavio Merenda, Claudia Zaghi, Tommaso Caselli and Malvina Nissim. 2018. RuG @ EVALITA 2018: Hate Speech Detection In Italian Social Media. Proceedings of the Sixth Evaluation Campaign of Natural Language Processing and Speech Tools for Italian. Final Workshop (EVALITA 2018).
@inproceedings{bai2018rug,
title = {{RuG @ EVALITA 2018: Hate Speech Detection In Italian Social Media}},
author = {Xiaoyu Bai, Flavio Merenda, Claudia Zaghi, Tommaso Caselli and Malvina Nissim},
booktitle = {Proceedings of the Sixth Evaluation Campaign of Natural Language Processing and Speech Tools for Italian. Final Workshop (EVALITA 2018)},
year = {2018},
url = {https://aclanthology.org/2018.evalita-1.43/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bai-2018-rug-evalita-2018-hate-speech/