UO_IRO: Linguistic Informed Deep-learning Model for Irony Detection
Paper · 2018 · Reynier Ortega-Bueno and José E. Medina Pagola
Summary
A tweet can sound approving while expressing criticism. For a system that looks for sentiment and emotion, taking the words at face value can therefore produce the wrong reading. UO IRO addresses a narrower question that can be evaluated directly. Given an Italian tweet, can a system decide whether it is ironic? The authors built their entry for Task A of IronITA, the Italian tweet irony detection task at EVALITA 2018. The task asks for a label for the whole tweet. The connection to sentiment analysis explains why that label is useful, especially when what a writer implies differs from what the words seem to say.
UO IRO represents each tweet through three routes. A convolutional network looks for patterns among nearby words. A bidirectional recurrent network with attention uses the order of the words to build a representation informed by context in both directions. A separate route encodes linguistic measurements that the authors specify in advance, including punctuation, emphasis, ambiguity, and contrasts between positive and negative language. The system combines these representations before its final decision. The authors also test a version that uses a linear support vector machine in place of the original classification layer.
On the IronITA training material, the authors compared variants using 10-fold cross-validation. Adding the linguistic features improved macro-averaged F1 in every comparison with the corresponding variant that omitted them. This measure gives the ironic and non-ironic classes equal weight in the final score. The best constrained variant, trained with the official data, scored 0.7124. The best unconstrained variant, which also used ironic tweets from TWITTIRÒ, scored 0.8226. Both used the original classification layer. These comparisons support the feature branch as a whole while leaving the contribution of individual cues open.
On the official test set, the ordering of the classifiers changed. The strongest UO IRO submission used the additional ironic tweets and a linear support vector machine. It scored 0.651 in macro-averaged F1 and placed 12/17. The support vector machine also led within the constrained pair, and all four submissions exceeded the organizers’ two baselines. The authors suggest that sensitivity to overfitting could account for the change in classifier ordering. They identify more careful tuning and earlier integration of linguistic information as directions for further work.
Deep dive: UO_IRO: Linguistic Informed Deep-learning Model for Irony Detection
UO IRO detects irony in Italian tweets by combining convolution, attention, and linguistic features, with mixed results for two classifiers. · about 32 minutes to read
The problem and its context
Reading a tweet beyond its apparent sentiment
The paper approaches irony through the gap between what an utterance says on its surface and what its writer means to convey. The authors describe irony as a way of communicating an opposed meaning implicitly. That gap matters for natural language understanding because the literal content can be intelligible even when the intended interpretation is missed. It also explains the paper’s connection to implicature. A writer can convey an evaluation without expressing it in the wording that a reader would expect from a direct statement of the same judgment.
For sentiment analysis, the difficulty is especially concrete. Words with positive associations may appear in a message whose point is critical, and the presence of negative words also needs to be interpreted in context. Detecting irony can flag messages for which the apparent evaluation deserves a closer reading. The paper invokes earlier work that studies what happens to sentiment analysis when tweets are sarcastic. It uses that work to motivate an irony classification experiment of its own. Who cares about Sarcastic Tweets?
IronITA turns this motivation into a text classification task with an ironic label and a non-ironic label. For the subtask the authors entered, the unit of prediction is the individual tweet. A system receives the text and produces one of the two labels. A reader might also want to know which phrase is ironic, who or what it targets, or what evaluation the writer intends. Those are further questions about interpretation. The shared task gives the authors a more sharply defined question and a common evaluation setting in which to answer it.
Even for that narrower task, evidence can occur at different scales. Nearby words may form a recognizable expression. A later phrase may change the apparent force of an earlier one. An emoticon may suggest a different evaluation from the words around it. The paper’s design addresses those possibilities through separate representations. This makes the architecture easier to understand if one starts with the kinds of evidence it is meant to capture and then follows the operations that make each kind available to the classifier.
What earlier approaches contributed
The authors trace their design to two lines of preceding work. One used neural networks to learn representations of short texts. The paper points to convolutional and recurrent approaches, as well as approaches that combined them, in research relevant to figurative language. For UO IRO, the distinction is between looking at nearby terms together and carrying information across a sequence. A convolutional filter can detect a local arrangement wherever it occurs. A recurrent network can preserve information from earlier positions as it processes later ones. The paper cites work on affect and irony in tweets and an ensemble approach to Twitter irony detection as part of this background. ELiRF-UPV at SemEval-2018 and YNU-HPCC at SemEval-2018
The other line of work chose linguistic indicators in advance. The authors cite studies in which manually defined features helped distinguish ironic language from other content. Here, a feature is a measurement such as the frequency of a punctuation mark, a count of opposites, or a difference in sentiment between parts of a message. The choice of measurement reflects a hypothesis about irony. Its usefulness still depends on how frequently the cue occurs, what accompanies it, and whether it distinguishes the labels in the evaluation data. The cited work includes research on modeling sarcasm in Twitter and on the affective content of English tweets. Modelling Sarcasm in Twitter and ValenTO at SemEval-2018
These lines of work already overlapped. The authors cite an irony detection entry that combined linguistic features with a convolutional approach using emoji information. Their own question concerns a particular hybrid for Italian. They combine a local word-pattern representation, a representation that tracks sequence context, and a branch for features measured across the tweet. The paper evaluates whether that third branch helps when the other two are already in place. NLPRL-IITBHU at SemEval-2018
The feature branch also gives the system direct access to information that a sequence representation would otherwise have to recover indirectly from the input. Consider the count of expressions set off by quotation marks. A convolutional filter can learn a pattern involving a quote and nearby text. A count makes the presence of several quoted expressions available as a single value. An ambiguity measurement goes a step further by looking up possible senses or domains in a lexical resource. The resulting signal depends on information beyond the order of the tokens in the tweet.
Polarity contrast illustrates why the authors measure more than the overall sentiment of a message. A tweet can contain positive and negative cues whose combination matters. An average across the whole message would report their combined tendency. A contrast feature can preserve the fact that different parts point in different directions. The authors use an Italian polarity lexicon to give words sentiment values and then compare selected words or regions of a tweet. Their use of this resource follows earlier work on sentiment analysis for Italian tweets. Sentiment analysis on Italian tweets
The architecture brings these strands together at the level of representations. The two sequence branches learn from word vectors arranged in order. The feature branch starts with measurements whose meanings are fixed by the authors. Its dense layer learns how to encode those measurements for classification. The resulting system can use lexical patterns, sequence context, and explicit indicators in the same decision. That is the design the paper takes into the IronITA comparison.
The method, step by step
From a tweet to parallel representations
UO IRO starts with a tweet and derives several views of it. The text is normalized, and its words are represented by vectors. The recurrent branch reads the sequence with context from both directions. The convolutional branch searches for local patterns at several widths. The linguistic branch collects measurements about the tweet in a separate vector. Each branch produces a representation that can be joined to the others near the end of the network.
How UO IRO processes an Italian tweet
The steps in order.
The recurrent, convolutional, and linguistic steps in this diagram are parallel routes into the merge. In particular, the linguistic measurements depend on recognizing properties such as the presence of hashtags, emoticons, and punctuation. The sequence input can use a general marker for a recognized category while the feature representation records how often the category occurred. The paper describes the normalization operations and the features separately. It leaves some details of how the implementation shares intermediate data between those operations unspecified.
Normalizing the text and looking up words
The first operation is to recognize forms that have a special role in tweets. The authors identify emoticons, URLs, hashtags, and mentions. They also recognize RT, which indicates a retweet, and FAV, associated with a favorite. Each recognized item is replaced by a marker for its category. At the level of the normalized sequence, a URL can therefore occupy a position that signals a link without requiring the classifier to learn the individual address. A mention can register as a mention without relying on the spelling of the account name.
That choice gives repeated types of social-media notation a common representation. It also determines what detail the sequence branches receive at those positions. For example, a category marker can preserve that a hashtag was present, while its specific wording is no longer the token at that position. This matters for interpreting the later use of counts and contrasts. A count of hashtags refers to recognized items. A contrast between emoticons and words requires some information about the emoticons’ polarity. Each is a different use of a signal that begins with recognizing the original form.
The authors then apply morphological analysis with FreeLing. They assign a lemma to each resulting token. A lemma is the base form used to group related inflected forms of a word. For vector lookup, this gives forms that vary in inflection a shared lexical identity when they receive the same lemma. The paper also uses grammatical distinctions such as verb tense and person in its explicit features. Lemma assignment and the measurement of grammatical properties serve different purposes in the architecture. FreeLing 3.0
To make the sequence usable by the neural branches, the system represents its words as word embeddings. These are vectors of numerical values that the network can operate on. The authors use publicly available Italian vectors that were trained beforehand. A word vector supplies the input at a position in the tweet, and surrounding positions can then influence what each branch makes of it. The paper identifies the source of the pretrained vectors through the work on sub-word information. Enriching Word Vectors with Subword Information
The vector for a word and the eventual vector for a whole tweet play distinct roles. The former supplies a representation at a particular position. The latter is specific to the processed tweet and depends on which words occurred and how the branch combined them. Both sequence branches start from the word-level view. Their operations make different aspects of the sequence available at the end.
Building a representation with recurrence and attention
The recurrent route begins with a bidirectional long short-term memory network, abbreviated Bi-LSTM. A recurrent layer keeps a hidden state, a vector that carries information as the layer advances through the sequence. In a bidirectional layer, processing proceeds in both directions. The representation at a word can therefore depend on material that precedes it and on material that follows it. The authors use this route to capture dependencies between terms that may be separated within the tweet.
The paper denotes the input word vector at timestep t by wₜ. Here t indexes the position in the sequence, and wₜ is the embedding supplied for the word at that position. It denotes the corresponding hidden state from the bidirectional layer by hₜ. The state hₜ is the contextual representation produced by the recurrent layer, whereas wₜ is what the layer receives. For the architecture, the important consequence is that attention can work with states that already reflect context around a word.
The next operation is attention. The authors describe learning attention weights from the concatenation of hₜ and sₜ₋₁. Concatenation means placing the entries of the two vectors together in a longer vector. The first input, hₜ, is the current output of the bidirectional layer. The second, sₜ₋₁, is the hidden state carried forward from the preceding step of the upper recurrent layer. The combination lets the attention operation use both the current contextual representation and the state accumulated so far by that upper layer.
The attention operation yields a context vector, cₜ, at each step t. This vector is the input to the upper LSTM at that step. It is useful to distinguish the two kinds of context in this description. The lower layer provides a hidden state informed by the bidirectional pass over the words. The attention stage uses that state together with the earlier state of the upper layer to produce the input that the upper layer will process next. The paper describes these dependencies in words and gives the names of the states. It refers readers to the authors’ related work for more detail on the attention mechanism.
The upper LSTM consumes the context vectors in sequence. Its last hidden state, denoted s with subscript Tₓ in the paper, is this branch’s representation of the tweet. Tₓ marks the final step for the input sequence, and s denotes the state of the upper LSTM. Using the final state gives the merge layer a single vector from the recurrent route. The state is a learned representation for classification. Any interpretation of which words or relations dominate it would require a separate analysis.
The architectural reasoning is that what matters at one position may depend on language elsewhere in the message. A locally positive phrase, for example, can appear alongside wording with a different evaluation. The bidirectional layer can contextualize positions before attention is applied, and the upper layer can accumulate the resulting context vectors over the tweet. The paper motivates the recurrent route with this general capacity for longer and backward dependencies. It does not present a word-by-word analysis of individual irony decisions.
Looking for patterns among nearby words
The convolutional route starts from words in sequence too, but it processes them in local windows. A filter learns a numerical response to an arrangement within its window and applies the same operation at different positions. This lets a useful local configuration contribute whether it occurs near the start or the end of the tweet. The authors describe a CNN, or convolutional neural network, with 3 convolution-and-pooling pairs and filters of size three, four, and five. Those widths determine how many nearby input positions a filter can examine together.
Pooling reduces the collection of responses produced by convolution. The authors use max pooling, which retains the largest value in the group being pooled. A strong response to a learned pattern can therefore survive the reduction even when the pattern is found at only one position in that group. Whereas the recurrent representation is built by passing state through the sequence, the convolutional representation can preserve strong local responses without requiring the classifier to use their exact positions in the original tweet.
The CNN also uses the rectified linear unit, typically abbreviated ReLU, as well as normalization and dropout. ReLU is an activation that preserves positive inputs and sets negative inputs to zero. Normalization and dropout are named among the techniques the authors use with the aim of improving accuracy and generalization. Dropout introduces omissions during training so that the learned computation can cope with features being unavailable. The architectural description gives these ingredients and the filter widths, with finer implementation choices left open.
A window of nearby words and a recurrent state answer different questions about the input. The convolutional route can respond strongly to a compact wording pattern. The recurrent route can carry information between positions farther apart. Both representations go to a common decision. The contribution of each route by itself is a separate empirical question from what the combined architecture can represent.
Measuring visible style
The linguistic branch begins with measurements specified by the authors. They group these into stylistic features, structure and content features, and polarity contrast features. Each measurement is made for an individual tweet. The system joins the values into a vector and passes it through a dense layer, a layer whose outputs can depend on all the entries in the input vector. The result is a learned encoding of the measured properties that can be combined with the sequence representations.
The stylistic features capture several aspects of how the writer presents a message. Length enters through a word count, a character count, and an average word length. These measurements distinguish the amount of text from the typical length of its words. Other features count hashtags, URLs, and emoticons. Those values preserve the frequency of these categories even when the sequence representation uses normalized markers for them.
The authors count exclamation marks and track emphasis expressed through word repetition, capitalization, lengthening by repeating characters, and exclamation. They also record periods, commas, semicolons, and question marks. A separate count records expressions enclosed in quotation marks. A punctuation count and a quotation count describe different aspects of a tweet. The former records individual marks, while the latter identifies spans whose boundaries are marked graphically.
These choices let the network see a rough description of form without having to infer every count from the word sequence. Capitalization can mark emphasis, but capitalization is also possible in messages of either class. Quotations can set words apart, and the presence of a quotation by itself leaves its function open. The architecture treats these as inputs whose association with the labels is learned in combination with other evidence.
Some surface properties reappear in the polarity measurements in a different role. Quotation marks can supply boundaries for selecting words whose polarity will be measured. An emoticon can be counted as a stylistic marker and also contribute to a comparison with the surrounding text. Capitalization can enter as a kind of emphasis and as a way to select words for contrast. This distinction between a cue’s presence and the sentiment of the material it marks is an important part of the representation.
Measuring lexical and grammatical structure
The structure and content features describe properties of the words and how they are used. The authors count pairs of antonyms using the antonymy relation in WordNet. This records explicit lexical opposition. A tweet can juxtapose opposite terms for many reasons, so the count supplies a cue for the classifier to weigh alongside other measurements. The source of the relation is a lexical database, which means the available oppositions depend on what can be looked up there. WordNet
Lexical ambiguity is represented with statistics about synsets. A synset is a grouping of words associated with a sense. When a word has several synsets in the resource, the available entries suggest several possible readings. The authors take the average synset count across the tweet, the largest count for an individual word, and the difference between those values. The average describes the general level of ambiguity according to the resource. The maximum gives a single highly ambiguous word a way to affect the representation, even if other words have fewer listed senses.
The paper specifies the difference in words. Its arithmetic relationship can be written as follows.
Δₛ = Mₛ − Aₛ
Δₛ is the gap in synset counts used as an ambiguity feature. Mₛ is the largest synset count for a word in the tweet, and Aₛ is the average synset count across its words. The subscript s identifies synsets, and the minus sign indicates subtraction. This feature summarizes the possibilities listed in the resource. Establishing which sense the writer intended would involve a different operation. Word sense disambiguation
The authors construct a parallel set of measurements for domain ambiguity. Here the count for a word concerns domains associated with it. They again take the mean, the maximum, and the gap between them. They use WordNet Domains and SUMO separately for these measurements. Domain counts give the branch another way to describe how broad the possible interpretations of the vocabulary are according to its resources.
Δᴅ = Mᴅ − Aᴅ
Δᴅ is the domain ambiguity gap for the resource being used. Mᴅ is the largest number of domains associated with an individual word in the tweet, and Aᴅ is the mean domain count across its words. The subscript D denotes domains. As with the synset feature, the gap describes how far the most ambiguous item stands above the average for that message. It leaves the intended domain to be inferred from other evidence.
Other features use grammatical categories. The authors track verbs in the first, second, and third persons and consider nouns and adjectives that agree with those forms. They record verb tenses and look for question-and-answer patterns within the tweet. They also count nouns, verbs, adverbs, and adjectives, drawing on part-of-speech tagging to distinguish these word classes. A separate count records negation words. These measurements provide a compact description of the grammatical material available in a tweet. Negation and lexical opposition remain separate entries, since the former is a property of particular words and the latter is measured over pairs.
The grammatical and lexical statistics describe different sources of possible contrast. A pair of antonyms indicates opposition according to a dictionary relation. A transition in verb tense can distinguish parts of the tweet for a later polarity comparison. Word class counts summarize the composition of the message. The dense layer receives these different kinds of measurements together, giving the classifier the opportunity to learn which combinations matter for the task.
Measuring polarity contrasts
The authors use the Italian polarity lexicon to assign sentiment information to words and calculate features drawn from earlier work. Polarity is the positive, negative, or neutral orientation used in these measurements. The branch compares orientation across words or selected parts of a tweet. Some measurements explicitly describe opposition. Others characterize sentiment inside a particular span. Together they give the classifier a more detailed view than a single overall polarity value would provide.
The word polarity contrast uses the most positive and most negative word in a tweet. The paper also takes account of the distance between them, measured in tokens. That distance describes how far the words lie from one another in the sequence, using the units produced by tokenization. The feature thus brings together an affective quantity and a property of the words’ placement. The paper leaves the exact way these quantities are combined unspecified.
Δₚ = pₘₐₓ − pₘᵢₙ
Δₚ denotes the polarity difference between the selected extremes. The symbol p denotes a word’s polarity value, pₘₐₓ is the value for the most positive word, and pₘᵢₙ is the value for the most negative word. The subtraction expresses the difference component of the feature. Token distance is the additional quantity named in the paper. The formula gives that difference without making an assumption about how the distance enters the feature.
A further measurement compares the sentiment of emoticons with that of the words. If the two sources point in different directions, this feature is designed to register the discrepancy. The antecedent–consequent contrast instead takes the parts of a tweet on either side of a delimiter and compares their polarity. The authors use adverbs and punctuation as delimiters. These boundaries select stretches of words whose sentiment can be compared without requiring an overall representation of the relationship between the stretches.
For text inside quotation marks, the authors record mean polarity and the standard deviation of word polarities. The mean describes the general orientation of the selected words. The standard deviation describes how spread out their polarity values are. The two measurements offer different information about the same span. A quoted expression whose words tend in the same direction and an expression with mixed values can differ in spread even when their average gives a similar impression.
The system also measures polarity contrast between parts of a tweet expressed in the present and in the past. Verb tense supplies the basis for selecting the material. In another feature, capitalized words form one group, and the rest of the text forms the other. Comparing these groups asks whether the visually emphasized vocabulary carries a different evaluation from the surrounding words. Both features use a linguistic or visual distinction to determine where to look for contrast.
One measurement works over skip-grams, which are word groupings that permit a gap. The paper uses pairs made up of nouns, adjectives, verbs, or adverbs, at the specified gap.
skip = 1
Here skip is the gap parameter, and 1 is the value used to select eligible pairs. A pair is counted as contrasting when it combines positive with negative, positive with neutral, or negative with neutral polarity, in either order. The use of neutral words in these patterns matters for interpreting the name of the feature. Its definition covers a change between categories, including a change from polarized to neutral language.
R = C ÷ V
R is the skip-gram polarity rate, C is the count of eligible pairs with one of the specified polarity contrasts, and V is the count of all eligible pairs. The division describes the proportion of eligible pairs that carry a contrast. This gives the feature a different role from a raw opposition count. Its value depends on how common contrasts are among the pairs that could have contributed.
The set of polarity features therefore gives the system several ways to describe a shift in evaluation. A shift could appear between extreme words, across a punctuation boundary, between words and emoticons, or between words selected by tense or capitalization. Some of these measurements can respond to the same parts of a tweet. Their simultaneous availability gives the dense layer a choice of evidence. The experiments evaluate the combined representation, leaving the relative importance of these measurements to further investigation.
Combining the branches and training the classifier
The recurrent vector, convolutional vector, and encoded linguistic features meet at a merge layer. A dense hidden layer processes the merged representation before the output layer assigns a label. The placement is late in the architecture. The sequence branches have already computed their representations when the separately measured linguistic information is combined with them. That arrangement lets the final portion of the network learn how to use their outputs jointly.
In the original system, a softmax output provides scores for the ironic and non-ironic labels that can be read as probabilities over those labels. Training uses categorical cross-entropy, which penalizes the system when it gives too little probability to the labeled class. The authors update the network with Adam, train with batches of 64 tweets, and run training for 20 epochs. A batch groups examples for an update, and an epoch is a pass through the training material. They implement the system in Keras. Adam
An experimental variant replaces the softmax output with a linear support vector machine, or SVM, using default parameters. A linear SVM makes the prediction from a linear boundary in the representation it receives. The change is at the final classification step. The paper applies it both to the version with the linguistic branch and to the version that combines the recurrent and convolutional branches alone. This creates comparisons in which the presence of linguistic features and the choice of classifier can each be examined while the other is held fixed.
The data setting supplies the remaining distinction. The constrained runs use the official IronITA training material. The unconstrained runs add ironic tweets from TWITTIRÒ. The authors describe adding examples of the ironic class from that corpus, so augmentation gives the system more examples from that class and exposes it to an additional source. These two consequences travel together in the reported comparisons. The paper cites the study that describes the corpus and its layered approach to irony. The TWITTIRÒ corpus study
Experiments and results
Development comparisons on training material
The authors first compare the architecture variants through 10-fold cross-validation on the training material. In cross-validation, the procedure repeatedly fits a system on part of the data and evaluates on a held-out fold. This makes it possible to compare settings using the labeled material available before official testing. The paper reports the constrained and unconstrained versions separately. The unconstrained versions include the additional ironic tweets from TWITTIRÒ.
The core comparison has four variants in each data setting. CNN-LSTM combines the convolutional and recurrent branches and uses softmax. CNN-LSTM-SVM changes the classifier to a linear SVM. CNN-LSTM-LING adds the linguistic branch and keeps softmax. CNN-LSTM-LING-SVM pairs that richer representation with the SVM. These names indicate which elements differ, and the examples given to a system depend on whether its run is constrained or unconstrained.
The reported measure is macro-averaged F1, called AVG-F1 in the results. F1 represents a balance between precision and recall for a label. Precision concerns how many predictions of that label are correct. Recall concerns how many examples of the label the system finds. The macro average gives the F1 for irony and the F1 for non-irony equal influence. The authors choose it to prevent the more numerous class from dominating the aggregate.
Constrained variants on IronITA training-set cross-validation by macro-averaged F1
Adding linguistic features improves the score with either classifier, and the feature-enhanced softmax variant leads.
The numbers
| System or setting | macro-averaged F1 |
|---|---|
| CNN-LSTM | 0.7019 |
| CNN-LSTM-SVM | 0.6927 |
| CNN-LSTM-LING (this paper) | 0.7124 |
| CNN-LSTM-LING-SVM | 0.7040 |
In the constrained setting, CNN-LSTM-LING achieves the highest score. It uses the authors’ complete representation and original classifier. For either classifier, the variant with the linguistic branch finishes ahead of the one using the sequence branches alone. Within either representation, softmax finishes ahead of the corresponding SVM. Those are comparisons on the official training material under cross-validation.
Unconstrained variants on IronITA training-set cross-validation with TWITTIRÒ augmentation by macro-averaged F1
Both feature-enhanced variants lead their corresponding sequence-only variants, with softmax producing the highest score overall.
The numbers
| System or setting | macro-averaged F1 |
|---|---|
| CNN-LSTM | 0.7860 |
| CNN-LSTM-SVM | 0.7900 |
| CNN-LSTM-LING (this paper) | 0.8226 |
| CNN-LSTM-LING-SVM | 0.8207 |
With the additional ironic tweets, the feature-enhanced softmax version again leads. The SVM now finishes ahead of softmax among variants using only the sequence branches. Within the pair that also uses linguistic features, softmax retains the lead. Thus the tendency in cross-validation favors softmax, with an exception among the two unconstrained variants lacking the feature branch. The feature comparison is consistent across both classifiers and both data settings.
Every unconstrained variant has a higher cross-validation score than its constrained counterpart. The paper takes this pattern as encouragement for adding ironic examples. Because TWITTIRÒ is the source of those examples, the comparison tests augmentation as a package. The number of available ironic examples, their provenance, and the resulting composition of the training material all vary together. The reported numbers show how that package performed with each of the four variants.
Results on the official test set
For the official evaluation, the team submitted the two variants with linguistic features in both data settings. RUN1-c used softmax and RUN2-c used the SVM under the constrained rules. RUN3-u used softmax and RUN4-u used the SVM with the additional ironic tweets. The official labels name submissions, while the cross-validation experiment names a fuller set of architecture variants. For example, the official RUN1-c includes linguistic features. Its corresponding sequence-only comparison belongs to the earlier experiment.
UO IRO submissions on the official IronITA Task A test set by macro-averaged F1
The augmented linear SVM leads the submissions, and the SVM also leads the constrained pair.
The numbers
| System or setting | macro-averaged F1 |
|---|---|
| RUN1-c, constrained softmax | 0.614 |
| RUN2-c, constrained linear SVM | 0.629 |
| RUN3-u, unconstrained softmax | 0.646 |
| RUN4-u, unconstrained linear SVM (this paper) | 0.651 |
RUN4-u placed 12/17, followed by RUN3-u at 13/17. The constrained SVM was 14/17, and the constrained softmax version was 15/17. The authors report that each of these submissions exceeded both baselines established by the organizers. The paper gives this comparison in terms of which systems finished ahead, while its official results table gives the numerical scores and ranks of the UO IRO entries.
The official comparison reverses the cross-validation ordering of the two feature-enhanced classifiers. With the official training data alone, the SVM leads the softmax submission. With the additional ironic tweets it leads again. The advantage for the unconstrained versions is more consistent across evaluations. On the official test set, both of those submissions finish ahead of both constrained versions.
The official table also gives F1 for each label, which shows how the macro result was achieved. The unconstrained SVM scored 0.700 for ironic tweets and 0.603 for non-ironic tweets. The unconstrained softmax achieved 0.665 for ironic tweets and 0.626 for non-ironic tweets. The SVM’s lead in the macro average comes with stronger F1 for the ironic class, while softmax retains the stronger F1 for the non-ironic class within that pair.
The constrained runs show a similar tradeoff between classifiers. The constrained SVM recorded 0.678 for irony and 0.579 for non-irony. The constrained softmax recorded 0.577 for irony and 0.652 for non-irony. The latter is the strongest non-ironic F1 among the submitted runs. Its lower ironic F1 gives it the lowest macro average of the four. Reporting both class scores makes it possible to see that the official ranking is sensitive to the balance between the two kinds of decisions.
Those class scores also qualify what it means for an unconstrained run to have a higher macro average. Comparing the two softmax submissions, the unconstrained run has a higher score for irony and a lower score for non-irony. Comparing the two SVM submissions, the unconstrained run scores higher on both classes. The data change and the choice of classifier therefore need to be read together when discussing which class benefited in the official evaluation.
What the ablations show
Removing the linguistic branch
The central ablation removes the whole linguistic branch and leaves both learned sequence representations in place. The authors carry out that comparison with the same type of output classifier on either side. With softmax, they compare CNN-LSTM with CNN-LSTM-LING. With a linear SVM, they compare the two corresponding SVM variants. They repeat the comparisons in the constrained and unconstrained settings.
The linguistic branch improves macro-averaged F1 in every one of those comparisons. This is stronger evidence for its usefulness than comparing the best overall submission with a sequence-only system trained under different rules. The relevant pairs hold the classifier and data setting fixed. The difference between them is the availability of the additional representation and the network path that encodes it. The result pertains to the package of linguistic information the authors assembled.
The experiment leaves open which signals explain that improvement. Stylistic counts, lexical and grammatical measurements, and polarity features enter together. A system may benefit from several redundant cues, a small subset of strong cues, or combinations of measurements that are weak in isolation. The table can distinguish the complete feature branch from its absence. Identifying which of those explanations applies would require removing or comparing smaller groups of features.
There is also an architectural distinction between adding the raw measurements and adding the branch as implemented. The feature-enhanced variants include a dense layer for encoding the measurements before the merge. The ablation therefore captures the effect of supplying this information through that learned encoding. It gives evidence for the full change that the authors made. Separating the contribution of the measured values from that of the additional computation would require another comparison.
The official test submissions all have the linguistic branch. The training-set experiment is consequently the source of the evidence that adding it helps, while the official scores show how the selected feature-enhanced variants perform under the shared task evaluation. This gives the two evaluations different roles. One compares the architectural choices over folds; the other records the performance of entries selected from that comparison.
Changing the final classifier
The classifier comparison holds the branches fixed within each pair and swaps the final decision rule. In cross-validation, the SVM trails softmax in both constrained comparisons and in the unconstrained comparison with linguistic features. It leads in the unconstrained comparison using the two sequence branches alone. Looking at the feature-enhanced pair is particularly relevant because those are the systems the authors chose for the official evaluation.
On the official test set, the SVM leads both feature-enhanced comparisons. Its class scores show a consistent direction within the official pairs. It reaches the higher ironic F1 under each data setting, and softmax reaches the higher non-ironic F1. In both pairs the balance of those class scores places the SVM ahead on the official macro measure. That recurring class pattern describes the observed change more closely than the overall rank on its own.
The authors suggest that the softmax classifier may be more sensitive to overfitting. Overfitting occurs when choices that suit the data used in development generalize less well to new data. The reversal is compatible with the authors’ explanation. The paper offers the explanation as a hypothesis. The reported comparisons leave open whether tuning, the differences between evaluation samples, or some other aspect of training accounts for the observed ordering.
Changing the training material
Another comparison adds the ironic portion of TWITTIRÒ. The authors make that change for every development variant, so the effect can be viewed with a fixed architecture and classifier. The unconstrained score is higher in all of those pairs. The same direction appears in the official macro results for the two feature-enhanced classifiers. The agreement across evaluations supports the observation that the augmented setting was helpful for UO IRO as tested.
This experiment answers what happened when this particular source was added. It leaves the cause of the improvement less specific. The augmented setting provides more examples labeled ironic, changes the balance of training material, and adds examples selected from a different corpus. A comparison that changed just one of those properties would be needed to learn which mattered most. The reported class scores also show that the effect of augmentation on non-ironic F1 varied with the classifier.
Taken together, the controlled comparisons give distinct kinds of evidence. The feature ablation has the same direction across the cross-validation pairs. The addition of TWITTIRÒ helps the reported macro scores in both development and official testing. The choice of output classifier is more dependent on the evaluation setting. The paper can support these observations even though it leaves the mechanisms behind them unresolved.
Limitations
Limits the authors identify
The authors describe the system as a promising entry that needs more careful hyper-parameter tuning. Hyper-parameters are choices made in configuring training or the architecture, such as the settings chosen before fitting the network. The paper reports an implemented configuration and compares selected variants. Finding settings that generalize better remains part of the work the authors identify for the future.
They also propose integrating the linguistic information earlier in the architecture. Their implemented branch meets the learned sequence representations near the output. Earlier integration could let linguistic cues influence how some representations are formed, rather than supplying them after the sequence branches have produced their outputs. The paper offers this as a possible way to improve effectiveness. The scores reported for the submission concern the late-merge design.
A further direction is to study how affective information develops through a tweet and what role it plays in realizing irony. The current contrast features make specific comparisons, such as the relative polarity of two parts or the relation of emoticons to words. Those measurements supply inputs to classification. Following the progression of affect through an entire tweet is a broader analytical question that the authors leave for further work.
Their explanation of the classifier reversal has a similar status. They connect the test-set ordering to possible sensitivity to overfitting. The paper establishes the reversal through the scores. It leaves the proposed mechanism to be tested with evidence that can distinguish it from other reasons the evaluations gave different rankings.
Limits of the evidence and reporting
The evaluation concerns automatic irony labeling in Italian tweets under IronITA Task A. The motivation extends to sentiment analysis, but the experiments report irony labels and their F1 scores. Whether inserting UO IRO into a sentiment analysis system would improve that system’s decisions remains open. Similarly, recognizing an ironic tweet is a narrower achievement than recovering its intended meaning, its target, or the passage that gives rise to the irony.
The tests support conclusions about the combined architecture at the level of the comparisons the authors ran. The recurrent and convolutional branches are present together in all tested variants. Their relative contributions, the effect of the attention operation, and the importance of the selected filter widths are therefore open questions. A description of what a branch is designed to capture explains its role in the architecture. Separate comparisons would be required to measure how much that role contributed to the reported F1.
The feature evidence has a similar boundary. The paper establishes that the feature-enhanced variants score higher in the reported cross-validation comparisons. It does not evaluate the stylistic, structure and content, and polarity groups independently. The vocabulary resources and grammatical preprocessing introduce further practical questions, such as how frequently a word can be looked up and how the implementation handles missing entries or a tweet without a usable polarity contrast. The description leaves these cases unspecified, so the reported results describe the implemented system as a whole.
Some choices that matter for reproduction are also left implicit. The description identifies the pretrained Italian vectors, network types, filter sizes, training optimizer, batch size, and number of epochs. It gives less detail about the size of the learned layers, the full attention computation, and the handling of cases in which a feature cannot be calculated directly. For the SVM variants, it identifies the classifier as linear and says that default parameters were used. The exact handoff from training the network to fitting the SVM remains less fully described than the overall architecture.
For the training material, the paper names the official IronITA set and identifies which class of additional examples it takes from TWITTIRÒ. It does not give the corpus sizes in its experimental account or specify how those extra examples were handled within every cross-validation split. Those details matter for interpreting the magnitude of changes across data settings. The most direct common comparison is the official test set, where the submitted systems are evaluated on the shared task’s test material.
The results are reported as aggregate scores and ranks. Fold-level variation, uncertainty estimates, and tests of whether small differences are stable are outside the reported analysis. In particular, a higher reported F1 establishes the ordering in that comparison. The stability of that ordering across repeated training and sampling remains open. That matters most for claims about the classifier, where the feature-enhanced variants already change order between development and official testing.
Finally, the class-specific F1 scores show which label has the better combined precision and recall in each run, but they leave the underlying error patterns unresolved. The paper gives neither separate precision and recall values for the official submissions nor an analysis of misclassified tweets. The scores can show that a classifier improved ironic F1 while losing non-ironic F1. They cannot identify whether a particular kind of quotation, polarity shift, or grammatical construction caused the change.
What came after
The documented follow-up is the overview of IronITA, written by the organizers of the same EVALITA campaign. The connection goes in both directions. The UO IRO paper cites the overview when introducing the shared task, and the overview cites the system paper. UO IRO explains how one entry was built and how its submitted variants performed. The overview places the entry in the context of the common task and its evaluation. Its use of the system paper is part of the broader account of approaches submitted to IronITA. IronITA task overview
That connection records a shared-task contribution. It gives the architectural study a benchmark context in which the submitted runs can be compared with the organizers’ baselines and the rest of the field. A later experimental extension of the hybrid architecture, or an independent reproduction of the linguistic feature comparison, remains undocumented in this citation trail.
Cite
Cite as Reynier Ortega-Bueno and José E. Medina Pagola. 2018. UO_IRO: Linguistic Informed Deep-learning Model for Irony Detection. Proceedings of the Sixth Evaluation Campaign of Natural Language Processing and Speech Tools for Italian. Final Workshop (EVALITA 2018).
@inproceedings{ortegabueno2018uo,
title = {{UO\_IRO: Linguistic Informed Deep-learning Model for Irony Detection}},
author = {Reynier Ortega-Bueno and José E. Medina Pagola},
booktitle = {Proceedings of the Sixth Evaluation Campaign of Natural Language Processing and Speech Tools for Italian. Final Workshop (EVALITA 2018)},
year = {2018},
url = {https://aclanthology.org/2018.evalita-1.28/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bueno-2018-uo-iro-linguistic-informed-deep/