Cross-Platform Evaluation for Italian Hate Speech Detection
Paper · 2019 · Michele Corazza, Stefano Menini, Elena Cabrio et al.
Summary
A hate speech detector can do well on messages from the service where it was trained and struggle when it encounters writing from somewhere else. For Italian, where labeled data were often collected separately for individual platforms, this raised a practical question. Could researchers improve detection on a particular service by adding examples from other services to the training set? Corazza and colleagues test that approach on Facebook, Twitter, Instagram, and WhatsApp. They use a common classifier and evaluate it separately on each platform, so that a gain on one service cannot hide a loss on another.
The study combines Facebook and Twitter data from the Italian HaSpeeDe shared task with newly annotated Instagram messages and a WhatsApp collection originally built to study cyberbullying. The WhatsApp material is adapted from labels on individual words to a decision about each message. The classifier reads messages using word embeddings, which represent words as numerical vectors. The authors compare vectors learned from Italian tweets with vectors learned from Common Crawl and Wikipedia. They also vary how the classifier handles emojis and whether it gets counts of social media writing cues or information from a dictionary of hurtful words.
Pooling training data yields the highest macro F1 on WhatsApp, Facebook, and Instagram. Macro F1 gives the hate and no-hate categories equal weight by averaging their individual F1 scores. WhatsApp, the smallest collection in the study, shows the clearest gain, with macro F1 of 0.796 using pooled training and 0.754 using WhatsApp training alone. On Facebook, the pooled setting improves macro F1 while the Facebook-only setting retains the higher F1 for hate. Twitter does best with tweets alone, at 0.798 macro F1. Unfiltered pooling yields 0.782, and restricting pooled examples to 280 characters or fewer, excluding URLs and mentions from the length count, brings the score to 0.789.
The strongest reported configurations for all platforms use vectors learned from Twitter. Other choices depend on the test platform. The leading settings for WhatsApp, Facebook, and Instagram use Italian descriptions in place of emojis and include counts of social media cues. Twitter does best with emoji transcription disabled and with the hurtful-word dictionary. The results give distinct answers about transferring a representation of words and transferring labeled examples. Tweet-derived vectors work well across the collections, while the value of adding labeled posts depends on the target, its data, and the class whose recognition matters.
Deep dive: Cross-Platform Evaluation for Italian Hate Speech Detection
Corazza and colleagues test when pooling Italian social media posts improves hate speech detection on Facebook, Twitter, Instagram, and WhatsApp. · about 31 minutes to read
The problem and its context
Why training on another platform is tempting
The authors situate their study in efforts to identify abusive language in social media posts. A system that can flag messages automatically can help people find material for review and make the removal of abusive posts easier. Before such a system can do that, researchers need a way to ask whether its predictions agree with judgments made by people. The task in this paper is a form of text classification. A classifier receives an individual message and assigns it to the hate or no-hate category, and its predictions are checked against human labels.
That setup is straightforward when a collection contains enough annotated examples for both development and testing. The resource question becomes more pressing when available annotations are divided by platform. The paper describes a field in which many datasets were for English and many collections focused on Twitter. For Italian, assembling enough examples for each platform independently could leave researchers with several relatively small collections. Bringing them together would give a classifier more labeled language to learn from. The usefulness of that language depends on how well the added examples match the kinds of messages and judgments it will encounter on the target platform.
A platform change can alter several parts of this task at once. Messages can differ in length and in what a writer can put into a single post. A collection can also contain a different proportion of messages marked as hateful. That proportion describes the collection and the way it was assembled. It can influence what a classifier sees during training even when the two collections nominally ask the same question. The authors emphasize both the make-up of the messages and the distribution of labels in explaining why a result from one platform may be difficult to reproduce on another.
There is also a question about what makes external data relevant. A tweet and a comment from a different service may use related vocabulary while distributing clues to the label differently. A long comment can supply enough context to make a short accusation clear. A short post may rely on a hashtag to identify its subject. A chat turn may depend on earlier turns for its meaning. These are ways to understand why message-level evidence can vary across the collections in the study. The evaluation does not require a theory of each platform’s style before testing whether the transfer helps.
The starting point in Italian
The immediate precedent was HaSpeeDe, the hate speech detection shared task at EVALITA 2018. Participants assigned a yes-or-no hate speech label to Facebook and Twitter messages. The evaluation included tests in which the training and test messages came from the same source. Its Cross-HaSpeeDe tasks also asked participants to train on one source and test on the other, in both directions. These tasks created a way to see how much a detector trained with annotations from one service could do when faced with the other service’s data. Overview of the EVALITA 2018 Hate Speech Detection Task
The earlier task gave the authors reasons to distinguish the two directions of transfer. The Facebook material consisted of longer posts on average, and the Facebook test set had a much larger proportion of hate labels. A system moving from Facebook to Twitter encountered a different combination of message lengths and class frequencies from a system making the reverse move. Treating both directions as instances of a single generic transfer problem could conceal these differences. The earlier evaluation also gave Corazza and colleagues a concrete architecture to carry forward from their own submission.
The systems highlighted in the account of HaSpeeDe made different choices. ItaNLP used a bidirectional long short-term memory network, a recurrent architecture that can process a sequence in both directions, and drew on the 2016 SENTIPOLC task through multitask learning. In that approach, training uses more than one task so that their examples can contribute to a shared representation. The Inria-FBK submission used a recurrent sequence reader followed by a hidden layer and an output for the label. For the new study, the authors build on the recurrent design because it lets them change inputs and preprocessing while keeping the principal classifier architecture fixed.
The paper also places that shared task alongside workshops and evaluation campaigns concerned with abusive and offensive language. Its account of previous work treats these events as a way to develop common datasets and compare systems under agreed conditions. The Italian cross-platform task supplied the most direct precedent because of its labeled Facebook and Twitter examples and its published separation of same-source and cross-source evaluation. The new comparison broadens the range of material under consideration by bringing in Instagram and WhatsApp.
What the new comparison asks
The authors’ motivating questions range from learning with annotations from another service to choosing which external examples to add. The main experiments tackle the case in which labeled material from the target platform is available and can be supplemented with examples from elsewhere. That distinction matters when reading the results. Pooling keeps target-platform examples in training, whereas the earlier cross-platform shared task could require learning exclusively on a different platform. A successful mixed training set therefore shows that external examples can be useful alongside target examples under the tested conditions.
The authors also ask whether a simple selection rule can make the pooled examples more suitable. They use message length for this purpose because of Twitter’s length restriction. The logic is that examples from another service may be closer to tweets when they are similarly short, even though they still come from a different collection. The experiment can show how that particular rule changes the result. Similarity in length leaves vocabulary, class frequencies, and annotation practices free to differ.
Adding Instagram and WhatsApp broadens the test while raising a question about the labels themselves. For Instagram, the researchers collect examples and annotate them for hate speech. For WhatsApp, they draw on an existing collection of school students’ chats, where the original annotations describe cyberbullying. The study converts those annotations to a message label so that the same classifier can be used for every platform. A shared output format makes the comparison feasible. The meaning and origin of the positive label still need to be considered when reading a score.
These choices put the study at the intersection of two resource decisions. The first concerns representation. A classifier can start from vectors learned on broad Italian text or from vectors learned on Italian social media. The second concerns supervision. It can train on human labels from a single service or on a mixture. The two decisions can produce different outcomes because the vectors help encode the input, while the annotations teach the detector how to assign its categories. The experiments keep that distinction visible.
The method, step by step
Making the labels comparable enough to train on
The classifier needs one training example to consist of a message and a binary label. The Facebook and Twitter datasets released for HaSpeeDe already have that form. A Facebook example is an annotated comment, and a Twitter example is an annotated tweet. The original data came with established test sets, which the authors preserve. These collections bring the same evaluation task into the new experiments while retaining their distinct sources.
For Instagram, the authors randomly collect messages from the profiles of students identified through an earlier monitoring system. They then annotate each message for the presence of hate speech. Random collection applies within that chosen area of Instagram. The sampling frame therefore matters alongside the label. For example, the paper illustrates a positive Instagram item with a short insult directed at a person. The classifier receives the message and its label, with no separate annotation indicating which expression in it led to the decision.
The WhatsApp examples require more preparation. The original pre-teen cyberbullying study collected chats through an experiment involving Italian lower secondary school students. Its annotations included participant roles, such as bully and victim, and marked expressions belonging to categories that included insults, discrimination, sexual talk, and aggression. The labels relevant to the new classifier originally identified tokens, the units of text to which the annotators attached their judgments. The underlying distinction between a token and a whole message matters especially for chat, where a person can distribute an utterance over successive sends. Tokenization
The authors join consecutive contributions from the same writer into a single message. This addresses cases in which a participant sends words in separate installments. The combined message receives a positive label if it contains any token annotated as a cyberbullying expression. A message with a mix of ordinary surrounding text and a marked insult consequently becomes a single positive training example. The paper illustrates this conversion with an utterance containing a direct insult about someone’s body. The classifier learns from the resulting message label. The annotated location of the insult and the participant’s role belong to the original collection and are outside the binary prediction task used here.
The rule for WhatsApp yields a dataset the architecture can read in the same way as the other three. It also makes the task on WhatsApp depend on the annotation categories inherited from the earlier study. The distinction is important at both ends of the method. During training, a pooled classifier receives positive WhatsApp messages as examples of the common output category. During evaluation, correct recognition on WhatsApp means agreement with the labels produced by the conversion. The procedure gives a specific account of how those labels were obtained. Linguistic annotation
Preparing the text
Before looking up word representations, the authors replace web addresses with URL and user mentions with username. The same marker can represent many different links or accounts. The classifier can therefore make use of the presence of a link or a mention without having to learn a separate input representation for every address or user name. The length filter used elsewhere in the study serves another purpose. It ignores URLs and mentions when deciding whether a training example falls within the character limit.
Hashtags receive separate treatment because their words can contain meaningful information. When words are written together in a hashtag, a classifier might have difficulty using the pieces as it would use ordinary words. The authors examine segmentation, in which a tool separates a hashtag into likely words. They adapt Ekphrasis from English to Italian by supplying Italian Google n-grams. An n-gram is a sequence of adjacent units, such as words. Here the Italian statistics support decisions about how to divide a string that has no spaces. The preprocessing comparison concerns the classifier’s performance with hashtag splitting enabled or disabled. N-gram · DataStories at SemEval-2017 Task 4
Emoji transcription is another optional change to the text. The authors start with the official textual descriptions of emojis. They translate the descriptions into Italian using Google Translate and correct the translations by hand. With transcription enabled, the classifier receives an Italian description in place of the original pictograph. This can make the description available through the same word representation as the rest of the message. Without transcription, the emoji remains in its original form. A count of emojis, when included among the additional features, gives the classifier a different kind of information from a textual description. A count says how many appear, while the description changes the sequence of words read by the recurrent layer.
Hashtag splitting and emoji transcription alter the input that the recurrent reader sees. The message-level features are a separate route through which properties of the post reach the prediction layer. For example, with social media features enabled, the number of hashtags can contribute a signal whether or not the words inside a hashtag are supplied separately to the sequence reader. The paper presents these as modular choices. Its reported settings specify emoji transcription, embeddings, and the type of supplementary features. The best-configuration results do not identify the hashtag setting.
Giving words numerical representations
The authors use FastText for both sets of Italian embeddings. An embedding gives a word a vector, an ordered collection of numerical values that a neural classifier can process. FastText can draw on pieces of a word as well as information associated with the full form. A form missing from the original vocabulary can therefore have a representation built from familiar pieces. This is relevant to the kind of writing the paper studies, where variations and unfamiliar forms are common enough to make vocabulary coverage a concern. Both resources are used in binary form. Enriching Word Vectors with Subword Information
The generic Italian vectors were obtained from the FastText resource trained on Common Crawl and Wikipedia. Their size is 300, meaning that each word representation has 300 components. For the in-domain alternative, the authors train 300-component FastText vectors on a sample of Italian tweets. Keeping the size and representation family the same makes the comparison informative about the source of the vectors. It does not tell the reader which individual word forms are better represented in either resource. Learning Word Vectors for 157 Languages · Sentiment Analysis on Italian Tweets
The Twitter vectors supply a representation of words even when the classifier is trained and tested on a different platform. This is separate from using tweets as labeled hate speech examples. The former choice determines the vector supplied for each word. The latter changes the set of messages and labels the classifier uses during training. A classifier trained solely on Facebook labels can still read its input through vectors learned on Twitter. The experiments compare these decisions in the same architecture, and the names of the settings make sense only if the distinction is kept in view.
From a word sequence to a prediction
The sequence of word vectors goes into a gated recurrent unit, or GRU. A recurrent layer processes words in sequence and maintains an internal state that can carry information forward. Gates regulate how the incoming information affects that state. The paper uses a GRU of size 200 and takes its state at the final timestep as the representation of the message. The figure calls that representation xₙ, with n denoting the last position of the sequence and xₙ denoting the output at that position. It gives the rest of the classifier a fixed-size input even when different messages contain different amounts of text. Learning Phrase Representations using RNN Encoder–Decoder
The authors concatenate this final state with the chosen message-level features. Concatenation puts the values into a single vector so the next layer can use them together. When the social media features are selected, the vector includes counts for hashtags, mentions, exclamation marks, question marks, emojis, and words written in upper-case. Those counts characterize how the message is written. They can be used alongside the recurrent representation, which carries information about the word sequence from which it was built.
The other message-level option uses HurtLex, a lexicon developed from Tullio De Mauro’s Italian inventory of hurtful language. HurtLex organizes entries into 17 categories. The authors use it to associate a hurtfulness score with a message. The paper describes the source and purpose of that feature, without specifying a formula for computing the score. A useful distinction between the options is what they can represent directly. A question-mark count records a formal property of the post, while the lexicon feature supplies information about the occurrence of potentially hurtful language. Neither input by itself determines the prediction. HurtLex
The combined input goes through a single feed-forward hidden layer with 500 neurons. The layer uses the rectified linear unit, or ReLU, activation, which passes along positive values and replaces negative values with zero. The authors use no dropout in this layer. Dropout would randomly omit some activations during training, so the reported setting keeps the hidden activations available throughout training. A single output unit with a sigmoid activation maps the result to a value between zero and one, giving the classifier a score for the binary decision.
Training uses binary cross-entropy. Its per-message calculation can be written in terms of the probability assigned to the observed label.
ℓ = −log(pᵧ)
Here ℓ is the loss for the message, y is its observed label, and pᵧ is the probability the classifier assigns to that label. For a hate example, pᵧ is the output probability for hate. For a no-hate example, it is the complementary probability. The log symbol denotes the logarithm, and the minus sign makes the loss larger when the correct label receives a smaller probability. The paper gives the loss function by name. The notation expresses what that choice asks the classifier to learn from each training example.
From an annotated message to a prediction
The steps in order.
Holding the architecture steady while training data change
The authors implement the classifier in Keras. They retain the recurrent size, hidden layer, and dropout choice across the comparisons. The fixed settings come from the authors’ EVALITA 2018 submission for the cross-platform direction in which Facebook supplied the training data and Twitter supplied the test data. Keeping these settings steady lets the paper compare training sources and input choices without independently redesigning the classifier for every target.
For the EVALITA datasets, the researchers use the released test partitions and reserve 20% of the development set for validation. Validation provides data separate from the examples used to fit the classifier and from the examples used to report test scores. For Instagram and WhatsApp, the team creates partitions because there is no standard test set for its task. It assigns 60% of each collection to training and divides the remaining 40% equally between validation and testing. These splits use the scikit-learn train-test split function with a random seed of 42. The seed specifies the random starting point used to make the partitions.
In the same-platform setting, the training data come from the service on which the classifier is evaluated. In the multi-platform setting, training examples from the available platforms are pooled. Evaluation remains on a particular platform’s test partition, so a score can be compared with the same-platform result on that target. The mixture changes both the amount of supervision and the kinds of examples in the training data. The experimental question is whether that change helps on a given target.
The filtered version uses the pooled sources but retains only training instances with a length of 280 characters or less, ignoring URLs and user mentions in the count. The motivation is to make the lengths of retained messages more similar to what a Twitter classifier encounters. The Twitter results report both forms of pooling alongside Twitter-only training. The training comparison thus has a same-source reference, an unrestricted mixture, and a mixture selected by one measurable property of the message.
Experiments and results
What the evaluation collections contain
The Twitter collection comprises 4,000 tweets. Of those, 2,704 are labeled negative and 1,296 are labeled positive for hate speech. The Facebook collection also has 4,000 examples, with 1,941 negative and 2,059 positive. Those examples are comments collected from 99 Facebook posts. The totals refer to the respective full collections. The proportion of positive examples on a particular test partition can differ from the proportion across the complete dataset.
The Instagram collection has 6,710 messages, with 6,510 negative and 200 positive for hate speech. It is the largest collection by total message count in the study, and its positive class is particularly sparse. That combination creates a different evaluation problem from having few messages overall. A classifier can encounter many examples of the negative class during development while having much less evidence about which forms the positive class takes. Both conditions matter when interpreting the results by label.
The original WhatsApp material consists of 10 chats. Joining successive contributions by the same participant yields 1,640 messages, of which 595 are positive under the rule based on token annotations. The number of resulting message examples is the relevant count for the classifier. The number of underlying conversations gives a different perspective on where those messages came from. Several examples can carry language or topics particular to the same chat.
The paper’s examples help bring out differences within the shared binary format. The positive tweet makes a derogatory characterization of refugees. The Facebook example is a comment endorsing political upheaval and talking about people carrying weapons. The Instagram example is a brief personal insult. The positive WhatsApp example contains hostile personal language within an exchange. For the purpose of the experiment, the classifier predicts the label attached to each message. Some are direct annotations for hate speech, while the WhatsApp judgment is derived from the presence of an annotated cyberbullying expression.
What the scores measure
The main comparison uses F1 for the hate class, F1 for the no-hate class, and their macro average. To read a class-specific F1, first consider precision and recall. Precision for hate asks how many messages predicted as hate actually have that label. Recall for hate asks how many messages labeled hate the classifier identifies. F1 combines precision and recall through their harmonic mean, which is sensitive to a low value in either. The corresponding calculation for no hate treats that label as the category to identify.
The macro average gives the categories equal influence in the headline measure.
Fₘₐcᵣₒ = mean(Fₕ, Fₙ)
Here Fₘₐcᵣₒ denotes macro F1. Fₕ is the F1 for hate, Fₙ is the F1 for no hate, and mean denotes the arithmetic average of the two class scores. The paper reports those quantities as decimals. A strong result on the much larger class in Instagram therefore cannot, by itself, produce an equally strong macro F1. The class scores also reveal cases in which a gain in the average accompanies a loss for the class a reader is particularly interested in.
The principal baseline for each target is the same classifier trained with labels from that target platform alone. This is a comparison between training sources using a common architecture, with the matched settings displayed for each target. The generic embeddings, the two kinds of supplementary features, and the transcription choices serve as additional alternatives explored during development. The main results table presents leading configurations and the relevant training-set comparisons. Accordingly, it gives exact scores for the training mixtures shown and only a qualitative account of many of the other choices. Evaluation & benchmarks
WhatsApp shows the clearest gain from pooling
On the WhatsApp test set, the pooled classifier records 0.796 macro F1, compared with 0.754 for WhatsApp-only training. Both reported settings use Twitter embeddings, emoji transcription, and the social media counts. They differ in the source of their labeled training examples. This is the largest improvement from pooling that the authors identify in their comparisons across test platforms.
Training sources on the WhatsApp test set, macro F1
Pooling improves the balance of performance across the WhatsApp labels.
The numbers
| System or setting | Macro F1 |
|---|---|
| WhatsApp-only training | 0.754 |
| Multi-platform training (this paper) | 0.796 |
The improvement appears in the scores for both classes. For no hate, multi-platform training achieves 0.852 F1 and WhatsApp-only training achieves 0.814. For hate, the corresponding F1 scores are 0.739 and 0.694. This pattern shows why the macro result improves. The additional data help under the evaluation’s positive-label definition and also improve agreement on the negative category. The reported scores do not tell whether better precision, better recall, or a combination produced those changes.
The authors suggest that WhatsApp benefits more because its collection is the smallest. That is plausible in light of the comparison. Its training partition is drawn from fewer messages than the other collections contain, and pooling introduces additional labeled material. The comparison also changes where the examples and their labels come from. The score measures the effect of adding the actual mixture, leaving the separate effect of training-set size open.
Facebook gains in the average while hate F1 favors local training
For Facebook, the pooled setting reaches 0.822 macro F1 and the Facebook-only setting reaches 0.812. The configurations in this comparison again use Twitter embeddings, social media counts, and emoji transcription. Keeping those input settings the same allows the scores to be read as a comparison of the two reported training sources on the Facebook test partition.
Training sources on the Facebook test set, macro F1
The pooled training set has the higher average across the Facebook classes.
The numbers
| System or setting | Macro F1 |
|---|---|
| Facebook-only training | 0.812 |
| Multi-platform training (this paper) | 0.822 |
The class results give that comparison a more specific meaning. For no hate, F1 is 0.773 with pooling and 0.733 with Facebook-only training. For hate, F1 is 0.871 with pooling and 0.892 with Facebook-only training. The macro average orders the settings according to how they perform across both labels. A comparison focused on identifying hate examples, as measured by F1 for that class, gives the higher score to training on Facebook alone.
This also clarifies why the Facebook finding differs from the WhatsApp finding. On WhatsApp, both categories move in the same direction. On Facebook, the training choice changes which of the two class scores is strongest. The reported F1 values combine different aspects of classification, so they give no direct count of how many hateful messages were missed or how many benign comments were flagged. The comparison is most precise when stated in terms of the reported metric for each class.
Instagram gains slightly with either class
On Instagram, macro F1 is 0.708 with the multi-platform training set and 0.702 with Instagram-only training. These runs use the same Twitter embeddings, social counts, and emoji transcription as the best-performing settings on Facebook and WhatsApp. For no hate, the pooled and single-platform scores are 0.984 and 0.981 F1. For hate, the scores are 0.432 and 0.424. Pooling has the higher result under all three reported measures, with a modest separation in each case.
The difference between the class scores is especially informative for Instagram. A reader who sees only the high score for no hate could come away with an inflated impression of the detector’s ability to find the positive examples. Macro F1 gives the much lower hate F1 equal influence. The underlying collection, with many negative labels and comparatively few positive ones, helps explain why a class-specific view is important. The study does not identify how much of the remaining difficulty comes from the number of positive training examples, the range of positive expressions, or the conditions under which messages were collected.
Instagram also shows why the number of messages in a collection is an incomplete guide to how much it might benefit from pooling. It contributes many messages overall, with relatively little positive supervision. The scores show a small improvement from adding other platforms under the reported settings. The design does not establish which added positive examples were relevant to the Instagram test items or whether more examples from the same Instagram sampling frame would have had a different effect.
Twitter favors tweets as training data
In the Twitter comparison, the leading macro F1 of 0.798 comes from training on Twitter alone. The length-filtered pool scores 0.789, and the unrestricted pool scores 0.782. All three settings use Twitter embeddings and HurtLex, with emoji transcription disabled. Thus the result holds those displayed input choices fixed while varying what labeled messages the classifier can train on.
Training sources on the Twitter test set, macro F1
Twitter-only training leads, and filtering the pool by length improves on unrestricted pooling.
The numbers
| System or setting | Macro F1 |
|---|---|
| Multi-platform training | 0.782 |
| Length-filtered multi-platform training | 0.789 |
| Twitter-only training (this paper) | 0.798 |
For no hate, the Twitter-only setting gives 0.879 F1, the filtered pool gives 0.858, and the unfiltered pool gives 0.851. For hate, the corresponding scores are 0.717, 0.720, and 0.712. Filtering the pool improves both class scores relative to unrestricted pooling. It also gives the highest hate F1 among the Twitter settings, though Twitter-only training has the higher macro score and no-hate F1. The effect of length selection consequently depends on the comparison and the measure used.
The paper relates these results to earlier HaSpeeDe evidence about the difficulty of moving between services. In the earlier benchmark, the Facebook test set contained 68% hate posts and the Twitter test set contained 32%. The best in-domain Facebook system cited in the paper scored 0.8288 F1 on Facebook and 0.6068 when that system was evaluated on Twitter. Those scores belong to the earlier transfer setting, where training and testing were on different services. The new pooling result concerns adding external data while retaining tweets, and its F1 scores answer that separate question. Overview of the EVALITA 2018 Hate Speech Detection Task
What the ablations show
Changing where the labeled examples come from
The paper’s main controlled comparison changes the training set inside a fixed classifier design. For each target, the displayed rows keep the same embedding source, supplementary feature type, and transcription choice. A within-platform comparison therefore avoids attributing the score change to some simultaneous change in those displayed settings. Because test data remain specific to the same service, the comparison is about what the additional training examples do for that target.
This comparison supports a practical conclusion about using the available collections together. The full mixture gives the strongest reported macro F1 on WhatsApp, Facebook, and Instagram. Twitter provides evidence that the same recipe can make performance worse. That platform-level result becomes more precise when read alongside the class scores. Adding data to Facebook training improves recognition of no hate as measured by F1 while weakening the hate score. On WhatsApp, both classes gain. The word “beneficial” therefore depends on a declared evaluation objective.
A stronger explanation of why the gains differ would require knowing which sources account for them. The same-platform and pooled settings vary several properties together. The pool contains more examples and includes language drawn from other populations and collection procedures. It can also change the balance of labels. Because the sources are added together, the comparison estimates their overall effect in that mixture. It gives no separate marginal effect for adding, for example, WhatsApp data to Facebook training or Twitter data to Instagram training.
Selecting the pool by length
The length comparison is the paper’s most direct test of a proposed difference between Twitter and the other sources. The classification architecture and displayed features stay the same, and the filtered mixture excludes examples whose counted length exceeds Twitter’s limit. Introducing this rule improves Twitter results relative to an unrestricted mixture. That gives the authors a reason to consider message length when choosing which examples to reuse.
The filter changes more than the maximum length that the recurrent layer sees. It changes the volume and composition of the training sample because it removes complete examples. If a particular source supplied many long messages, its contribution can fall. If certain kinds of positive or negative messages tend to be long, the filter can also change their representation in the pool. The paper does not give post-filter counts by source and label. The measured effect attaches to applying the selection rule as a whole.
The class scores also sharpen what can be said about the rule. Compared with the unfiltered pool, the filtered version gives higher F1 for each Twitter class. Compared with tweet-only training, its relative strength is the hate class. The experiment thus shows that selection can make a mixed pool more useful under the tested settings, with the remaining question of which retained examples account for the change. It supplies no evidence about a different length boundary or a rule that also considers vocabulary or topic.
Changing the representation of words
The authors compare generic and tweet-derived FastText resources. All the leading settings reported in the results use Twitter embeddings, including the settings for platforms whose labeled data never include tweets in the same-platform run. The authors describe the Twitter vectors as outperforming the general-purpose alternative throughout their experiments. This is evidence within the tested pipeline that a representation learned on social media can be useful outside its source service.
The paper does not give the corresponding generic-embedding scores in its main results table. The amount of improvement cannot be recovered from the winning settings alone. The shared FastText approach and dimensionality make a useful comparison of the two resources as used, although the paper does not present a training-corpus comparison that isolates the effects of genre, corpus size, or text composition. Its concrete evidence concerns which representation worked better in these runs.
This finding and the pooling result concern different mechanisms. A tweet-derived embedding can help the recurrent layer represent Italian social media language before the final classifier learns to distinguish the labels. Labeled tweets contribute examples of the link between messages and a particular annotation. Learning useful word representations from a collection says little on its own about whether more positive and negative examples from that collection will help a different target. The experiments show the value of keeping both choices explicit.
Changing the supplementary features and emoji treatment
The leading configurations for WhatsApp, Instagram, and Facebook share the social feature set and emoji transcription. For Twitter, the leading configuration uses HurtLex and leaves emojis as they were. The authors treat this as evidence that useful message cues vary across the tested collections. The patterns establish which combinations led in their comparison. There are no paired test scores in the results table that quantify the isolated contribution of each cue.
The paper proposes an explanation for HurtLex’s use on Twitter. If hurtful words remain visible there more frequently because moderation is relatively permissive, a lexicon can contribute information beyond the embeddings. That account is an author hypothesis. The experiment compares feature choices, and it does not measure moderation or connect individual removals to the contents of the dataset. A related explanation offered for emoji transcription is that the Twitter data contain relatively few emojis. The results are consistent with that account, while the paper gives no comparative emoji counts or numerical estimates of transcription’s effect.
The social feature counts summarize properties such as emphasis and the presence of hashtags or mentions. Their value in the leading configurations is compatible with several different uses by the classifier. A count could add information missing from the final recurrent state, or it could reinforce a cue already available through the wording. The aggregate scores cannot distinguish those possibilities. The paper also describes examining hashtag splitting, yet supplies no separate scores or winning hashtag setting in the results table. Its effect remains undetermined from the reported comparisons.
Taken together, the experiments are strongest when the reader can compare runs that differ in the named training-set choice. The feature experiments give a different kind of evidence. They identify successful configurations and motivate explanations for why those configurations differ by target. A full accounting of individual feature effects would need scores for matched settings with each change applied separately. The winning combinations alone cannot supply that accounting.
Limitations
Limits identified by the authors
The authors qualify the gains from pooling by their size. Although it improves macro F1 on most of the tested platforms, they regard the improvement as substantial only on WhatsApp. They suggest that the smaller WhatsApp collection leaves more room for additional labeled examples to help. They also report a decline for Twitter even when training is restricted to short messages. The conclusions thus concern the mixtures and target sets the paper actually evaluates.
The authors identify unequal corpus sizes as an obstacle to comparing relationships among individual services. A source with many training examples would offer more supervision than a small one in a source-to-target experiment. Differences in score would then combine effects of sample size and of similarities between platforms. The paper proposes expanding some collections to make a fairer comparison possible. Its existing pooled experiments give no direct ranking of which services share the most relevant cues for hate speech detection.
They also qualify their explanations for the Twitter feature choices. The reported result for HurtLex motivates a hypothesis about moderation and the presence of hurtful vocabulary. The emoji explanation concerns the relatively limited appearance of emojis in that collection. The authors say the cause of the HurtLex result requires further investigation. These interpretations are directions for investigating the patterns and sit alongside the narrower observation about which configuration scored best.
Limits visible in the evaluation design
The platform names describe the sources of particular collections. They also carry differences in sampling and annotation. Facebook comments came from a selected set of posts, Instagram messages from profiles connected to a student-focused monitoring effort, and WhatsApp messages from chats gathered in a school study. The results compare those collections as assembled. A platform-wide claim would require evidence that the messages and labels represent the wider uses of the service that such a claim would cover.
In WhatsApp, the practical meaning of a correct prediction is particularly specific. A positive example is a combined message that contains a token marked as a cyberbullying expression. The rule can apply to personal aggression and insults, as the paper’s example shows. The binary label is an adaptation for the common task, so a result on that collection measures agreement with the adapted criterion. The study gives no separate evaluation of how predictions would change if a common group of annotators reapplied a single hate speech definition to all four collections.
The collections can contain related messages. Some Facebook comments respond to the same originating post, and multiple WhatsApp messages come from the same chat. The paper specifies a random seed and split proportions for WhatsApp and Instagram. It does not establish whether entire chats or profiles were assigned to separate partitions. This leaves an open question about generalization to wholly new conversations or writers. It is a boundary on what readers can infer from the split description, with no evidence that a particular overlap occurred.
The evidence for small differences also comes from point scores. The paper reports no spread across repeated random splits or repeated training runs, confidence intervals, or significance tests. This matters most for close comparisons such as the Instagram macro results and the higher hate F1 for filtered training on Twitter. The observed ordering is clear for the reported runs. Its stability under another sample or run remains unmeasured.
The displayed class F1 values support comparisons across the two labels but have a resolution limit of their own. Class F1 combines precision and recall. Different kinds of errors can therefore lead to the same score. Without the separate values or a breakdown of predicted labels against observed labels, the reader cannot tell whether a change largely affects missed examples, incorrect flags, or both. This is especially relevant to Facebook, where the macro score and the hate-class score favor different training choices.
The paper uses the same architecture for the main comparisons and takes its fixed choices from the authors’ earlier shared-task submission. This makes the data comparisons easier to interpret within that architecture. The evidence is specific to a recurrent classifier with the chosen representations and auxiliary features. It does not measure whether a different architecture, a different tradeoff between classes, or a separate round of tuning for each target would preserve the ranking of training sources.
A further boundary concerns deployment on a service without target annotations. The earlier shared task supplied examples of training on one service and testing on another. The main results in this paper concern mixed training that includes the target, along with same-platform training. They do not give a set of holdout-platform scores for training on the other available sources and then evaluating on a platform excluded from training. The study therefore informs the decision to supplement existing target labels more directly than the decision to start without them.
Finally, the classifiers operate on the message units defined for the experiment. The WhatsApp preprocessing gives them adjacent material from the same person by joining contributions. The architecture described in the paper uses the resulting text and its selected features to predict a label. Tests that depend on full threads, exchanges between participants, or explicit knowledge of the person being addressed would call for additional inputs or a different evaluation unit. The reported scores are about detection from the messages as prepared in this study.
What came after
The subsequent research record is open. No later citing study is documented here, so the paper’s follow-up directions can be described through the experiments the authors proposed. These directions emerged from questions the results left unresolved: which sources help together, and whether a classifier should use the same training source for messages of different lengths.
The first proposed extension is to test more combinations of training sources and target sets. The published experiment compares a pooled set with each target’s own examples. Testing combinations separately could distinguish a helpful contribution from one platform from the overall effect of mixing several. The authors connect that idea to expanding some datasets, since comparisons conducted with markedly unequal resources could give the advantage to a source merely because it supplies more examples. With better matched collections, the experiments could address which source and target share cues that the classifier actually uses.
The second proposal is to apply a Facebook-trained classifier to longer texts and a Twitter-trained classifier to shorter ones. The reported filtering experiment uses length to select training examples for a single Twitter evaluation. The proposal instead uses length to decide which trained classifier receives a message. It follows from the observation that selecting shorter examples makes the mixed training set more competitive on Twitter and from the earlier contrast between Facebook and Twitter message lengths. The paper leaves that routing strategy unevaluated.
These proposals address different unresolved aspects of the same result. Testing source combinations would clarify the contribution of individual collections to pooled training. Routing by length would test whether differences between long and short messages are better handled by choosing a specialized classifier at prediction time. The published evidence remains the comparative evaluation of available Italian data, where the effect of pooling varies by target and can differ between the two label scores on the same test set.
Cite
Cite as Michele Corazza, Stefano Menini, Elena Cabrio, Sara Tonelli and Serena Villata. 2019. Cross-Platform Evaluation for Italian Hate Speech Detection. Proceedings of the Sixth Italian Conference on Computational Linguistics (CLiC-it 2019).
@inproceedings{corazza2019cross,
title = {{Cross-Platform Evaluation for Italian Hate Speech Detection}},
author = {Michele Corazza, Stefano Menini, Elena Cabrio, Sara Tonelli and Serena Villata},
booktitle = {Proceedings of the Sixth Italian Conference on Computational Linguistics (CLiC-it 2019)},
year = {2019},
url = {https://aclanthology.org/2019.clicit-1.21/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/corazza-2019-cross-platform-evaluation-italian-hate/