Elamur Research

EmoNLP at SemEval-2018 Task 2: English Emoji Prediction with Gradient Boosting Regression Tree Method and Bidirectional LSTM

Paper · 2018 · Man Liu

Summary

A tweet can suggest a reaction even after its emoji has been erased. The wording may convey delight, irritation, or affection, and choices such as emphatic spelling or punctuation can reinforce that impression. The question in this paper is whether those clues are strong enough to recover the particular emoji the writer used. EmoNLP tackles that question for the English portion of SemEval-2018 Task 2. Each tweet has one recorded answer drawn from 20 emoji categories. The task is a form of text classification in which success depends on selecting the writer’s recorded label from the available set.

The paper compares two ways to turn the tweet into a prediction. The first uses LightGBM to build an ensemble of decision trees, adding trees in sequence to improve the ensemble’s predictions. It supplies the trees with explicit clues from spelling, phrases, punctuation, negation, grammatical categories, and sources of information about sentiment and emotion. The second system reads a sequence of word embeddings, numerical representations of words, with a bidirectional long short-term memory network. One part of that network reads the sequence forward and another reads it backward. A final layer combines their outputs to predict the emoji category.

The tree system reached 33.90 macro F1 in 5-fold cross-validation, compared with 1.78 for the bidirectional network. Macro F1 gives each emoji category equal weight by averaging its F1 score with those of the other categories. The paper submitted the tree system for official evaluation, where it reached 33.665 macro F1. Its ability to recover individual emoji varied widely. The category accounting for 21.6% of the test tweets reached 87.23 F1, while several categories scored under 8 F1. The aggregate score therefore describes a system whose usefulness depends considerably on which emoji a writer chose.

The paper also retrains the tree system with individual groups of features left out. Removing character sequences caused the largest reported loss, followed by removing word sequences. The sentiment dictionaries, grammatical tags, and word clusters each made smaller positive contributions in those comparisons. The sentiment-specific embeddings were the exception. The score rose to 34.14 when they were removed. The paper motivates its design by observing that most of the target emoji express emotion, and it suggests that the broad range of sentiment and linguistic cues helped the tree system. The removal results make that explanation more specific. The clearest gains within the tree system came from the forms in which words and phrases appeared, and the two sources of sentiment information had different effects.

Deep dive: EmoNLP at SemEval-2018 Task 2: English Emoji Prediction with Gradient Boosting Regression Tree Method and Bidirectional LSTM

EmoNLP compares boosted trees and a bidirectional LSTM for predicting missing emoji in English tweets and tests which text features help. · about 32 minutes to read

The problem and its context

What the remaining text can tell us

Emoji participate in the meaning of short social messages. A writer can use one to express a reaction, signal an attitude, or invoke something recognizable. The paper points to the variety of emoji meanings, including facial expressions, places, weather, and animals. Its particular set of targets emphasizes emotion, so information about how a tweet sounds or feels becomes a reasonable starting point for prediction. The task still requires a decision at the level of an individual symbol. Identifying a broad emotional tone can narrow the possibilities while leaving several plausible labels.

The task gives that uncertainty a concrete form. Each tweet in the dataset corresponds to one emoji category, and the paper says that the emoji were removed from the training text. The removed symbol supplies the class label, which remains available for supervised training. A prediction is judged against the label associated with the tweet. This setup turns a question about an aspect of communication into a benchmark: an observation, a finite set of possible decisions, and a recorded outcome against which to compare each decision.

The distinction between emotional interpretation and label recovery matters for reading the paper. Suppose the wording gives strong evidence of a positive reaction. A classifier can pick up that evidence and still choose a different emoji from the one the writer used. The benchmark treats that choice as an error because the target is the observed symbol. The evidence about emotion can therefore be sound at a broad level even when the prediction misses the benchmark’s finer distinction. Conversely, a phrase strongly associated with a particular category in the training data can be useful for the benchmark without revealing much about the writer’s emotion.

The paper sees Twitter and Facebook as environments in which short written messages are an important means of communication. Its experiments concern tweets. In those messages, useful textual evidence can occur in forms that a system designed around conventional writing might treat as peripheral. Repeated letters can be part of a word’s expressive form. A stretch of punctuation can qualify a statement or question. A mention, URL, or hashtag can indicate something about how the message is constructed. These properties help explain why the paper records features at several levels, from character fragments to counts over the whole tweet.

How the earlier work informs the task

The paper cites earlier research by Barbieri and colleagues for the observation that words and emoji are related and that the surrounding words can help predict an emoji. That is the immediate starting point for EmoNLP. If the words surrounding an emoji carry some of the same information as the symbol, then a supervised system can seek regularities between the text that remains and the category that was removed. The competition gives researchers a setting in which to apply that idea to a shared prediction problem.

The paper also draws on work on sentiment analysis of tweets. Its reuse of that work is concrete. The earlier approach supplies a way to mark the scope of negation, definitions for grouping emoticons by polarity, inspiration for counting punctuation and other visible properties, and a way to summarize dictionary scores over a message. EmoNLP puts those components to work on a different output. A sentiment analysis procedure can hand the classifier evidence about positive or negative expression. The emoji benchmark then asks whether that evidence helps recover a particular label among the 20 possibilities.

Earlier work also supplies resources for handling the language of tweets. The Carnegie Mellon University tagger assigns categories to tokens and can deal with informal expressions. The same tool provides word groups built with Brown clustering. A linguistic tag and a cluster membership let the system represent two distinct properties of a word. One describes how the token is categorized in context. The other associates the token with a group from a previously learned vocabulary. Both give the classifier ways to represent related tokens without depending exclusively on appearances of the same word.

The neural approach has a separate lineage in the paper. The author cites the original long short-term memory work for a form of recurrent computation intended to preserve information across positions and handle vanishing gradients. The latter problem arises when the signal used to adjust the network becomes weak as it is passed through successive steps. The paper cites work using bidirectional processing to motivate reading the sequence in both directions. That gives the prediction stage access to evidence carried by the forward and backward readings. For a complete tweet available at prediction time, words near either end can contribute to an interpretation of the sequence.

These strands of prior work lead to two different design choices. In the tree system, the author decides in advance which views of the tweet to make available and lets the classifier learn how to combine them. In the recurrent system, the input retains word order and the network learns how to carry information through the sequence. Both systems draw on resources prepared before the competition training. The distinction is in the kind of information those resources expose and in what the supervised training has to learn from it.

The method, step by step

Preparing a tweet for prediction

The input starts as the text of a tweet and, during training, its emoji category. The paper uses tweetokenize for tokenization, the step that divides the text into units that later operations can inspect. A token can be an ordinary word or another meaningful part of the written message. For this system, the divisions matter because later features refer to sequences of words, the contents of the final token, and occurrences of tokens belonging to a particular word group.

The paper also normalizes URLs and mentions. Each URL takes the placeholder url, and each mention takes the placeholder @mention. The specific address or account is discarded, while the type of item remains available. The same feature can therefore count mentions across tweets addressed to different people. Likewise, a recurring sequence that includes the URL placeholder can be shared across tweets that contain different links. For word-based inputs, the normalization also gives repeated instances of these items a common representation.

This treatment of URLs and mentions illustrates an important decision about what evidence to preserve. The identity of a linked destination or account could distinguish tweets, but there would have to be a useful association for the classifier to learn from it. The normalizer preserves a more general distinction that applies wherever a link or mention occurs. Elsewhere the system deliberately retains details of written form, including capitalization and repeated characters. The preprocessing thus reduces variation in some places while the subsequent feature extraction makes other variation available to the classifier.

After preparation, the two routes diverge. LightGBM receives a single vector that brings together all the engineered features for a tweet. The recurrent network receives the prepared words in sequence, represented by their pretrained vectors. It is useful to follow the branch point explicitly: both routes begin with the same prediction problem, but the numerical description of a tweet differs before the first classifier-specific computation takes place.

From tweet text to an emoji prediction

The steps in order.

From tweet text to an emoji predictionStep 1: Tokenize tweets and normalize URLs and mentions1. Tokenize tweets and normalize URLs and mentionsStep 2: Mark negation for word sequence features2. Mark negation for word sequence featuresStep 3: Assemble the tree system’s feature vector3. Assemble the tree system’s feature vectorStep 4: Fit successive regression trees with LightGBM4. Fit successive regression trees with LightGBMStep 5: Feed pretrained word vectors to both LSTM directions5. Feed pretrained word vectors to both LSTM directionsStep 6: Combine recurrent outputs into emoji probabilities6. Combine recurrent outputs into emoji probabilitiesStep 7: Compare both systems and select the boosted trees7. Compare both systems and select the boosted trees

Recording word forms and phrases

The tree system begins with recurring pieces of the text. An n-gram is a contiguous sequence of units, where n gives the number of units in the sequence. Those units can be characters or words. A character feature can fire for a fragment inside a word, while a word feature can represent an entire term or a phrase across token boundaries. The two views let a tweet match patterns at different levels of detail.

The character features record whether sequences of 3, 4 and 5 characters occur. A presence feature is a way to indicate that a particular sequence appeared in the tweet. The paper motivates these features by their ability to capture information carried by the internal form of words. A fragment can be shared by several forms even when the full strings would each have separate word features. A variation in spelling can also contribute its own recognizable fragments. The features leave the decision about which fragments matter to the training procedure.

The setup makes character patterns available even when the spelling variation is expressive. The paper illustrates repeated letters with coooool. A word-level representation can distinguish that spelling from the ordinary form, while a character representation can register recurring fragments within the elongated form. The system has a separate count for words with repeated characters. That count represents a property of the tweet as a whole. The character features provide more local evidence about the particular strings that occurred. The two feature groups can therefore overlap in what they notice while expressing it at different levels.

Word features are taken after negation is marked. The paper follows a rule adapted from prior work on tweet sentiment. A negation word such as no or none begins a region, and punctuation closes it. The procedure adds a NEG suffix to words in that region. A word occurring under the rule can then match different sequence features from the same word occurring elsewhere. That supplies a compact way to preserve a distinction that would disappear if the classifier simply counted the unchanged word types.

Punctuation supplies a practical boundary for this operation. A comma or sentence-ending mark can stop the spread of the suffix. The rule operates over the tokens and punctuation in the tweet. To determine the span it follows a stated surface procedure, so a reader can see how the marking was meant to work without reconstructing a grammatical analysis of each message. This is important when a message is informal and the task is to produce a repeatable set of features across many examples.

The paper uses word sequences of lengths 1, 2, 3 and 4. A feature of length 1 can capture the appearance of an individual term. Longer sequences retain immediate ordering and give the classifier access to phrases. Since they are extracted after the suffix has been applied, these patterns can also encode a word’s occurrence inside the marked region. The algorithm can use a short phrase as a direct cue while still drawing on smaller components when the complete phrase varies.

The separation between character and word sequences also shapes the later experiment. A character-level cue can help with a spelling that is unusual as a whole, and a word phrase can be meaningful even when its component words contain common character fragments. Removing one group tests whether the other groups can recover the same predictive information in the fitted tree system. The paper’s ablation can answer that question for the groups as defined. It leaves the usefulness of individual sequence lengths and the negation rule embedded within the broader word feature group.

Adding grammatical categories and word groups

The next source of evidence is part-of-speech tagging. A part-of-speech tag tells the classifier about a token’s grammatical category. The EmoNLP system uses the Carnegie Mellon University tool because it was designed for tweets and can assign tags to forms from informal writing. The paper gives ikr, an abbreviation for “I know, right?”, as an example the tagger can recognize as an interjection.

A tag helps generalize across word choices. An interjection can serve a similar function in a message even when the writer uses a different string. A representation based on lexical forms can learn associations for each expression that occurs frequently enough in training. Tags add a shared description that can also apply across expressions. The classifier receives this information alongside the original sequence features, so it can still use the form of a particular expression where the data support it.

The same tool supplies a different kind of generalization through Brown clusters. A cluster is a group to which a token can belong. The paper uses 1,000 clusters that have already been learned, and its features indicate whether a tweet contains tokens from those groups. The cluster identifier provides a vocabulary shared across tweets. Two messages containing different words can activate the same cluster feature if a word in each is assigned to the same group.

A cluster feature makes a weaker assertion than a match on an entire phrase. It says that a token belonging to a group occurred somewhere in the tweet. For the tree system, that can be an advantage when a precise word or sequence has limited support in training. A tree can use the broader indicator as one condition and rely on a different feature to refine the decision. The paper’s description identifies presence or absence as the relevant operation for clusters. It gives fewer details about how the grammatical tag outputs are arranged in the final feature vector.

Measuring emphasis and message form

Some features summarize visible properties of the whole tweet. The system counts hashtags and words written entirely in capitals. It counts runs consisting of question marks, exclamation marks, or their combination. Another feature indicates whether the final token contains a question mark or an exclamation mark. The count of punctuation runs and the flag on the final token offer distinct information. A tweet can contain an emphatic stretch of punctuation in the middle, and a final punctuation mark can matter to the feature vector regardless of the patterns earlier in the message.

The counting group also includes the number of mentions and URLs, which remain recognizable after normalization. Another count tracks words with repeated letters. The system records whether it encounters positive or negative emoticons, using categories defined in earlier research. A conventional emoticon such as :) illustrates the kind of textual clue the author has in mind. The feature concerns an expressive element of the remaining message, while the target emoji supplies the category the system is trying to recover.

These measurements capture aspects of presentation in a form a tree can inspect. A condition on a count can separate tweets that contain a certain kind of item from tweets that contain more of it. A presence flag provides a direct way to check for an item, independent of its exact wording or count. Both can combine with lexical evidence. For example, the same punctuation feature can be available alongside different phrases, and the tree can learn whether a phrase is predictive in a region where that form of punctuation occurs.

The feature description names the measurements rather than assigning them predetermined interpretations. An exclamation mark gets represented because its distribution may be useful. The system learns its association with emoji categories from labeled examples. The same applies to mentions, links, and all-capital words. Each feature offers a possible way to distinguish inputs. An association needs support from the training tweets to affect the fitted decision rules.

Turning sentiment resources into inputs

The paper uses sentiment dictionaries to provide information that a sequence’s spelling alone does not express. A sentiment lexicon associates words with information about their emotional or evaluative character. For each of ten lexicons, the system looks at how many sentiment words occur, adds their scores, records the score of the last sentiment word, and retains the highest score. Each measure answers a different question about the dictionary matches. The count describes their quantity, the total describes their combined score, the last match retains a limited amount of ordering information, and the maximum singles out the highest-scoring match.

A total can bring together evidence dispersed across a tweet. A maximum can preserve an especially strong entry even when several other words contribute to the total. The last matched word can supply different evidence when a message shifts in tone as it proceeds. The classifier receives all of these summaries, so their influence can depend on the other conditions a tree has already tested. The paper describes the summaries at the level of each lexicon. It does not provide the handling details for a tweet with no matches in a particular lexicon.

The mix of dictionaries spans several resources rather than relying on one vocabulary. It includes the NRC Emotion Lexicon and NRC Hashtag Sentiment Lexicon, as well as the MaxDiff Twitter Lexicon and Sentiment140 Lexicon. The Bing Liu Lexicon, the Harvard Inquirer Lexicon, the MPQA Subjectivity Lexicon, and the MPQA Effect Lexicon provide additional inputs. The system also uses the Loughran McDonald Lexicon and the Amazon Laptop Review Lexicon. Running the same operations over each resource keeps the resulting signals available as separate inputs.

The tree system also receives sentiment-specific word embeddings, abbreviated SSWE. The paper describes these as representations learned from 10 million tweets using a neural network geared towards sentiment. They are meant to carry information about sentiment as well as a word’s surrounding linguistic context. The embeddings offer another representation of words for which the classifier might otherwise have only spelling, a grammatical tag, a cluster, or dictionary matches.

The distinction between the embedding and dictionary inputs matters. A dictionary provides explicit scores or entries that the system can summarize using the stated operations. SSWE provides learned numerical representations. A useful regularity in an embedding can be spread across its coordinates, and the receiving classifier must find useful ways to exploit that information. The paper includes SSWE in the tweet’s feature vector but gives no detailed account of how word-level embeddings are turned into that tweet-level portion of the vector.

The intended role of both resources follows from the concentration of emotional emoji in the target inventory. A classifier that can recognize patterns associated with sentiment has additional evidence about what symbol a writer might select. The application still requires learning the relationship between those features and the individual emoji categories. The scores and embeddings are inputs to supervised classification. They enter alongside evidence about wording, structure, and visible style, each of which may help separate categories that share a broad sentiment.

Building the boosted tree classifier

LightGBM receives one concatenated feature vector for each tweet. A vector is an ordered collection of numerical inputs. Its entries can hold values such as an indicator that a character sequence occurred, a count of hashtags, or a summary score from a lexicon. The emoji category supplies the target during supervised training. The fitted system uses the same kind of vector at prediction time to decide among the available labels.

The underlying building block is a regression tree. A tree divides the feature space into regions by applying successive conditions to the inputs. A branch can depend on the presence of a sequence or on whether a count or score reaches a threshold. A leaf is a terminal region reached after following those conditions. The partition lets the fitted contribution depend on several clues together. Tweets may share the property examined at an early split and then separate according to properties examined farther down the tree.

Gradient boosting builds an ensemble sequentially. The training objective measures how far the current predictions are from what the training targets require. A new tree makes an adjustment intended to reduce that loss. As trees accumulate, their contributions form a fitted predictor. The term regression tree refers to the numerical contribution of the individual tree. The task at the ensemble’s output remains classification over emoji categories.

The tree system uses a learning rate of 0.1. This setting controls the size of adjustments as new trees are added. The minimum amount of training data in a leaf is set to 20. That restriction affects how narrowly the trees can partition the available examples. Both values were fixed for the search described in the paper. The paper states that time constraints prevented a broader tuning exercise.

The author searches over the number of leaves per tree and the number of trees. The leaf choices are 16, 32, 64 and 128. The tree choices are 100, 300, 700 and 1000. A grid search evaluates settings drawn from the listed possibilities on the training data. The selected configuration has 64 leaves per tree and 300 trees. The leaf setting controls the scope for distinctions within a tree, while the tree count controls how many successive contributions the ensemble can make. The article’s reported settings describe the particular fit that was compared with the recurrent classifier.

LightGBM is the named implementation used to train the trees. The paper explains boosting through the sequential addition of trees and the loss those additions are intended to reduce. It does not specify a mathematical expression for a multiclass boosting objective or a separate equation for combining tree outputs. The reported description is enough to identify the fitting strategy and the settings the author varied.

Reading the tweet in both directions

The bidirectional long short-term memory system, abbreviated BLSTM, starts with pretrained GloVe word vectors. The paper describes the vectors as having been trained on 6 billion words drawn from Google and Web text. For the emoji classifier, these vectors are numerical inputs arranged in tweet order. Each recurrent computation can use the vector at its current position together with information passed along from previous positions in its direction of reading.

A long short-term memory network, or LSTM, maintains a state as it moves through a sequence. The state allows evidence from earlier positions to affect how the network handles later positions, and the architecture is designed to carry information across steps during training. The direction of processing determines which words have been seen at a given point. Reading a tweet forward supplies context from earlier text. Reading it backward supplies context from the words that follow in ordinary reading order.

EmoNLP uses a forward LSTM and a backward LSTM with separate states. The architecture illustration shows the same word embeddings entering both directions. The outputs of the two recurrent computations are concatenated, meaning that they are joined into a representation available to the output stage. A softmax layer turns the resulting category scores into a probability distribution. It gives the system a common scale on which to compare its predictions for the different emoji labels.

This branch offers a different way to use word order from the fixed word sequences in LightGBM. The tree system receives indicators of specified contiguous forms. The recurrent computation repeatedly updates a state as it reads the vectors. In principle that process can preserve evidence spanning a phrase and incorporate information farther away. Its ability to do so for an emoji distinction depends on the learned state, the supplied vectors, and the effectiveness of training on the labeled tweets.

The paper reports a setting of 64 LSTM units. The unit count describes the size available for the recurrent computation. LSTM dropout and recurrent dropout are both 0.2. Dropout is a training technique that withholds part of the signal during updates. Recurrent dropout applies to the information passed through the recurrent connections. The optimizer is rmsprop, which is the procedure used to adjust the network’s weights. The training loss is categorical cross-entropy, which penalizes the system for assigning low probability to the recorded category.

The author reports tuning this system and gives its selected settings. The description shows the direction of processing, the use of pretrained vectors, the joining of recurrent outputs, and the conversion of output scores to probabilities. It leaves open details such as exactly how information across positions is collected for the final tweet decision, what happens to words without a pretrained vector, and whether the pretrained vectors are updated during emoji training. Those choices can affect the behavior of a recurrent classifier and are significant when interpreting a comparison with a carefully engineered alternative.

Experiments and results

What was compared and how it was scored

The experiments concern the English tweets from the shared task. Each training tweet has a label identifying one of the 20 emoji categories. The author uses 5-fold cross-validation on the training data to compare the two pipelines. In this procedure, the data are divided into folds, with each fold used for evaluation in turn while the remaining folds supply training examples. Each system is therefore evaluated on several held-out portions of the training collection before a submission is chosen. The official test scores come from a separate evaluation after the choice of system.

The BLSTM is the internal comparator for LightGBM. It represents a classifier built from pretrained word vectors and learned sequence processing. LightGBM represents a classifier built on engineered tweet features. The paper gives both pipelines’ cross-validation scores, and the official evaluation values are for LightGBM. Its report gives no frequency-only baseline score alongside that comparison. The evidence for choosing LightGBM comes from running the two proposed systems under the reported cross-validation procedure.

Precision and recall describe different parts of the decision. For an emoji category, precision asks how often the category was correct among predictions that chose it. Recall asks how often the system recovered that category among tweets whose recorded label was that emoji. F1 combines precision and recall with a harmonic mean, so a category needs both relatively reliable predictions and relatively broad recovery to achieve a strong score. A category can have respectable precision and low F1 if the classifier retrieves very few of its instances.

The macro and micro versions of F1 emphasize different parts of the task. Macro F1 first considers each class’s F1 separately and then gives the classes equal weight in the average. Micro F1 pools decisions across classes before taking the score. A frequent category therefore has more opportunities to shape the pooled result. Both views are pertinent when class frequencies differ. The official macro measure makes success on less frequent emoji important even when they account for a small fraction of the tweets.

Cross-validation and the choice of submission

On the training folds, LightGBM achieves 33.90 ± 0.119 macro F1, while the BLSTM achieves 1.78 ± 0.007 macro F1. The difference is central to the paper because macro F1 is the measure used to choose the submission. The low macro result shows that the recurrent pipeline as fitted offered little class-level coverage on this measure. The reported aggregate alone leaves open which categories it did recover and how it distributed its predictions.

EmoNLP systems on the English training folds by macro F1

The boosted tree system has the higher class-averaged score.

EmoNLP systems on the English training folds by macro F1BLSTM with GloVe: 1.78BLSTM with GloVe1.78LightGBM with engineered features (this paper): 33.90LightGBM with engineered features (thispaper)33.90
The numbers
System or settingmacro F1
BLSTM with GloVe1.78
LightGBM with engineered features (this paper)33.90

The pooled results favor the same system. LightGBM reaches 47.16 ± 0.157 micro F1, compared with 21.73 ± 0.114 for the BLSTM. For both classifiers, the pooled result is higher than the class-averaged result. The two scores can diverge when a classifier fares better on categories that occur frequently and poorly on categories that occur less often. Later results for individual emoji help show where that distinction is consequential for the selected classifier.

EmoNLP systems on the English training folds by micro F1

Pooling the decisions across classes also favors the boosted trees.

EmoNLP systems on the English training folds by micro F1BLSTM with GloVe: 21.73BLSTM with GloVe21.73LightGBM with engineered features (this paper): 47.16LightGBM with engineered features (thispaper)47.16
The numbers
System or settingmicro F1
BLSTM with GloVe21.73
LightGBM with engineered features (this paper)47.16

The paper reports little variation across the folds and includes the quantities following ± in its cross-validation results. It does not define the statistic represented by those quantities or give the individual fold scores. The results can be read as the paper’s reported averages with their accompanying variation figures. The stated comparison is between these particular input representations and fitted classifiers. It leaves architecture and input features bundled together.

That bundling is especially relevant to the magnitude of the observed difference. The recurrent system must learn from the word vectors and their sequence, whereas the tree system is explicitly given spelling fragments, negation-marked phrases, surface counts, grammatical tags, word groups, and sentiment summaries. LightGBM’s higher score establishes which complete route was more effective in the experiment. The cross-validation table by itself cannot determine whether architecture, access to those clues, training choices, or several factors together account for the weak result of the recurrent route.

Official evaluation and individual emoji

The author submits the tree system for the official evaluation. The evaluation precision is 39.426, the recall is 33.695, and the macro F1 is 33.665. The official macro F1 and the training-fold macro F1 are separate measurements on distinct evaluation splits. The paper reports the official precision and recall alongside macro F1; its most detailed account of those measures is the table giving precision, recall, F1, and frequency for each emoji.

The most prevalent category accounts for 21.6% of the test set. For that category, precision is 90.55, recall is 84.14, and F1 is 87.23. The precision and recall indicate a category for which the system both finds many occurrences and typically makes a correct choice when it predicts the label. High performance here can influence a pooled score because this category occurs so often. In the macro score it contributes its own category result on the same footing as each of the other labels.

Frequency alone does not describe the profile. The category making up 3.09% of the test set reaches 73.59 F1, with precision of 67.31 and recall of 81.17. Its recall shows substantial recovery even though the category has a much smaller test share than the most common emoji. The category with a 2.53% test share reaches 62.61 F1, with precision of 74.35 and recall of 54.07. The different balance of precision and recall in these examples makes the per-class evaluation more informative than a ranking by F1 or frequency alone.

At the weak end, a category accounting for 2.02% of the test set records precision of 15.0, recall of 1.78, and F1 of 3.19. Another, with a 2.31% test share, records precision of 16.58, recall of 2.69, and F1 of 4.63. For both categories, low recall indicates that very few of the tweets carrying the label were successfully recovered. Precision is also low. Those instances of poor performance are therefore visible in both the reliability and coverage of the corresponding predictions.

A further pattern appears in the category with 2.23% of the test tweets. It has 47.85 precision and 7.0 recall, producing 12.22 F1. The precision shows that some of the predictions of this label were reliable. The recall shows that the classifier assigned the correct label to only a small share of the tweets that carried it. Precision in isolation would leave much of that difficulty hidden. This is one reason to report class-specific precision and recall together even when a shared task uses F1 to rank submissions.

The same table gives a category with test share of 9.66%, precision of 27.43, recall of 56.02, and F1 of 36.83. Here the system retrieves a larger share of the actual category than the precision value might lead a reader to expect. The lower precision means that predictions of this label often land on tweets whose recorded category is something else. A classifier can thus face a different error pattern on a fairly frequent emoji than on a rare symbol with very low recall.

The distribution of these results establishes uneven performance across the label inventory. It also leaves room for more than one explanation. Some less frequent categories are recovered well, others very poorly. Frequency can affect how much evidence is available for learning and how much a category matters in a pooled metric. The results do not fully characterize the text associated with each category or the boundary between commonly confused categories. That distinction is important when looking for the source of improvement in the feature-removal experiment.

What the ablations show

How to read the removal experiment

The ablation trains the tree classifier with one feature group removed at a time and reports the resulting F1 score and loss. An ablation is a controlled change to a system intended to show what a component contributes under specified conditions. Here the condition is a feature vector in which the other groups remain available. The experiment measures how well the tree classifier can perform with those remaining inputs after training. It therefore tests more than whether the complete classifier refers to a feature at prediction time. The trees can adapt their splits to the reduced representation.

The loss column expresses the reported direction and amount of change associated with removing the group. A positive loss means the reduced system scored lower on the comparison used for the ablation. A negative loss means performance went up. The paper describes these measurements as test-set results. It gives the reduced variants’ results and their losses, while reporting the official evaluation separately. The ablation comparisons can be read directly from the scores and losses the paper assigns to those variants.

LightGBM feature removals on the English test set by reported F1

Removing character sequences gives the lowest score, and removing sentiment-specific embeddings gives the highest.

LightGBM feature removals on the English test set by reported F1Without character n-grams: 32.74Without character n-grams32.74Without word n-grams: 33.40Without word n-grams33.40Without counting features: 33.72Without counting features33.72Without part-of-speech tags: 33.73Without part-of-speech tags33.73Without Brown clusters: 33.75Without Brown clusters33.75Without sentiment lexicon features: 33.81Without sentiment lexicon features33.81Without sentiment-specific embeddings (this paper): 34.14Without sentiment-specific embeddings(this paper)34.14
The numbers
System or settingF1
Without character n-grams32.74
Without word n-grams33.40
Without counting features33.72
Without part-of-speech tags33.73
Without Brown clusters33.75
Without sentiment lexicon features33.81
Without sentiment-specific embeddings (this paper)34.14

Which kinds of evidence the trees rely on

Removing character sequences gives a score of 32.74 and a reported loss of 1.161 F1. This is the largest loss in the experiment. Character fragments retain information about the written form of a word even when a particular whole-word form is unfamiliar or uncommon. They can also give the system access to repeated pieces of an expressive spelling. The result establishes that the remaining inputs recover less of the useful information when the full character group is removed. It does not separate the effect of morphology from other effects of writing at character level.

Removing the word sequences gives 33.40 F1, with a loss of 0.503. That comparison gives evidence for the value of recurring word forms and short phrases with the other features still present. Because word sequences are extracted after negation marking, the removal also takes away the specialized word forms generated by that procedure. The result belongs to the package of word-level evidence. A separate run with unchanged words and the same set of word sequence lengths would be needed to estimate how much of the package’s contribution comes from marking negation.

The other positive changes are smaller. Removing the counting group produces 33.72 F1, with a reported loss of 0.176. Dropping part-of-speech features produces 33.73 F1 and a loss of 0.167. Removing word cluster features yields 33.75 F1 and a loss of 0.15. Without the lexicon features, the resulting score is 33.81 F1 and the loss is 0.094. These are marginal effects with the remaining groups still present. They describe how each omission changed this system’s score on the reported evaluation.

For the count group, the experiment concerns several measurements at once. A loss can reflect useful punctuation, repeated spelling, emoticons, or any of the other quantities that were removed together. The test gives no basis for ranking those individual measurements. Similarly, the word cluster result concerns the cluster representation as a whole. It leaves open which groups were useful and whether their role was concentrated in a small part of the emoji inventory. The precision of the reported scores should be read with that scope in mind.

The grammatical and cluster removals also help put the word features in perspective. All three provide information about tokens, but their conditions for matching across tweets differ. The tag gives a grammatical category. The cluster gives group membership. A word sequence preserves relatively specific forms and ordering. The small reported losses for the coarser representations indicate some benefit from carrying those abstractions alongside the other inputs. They leave unanswered how much the coarser features would contribute if the phrase features were weakened or unavailable.

Why dropping an embedding group can improve the score

The SSWE removal produces 34.14 F1, with a reported loss of -0.235. The negative sign means that the removal improved the score on the paper’s comparison. This outcome matters because the embeddings were included to supply evidence about emotion, a plausible source of information for the task. Plausibility at the level of the task and usefulness to the fitted classifier are separate empirical questions. An input can carry sentiment information and still be unnecessary or counterproductive when combined with other sentiment and lexical cues.

The author suggests that the extra dimensionality may have led to overfitting. In this explanation, giving the trees more quantities to split on creates more opportunities to fit patterns that happen to occur in the training tweets. If those patterns generalize poorly, a reduced representation can score better on evaluation. The ablation observes the improvement after removing the feature group. It does not provide measurements of training error or experiments varying the size of the embedding representation that would establish the proposed cause.

The lexicon result shows why it is important to keep the two sentiment inputs distinct. Lexicon summaries offer a small set of explicit operations on scores, while embeddings add representations learned from a large tweet collection. Removing the lexicon summaries lowers the score in the reported test. Removing the embeddings raises it. The direction of the two changes gives a more precise account of what happened than attributing the system’s performance to sentiment features as a single block.

Feature removal also offers a narrower explanation than the cross-validation comparison. It shows what changes when an input group is withheld from the tree classifier. The contrast with the recurrent classifier changes the architecture and most of the inputs at once. The large character-sequence loss supports the importance of that group within the trees, but the experiment does not show how much of the cross-validation advantage the group explains. It would take matched input comparisons to isolate that source of the difference.

Limitations

Limits the author states

The paper identifies time as a constraint on the tuning of LightGBM. It searches the numbers of leaves and trees, with the learning rate and minimum leaf size set in advance. The chosen settings are consequently the reported choices within that search. Their performance leaves open how the classifier would fare with a broader search, including different settings for quantities kept fixed in the reported experiments.

The author also treats the recurrent approach as unfinished. The conclusion proposes supplying more features and incorporating a more effective architecture. Those are possible routes to improve the particular BLSTM studied here. The paper reports the performance of the implementation with GloVe inputs and the selected training settings. Its stated plans acknowledge that the approach could be changed in ways the comparison did not explore.

Finally, the explanation of the SSWE result is explicitly tentative. The paper proposes excessive dimensionality and overfitting as a cause of the decline when the feature group is present. It bases that suggestion on the difference in evaluation performance. It reports no separate test that establishes whether the dimensionality, the treatment of the word vectors, overlap with other inputs, or another property of the training procedure produced the observed effect.

Limits visible in the experimental design

The task has a fixed set of labels and scores the recovery of the one associated with each tweet. This supports conclusions about the English benchmark. It leaves open how to handle an unrestricted emoji inventory, suggest several acceptable symbols, predict sequences of symbols, or decide whether an emoji would be useful at all. Those settings change what a correct output means. They may require evidence about the audience, the message’s situation, or a writer’s preferences that is outside the representation studied here.

The comparison between the classifiers also changes two major ingredients together. LightGBM gets engineered features and several external linguistic resources. The BLSTM receives GloVe word vectors and computes its own recurrent representation of the sequence. A result that holds for these complete systems cannot by itself rank boosted trees and bidirectional recurrence as general strategies. The absence of a feature-matched comparison is especially consequential here because the ablation finds meaningful contributions from features the recurrent system was never given.

The experimental description leaves gaps relevant to replication. The paper gives the cross-validation procedure, the tuning choices for the trees, and the final settings of the recurrent network. It gives no size for the training or official test collections. It also leaves unspecified how the folds were constructed, how the recurrent hyper-parameter search was carried out, and how unknown words were handled. Someone reconstructing the experiment would need choices for those details, and the paper gives limited evidence for judging which choices would reproduce the reported conditions.

The SSWE representation is another example of a missing implementation detail with interpretive consequences. The paper identifies the resource, explains its motivation, and reports the effect of removal, while leaving the construction of the tweet-level input unspecified. How the word vectors are combined influences the number of features the tree system receives and what information those features preserve. This omission matters directly to the proposed dimensionality explanation.

The ablation is informative about removal from a single feature configuration. It does not measure how groups work in combination when other groups are also removed, or how the effect of a group differs across emoji. It supplies a reported F1 loss for each omission but no estimate of variation for those comparisons. The smaller results therefore establish the direction observed in the reported experiment. They offer limited grounds for ranking close effects or for expecting the same ordering under other samples, settings, or feature combinations.

The class-level outcomes reveal differences in coverage, but they give only one class’s precision and recall at a time. A table of predictions by recorded category would offer additional evidence about which labels the classifier confuses. The available measures show, for instance, that a low-recall class is often missed. They leave the destinations of those incorrect predictions unspecified. As a result, the paper can identify uneven recoverability without giving a detailed account of which emoji meanings, phrases, or message styles account for that unevenness.

The paper also describes the system as achieving the best accuracy in the task. It supplies official precision, recall and macro F1, but no competition standings or comparative accuracy figures that establish what the claim refers to. The directly supported comparative result is the advantage of LightGBM over the paper’s BLSTM in cross-validation. The directly reported official result is the LightGBM submission’s score on the English test set.

What came after

The related publication by Barbieri and colleagues, SemEval 2018 Task 2: Multilingual Emoji Prediction, is the account of the shared task in which EmoNLP participated. The relationship runs through the benchmark. The task paper supplies the broader multilingual setting, and the EmoNLP paper describes a system for its English portion. The two publications cite each other and appeared in the same proceedings in 2018. Their connection is best understood as documentation of a shared evaluation and of one contribution to it.

EmoNLP’s role in that evaluation was to submit the classifier chosen through its internal comparison. The boosted system provided a concrete example of how a participant could map tweets to emoji categories using explicit spelling, phrasing, grammatical, and sentiment evidence. Its recurrent comparison and feature-removal results belong to its own system study. The shared-task publication places such a submission in the wider exercise of evaluating emoji prediction under common task conditions.

The task account’s citation connects this design to the record of the competition. The relationship establishes that the approach participated in the benchmark. It leaves open whether the task authors adopted the feature set in a new classifier, reproduced the ablation, or extended the approach to another language. The identifiable continuation is the shared-task account’s documentation of the setting in which the English system was evaluated.

 Fields, topics and concepts

Cite

Cite as Man Liu. 2018. EmoNLP at SemEval-2018 Task 2: English Emoji Prediction with Gradient Boosting Regression Tree Method and Bidirectional LSTM. Proceedings of the 12th International Workshop on Semantic Evaluation.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/s18-1059

@inproceedings{liu2018emonlp,
  title = {{EmoNLP at SemEval-2018 Task 2: English Emoji Prediction with Gradient Boosting Regression Tree Method and Bidirectional LSTM}},
  author = {Man Liu},
  booktitle = {Proceedings of the 12th International Workshop on Semantic Evaluation},
  year = {2018},
  doi = {10.18653/v1/s18-1059},
  url = {https://doi.org/10.18653/v1/s18-1059}
}

References

2 references, 1 of them with a card of ours. Each entry links to our card when we hold the work, else to OpenAlex and Google Scholar searches for it.

  1. Francesco Barbieri, Miguel Ballesteros, and Horacio Saggion. 2017. Are emojis predictable? In Lapata M, Blunsom P, Koller A, editors. 15th Conference of the European Chapter of the Association for Computational Linguistics; 2017 Apr 3-7; Valencia, Spain. Stroudsburg (PA): ACL; 2017. p. 105-11.. ACL (Association for Computational Linguistics). OpenAlex ↗ · Scholar ↗
  2. Further Analysis of Feature Engineering 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 (SemEval-2018). Association for Computational Linguistics, New Orleans, LA, United States.

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/liu-2018-emonlp-semeval-2018-task-2/