---
title: "TwiSE at SemEval-2016 Task 4: Twitter Sentiment Classification"
description: "How TwiSE used tweet features and linear classifiers to predict sentiment and estimate its prevalence at SemEval-2016 Task 4."
canonical: "https://research.elamur.ai/free/en/papers/balikas-2016-twise-semeval-2016-task-4/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/balikas-2016-twise-semeval-2016-task-4/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2016](https://md.research.elamur.ai/free/en/papers/2016/) / TwiSE at SemEval-2016 Task 4: Twitter Sentiment Classification

# TwiSE at SemEval-2016 Task 4: Twitter Sentiment Classification

Paper · 2016 · Georgios Balikas and Massih-Reza Amini

**Authors:** Georgios Balikas and [Massih-Reza Amini](https://md.research.elamur.ai/free/en/authors/massih-reza-amini/) · **Year:** 2016 · **Venue:** Proceedings of the 10th International Workshop on Semantic Evaluation (SemEval-2016) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 10th International Workshop on Semantic Evaluation (SemEval-2016) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/S16-1010/)
- [PDF](https://aclanthology.org/S16-1010.pdf)
- [DOI 10.18653/v1/s16-1010](https://doi.org/10.18653/v1/s16-1010)

## Summary

A tweet can express an opinion through its choice of words, an emoticon, or a stretch of letters that signals emphasis. It can also praise one subject while criticizing another. TwiSE, a system entered in SemEval-2016 Task 4, tackled several versions of the problem of identifying those opinions. The authors classified the overall tone of individual messages, predicted sentiment on binary and ordered scales for messages associated with a topic, and estimated the proportions of positive and negative tweets in a topic’s collection. Each output answered a different question about [sentiment and emotion](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/).

The authors represented tweets with recurring word and character sequences, punctuation and capitalization counts, indicators of negation and emoticons, and features derived from sentiment dictionaries. The dictionary features recorded where a match occurred and whether it fell within the scope of a negation cue. The authors then tested how to represent those features numerically and which learning procedures to use. For overall message polarity, they trained a second classifier to combine the probability estimates of several base classifiers. The remaining submissions used individual classifiers. For the task that asked for proportions, TwiSE first classified the tweets and then counted the predicted labels.

On the official test data, TwiSE placed 9/35 for overall message polarity, 8/19 for binary topic sentiment according to the authors’ narrative, 1/11 for sentiment on the ordered scale, and 2/14 for binary sentiment quantification. The official ordered-scale score was 0.72 in macro-averaged mean absolute error, and the quantification score was 0.053 in smoothed Kullback–Leibler divergence. The strongest placements came from submissions that used standard classifiers even though the evaluation rewarded ordered decisions or aggregate estimates. Local comparisons had favored those choices against the specialized alternatives the authors tried.

A recurring shortcut was to estimate the overall sentiment of a tweet even when the task supplied a particular topic. The results show what that shortcut achieved on the benchmark, while the authors identify tweets expressing different opinions about different subjects as a reason to pursue finer analysis. They also report a concrete weakness of their negation rule. It used punctuation to decide where a negated span ended, and their error analysis found that punctuation was often absent.

## Deep dive: TwiSE at SemEval-2016 Task 4: Twitter Sentiment Classification

How TwiSE used tweet features and linear classifiers to predict sentiment and estimate its prevalence at SemEval-2016 Task 4. · about 31 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### From the tone of a message to the opinions in a collection

The paper treats Twitter as a source of short, informal statements about the world. A reader may find an opinion in only a few words, with much of its force carried by an abbreviation, an unusual spelling, or an emoji. A computational system has to turn such cues into evidence for a decision. Short messages supply little surrounding text to resolve ambiguous words, and sarcasm can change how an apparently favorable expression should be read. The authors present those difficulties as central to applying [natural language processing](https://md.research.elamur.ai/free/en/concepts/natural-language-processing/) to tweets.

Even a clear expression of sentiment can pose several different questions. A reader might ask for the general tone of the whole message, or might care only about what it says about a particular subject. If the message evaluates several subjects, the answer can change with the subject chosen. A report about a group of tweets raises a further question about the balance of opinions in the collection. The unit of the answer then shifts from an individual message to a distribution over labels.

SemEval-2016 Task 4 set out these distinctions in its subtasks. Subtask A asked for the overall message polarity, with positive, negative, and neutral as the possible labels. Subtask B supplied a topic and asked for a positive or negative judgment about it. Subtask C also supplied a topic, but used an ordered scale that could represent degrees of sentiment. These are forms of [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/), meaning that the system assigns a label to a text. Their label sets encode different expectations about what the label should capture.

Subtask D asked for the shares of positive and negative messages in a topic’s collection. The organizers also offered Subtask E, quantification on the finer scale, which the TwiSE submission did not cover. In the quantification setting, a system can use individual labels internally, while the answer that the organizers score is the distribution those labels imply. An error in that distribution depends on the balance of predictions across the group. It cannot be read directly from the success or failure of any particular tweet decision.

The ordered classification task introduces another distinction. With ordinary class labels, a wrong prediction can be treated as a wrong prediction regardless of the class chosen. With ordered sentiment labels, the direction and degree of an error matter. A prediction close to the intended level expresses something different from a prediction across the sentiment scale. The benchmark accordingly gave the tasks separate measures. The authors had to decide when to change the learning procedure to reflect a measure and when to rely on ordinary classification despite the different form of evaluation.

These distinctions matter because the same surface clues can serve several purposes. A cluster of strongly positive expressions can support a positive label for a short message. To infer a degree of sentiment, a system needs to distinguish stronger evidence from weaker evidence. To infer a topic’s overall distribution, it needs the pooled decisions to reflect the balance of opinions. Once the input has been converted to features, the output procedure determines which question that evidence answers.

#### What TwiSE inherited from earlier work

The authors draw on previous SemEval entries and on earlier work on informal sentiment analysis. A prominent approach in those systems was to collect signals that can be recognized across many tweets and give a classifier access to them together. Some signals came from the message itself, such as a run of characters or a punctuation pattern. Others came from resources compiled in advance, such as dictionaries of words with sentiment associations. The authors cite earlier NRC-Canada work when placing their choices of classifiers in context. [NRC-Canada’s earlier Twitter sentiment system](https://md.research.elamur.ai/free/en/papers/mohammad-2013-nrc-canada-building-state-art/).

The difference between a learned sequence feature and a dictionary lookup helps explain why the paper uses both. A sequence feature tells the learner that a particular stretch of text occurred. Its value for the current task can be learned from labeled examples. A dictionary supplies a prior grouping of expressions. Words that differ in spelling and use may contribute to the same count if the dictionary gives them the same polarity and the TwiSE feature rules place them in the same context. This gives the classifier both particular observations and summaries across related words.

The paper also cites earlier work that learned sentiment-specific representations of Twitter words. These representations gave the authors a way to incorporate real-valued summaries of the words in a tweet alongside explicit counts. Their origin matters when describing the experiment. The authors obtained the representations from prior work and composed them into tweet features. The task-specific decision procedures consumed those features along with the rest of the tweet representation.

For combining classifiers, the authors took inspiration from the winning system in the previous SemEval Twitter sentiment task. The idea was to keep several strong predictors and learn how to interpret their outputs jointly. A combination can be useful when the predictors respond differently to the same evidence. That possibility motivates building base classifiers with different learning or probability-estimation procedures even when they share a representation of the input. It also makes the format of a base classifier’s output important. A label records a decision, while a vector of probability estimates records how the classifier distributed its support before the decision.

The paper describes specialized alternatives for the other output types as well. Earlier ordinal methods offered a way to incorporate class order into training. Work on quantification offered methods that handled aggregate distributions as a learning objective. The authors also cite a simpler quantification procedure in which a classifier labels individual items and the system totals the labels. This left a concrete empirical question for TwiSE. A specialized method could align with the evaluation more directly, while a conventional classifier could still score well if its features and training produced suitable decisions.

The paper’s place in this earlier work is therefore easiest to understand through the choices it tests. It assembles feature families motivated by existing tweet sentiment systems and compares ways of converting them into usable input. It then varies how the input is used for the benchmark’s outputs. Some differences between submissions follow from the available labels. Others follow from local experiments about whether a feature family, a combination of decisions, or a specialized learning objective helped on the task at hand.

### The method, step by step

#### Turn a tweet into a set of observations

TwiSE begins by cleaning and splitting each tweet. The authors adapted a tokenizer and used NLTK and Python’s scikit-learn in preprocessing and learning. The boundaries established by [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/) matter because the next steps repeatedly ask what a token is, whether several tokens occur together, and whether one of them matches a sentiment resource. A hashtag, punctuation mark, or stylized spelling can also supply a feature in its own right.

A word sequence gives the classifier a way to use some local context. An individual word can contribute evidence, and a short combination can receive its own weight when the combination is more informative. Such consecutive sequences are called [n-grams](https://md.research.elamur.ai/free/en/concepts/n-gram/). TwiSE used word sequence lengths in the range [1, 4]. It also extracted character sequences with lengths in the range [3, 5]. A character sequence can recur inside different word forms or spellings, so the classifier can use evidence below the level of a token as well as evidence about adjacent tokens.

Several features captured properties of a tweet without depending on the identity of a particular word. The system counted exclamation marks and question marks and included a feature for their combined occurrence. It counted capitalized words and words with elongated spellings. It recorded counts of positive and negative emoticons, along with a binary indicator of whether a tweet contained an emoticon. These are observations presented to the classifier. For instance, a mark of emphasis can make an expression more conspicuous, while the learned decision determines how that feature relates to any class.

TwiSE also identified spans that followed a negative word. The rule treated the following words as being in a negative context until punctuation marked the end of the span. The system counted negated contexts and altered its sequence features for words within them. By giving the word in a negative context a different feature identity, it let the learner assign separate weights to ordinary and negated uses. That is a way to preserve local context in a representation that will ultimately store feature values in a vector.

The authors used a Twitter tagger to identify grammatical categories such as nouns and adjectives. They counted tags and distinguished occurrences in negated and other contexts. The tagger assigns categories to tokens, a procedure known as [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/). Those categories also feed into the dictionary features. A word’s grammatical role can therefore affect which dictionary count receives a match, as can its casing and the negation rule.

#### Use dictionaries to count sentiment in context

A sentiment dictionary gives the system a way to recognize evidence shared by different words. TwiSE used manually assembled resources including the Bing Liu lexicon, the NRC Emotion Lexicon, and MPQA. It also took features from the Sentiment140 and Hashtag Sentiment lexicons. The CMU Twitter NLP tool supplied word clusters, which TwiSE used to count cluster members in negated and other contexts. These resources enter the representation as sources of evidence about a message, leaving the classifier to learn which combinations of that evidence help predict each label.

The Bing Liu lexicon is the paper’s worked example. TwiSE crosses the polarity assigned by the lexicon with the context assigned by the negation rule. A lexically positive word outside a negated span contributes to a separate feature from a lexically positive word inside such a span. Lexically negative entries likewise have different places in the vector according to context. This gives 4 counts for words. Hashtags are processed separately under the same distinctions, adding 4 counts and bringing that group to 8.

The feature builder then distinguishes lower-case and upper-case words when producing those 8 features. A separate group distinguishes entries according to the grammatical tags assigned by the tagger. The tagger has 24 labels, and the system produces 4 counts for each tag by crossing lexicon polarity with negation context. The paper gives the total number of Bing Liu feature coordinates as follows.

```
2 × 8 + 24 × 4 = 104
```

The factor 2 represents the lower-case and upper-case groups, each with 8 features covering words and hashtags. The factor 24 is the number of grammatical tags, each with 4 combinations of lexicon polarity and context. The multiplication signs show how many coordinates are allocated to each group, the plus sign joins the groups, and the equals sign gives the resulting total. The 104 is the dimension of this dictionary feature vector for a tweet. Actual values in the vector depend on the matches found in that tweet.

Keeping dictionary polarity and negation context separate leaves room for the classifier to make distinctions a single signed score would erase. A positive dictionary entry inside a negated span can provide useful evidence in its own right. The feature rule records that combination without deciding in advance that its effect must be equivalent to that of a negative entry outside the span. The same principle applies to tags and casing. A learner can give different weights to the resulting counts according to their behavior on the task data.

The paper also uses distributed representations from earlier work on Twitter sentiment. Each word with such a representation contributes a vector. TwiSE summarizes the word vectors across a tweet using the minimum, maximum, and average for each coordinate. Generally, these summaries preserve both extreme coordinate values and a measure of their central tendency. They give the classifier a fixed set of values for the tweet without preserving the words in their original order. The sequence features provide a separate route for retaining some of that order. The source representations are [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/).

#### Decide where the sequence features go and how much they count

The next step gives each word or character sequence a place in an input vector. The paper compares an explicit vocabulary with feature hashing. With the first approach, the possible sequences occupy positions assigned in a vocabulary, and a tweet’s vector has dimension |V|. Here V is the vocabulary of sequence features, and the vertical bars denote its size. A single tweet uses only the positions for features present in that message, so the vector is sparse.

With feature hashing, a function maps a sequence to an index in a space of a chosen size. This allows vector construction without maintaining an explicit entry for every sequence. Distinct sequences can map to the same position, which is one consequence of fixing the size of the space in advance. TwiSE used hashing in the submitted systems after comparing the representations locally. The authors tuned the hash space separately for the subtasks, so the selected dimension was part of the configuration rather than a single size imposed across all outputs.

Assigning a feature an index and choosing its value are separate decisions. A feature vector based on counts can give frequent terms large values. The authors compared a transformation based on raising values to a power with weighting by [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/). The latter combines evidence about term frequency in a message with information about how widespread the term is across documents. The power transformation instead acts directly on the coordinates of a tweet’s input vector.

```
x′ = (x₁ᵅ, x₂ᵅ, …, xᵈᵅ)
```

Here x′ is the transformed vector. The original coordinate values are x₁, x₂, and the remaining values through xᵈ, where d denotes the last coordinate and gives the dimension of the vector. The superscript ᵅ is the same exponent α applied to each original value. The ellipsis stands for the intervening coordinates. Parentheses and commas mark the ordered list of values, and the equals sign defines the output. For the last entry, d identifies the coordinate and α is the power applied to it.

A smaller exponent reduces the influence that a large count can have relative to a smaller count. This is the concern the authors describe when they compare the transformation with the inverse-document-frequency component of TF-IDF. The two operations reach that goal in different ways. A power transformation responds to the magnitude of the value it receives. Inverse document frequency uses the distribution of a term across documents. The authors chose the power transformation after local comparisons and treated α as a task-specific setting.

#### Combine probability estimates for overall message polarity

The authors considered several classifier families before settling on logistic regression and support vector machines as the main candidates. Logistic regression learns class scores and can turn those scores into probability estimates. A support vector machine, or SVM, learns decision boundaries by a maximum-margin criterion, seeking separation between classes. Its confidence scores need a further transformation when the input to the next stage is supposed to consist of probabilities.

For Subtask A, all base classifiers had access to the complete representation, including the distributed word features. The ensemble was designed to exploit differences in their outputs while keeping the input evidence available to each. The authors used variants of SVMs and logistic regression, different ways of handling several classes, and different methods of obtaining probabilities. The setup varies how decisions are learned and expressed on the same collection of tweets.

Both SVM base classifiers used the Crammer–Singer multiclass formulation with the Liblinear solver. They differed in their calibration, the step that converts a score to an estimated probability. One used isotonic regression, which preserves the ordering of scores while learning a monotonic mapping to probabilities. The other used Platt’s method, which fits a sigmoid mapping. The authors adapted the calibration methods to the multiclass setting. The choice gives the combiner two kinds of probability estimates derived from margin-based classification.

The other two base classifiers used logistic regression and provided probability estimates directly. One used a one-vs-all formulation with Liblinear. This formulation treats each class in relation to the other classes. The other optimized a multinomial loss using LBFGS, a limited-memory quasi-Newton optimization procedure. In the multinomial approach, the objective concerns the probability distribution across the classes jointly. The paper places this formulation in the tradition of maximum entropy classification. [A Comparison of Algorithms for Maximum Entropy Parameter Estimation](https://md.research.elamur.ai/free/en/papers/malouf-2002-comparison-algorithms-maximum-entropy-parameter/).

The base classifiers were tuned independently before they were combined. The grid search for Subtask A considered α values in {0.2, 0.4, 0.6, 0.8, 1}, the size of the feature space used for hashing, and the regularization parameter λ in the reported range {10⁻⁷, …, 10⁶}. The parameter α controls the power applied to sequence feature values. The parameter λ controls the importance of regularization, which constrains the fit during learning. The authors used 5-fold cross-validation on the organizer’s training portion for this search. Cross-validation fits and checks successive configurations on different portions of the training data so that selection can take account of performance on examples held out from each fit.

Stacked generalization is the learning arrangement that connects the base classifiers to the final decision. For each tweet, each base classifier yields a probability estimate for each class. A second classifier learns from those estimates. A vector of estimates can represent close contests between classes, agreement with differing levels of confidence, and disagreements that disappear when only the winning label is kept. For example, if several predictors choose the same label, the second classifier can still receive different evidence depending on how much support each predictor gives to the alternatives.

The authors used a Crammer–Singer SVM for this second layer because it performed best in their validation. They also assigned class weights inversely proportional to the frequencies in the input data. This gives a rarer class more influence per labeled example in the weighted fit. The classification stage still predicts positive, negative, or neutral. The task’s scoring rule then evaluates the positive and negative classes, which makes the handling of class imbalance important to the classifier’s design. The paper describes the inputs to the second layer as probability estimates on held-out sets and gives a separate account of how its development splits were used.

#### Adapt the decision procedure to the other subtasks

For Subtask B, TwiSE used a linear SVM with the Liblinear solver. A linear classifier uses weighted input features directly to form its decision, so the main opportunities for representing complex cues here lie in how TwiSE builds the features. The authors used weights for the imbalanced classes and excluded the distributed word features after local validation. The remaining features supplied evidence for a binary positive or negative decision.

The benchmark supplied a topic for the tweet, but TwiSE estimated the overall polarity using the tweet representation. The predicted label served as the estimate of sentiment towards the topic. This shortcut makes sense to the extent that the prevailing sentiment in the tweet reflects the specified subject. A tweet that praises one subject and criticizes another exposes the difference between analyzing overall polarity and finding the sentiment directed at the named target.

For Subtask C, TwiSE used multinomial logistic regression, class weights, and a feature set without the distributed word features. It used overall tweet polarity as a proxy for topic sentiment here as well. The classes in this subtask had an order, while the learning procedure assigned probabilities across them in the standard multiclass way. The authors tried ordinal learning approaches and chose the conventional method based on their comparisons. That choice lets the feature evidence determine the distribution over labels during fitting; it does not build the distance between candidate labels into the learning objective.

The distinction shows up when the task scores a mistake. The paper uses an example in which the correct class is 2. A prediction of 1 is closer on the scale than a prediction of −1 and receives a smaller penalty. The submission used an ordinary multiclass predictor within that evaluation. Its ordinal score consequently reflects how well the predictions respect distance in practice, even though the objective used for fitting the classifier treats the outcomes as classes.

For Subtask D, TwiSE again used a weighted SVM and left out the distributed word representations. Its output was a topic-level distribution, formed by assigning labels to the tweets and tallying the predicted positives and negatives. The paper calls this classify and count. As an illustration, the authors consider 100 tweets about a new iPhone. An answer for that collection gives the shares of positive and negative tweets, while the individual class assignments serve as intermediate decisions.

The paper also compares this procedure with a structured SVM trained to optimize the divergence measure used for quantification. The ordinary SVM and the structured alternative used the same general feature families for this comparison. Their distinction was the relationship between training and evaluation. The structured approach targeted the quality of the estimated distribution directly. The ordinary classifier was trained for class decisions, which TwiSE then aggregated. Local validation led to the submission based on the latter procedure.

From tweet text to TwiSE outputs The steps in order.

#### Use successive data splits to choose settings

The paper describes a task-specific tuning procedure built around the organizer’s splits. The authors first trained on the released training data and assessed settings on the validation data. They then retrained on the training and validation data together and checked the resulting configurations on DevTest, using the trial data with it where applicable. These stages let the authors inspect settings as the training pool changed and as evaluation moved to a different set of tweets.

The authors report selecting each parameter by averaging the settings found optimal in the two validation stages. This general account of development accompanies the more specific 5-fold cross-validation described for tuning the Subtask A base classifiers. The reported procedure keeps the official test evaluation separate from those checks. It also shows that configuration selection depended on repeated observations rather than a single training score.

For the supervised task data, the authors relied on the releases for the 2016 edition. Earlier work supplied feature resources, including lexicons, word clusters, and embeddings, while the labeled training and development tweets in the experiment came from the current edition. The paper names the authors’ released implementation SemEval2016-Twitter_Sentiment_Evaluation. The code accompanies a method built from established learning procedures whose particular combination and configuration were chosen for the benchmark.

### Experiments and results

#### The available tweets and the comparisons

The dataset counts describe the tweets the authors managed to download. For Subtask A, they report 5,500 in Train, 1,831 in Development, 1,791 in DevTest, and 32,009 in Test. For the shared B and D data, there were 4,346 in Train, 1,325 in Development, 1,417 in DevTest, and 10,551 in Test. The row for the C and E data gives 5,482 in Train, 1,810 in Development, 1,778 in DevTest, and 20,632 in Test. The authors used that task grouping for the data description and submitted a system for C.

The local comparisons and the official leaderboard answer different experimental questions. The local comparisons helped choose a representation, a feature set, and a learning procedure for TwiSE. The paper gives competing classifier families, conventional and task-specific objectives, and alternative representations as development comparators. Its numerical results table reports TwiSE’s DevTest and official test scores. The leaderboard places give the final system’s position among participants. The paper leaves competitor-by-competitor scores and standalone numerical baselines out of that presentation.

The classifiers compared early in development included nearest-neighbor methods, trees, logistic regression, and SVMs. Nearest-neighbor methods base a decision on similar labeled examples. Trees construct decisions through successive tests on the input. The authors identify logistic regression and SVMs as the two most competitive choices from these early trials. Later comparisons narrowed the questions. For example, the quantification experiments compared ways of fitting a classifier under a common feature design, while the ensemble experiments considered the information passed from the base classifiers to the second layer.

#### Overall polarity and binary topic sentiment

Subtask A used macro-F1 for the positive and negative classes. For an individual class, precision measures the share of predictions of that class that are correct, and recall measures the share of its actual examples that are recovered. F1 combines precision and recall through their harmonic mean. Macro-averaging gives the class-level scores equal influence. Neutral remains a valid prediction because it is one of the possible labels. Predictions involving neutral can still affect positive or negative precision and recall, even though the reported macro average has no neutral component.

TwiSE’s Subtask A ensemble scored 56.01 in macro-F1 on DevTest and 58.61 on the official test set. The official rank was 9/35. These scores describe the same submitted approach on different evaluation splits. The test score is higher, and the authors treat DevTest as a reasonably close indication of official performance on this subtask. The scores alone leave open how much each base classifier contributed and how a single classifier would have placed.

TwiSE on the Subtask A DevTest and Test splits in macro-F1 The ensemble records the higher macro-F1 on the official test split.

**The numbers**

| System or setting | macro-F1 |
| --- | --- |
| TwiSE on DevTest | 56.01 |
| TwiSE on Test (this paper) | 58.61 |

Subtask B used macro-averaged recall for the positive and negative classes. The metric takes the share of actual positive tweets correctly recognized and the share of actual negative tweets correctly recognized, and gives the class recalls equal influence. A classifier that is especially good at retrieving a frequent class therefore still depends on its recall for the other class. The authors had used class weighting during training to address the unequal representation of the classes.

The binary SVM scored 0.748 in macro-averaged recall on DevTest and 0.748 on the official test set. The matching displayed scores are the clearest instance of agreement between the development and official evaluations. The paper gives two denominators for TwiSE’s official rank. Its abstract and discussion give 8/19, while the results table prints 8/18. The ordinal position is consistent across those accounts, and the denominator discrepancy leaves the number of ranked entries uncertain within the paper.

These results concern tweet-level decisions. The difference between them includes both the tasks and the measures. Subtask A admits a neutral output and evaluates precision as well as recall for the positive and negative classes. Subtask B uses a binary decision for tweets linked to a topic and scores class-level recall. A comparison of their raw scores would mix those changes in evaluation. Each figure is most informative alongside the task definition and the split on which it was measured.

#### Ordered sentiment and binary quantification

For Subtask C, the organizers used macro-averaged mean absolute error. In this measure, a larger distance between the assigned class and the true class contributes a larger error. The measure first considers errors within each true class and gives the resulting class-level averages equal influence. This combines sensitivity to the ordered label scale with a way of limiting the effect of unequal class frequencies on the summary score.

On DevTest, the multinomial classifier obtained 0.8121 in macro-averaged mean absolute error. On the official test data, its error was 0.72, and the submission placed 1/11. This was TwiSE’s highest official placement. It establishes that the ordinary multiclass submission was competitive when evaluated by an ordinal measure. The score is an aggregate over the ordered classes, so it leaves the pattern of errors between particular classes unresolved.

TwiSE on the Subtask C DevTest and Test splits in macro-averaged mean absolute error The multinomial classifier records the lower ordinal error on the official test split.

**The numbers**

| System or setting | macro-averaged mean absolute error |
| --- | --- |
| TwiSE on DevTest | 0.8121 |
| TwiSE on Test (this paper) | 0.72 |

For Subtask D, the organizers evaluated estimated sentiment distributions with a smoothed version of Kullback–Leibler divergence. This measure expresses the discrepancy between the reference distribution and the estimated distribution. Smaller values indicate closer agreement. Smoothing makes configurations with zero shares tractable for the divergence calculation. The paper names the organizers’ measure and reports the scores without giving its smoothing formula.

The weighted SVM with classify and count obtained 0.00018 in smoothed Kullback–Leibler divergence on DevTest and 0.053 on the official test set. Its official placement was 2/14. The official rank and the change across splits capture different aspects of the result. TwiSE placed close to the top of the field on the official evaluation, while the divergence on that evaluation was higher than on DevTest. An aggregate score can respond to changes in the balance of errors within the evaluated groups, which makes the split important when reporting the value.

TwiSE on the Subtask D DevTest and Test splits in smoothed Kullback–Leibler divergence Classify and count records the lower divergence on DevTest.

**The numbers**

| System or setting | smoothed Kullback–Leibler divergence |
| --- | --- |
| TwiSE on DevTest (this paper) | 0.00018 |
| TwiSE on Test | 0.053 |

The charts pair split-specific scores rather than alternative training procedures. In each chart, the star marks the split with the better score on that measure. The official ranks describe standing within each respective subtask. The high ranks in C and D are evidence about this shared task under its particular scoring rules. Judging how much the design gained from a local choice requires the corresponding comparison during development, when one of the possible alternatives was actually evaluated.

### What the ablations show

#### Representing and rescaling the sequence features

The paper gives several local comparisons, with most outcomes described qualitatively. The feature representation comparison favored hashing over an explicit bag-of-words vocabulary. This result concerns how the word and character sequences were mapped into vectors. In the final configurations, the authors also chose a hash dimension for each subtask. The comparison supports their choice during development, while the score breakdown and preferred dimensions are left unspecified in the paper’s account of this experiment.

The weighting comparison favored the α-power transformation over TF-IDF. Each approach addresses the influence of frequent features, but the information it uses differs. The reported result indicates that the coordinate-wise transformation worked better in the authors’ trials. It leaves open how performance changed across the grid of exponents and whether the preference depended on the hash space. Both are settings applied to the sequence representation, so any summary of the outcome belongs to the tested configuration and selection procedure.

These comparisons help separate the contribution of the representation from the choice of classifier. The same general idea of taking cues from short sequences can be implemented with a dictionary of feature indices or with hashing, and counts can be rescaled in different ways before classification. The paper identifies the directions the authors took on both decisions. It does not supply the combination of scores that would be needed to tell whether either preference persisted across every classifier and subtask.

#### Passing probabilities to the second layer

The most direct ensemble comparison examined the output of the base classifiers. The authors tried using their predicted labels and using their probability estimates as inputs to the second layer. They found the estimates more effective. This comparison tests whether the combiner benefits from seeing information that the base classifier’s final label would discard. A decision based on probabilities can distinguish weak support from strong support even when the most likely label is identical.

The result concerns the representation of base predictions inside stacking. Separate questions include whether stacking improved on the strongest individual predictor, which base classifiers supplied distinctive information, and whether one calibration procedure was more valuable in the ensemble. The paper describes both probability adaptations and the complete base set, but leaves those contributions unquantified. The paper likewise reports that the Crammer–Singer SVM worked best for the second layer in its validation without giving a score breakdown for the alternatives.

A second-layer classifier can learn how much to rely on a given probability pattern. In principle that can turn base disagreements into useful signals, but the benefit depends on the data on which those patterns recur. The direct evidence here is the preference for probability inputs. The authors’ broader expectation of improved generalization through a stronger collection of base predictors remains a motivation for further analysis.

#### Removing embeddings and comparing specialized objectives

For binary topic sentiment, the authors say that their local validation found a decrease in performance when distributed word features were included. They therefore removed that feature group for Subtask B. This is the clearest reported example of dropping a feature family because it hurt a task-specific development result. The ensemble for the overall polarity task kept that feature group. The C and D submissions omitted it, but the paper gives the explicit comparison about the adverse effect for B. The resulting pattern of feature inclusion records the systems the authors submitted, and its explanation is strongest where the authors describe the direct comparison.

For the ordered task, the authors compared their ordinary multiclass approach with selected ordinal methods. The multiclass methods performed marginally better in the local experiments described, leading the authors to choose the simpler submission. They suggest that fine-grained sentiment lexicon features may already capture polarity direction well enough that explicit ordering provides little additional help in those trials. They also mention sarcasm as a kind of difficult case in which the two approaches could both make large mistakes.

That explanation has a different evidential status from the ranking of the methods. The comparison supports the practical choice among the evaluated configurations. The suggested role of dictionary features would require measuring how the relative performance changes when those features are removed or altered. The paper gives the intuition and the direction of the observed comparison. It does not report a controlled test of the proposed explanation or a score breakdown by sarcastic and other tweets.

For quantification, the standard SVM used for classify and count beat the structured approach in most of the authors’ local validation schemes, though they describe the specialized method as competitive. The noteworthy feature of the comparison is the training target. The structured procedure optimized the measure used for the final distribution, while the standard SVM learned label decisions. The stronger local showing for the ordinary SVM indicates that direct alignment with the evaluation measure was not sufficient to win the comparison under these configurations. It establishes a preference for the submission, with the size and consistency of the advantage beyond the authors’ description left open.

The local results offer reasons for choosing one version of TwiSE over another. They are considerably less informative about the contribution of each feature family in isolation. For instance, punctuation and capitalization counts coexist with sequence features that may encode some related information. The lexicon features also intersect with the negation rule and the grammatical tags. The paper’s comparison of specific alternatives can guide an interpretation of those choices, while the official scores still belong to the corresponding complete systems.

### Limitations

#### Limits the authors identify

The authors recognize that using the whole tweet as the unit of sentiment analysis leaves the target of the opinion unresolved. For tasks that supply a topic, TwiSE uses the prevailing polarity as the answer for that topic. The assumption is plausible when the message expresses a consistent attitude towards its subject. It can fail when distinct parts of the message express different views. The authors identify finer-grained analysis of tweets with several subjects as a direction for future work. The leaderboard places measure the consequences of the submitted decisions on the task data, while leaving the system’s ability to distinguish sentiments within a tweet unmeasured.

Negation scope is another specific weakness. The feature generator treats punctuation as the end of the span affected by a negative word. The authors’ error analysis found that tweets frequently lacked punctuation. In that setting, the rule can keep assigning words to the same negated context after the intended scope has ended. Because the scope affects sequence identities and dictionary counts, an error in the rule can influence several features at once. The paper identifies the weakness and proposes improving the mechanism, while leaving its frequency and effect on the scores unquantified.

The authors also state that they used only the current edition’s released task data and wanted to explore how to integrate more data. External resources already contributed features, so the constraint concerns the selection of task datasets for training and development. Their results establish the performance of the reported procedure under this data choice. Adding earlier task examples or other labeled material could affect the selected settings or how well the system generalizes, questions that the paper leaves for future experiments.

For the Subtask A ensemble, the authors suggest more extensive error analysis as a way to identify base classifiers that could contribute more useful evidence. The idea depends on the relationship between the classifiers’ strengths and mistakes. A predictor may be strong individually yet offer little when it behaves like predictors already in the stack. The paper’s comparison of probability estimates with predicted labels addresses how evidence is passed to the combiner. The authors leave the search for more complementary predictors open.

#### Limits of the evidence and reporting

A high official placement establishes performance relative to the field on that subtask. It does not isolate the cause of that placement. The ordered task combines a tuned representation, a weighted training procedure, and multinomial logistic regression. The quantification submission combines related input features and weighted classification with aggregation. The results provide less detail about which changes would preserve the performance and which components are essential. In particular, the authors’ explanation about the importance of lexicon features in the ordered task is a hypothesis informed by their setup.

There is similar uncertainty about the separation of training data for stacking. The paper identifies the second-layer inputs as probability estimates on held-out sets and describes a sequence of training and validation stages. Its wording leaves the precise origin of each second-layer training row unclear. For a stack, this detail matters because a probability estimate for a tweet used to fit a base classifier can behave differently from an estimate for a tweet it has never seen. The distinction affects how readers can assess reproducibility from the reported protocol.

The comparisons are also sensitive to what the metrics summarize. Macro-averaging gives classes equal influence, while an individual macro score still conceals which classes and which tweets account for most mistakes. Kullback–Leibler divergence measures distribution discrepancies. In classify and count, an incorrect positive prediction and an incorrect negative prediction can offset each other in the tally, so a close aggregate estimate is compatible with individual errors. Strong quantification performance on D gives evidence at the level of prevalence, while support for classifying particular examples would require a separate score.

The variation across splits deserves attention by itself. The DevTest and official results are close in the authors’ judgment for A and identical to the displayed precision for B. C and D show different patterns of change. The paper reports no uncertainty estimates or tests of whether the differences can be attributed to properties of the splits. As a consequence, its scores are most informative as observations on the named datasets. They leave open how stable the same scores would be under another sample of tweets or topics.

Finally, the experiments concern a benchmark built around Twitter messages and the data available for a particular edition. The benchmark provides several ways to assess the same broad problem, but it does not measure the system’s handling of longer documents or other sources of informal text. It also leaves the finer quantification task outside the scope of the submission. The paper’s strongest conclusions concern the choices it validated and the official results for the subtasks TwiSE actually entered.

### What came after

The companion SemEval-2016 task report situates TwiSE within the evaluation that prompted the system paper. Its relationship to TwiSE is that of a benchmark report to a participant’s account. It supplies the shared setting for comparing message polarity, topic sentiment, and quantification. The TwiSE paper follows the design choices of one entrant through those outputs. The task report’s scope is the challenge across entries. [SemEval-2016 Task 4: Sentiment Analysis in Twitter](https://md.research.elamur.ai/free/en/papers/nakov-2016-semeval-2016-task-4-sentiment/).

The following edition’s OMAM work on Arabic sentiment asks how English sentiment approaches fare when evaluated for Arabic and presents a new topic-based approach. The topic emphasis intersects with a specific design choice in TwiSE. Where TwiSE substituted message-level sentiment for sentiment about the named topic, the OMAM title makes topic-based analysis an explicit part of the new work. Its focus on evaluating approaches developed for English also takes the question of feature and method choice into a different language setting. The relationship is at the level of the problem and evaluation. A direct reuse of TwiSE’s features or ensemble is unspecified. [OMAM’s English-to-Arabic evaluation and topic-based approach](https://md.research.elamur.ai/free/en/papers/baly-2017-omam-semeval-2017-task-4/).

A survey of Arabic sentiment analysis cites TwiSE while addressing modern trends in that field. A survey’s contribution in this sequence is to organize work that includes earlier sentiment systems and shared-task participation. Its scope places Arabic sentiment analysis in conversation with work on Twitter sentiment beyond the language at the center of the survey. The citation establishes that relationship, while the survey’s stated scope leaves its assessment of any particular TwiSE component unspecified. [Modern Trends in Arabic Sentiment Analysis](https://md.research.elamur.ai/free/en/papers/mulki-2017-modern-trends-arabic-sentiment-analysis/).

The other OMAM entry returned to English sentiment analysis in the following SemEval edition using conditional random fields. This continues shared-task experimentation on sentiment with a different learning family from TwiSE’s SVMs and logistic regression. The connection shows that the benchmark problem could support a further comparison of approaches across editions. The description identifies the later entry’s language and learning method, leaving its use of TwiSE’s feature engineering, tuning procedure, or probability estimates unspecified. [OMAM’s English Sentiment Analysis with Conditional Random Fields](https://md.research.elamur.ai/free/en/papers/onyibe-2017-omam-semeval-2017-task-4/).

## Cite

Cite as Georgios Balikas and Massih-Reza Amini. 2016. TwiSE at SemEval-2016 Task 4: Twitter Sentiment Classification. Proceedings of the 10th International Workshop on Semantic Evaluation (SemEval-2016).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/s16-1010](https://doi.org/10.18653/v1/s16-1010)

```bibtex
@inproceedings{balikas2016twise,
  title = {{TwiSE at SemEval-2016 Task 4: Twitter Sentiment Classification}},
  author = {Georgios Balikas and Massih-Reza Amini},
  booktitle = {Proceedings of the 10th International Workshop on Semantic Evaluation (SemEval-2016)},
  year = {2016},
  doi = {10.18653/v1/s16-1010},
  url = {https://doi.org/10.18653/v1/s16-1010}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
