TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classification
Paper · 2020 · Francesco Barbieri, Jose Camacho-Collados, Leonardo Neves et al.
Summary
A system that reads tweets might be good at recognizing negative sentiment and still miss the irony that makes a particular message negative. Before TweetEval, researchers could study both abilities using published datasets, but the datasets belonged to separate competitions. Their results were hard to bring together into an account of what a single approach could do. TweetEval addresses that problem in natural language processing by putting established English tweet tasks under a common evaluation procedure and supplying reference classifiers that researchers can compare on that basis.
The benchmark includes tasks on irony, stance, hate speech, emotion, sentiment, offensive language, and predicting emojis. The authors draw the data from SemEval shared tasks, apply the same text preparation rules, and establish a validation split for choosing settings wherever one is needed. They also adapt some of the datasets. For emotion, they retain messages with a single label from a restricted category set. For emoji prediction, they limit the development data to comply with Twitter’s distribution policy. Each task keeps its original scoring convention. A separate score, TE, averages the task results to give an overview of performance across the collection.
The accompanying experiment asks where a tweet classifier should get its initial knowledge of language. The authors compare an existing RoBERTa checkpoint, a version trained from scratch on tweets, and a version that starts with the existing checkpoint and continues training on tweets. That initial learning uses unlabeled text. Labeled examples then teach each version to make the decisions required by a particular task. The study also includes a support vector machine, FastText, and a bidirectional recurrent classifier, so the reference points span substantially different ways of learning from text.
Continuing training on tweets gives the strongest overall results. The original RoBERTa-base also performs well and usually beats the Twitter-only version. Irony detection is the exception. There, the version trained from scratch on tweets does better and loses fewer F1 points between validation and test. The paper also looks outside the training strategy to explain some scores. Emoji prediction has much less training material than in its original competition, while the hate-speech validation and test collections come from periods with different topic distributions. TweetEval makes it possible to measure progress under a common protocol while keeping those differences visible.
Deep dive: TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classification
TweetEval brings English tweet classification tasks into one benchmark and tests how different ways of training RoBERTa affect the results. · about 34 minutes to read
The problem and its context
Why short messages are hard to classify
On Twitter, a reader often has a short piece of text from which to infer what someone is doing. The wording can be informal and conversational, and the platform’s length restriction limits the space available for explanation. Some difficulties come from the form of the text itself. A spelling or grammatical pattern that is unusual in edited prose may be ordinary in a tweet. Other difficulties arise even when all the words are familiar. A brief message can leave its subject, tone, or purpose implicit, with too little context for a confident interpretation.
The authors trace the first kind of difficulty through earlier work on basic processing. Twitter part-of-speech tagging concerns identifying the grammatical roles of words in these messages. Lexical normalization concerns relating unconventional written forms to more standard ones. Earlier named entity recognition in tweets considered the problem of identifying names in the same kind of material. The paper also points to a shared task on normalization and name recognition as evidence of how much attention these parts of the processing pipeline had required.
Those problems matter to a classifier because a useful signal can be expressed in a form that its text representation handles poorly. Even so, better handling of the written form only addresses part of the task. The paper uses sentiment analysis to make the second problem concrete. A reader trying to tell whether a tweet is positive or negative may need context that the tweet supplies only indirectly. This makes sentiment and emotion a demanding area of evaluation even when the words themselves are easy to recognize.
The classification tasks in TweetEval ask for different kinds of judgment about this limited input. Sentiment describes the polarity expressed in the message. Stance concerns the writer’s position on a designated target. Irony concerns the intent with which the thing was said. The same words can play different roles in these judgments. For instance, a complaint about a criticism of a policy can sound negative while expressing support for the policy. A benchmark containing both sentiment and stance can ask whether a classifier handles each kind of judgment when given the corresponding training examples.
What separate competitions could establish
SemEval shared tasks had already created the resources needed to investigate particular problems. A competition could define a label inventory, provide annotated examples, and establish a scoring rule for entries. That arrangement let participants focus on a shared question. Someone interested in emoji prediction could compare approaches under the conditions of that challenge, and someone interested in irony could do the same for the irony challenge.
The difficulty came when researchers wanted to assess progress across tasks. A score from a shared task describes a system under the conditions of that event. The training collection, development split, and score all help determine what the number means. Collecting published winning scores gives a record of what individual competitions achieved. A comparative experiment has a further requirement. It needs to give the approaches being compared a common set of conditions within each task, then show how their relative performance changes across the suite.
This was especially important for work on pretraining. The attraction of pretraining is that a representation learned from a large collection of text can be reused for several labeled problems. A success on one dataset establishes that the representation can support that particular prediction procedure. Its wider usefulness becomes clearer when the same starting point is taken through a consistent development process for several tasks. Differences across tasks then become part of the result, rather than something a reader must reconstruct from separate publications.
The authors identify SentEval, GLUE, and SuperGLUE as precedents from other areas of language evaluation. In the account given by the paper, common collections had helped researchers study abilities such as recognizing paraphrases, drawing inferences from sentences, and classifying sentiment. Their value came in part from offering several kinds of evidence about an approach under reusable evaluation conditions. TweetEval brings that design principle to English Twitter classification.
The choice of a classification suite also gives the benchmark a manageable scope. In text classification, the system selects a category from a prescribed inventory for each input. A category may have a very different meaning from one task to the next, but each task can present labeled examples and collect predictions through a similar interface. The authors can therefore align the mechanics of the comparison while leaving much of the original shared-task design in place.
Why the source of pretraining was an open question
The paper situates its comparison in a period when approaches based on the Transformer had become competitive on many language tasks. It mentions BERT, GPT, and XLNet as examples of that development. For tweet classification, the relevant aspect is the division of learning into stages. Text without task annotations can support the initial stage. A smaller collection with categories assigned to its examples can then be used to teach a specific prediction task.
A starting point built on general text has already absorbed evidence from a large and varied collection. Training completely on tweets offers exposure to the conventions of the intended domain from the beginning. Continued pretraining combines those sources in sequence. The authors regard the choice as consequential because broad pretraining takes substantial resources, while the material already used by some general-purpose systems includes language from the internet. Their discussion identifies 38GB of Reddit material when explaining why this existing exposure can matter. The boundary between general-purpose training data and the language of online conversation is therefore less clear-cut than the names of the strategies might suggest.
The question for TweetEval is operational. Given a set of English tweet tasks and a Twitter collection for further learning, how do these starting points fare after each has been taught the relevant labels? The benchmark lets the authors ask that question repeatedly with different prediction targets. A consistent advantage across the collection would support a general choice of starting point for this setting. An advantage that changes with the task could guide a different choice when only one capability matters.
The method, step by step
From shared-task material to a common procedure
There are two data sources in the experiment. The labeled SemEval collections define what the classifiers must predict and provide the examples used to train and evaluate those predictions. A separate, much larger collection of tweets supplies text for the initial learning of the Twitter-trained RoBERTa variants. Its role is to expose the systems to language on the platform. It does not supply the sentiment, stance, or other target categories that the classifier must eventually select.
A reader can follow the experiment by tracing those sources to the moment they meet. The benchmark defines the inputs, labels, splits, and scoring for each task. The pretraining experiment prepares different starting points for the classifiers. At fine-tuning, a starting point is paired with the labeled training examples for a particular task. The resulting classifier is assessed on that task’s held-out data.
How TweetEval builds and runs the comparison
The steps in order.
Define the decision each classifier must make
Start with sentiment. TweetEval uses Subtask A of SemEval Twitter Sentiment Analysis. The classifier chooses among positive, negative, and neutral for the tweet as a whole. The source resource incorporates data from the earlier editions of 2013, 2014, 2015, and 2016. The resulting task inherits a collection assembled across several runs of the shared task, with one polarity judgment required for each evaluated message.
Emotion recognition draws on Affect in Tweets. Its starting point was a collection with 11 emotion categories in which a tweet could be assigned several labels. That format can represent a message annotated with both anger and sadness. To fit the benchmark’s classification interface, the authors first keep messages bearing a single emotion label. They then retain Anger, Joy, Sadness, and Optimism, applying a cutoff of at least 300 training examples per category.
The two emotion filters do different work. The single-label filter determines which messages qualify. The frequency rule determines which categories have sufficient support among the qualifying material. A correct prediction is consequently a match to the sole reference label for a tweet that meets both conditions. This is a more specific target than recognizing every emotion that might be present in a message. The distinction follows directly from how the input examples were chosen, before any classifier sees them.
For emoji prediction, the starting point is the SemEval emoji challenge. The retained examples are tweets that contain a single emoji, wherever it occurs in the message. Its identity determines the reference category, and the classifier’s job is to infer that category from the text. The authors keep the competition’s test set and limit the training and validation material to 50,000 tweets to meet Twitter’s distribution requirements. That choice preserves the same test collection while changing how much annotated material the classifier can use to learn the task.
There are 20 possible emoji labels. More than 42% of the tweets are assigned to the 3 most frequent labels. The skew matters both for learning and for evaluation. A learner sees far more evidence for some distinctions than for others. A score that counted all examples together could also be strongly influenced by those frequent cases. Macro F1, the scoring rule used here, provides a view in which performance on each label has a place even when its examples are comparatively rare.
Irony detection uses Subtask A from SemEval’s English tweet irony challenge. Each tweet is classified for the presence or absence of ironic intent. The source dataset was deliberately balanced to make the task more accessible. The evaluation then centers on how well the classifier identifies the ironic class. Balancing the source data and choosing a positive-class score are separate decisions. The first sets the composition of the examples, while the second determines which predictions contribute to the headline metric.
For hate speech, Hateval supplies the English material. The question is whether a tweet expresses hate against women or immigrants, the target communities covered by the task. Offensive-language identification instead uses OffensEval to ask whether offensive language occurs. The two datasets permit related kinds of prediction without requiring the same annotation decision. A cue for recognizing offensiveness may be useful for hate detection, where the target of an expression also matters to the task definition. Each classifier is trained to the labels of its own dataset.
Stance comes from Detecting Stance in Tweets. The categories concern whether the writer favors, opposes, or takes a neutral position towards a specified target. Two of the targets are abortion and atheism. The others are climate change, feminism, and Hillary Clinton. The meaning of an answer depends on this target. A stance prediction about an issue refers to a relationship between the text and that issue, even if the message expresses several other attitudes.
The training setup respects the source task’s target structure. Training examples are supplied separately for each stance target, and validation material is drawn separately from those collections. This means the benchmark comparison asks how each approach works when it can learn from examples specific to the target it will assess. That property is important when reading the final score. A different experiment would be needed to find out how well the same approach handles a target for which it has received no labeled examples.
Give all tasks the same development stages
The paper specifies a common role for each split. The training portion supplies the labeled examples used to fit a classifier. Validation provides a held-out check while the authors choose settings. The test portion provides the final assessment. Where the source task lacks a validation split, the authors randomly sample one from the training material. This makes validation available throughout the benchmark even though the original competition resources were organized differently.
The amount of training supervision still varies considerably. The paper describes a range from a few hundred examples to over 40,000. Those figures concern the labeled task data. A pretraining collection can be much larger because its examples need no manual decision about the eventual classification target. Once the classifier has reached the labeled stage, it learns the connection between what it reads and the labels from the examples particular to each task.
The authors use one set of preprocessing rules for all tasks. They anonymize references to users and remove both web links and line breaks. This defines the text on which the released benchmark operates. One immediate effect is that a classifier encounters anonymized mentions in place of specific account names. Another is that the contents of a linked page lie outside the input. The prediction is based on the resulting tweet text.
The common preparation is valuable for comparison because an approach tested across the suite encounters the same treatment of those input features. It leaves meaningful differences intact. Labels still come from different annotation projects. Stance still has separate targets. Emoji prediction still has its restricted training pool. The authors release the curated benchmark as TweetEval in their official repository, so the actual data organization and preprocessing choices can be reused along with the task names.
Score the predictions at the appropriate level
The paper retains the original metric for each task. Most use macro F1 across the label set. To understand the choice, take a label such as Optimism. Its precision is the share of predictions of Optimism that match the reference labels. Its recall is the share of reference Optimism examples recovered by the classifier. F1 combines precision and recall using their harmonic mean, which makes the result sensitive to a low value on either side. An approach that predicts Optimism freely can recover many of the relevant tweets and still have poor precision if many Optimism predictions are wrong.
Macro averaging calculates a score for each label before averaging across the labels. For macro F1, that means computing each label’s F1 first. The categories then contribute equally to the average even when the sample contains very different numbers of examples for them. This is particularly pertinent for emoji prediction, where the most frequent categories account for a large portion of the tweets. The overall fraction of correct predictions and the macro score answer different questions about what was learned.
The exceptions concern both the types of scores and which labels enter them. For irony, the measure is F1 for the ironic class. It rewards finding true cases of irony and accounts for false claims of irony through precision. For stance, the score averages the F1 values for favor and against. The neutral category remains available as a prediction, and assigning it incorrectly can affect the recovery of the scored categories. For sentiment, the authors use macro recall, giving the recovery rates for positive, negative, and neutral equal influence.
The new overall measure is TE. The authors take inspiration from GLUE and define it as an average of the dataset-specific results. Written as a formula, the rule is:
TE = (∑ᵢ sᵢ) / n
TE is the overall TweetEval score. The index i runs over the task scores that enter the average, and sᵢ is the original evaluation metric’s value for task i on the split being reported. The summation sign ∑ adds those values. The parentheses group the sum, the slash divides it by n, and n is the number of task scores included. The equals sign defines TE as the result of that calculation.
Averaging at the task level gives each task’s reported performance a share in TE. A dataset with more test tweets does not acquire a larger share merely from its size. This is why it is possible to read the evaluation at different levels. The aggregate summarizes how well a training strategy fares over the group of tasks. The components tell the reader which prediction problems and scoring conventions produced that outcome. TE is calculated after evaluation. The classifiers learn from their task data and the authors choose settings using validation.
Prepare different starting points for RoBERTa
The authors choose RoBERTa in part because of its strong performance on GLUE. They also note that it omits the next-sentence prediction objective associated with BERT. That objective supplies a learning signal about the relationship between sentences. The authors regard its omission as a good fit for a domain where most tweets consist of a single sentence. This is a reason for selecting the architecture used in the comparison. The experiment then focuses on what text it learns from and in what order.
RoB-Bs is the existing RoBERTa-base starting point. The paper reports that its original pretraining used 160G of uncompressed text. On TweetEval, this version proceeds from that checkpoint directly to supervised classification. It provides the reference for how far the existing representation can go with the labeled task examples alone.
RoB-Tw starts again with the same architecture and learns from the tweet collection. The Twitter-only version has its own tokenizer, which determines how written text is split into the pieces processed by the system. Its parameters learn from the Twitter corpus without inheriting the ones from general pretraining. It represents the strategy of building a system for the domain from its own text.
RoB-RT begins at RoBERTa-base and carries on learning from the tweet collection. It retains the original tokenizer and uses the same masked language learning objective. In masked learning, parts of the text are hidden and their identities supply the targets to be predicted from the surrounding material. The text thus provides its own supervision. Continuing this process on tweets exposes the existing parameters to the new genre before any of the benchmark classifiers learn their task labels.
The sequence matters. In RoB-RT, Twitter training changes a parameter state that was already shaped by the general corpus. In RoB-Tw, the Twitter collection is responsible for forming that state from the beginning. Both are then fine-tuned within the same classification framework. The practical experiment compares those complete histories, including the tokenizer that accompanies each one.
Collect the tweets for the unlabeled stage
The Twitter collection contains 60M tweets. The authors obtain it through the stream API over the period May'18 to August'19 and select English material using Twitter’s automatic language labels. They require a tweet to contain at least three tokens and exclude messages with URLs. Their stated reason for those filters is to reduce the presence of bots and advertising spam in the training collection.
The resulting material contains 584 million tokens and occupies 3.6G as uncompressed text. Both of the Twitter-pretrained variants use this collection. The shared corpus means that the choice between rebuilding and continuing can be observed with the same source of Twitter exposure. It also makes that comparison specific to the volume, period, and filtering of the data the authors assembled.
The reported learning rate for both runs is 1.0e-5. A learning rate sets the scale of the changes made to the parameters as training proceeds. The authors use early stopping on a validation split, so the decision about when to stop is informed by held-out performance. They report convergence after about 8/9 days on 8 NVIDIA V100 GPUs. They use the Huggingface Transformers library and estimate a cost of USD 4,000 for each run on Google Cloud. These resources describe the reported Twitter pretraining runs, before training the individual classifiers.
Fit the classifiers and choose settings on validation
Each RoBERTa variant needs an output that matches the target task. The authors add a dense layer, a learned mapping that turns the final representation into a set of scores with one entry per label. Which scores the layer must produce depends on the task. Irony gives it a binary decision. The emoji inventory requires an output over all the retained emoji categories. The same general attachment works in each case because the supervised target is a category.
Fine-tuning updates all the parameters, including those inherited from pretraining and the new classification layer. This lets the task examples change the representation as well as the final label mapping. The experiment consequently evaluates the starting points as resources for supervised adaptation. How well a representation serves as a frozen feature extractor would be a different test.
The authors search the starting learning rates 1.0e-3, 1.0e-4, 1.0e-5, and 1.0e-6. They use a validation-based early-stopping setting of 5 epochs. An epoch is a pass through the training examples. They repeat experiments with the seeds 1, 2, and 3, where the seed controls the random choices made in a run. Repetition lets the report describe the performance of the training procedure across runs as well as the result of a run selected on development data.
The learning rate is selected by validation performance. The setting chosen there is then used for the test assessment. This detail becomes important when the paper discusses a task whose test split differs from its validation split. The test result assesses a procedure that had to decide which settings to use based on the information available during development. A gap between splits can reveal that success under the development conditions carried over poorly to the final collection.
Include reference systems with different representations
The support vector machine, or SVM, uses features based on word and character n-grams. An n-gram is a run of adjacent units. At the word level, these features can represent recurrent expressions. At the character level, they can represent fragments that recur across different written forms. The authors include these features because this type of classifier had performed well in earlier Twitter challenges, including emoji and stance prediction. It is a point of comparison with a prior record of relevance to the domain.
FastText gives the experiment an efficient reference classifier using standard features and smaller units within words. The recurrent reference is a bidirectional long short-term memory network, or BLSTM. It processes the sequence in both directions so that its representation can use material on either side of a position. The reported setup has 128 cells, a 100-dimensional embedding layer, and dropout of 0.5. Dropout temporarily suppresses part of the network during training as a form of regularization. The BLSTM’s learning rate is chosen on validation from the same candidate set used for RoBERTa fine-tuning.
FastText and the BLSTM both initialize their word lookup tables with 100-dimensional FastText word embeddings learned from the 60M-tweet collection. An embedding represents a word by a set of learned numeric coordinates that the classifier can use in place of the written form. The paper draws on the FastText approach to subword-enriched word vectors. Because these vectors come from the tweet corpus, some lexical evidence from that corpus is available to the simpler reference systems as well as to the pretrained RoBERTa variants. The methods differ in how they use that evidence to learn a classifier.
Experiments and results
The comparison across the benchmark
The experiments report validation and test performance for the approaches trained on TweetEval. For neural systems, the result presentation distinguishes the mean over the repeated runs, the standard deviation, and the result selected through validation. The standard deviation describes how much the outcomes vary across runs. The validation-selected result shows what the procedure can deliver by making a choice on development data. Those views answer complementary questions about the typical behavior of the training process and the outcome obtainable through selection.
The authors also report the best results from the original shared tasks for context. They flag cases where more training data was used and explain that partitions can differ from the TweetEval versions. The historical scores describe what entrants did in their original settings. The experiments carried out inside TweetEval provide the common basis for ranking the pretraining strategies. Emoji prediction shows why that distinction matters in practice.
RoB-RT is the strongest variant overall. The comparison with RoB-Bs gives the most direct evidence for the value of the additional learning stage. Both inherit the same general starting point and use its text segmentation. RoB-RT then receives the extra Twitter training. Once the two versions are fine-tuned for the benchmark tasks, the continued-training approach proves more effective across the suite.
RoB-Bs itself supplies a competitive starting point and outperforms RoB-Tw on most tasks. So the newspaper-like or conversational character of an individual tweet does not on its own determine which training corpus will produce the better classifier. The authors point to work on variation and formality in Twitter language when interpreting this result. Ordinary and formal writing also appear on the platform, giving a broadly trained system familiar material to work with. Another possibility they raise is that Twitter-only training would benefit from a larger collection, with a corresponding increase in cost.
These results address a choice that arises before task-specific training. A researcher could start with the released general checkpoint, build a Twitter-only system, or continue training the checkpoint on tweets. Under the conditions studied, the investment in continued training yields the strongest overall performance. The comparison also shows that the existing checkpoint remains a substantial reference for judging the value of that investment.
Irony changes the ordering
Irony detection is the task on which the authors identify the Twitter-only variant as doing better. They support their discussion with the decline in ironic-class F1 between validation and test. RoB-RT loses 13 F1 points. RoB-Tw loses 5 F1 points. The comparison concerns the amount of deterioration between the splits. The paper’s account of the stronger irony performance of RoB-Tw supplies the accompanying judgment about the task outcome.
TweetEval irony detection, F1 decline from validation to test
The Twitter-only variant retains more of its validation performance on the test split.
The numbers
| System or setting | F1 points lost |
|---|---|
| RoB-RT | 13 |
| RoB-Tw (this paper) | 5 |
The decline complements an absolute test score by showing how stable the outcome is when moving from the data used for development to the data used for final assessment. A small drop could in principle accompany weak performance on both splits. Here the authors use the smaller drop as evidence about generalization alongside the result that the Twitter-only version performs better on the task. The combination is more informative than either observation on its own.
The authors suggest that irony on social media may differ from its expression in more conventional writing. They also note that the irony training tweets average 79.3 characters, while most other tasks have averages over 100 characters. Brief messages may make each available cue more important. The paper connects that possibility to how readily a tokenizer can represent the forms in a tweet using relatively few pieces. These are suggested explanations for the irony result. The observed comparison establishes the relative behavior of the complete systems on the task.
Emoji scores depend on the training collection
Emoji prediction has low scores relative to the original shared-task results. The authors attribute the discrepancy to the smaller amount of training material. The benchmark limits what it releases under Twitter’s distribution rules. The original competition used identifier sharing, under which its training collection was one order of magnitude bigger according to the paper. TweetEval keeps the original test set, making the reduction in training access particularly relevant to the comparison.
When the scoring rule is macro F1, the number of training examples matters in conjunction with how they are distributed among labels. Less frequent emoji leave fewer examples from which to learn the contexts that suggest them. The category nevertheless keeps its share of the macro average. The authors’ account puts the competition’s historical score and TweetEval’s scores into their respective training settings. The lower benchmark scores describe performance under the released data conditions.
The change also helps explain why an aggregate like TE needs a stable benchmark version. Changing how much supervision a task supplies can change its contribution to the aggregate even if the other classifiers and tasks are the same. In these experiments the emoji contribution is calculated from the defined TweetEval task, with its native metric and its restricted development data. The old competition score shows what was achieved with different access to data.
Hate speech exposes a change between splits
Hate detection presents a different issue. Its validation and test material come from different collection periods. Following the source task’s organizers, the authors attribute much of the performance gap to the change in the distribution of topics between those periods. The sentiment of a message, the terms used to discuss a community, and the topics that bring it into a conversation can all be expressed through words available to a classifier. When the prominence of particular topics changes, evidence that helped on the validation examples can become less reliable on the test examples.
This matters because validation decides which learning settings appear most successful before the final test. An approach adapted to the development collection can be rewarded there for patterns that carry over poorly. The authors’ explanation therefore concerns the relationship between the data partitions as well as the prediction procedure. Harmonizing text preparation across the benchmark still leaves each dataset with its own collection history.
The emoji and hate results put the overall comparison in context. Their scores reflect the trained classifiers, but they also reflect how much evidence a task supplies and how well its development data represent the final evaluation conditions. TweetEval makes the rules of comparison more consistent while retaining these differences in the underlying experiments. That is one reason the task results remain important beside TE.
What the ablations show
What the training comparison isolates
The paper’s closest equivalent to an ablation is its comparison of pretraining strategies, supplemented by measurements of tokenization and by discussion of changes between data splits. RoB-Bs and RoB-RT offer the most focused contrast. They start from the same general checkpoint and keep the same tokenizer. RoB-RT receives additional masked training on the collected tweets. With the later classification procedure held common, their relative results show the effect of adding that stage as a practical package.
This contrast answers whether the extra Twitter stage helped in the reported setup. A control that spent comparable additional training on more general text would answer a more specific question about the choice of corpus. The paper’s experiments leave open how much of the observed benefit depends on seeing Twitter text in particular and how much could be obtained through some other continuation. The evidence supports the tested adaptation procedure as a whole.
RoB-RT and RoB-Tw answer a different practical question. Each sees the same tweet corpus, but RoB-RT already has parameters learned during general pretraining and uses the original tokenizer. RoB-Tw obtains its representation and parameters through the Twitter-only strategy. Their comparison shows which of these starting points works better after the given Twitter training and downstream adaptation. A separate experiment varying initialization while fixing the tokenizer would be needed to estimate the independent contribution of inherited parameters in that comparison.
This distinction also applies to the authors’ suggestion that broad text exposure brings robustness and greater knowledge about the world. That is a motivation for retaining general pretraining and a possible explanation of its usefulness. TweetEval measures the prediction outcomes produced by the full training histories. It offers no independent measurement of how much world knowledge each version acquired or which particular pieces of knowledge helped a classifier make a correct decision.
What the token counts reveal
Tokenization turns written input into units that a classifier can process. In subword tokenization, one written word can give rise to several pieces. Common strings may be represented compactly, while unfamiliar ones may need to be assembled from smaller fragments. Counting those pieces can therefore show how differently two tokenizers partition the same collection of tweets.
The authors use Twikenizer, a Twitter-specific tokenizer, to supply a descriptive average token count for each task. In another part of the analysis they count the word pieces produced by the original RoBERTa tokenizer and the tokenizer trained for RoB-Tw. The original tokenizer is shared by RoB-Bs and RoB-RT, so that side of the comparison applies to both. The caption specifies that the stance statistics are averaged across the targets. In the reported relative comparison, a positive difference indicates that the original tokenizer produces more pieces.
The largest relative difference is 6.8%, on the hate-speech dataset, where the original tokenizer produces more pieces. The authors suggest that less standard vocabulary, including insults, helps explain why the gap is greatest there. They describe the differences across tasks as generally modest, with emotion recognition and offensive-language identification as possible further cases of interest. That pattern gives a more specific picture of domain fit than the premise that all Twitter text requires its own vocabulary.
A word-piece count describes the form of the representation. A system can encounter a long sequence of pieces and learn to recognize it as a meaningful expression. The authors make this point for RoB-RT, which keeps the original tokenizer but can acquire familiarity with sequences during its further learning. They use emoji as an example because the underlying byte-based representation can encode their Unicode bytes even when the initial training did not learn a dedicated representation for a particular emoji. Coverage at the level of bytes allows the string to enter the system. The subsequent learning stage determines what predictive use it makes of that string.
The hate-speech result illustrates the bounds of this diagnostic. The dataset has the largest reported discrepancy in segmentation and also exhibits a validation-to-test gap. The segmentation statistic concerns the pieces used to represent the input, whereas the split discussion concerns differences in the distribution of topics. There is no controlled replacement of one tokenizer with the other within the same trained system that would show how much of the score gap could be recovered through segmentation alone.
Why the task exceptions remain partly unexplained
In the irony discussion, message length gives a reason to consider the tokenizer more closely. A short tweet affords few chances to resolve a puzzling expression using other words in the same message. A representation that captures a distinctive form compactly could help the classifier learn from it. The authors also suggest a difference in the way irony itself is expressed on social media. The comparison leaves those possibilities entangled with the broader differences in the pretraining histories.
A cause such as shortness would be easier to assess in an experiment that varied length while holding other relevant conditions comparable. A tokenizer effect would be easier to assess by pairing the same training strategy with alternative segmentations. The paper provides the overall irony outcomes, a length statistic, and a cross-task tokenizer analysis. Together these establish the phenomenon and motivate explanations without deciding how much each explanation contributes.
The hate-speech discussion likewise identifies a plausible source of distribution change through the history of the collections. This is evidence about how the evaluation was assembled. A controlled test that separated the effects of topic, period, and other collection choices would require more than comparing the existing validation and test outcomes. The reported gap shows how the chosen approaches behave under the existing shift. The analysis explains why the authors and the task organizers consider topic change an important part of that result.
Limitations
Limits identified by the authors
The authors deliberately restrict the first release to classification to make the setting accessible and reproducible. Other social-media problems can require a different prediction format. Sequence tagging assigns judgments to positions or spans in text. For example, finding the text of a name requires locating it within the tweet. A collection designed to evaluate a whole-message category gives limited evidence about how well a system can locate those spans.
The paper also identifies multimodal processing and code-switching as directions for a broader benchmark. Multimodal tasks may require interpreting a message together with another kind of input, such as an image. Code-switching involves more than one language in the same material. The original TweetEval framework evaluates prepared text from English tweets. The authors flag both settings as requiring further evaluation design.
Several limitations are internal to the tasks already included. The authors propose restoring multi-label emotion recognition because their version only uses single-label examples from the retained categories. Recovering two emotions in the same tweet tests the ability to assign overlapping judgments. The published results concern choosing a single emotion in the restricted dataset. For emoji prediction, the authors propose expanding beyond the inventory of 20 labels. The existing evaluation concerns precisely that inventory and the case where a single emoji supplies the label.
The authors emphasize that each dataset samples its underlying problem. Collection and annotation decisions introduce biases, and systems can struggle to generalize to other settings. The task definitions make that concern concrete. Hateval focuses on two designated communities. Stance draws its targets from a particular shared task and provides target-specific training material. Irony uses a deliberately balanced collection. Treating these as specified evaluation populations gives a clearer account of what success on the test can establish.
The report also points to multitask learning as future work. Sentiment and emotion have related subject matter, as do hate speech and offensive language. Shared learning might reveal transferable patterns between those problems. The reported scores come from fine-tuning for the separate tasks. They establish the performance of those task-specific adaptations and leave the effect of joint learning open.
Limits visible in the experimental setup
The strongest statement supported by the pretraining experiments concerns the tested RoBERTa variants and the available data. RoB-RT inherits a substantial prior investment in general training. RoB-Tw undertakes its learning using the Twitter collection and its own tokenizer. A comparison that equated prior compute, data volume, and tokenizer would address a different question about the independent value of the training genre. The original experiment is suited to choosing among the offered approaches as they actually exist.
Similarly, the corpus settings define what it means to train on Twitter for this study. Collection takes place within a specified period. English selection relies on automatic labeling, and the short-message and URL filters shape the material that enters the corpus. The authors state their reasons for filtering. The broader implications of those choices, such as how they affect the range of usages that the classifier learns, remain outside the experiment. Results therefore apply most directly to approaches prepared on the reported collection and evaluated on these labeled datasets.
Validation-based selection brings its own boundary. Random sampling is the fallback when the source task offers no development set. Such a validation split can guide choices on examples drawn from the original training material. Its ability to guide choices for a test set from another period depends on what that test set shares with it. The hate-speech analysis provides a case where collection history matters. It leaves open how well the same training procedure would transfer across other periods or changes in topics.
There is also a distinction between the evaluation of labels and the evaluation of decisions in use. On TweetEval, an irony prediction succeeds by matching the reference category, as reflected by the precision and recall of ironic predictions. That says how well the system makes the benchmark decision. A study of whether it identifies the specific expression that makes a message ironic would need evidence beyond those labels. The same boundary applies to explanations for a stance judgment or to reliable interpretation when the text depends on a conversation unavailable in the input.
TE is an average over the task scores in this suite. That gives it a well-defined use in comparisons conducted on the benchmark. Each component still reflects its own scoring convention and dataset. Improvements in sentiment macro recall and irony F1 enter the same overall average, although they reflect different changes in prediction behavior. A reader concerned with a particular mistake, such as falsely classifying a tweet as ironic, needs evidence at the corresponding task or error level. The overall result answers the broader question posed by the mix of tests the authors chose.
What came after
A larger remit for social-media benchmarks
SuperTweetEval returns to the idea of a unified evaluation for social-media language processing and explicitly puts heterogeneity and challenge at the center of its remit. This is the closest continuation of the original benchmark’s organizing question. TweetEval made varied judgments comparable by putting them into a common classification procedure. A benchmark that emphasizes a wider range of tasks takes up the question the authors left open about how to evaluate social-media work that needs other forms of prediction.
CrossFit uses the idea of a task collection to frame a different question, cross-task generalization in few-shot learning. TweetEval’s experiments show what a starting point can do when adapted with the training data available for each classifier. CrossFit centers on learning under limited supervision and on the ability to generalize across tasks. Both rely on having distinguishable, reusable prediction problems. They put the boundary of the generalization test in different places.
The later study Sentiment Analysis in the Era of Large Language Models returns to one of the abilities in TweetEval and frames its evaluation as a reality check. That is a continuation of the benchmark’s emphasis on measuring a specific capability under stated conditions. Broader claims about language systems can be examined through a familiar task such as sentiment, for which the labels and scoring convention make the exact prediction target explicit.
Specialization along language, time, and content
TimeLMs makes time central to its treatment of Twitter language. TweetEval’s hate-speech discussion shows a case where material from different collection periods changes the conditions of evaluation. TimeLMs pursues the temporal dimension as a subject in its own right. The connection is between a shift that complicates interpretation of one benchmark result and a later line of work organized around language from Twitter at different times.
XLM-T applies the Twitter-specific direction to multilingual work, including sentiment analysis. TweetEval established its comparison on English tweets. The multilingual focus of XLM-T brings the domain question together with variation across languages. This extends one axis of the original setup while retaining sentiment as a concrete prediction problem on which the value of Twitter-specific preparation can be examined.
HateBERT takes up retraining in the more focused setting of English abusive-language detection. Its relationship to TweetEval is clearest in the choice to start with an existing pretrained system and use retraining to specialize it. TweetEval compares that kind of choice across several tweet tasks, including hate and offensive language. HateBERT makes abusive-language detection the goal of the adaptation itself.
Exploring Cross-Cultural Differences in English Hate Speech Annotations pursues a question on the data side. It connects dataset construction with analysis of cross-cultural differences in judgments about English hate speech. TweetEval already shows why the time and topics represented in a collection matter for evaluation. The later study’s stated concern is whose judgments the annotations represent. It extends attention to the dataset conditions that give a hate-speech score its meaning, within the language that TweetEval originally covers.
Task collections and new ways to adapt
Rethinking the Role of Demonstrations investigates what makes in-context learning work. Its topic is the use of demonstrations supplied in the input to elicit a task response. TweetEval uses labeled examples to fine-tune the classifier’s parameters. A collection of labeled prediction problems remains relevant in the demonstration setting because the examples and the test items still need a clear task definition. The methodological question shifts to what information those examples provide when presented in context.
MetaICL treats learning in context as something a system can prepare for through training. Adapting Language Models for Zero-shot Learning by Meta-tuning on Dataset and Prompt Collections explicitly places collections of data and prompts inside the adaptation procedure. These citing works approach varied tasks as material for studying how the ability to adapt is acquired. In TweetEval, the task suite primarily measures the outcomes of adapting each starting point to the supplied labels. The later questions concern how experience across tasks might shape the adaptation procedure itself.
Focused questions within stance and sarcasm
Cross-Domain Label-Adaptive Stance Detection addresses stance when the domain and label setting change. TweetEval’s version provides separate training and validation material for its specified targets. That gives a baseline structure for studying how to learn a stance judgment with target-specific examples. The later work’s focus on adapting domains and labels puts the transfer problem itself at the center of the study.
Chain-of-Thought Embeddings for Stance Detection on Social Media pursues a different question within stance, the choice of representation for making the decision. Its named approach puts embeddings at the center of the method. The connection to TweetEval is through the continued use of social-media stance as a distinct prediction problem, where expressing a position about a target is the behavior to assess.
Utilizing Weak Supervision to Create S3D turns from the classifier to the construction of sarcasm annotations. Weak supervision uses indirect signals to supply labels. That is a different stage of the research process from TweetEval’s assembly of already annotated tasks. Both affect what a system can learn and what its predictions can be evaluated against. In the original benchmark, the authors inherit and document choices such as artificial balancing in the source irony data. The later work takes the production of labeled sarcasm material as its own research problem.
These connections concern the aims identified by the citing works. Their task-by-task use of TweetEval and their comparative outcomes are unspecified. The line from the original paper is clearest at the level of the experiments it made possible and the questions it exposed. A shared suite made it easier to ask which abilities transfer together, while results such as the irony exception and the hate-speech split gap gave later research specific dimensions of training and evaluation to investigate.
Institutions
Fields, topics and concepts
Shelves 6The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 worksPsychology · 1,673 worksSocial Psychology · 332 works
Topics 1Research subjects and languages the work is about.Evaluation & benchmarks · 1,394 works
Appears in
Mentioned in articles aboutLos Angeles
Cite
Cite as Francesco Barbieri, Jose Camacho-Collados, Leonardo Neves and Luis Espinosa-Anke. 2020. TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classification. arXiv:2010.12421.
@misc{barbieri2020tweeteval,
title = {{TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classification}},
author = {Francesco Barbieri, Jose Camacho-Collados, Leonardo Neves and Luis Espinosa-Anke},
year = {2020},
doi = {10.48550/arxiv.2010.12421},
eprint = {2010.12421},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2010.12421}
}References
- Isabelle Augenstein, Leon Derczynski, and Kalina Bontcheva. 2017. Generalisation in named entity recognition: A quantitative analysis. Computer Speech & Language, 44:61–83. OpenAlex ↗ · Scholar ↗
- Timothy Baldwin, Paul Cook, Marco Lui, Andrew MacKinlay, and Li Wang. 2013. How noisy social media text, how diffrnt social media sources? (https://www.aclweb.org/anthology/I13-1041) In Proceedings of the Sixth International Joint Conference on Natural Language Processing, pages 356–364, Nagoya, Japan. Asian Federation of Natural Language Processing. our card
- Timothy Baldwin, Marie-Catherine de Marneffe, Bo Han, Young-Bum Kim, Alan Ritter, and Wei Xu. 2015. Shared tasks of the 2015 workshop on noisy user-generated text: Twitter lexical normalization and named entity recognition. In Proceedings of the Workshop on Noisy User-generated Text, pages 126–135. our card
- Francesco Barbieri, Jose Camacho-Collados, Francesco Ronzano, Luis Espinosa Anke, Miguel Ballesteros, Valerio Basile, Viviana Patti, and Horacio Saggion. 2018. Semeval 2018 task 2: Multilingual emoji prediction. In Proceedings of The 12th International Workshop on Semantic Evaluation, pages 24–33. our card
- Utsab Barman, Amitava Das, Joachim Wagner, and Jennifer Foster. 2014. Code mixing: A challenge for language identification in the language of social media. In Proceedings of the first workshop on computational approaches to code switching, pages 13–23. OpenAlex ↗ · Scholar ↗
- Valerio Basile, Cristina Bosco, Elisabetta Fersini, Debora Nozza, Viviana Patti, Francisco Manuel Rangel Pardo, Paolo Rosso, and Manuela Sanguinetti. 2019. SemEval-2019 task 5: Multilingual detection of hate speech against immigrants and women in twitter (https://doi.org/10.18653/v1/S19-2007). In Proceedings of the 13th International Workshop on Semantic Evaluation, pages 54–63, Minneapolis, Minnesota, USA. Association for Computational Linguistics. our card
- Piotr Bojanowski, Edouard Grave, Armand Joulin, and Tomas Mikolov. 2017. Enriching word vectors with subword information (https://doi.org/10.1162/tacl_a_00051). Transactions of the Association for Computational Linguistics, 5:135–146. our card
- Çağrı Çöltekin and Taraka Rama. 2018. Tübingen-oslo at semeval-2018 task 2: Svms perform better than rnns in emoji prediction. In Proceedings of The 12th International Workshop on Semantic Evaluation, pages 34–38. OpenAlex ↗ · Scholar ↗
- Alexis Conneau and Douwe Kiela. 2018. SentEval: An evaluation toolkit for universal sentence representations (https://www.aclweb.org/anthology/L18-1269). In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC-2018), Miyazaki, Japan. European Languages Resources Association (ELRA). our card
- Leon Derczynski, Alan Ritter, Sam Clark, and Kalina Bontcheva. 2013. Twitter part-of-speech tagging for all: Overcoming sparse and noisy data (https://www.aclweb.org/anthology/R13-1026). In Proceedings of the International Conference Recent Advances in Natural Language Processing RANLP 2013, pages 198–206, Hissar, Bulgaria. INCOMA Ltd. Shoumen, BULGARIA. our card
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805. our card
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding (https://doi.org/10.18653/v1/N19-1423). In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota. Association for Computational Linguistics. our card
- Kevin Gimpel, Nathan Schneider, Brendan O'Connor, Dipanjan Das, Daniel Mills, Jacob Eisenstein, Michael Heilman, Dani Yogatama, Jeffrey Flanigan, and Noah A. Smith. 2018. Part-of-speech tagging for twitter: Annotation, features, and experiments (https://doi.org/10.1184/R1/6473609.v1). our card
- Bo Han and Timothy Baldwin. 2011. Lexical normalisation of short text messages: Makn sens a# twitter. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics: Human Language Technologies-Volume 1, pages 368–378. Association for Computational Linguistics. our card
- Yuheng Hu, Kartik Talamadupula, and Subbarao Kambhampati. 2013. Dude, srsly?: The surprisingly formal nature of twitter's language. In Seventh International AAAI Conference on Weblogs and Social Media. OpenAlex ↗ · Scholar ↗
- Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. 2017. Bag of tricks for efficient text classification (https://www.aclweb.org/anthology/E17-2068). In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, pages 427–431, Valencia, Spain. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
- Suin Kim, Ingmar Weber, Li Wei, and Alice Oh. 2014. Sociolinguistic analysis of twitter in multilingual societies. In Proceedings of the 25th ACM conference on Hypertext and social media, pages 243–248. OpenAlex ↗ · Scholar ↗
- Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692. our card
- Di Lu, Leonardo Neves, Vitor Carvalho, Ning Zhang, and Heng Ji. 2018. Visual attention model for name tagging in multimodal social media. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 1990–1999. our card
- Saif Mohammad, Felipe Bravo-Marquez, Mohammad Salameh, and Svetlana Kiritchenko. 2018. Semeval-2018 task 1: Affect in tweets. In Proceedings of the 12th international workshop on semantic evaluation, pages 1–17. our card
- Saif Mohammad, Svetlana Kiritchenko, Parinaz Sobhani, Xiaodan Zhu, and Colin Cherry. 2016. Semeval-2016 task 6: Detecting stance in tweets. In Proceedings of the 10th International Workshop on Semantic Evaluation (SemEval-2016), pages 31–41. our card
- Soujanya Poria, Devamanyu Hazarika, Navonil Majumder, and Rada Mihalcea. 2020. Beneath the tip of the iceberg: Current challenges and new directions in sentiment analysis research. arXiv preprint arXiv:2005.00357. OpenAlex ↗ · Scholar ↗
- Alec Radford, Karthik Narasimhan, Time Salimans, and Ilya Sutskever. 2018. Improving language understanding with unsupervised learning. Technical report, OpenAI. OpenAlex ↗ · Scholar ↗
- Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI Blog, 1(8):9. OpenAlex ↗ · Scholar ↗
- Alan Ritter, Sam Clark, Oren Etzioni, et al. 2011. Named entity recognition in tweets: an experimental study. In Proceedings of the conference on empirical methods in natural language processing, pages 1524–1534. Association for Computational Linguistics. our card
- Sara Rosenthal, Noura Farra, and Preslav Nakov. 2019. Semeval-2017 task 4: Sentiment analysis in twitter. arXiv preprint arXiv:1912.00741. our card
- Rossano Schifanella, Paloma de Juan, Joel Tetreault, and Liangliang Cao. 2016. Detecting Sarcasm in Multimodal Social Platforms (http://arxiv.org/abs/1608.02289). arXiv e-prints, page arXiv:1608.02289. our card
- Cynthia Van Hee, Els Lefever, and Véronique Hoste. 2018. Semeval-2018 task 3: Irony detection in english tweets. In Proceedings of The 12th International Workshop on Semantic Evaluation, pages 39–50. our card
- David Vilares, Miguel A Alonso, and Carlos Gómez-Rodríguez. 2016. En-es-cs: An english-spanish code-switching twitter corpus for multilingual sentiment analysis. In Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16), pages 4149–4153. OpenAlex ↗ · Scholar ↗
- Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019a. SuperGLUE: A stickier benchmark for general-purpose language understanding systems. In Proceedings of NeurIPS. our card
- Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. 2019b. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In Proceedings of ICLR. our card
- Michael Wiegand, Josef Ruppenhofer, and Thomas Kleinbauer. 2019. Detection of Abusive Language: the Problem of Biased Datasets (https://doi.org/10.18653/v1/N19-1060). In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 602–608, Minneapolis, Minnesota. Association for Computational Linguistics. our card
- Wei Xu. 2017. From shakespeare to twitter: What are language styles all about? In Proceedings of the Workshop on Stylistic Variation, pages 1–9. our card
- Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R Salakhutdinov, and Quoc V Le. 2019. Xlnet: Generalized autoregressive pretraining for language understanding. In Advances in neural information processing systems, pages 5754–5764. our card
- Marcos Zampieri, Shervin Malmasi, Preslav Nakov, Sara Rosenthal, Noura Farra, and Ritesh Kumar. 2019. SemEval-2019 task 6: Identifying and categorizing offensive language in social media (OffensEval) (https://doi.org/10.18653/v1/S19-2010). In Proceedings of the 13th International Workshop on Semantic Evaluation, pages 75–86, Minneapolis, Minnesota, USA. Association for Computational Linguistics. our card
This page in Markdown https://md.research.elamur.ai/free/en/papers/barbieri-2020-tweeteval-unified-benchmark-comparative-evaluation/