A deep-learning framework to detect sarcasm targets
Paper · 2019 · Jasabanta Patro, Srijan Bansal and Animesh Mukherjee
Summary
Sarcasm can make praise sound like criticism, but identifying the criticism still leaves a question open. Who or what is being criticized? A remark can mention a product, its owner, and one of its features while directing the joke at only one of them. Patro, Bansal, and Mukherjee study how to locate the words that identify that target. Their input is a remark already designated as sarcastic. Their system can select several words, including words from separate phrases, or return the label outside when the target has no expression in the text. This distinction matters for sentiment analysis, where the same product review can convey different opinions about different features.
The study reuses an annotated collection of 224 book snippets and 506 tweets from Joshi and colleagues. The only earlier system the authors identify uses syntactic rules and a statistical classifier to propose target words, then combines their selections. Patro and colleagues first examine which properties distinguish annotated target words from the other words in sarcastic remarks. Locations and organizations show significant differences, alongside several grammatical tags and categories drawn from the LIWC and Empath dictionaries. The feature analysis reports significance thresholds of p < 0.05, p < 0.01, and p < 0.001. Those differences identify possible signals for extraction. They leave the decision about any particular word to a classifier that can also read its surroundings.
The classifier considers each word in turn. It encodes that word, the text before it, and the text after it using word embeddings and a recurrent network. The embeddings give the network numerical representations of words. The recurrent layers process sequences, allowing the representation of a context to depend on the words encountered along the way. The authors compare a standard long short-term memory layer, a bidirectional version, and a target-dependent version. They also test the bidirectional version with the selected linguistic features added just before the final decision. An extra candidate at the end of the input lets the system make a prediction for outside.
Every tested neural variant improves on the earlier system on the paper’s two primary measures. Over 3-fold cross-validation, the feature-augmented bidirectional system achieves exact-match scores of 30.12 on tweets and 31.17 on book snippets. The best earlier exact-match scores are 13.45 and 16.51, respectively. Its Dice overlap scores are 84.11 on tweets and 88.16 on snippets, compared with earlier bests of 39.63 and 32.68. The added features improve both primary scores in each collection, while the additional F1 results give a more mixed picture. The experiments establish a stronger benchmark for extracting targets from known sarcastic text. The authors cite aspect-based sentiment analysis, the mining of opinions, and the generation of responses to explain why they took that step.
Deep dive: A deep-learning framework to detect sarcasm targets
How a neural word classifier uses context and linguistic features to find the target of sarcasm in tweets and book passages. · about 31 minutes to read
The problem and its context
What is the remark aimed at?
A system that identifies sarcasm answers a question about the whole remark. A system that identifies its target has to make a more local decision. It must work out which words, if any, name the person, object, property, or situation at which the sarcasm is directed. The authors start with the first question settled. They assume each sarcastic remark has a target in the intended meaning, and they apply the notion of a sarcasm target only to texts designated as sarcastic. Under those assumptions, the extraction task is a form of information extraction.
The paper illustrates the stakes with a laptop complaint. The speaker describes the battery life enthusiastically, then gives a duration that makes the apparent praise sarcastic. A system that attached the positive wording directly to the battery would reverse the intended opinion. A system that recorded dissatisfaction only with the laptop would lose the specific product aspect that the remark criticizes. Locating the battery life gives an aspect-based sentiment system a place to attach its judgment. For opinion mining, it identifies what the opinion concerns. For a system producing a reply, it gives the reply something more specific to address.
Identifying the target requires interpreting how a mention functions in the remark. In another laptop example, an overheating computer is presented as something chefs could use for cooking. The cooks and the cooking surface are plausible candidates if all the system knows is that they are salient expressions. Their function in the joke is to establish the comparison. The laptop is the thing being ridiculed. The example makes the limitation of simply looking for a noun or a negative word clear. A target can be described in neutral terms, and vivid words can serve the joke without being its object.
The paper also gives an example in which a speaker comments on becoming an outsider and refers to both their appearance and themselves. The annotated target includes an expression for the appearance as well as a first-person pronoun. A system that must select a single noun phrase would have no way to return both. The authors’ definition permits a subset of the input words, which lets the annotation capture separate pieces of target language. It also accommodates a pronoun when the speaker is the object of their own sarcasm.
A further example involves an implausible suggestion about apples eating cheese. The paper assigns that remark outside. The sentence contains concrete things and an action, but the annotators find no words that express the object of the mockery. The fallback is therefore compatible with the assumption that the speaker is mocking something. It records an absence in the wording available to the extractor. Recovering whatever event, claim, or person prompted such a remark would require a different output and potentially more context.
These examples point to different ways a prediction can go wrong. The extractor might select a prominent expression whose job is to set up the contrast. It might find one target phrase and omit another. It might also insist on selecting words when the annotation says the target is outside the text. Each error affects the interpretation of the remark in a different way. A result that only counted how often the system found some relevant word would hide several of those distinctions.
What earlier sarcasm research supplied
The authors place their work against a larger literature on deciding whether text is sarcastic. In their account, one branch sought recurring patterns of sarcastic expression and acquired them with partial supervision. Work on the tension between positive sentiment and an unfavorable situation illustrates why such patterns can be informative. An enthusiastic phrase is ordinary in many settings, yet its relationship to what the speaker describes can make a sarcastic reading plausible. Sarcasm as Contrast between a Positive Sentiment and Negative Situation.
Another branch used hashtags as a source of supervision. A hashtag can give researchers a way to gather or label examples for sarcasm recognition. That signal concerns the kind of remark the writer has made. It supplies no direct annotation for the part of the remark at which the sarcasm is aimed. The paper places work by Davidov and colleagues and by Abercrombie and Hovy in its discussion of hashtag-based approaches. Semi-Supervised Recognition of Sarcasm in Twitter and Amazon, Putting Sarcasm Detection into Context.
A further branch emphasized the context in which a remark appeared. The paper cites work on how people infer ironic intent, as well as computational research on contextual detection in online discussions. It also discusses author representations. Kolchinski and Potts, in the authors’ account, improve text-level sarcasm recognition by supplying a bidirectional recurrent network with information representing the writer. Here, context includes evidence about the circumstances or author of the utterance. In Patro and colleagues’ classifier, the contexts attached to a candidate word are the sequences on either side of that word within the input. Humans Require Context to Infer Ironic Intent, CASCADE, Representing Social Media Users for Sarcasm Detection.
The related-work discussion also covers ways to represent contrast and markers of irony. The authors describe Tay and colleagues’ attention-based approach as designed to capture incongruity explicitly. They report that Ghosh and Muresan found different markers especially informative on Twitter and Reddit. Emoticons and emoji stood out on Twitter, while forms such as interjections and tag questions stood out on Reddit. A marker can signal how to read the remark while being completely separate from the words that name its target. An enthusiastic interjection at the end of a complaint may make the irony easier to hear, for instance, without identifying what the speaker is complaining about. Reasoning with Sarcasm by Reading In-Between, Exploring the Role of Irony Markers in Irony Recognition.
The immediate predecessor
For target extraction itself, the authors identify only the earlier study by Joshi and colleagues. That study defines the output, supplies the annotated data, and offers a system that combines candidate words found by rules with those chosen by a statistical classifier. Patro and colleagues keep the earlier task definition and its fallback. That continuity allows them to ask whether a new way of representing each candidate and its surroundings improves performance on an established test. Sarcasm Target Identification: Dataset and An Introductory Approach.
The new design retains the idea that grammatical and lexical properties can help identify a target. Its distinctive move is to give the classifier a learned representation of both sides of every candidate and then test whether explicit features still help once that representation is available. The linguistic study and the predictive experiment thus answer related questions. One asks which categories have different distributions in target and other words. The other asks what happens to held-out extraction scores when the classifier receives those categories as additional inputs.
The method, step by step
From an annotated remark to word candidates
The starting point is the corpus released by Joshi and colleagues. In its linguistic annotation, three experienced linguists examine remarks already classified as sarcastic and identify the words that express what the writer is mocking. The paper describes their previous annotation experience as covering tasks such as sentiment analysis and word sense disambiguation, with at least five years of experience. In the absence of identifiable target wording, the annotation uses outside. These decisions supply the examples from which the new classifier learns.
The representation follows directly from the annotations. Every ordinary word has a position in the input and can be considered for membership in the target. A word included in an annotated target gives the classifier a positive example at its position. The other words give it examples of material that may be needed to understand the remark but does not belong in the answer. Where a target phrase spans several words, the system has to make a favorable decision at each corresponding position to recover the phrase completely.
The authors append a dummy word whose position stands for outside. This gives the fallback its own candidate and puts it through the same broad classification process as the ordinary words. Consider a remark whose target is implicit. Simply rejecting its nouns and pronouns would leave the system with an empty selection. The appended candidate gives the classifier an explicit way to represent the annotation for that case. Because the dummy comes after the remark, the preceding context for that candidate contains the whole original input.
Start and end tokens mark the boundaries. They participate in the surrounding sequences but are never classified as target words. The start token supplies a left context at the first word, while the end token supplies a right context at the final dummy position. For a reader tracing the architecture, this makes the difference between the dummy and the boundary markers important. The dummy is there to receive a decision. The start and end markers tell the context encoders where the input begins and ends.
How the classifier evaluates a target candidate
The steps in order.
What counts as context for a word
The paper’s word sequence can be written as follows.
w₁, w₂, …, wₙ, wₙ₊₁
Here w denotes a word position and each subscript gives its index. The paper uses capital N for the number of ordinary words, represented by the subscript ₙ in the formula. The ellipsis stands for the intervening positions. The final subscript ₙ₊₁ denotes the added position after the original words. The word at that position is the dummy associated with outside. The punctuation separates positions in the sequence.
The authors specify the range of candidate positions.
1 ≤ K ≤ N + 1
K is the position currently being classified. The first 1 is the index of the first ordinary word. N is the index of the last ordinary word, and + 1 moves the upper bound to the dummy position. The two ≤ signs make both bounds inclusive. The separate start and end markers fall outside this range of candidates.
For each candidate, the authors make a left-hand sequence.
[⟨start⟩ w₁ : wₖ₋₁]
The square brackets enclose the context. ⟨start⟩ is the beginning marker. The colon denotes the consecutive words from w₁, the first ordinary word, through wₖ₋₁, the word immediately before the candidate. The lower-case subscript ₖ represents the paper’s index K, and −1 moves back one position. When the first ordinary word is being classified, this side has the start marker and no preceding ordinary word.
The right-hand sequence follows the candidate to the far boundary.
[wₖ₊₁ : wₙ₊₁ ⟨end⟩]
The square brackets again enclose a context sequence. The first term wₖ₊₁ denotes the position after the candidate, with +1 advancing the index. The colon denotes the run of positions through wₙ₊₁, the appended dummy. ⟨end⟩ is the ending marker. For an ordinary candidate, the right context can therefore extend through the dummy. For the dummy itself, there are no later word positions and the end marker supplies that side.
The center component is the candidate word at K. The authors preserve it separately from the words used to interpret it. In the laptop and cooktop example, processing the laptop as the center lets the classifier consider evidence from the comparison as part of the surrounding language. When processing the expression for the cooking surface, the input words remain the same, but their division into the candidate and its surroundings changes. This candidate-centered view makes the network decide how each word participates in the utterance.
The contexts in the formulas extend to the boundaries of the input. This lets information distant from the candidate enter its representation. In the overheating example, the implication carried by the cooking comparison matters to the earlier mention of the computer. In the example about becoming an outsider, an exclamation at the end helps give the preceding description its sarcastic reading. The architecture supplies this surrounding material to the recurrent encoders. The experiments assess the resulting predictions and leave individual cues within those encodings unmeasured.
Turning sequences into a decision
The embedding layer initializes the words with pretrained numerical representations. Those representations are the input to the recurrent layers, rather than target decisions in themselves. The authors experiment with ELMo, fastText, BERT, and GloVe.
The simple recurrent variant uses long short-term memory, abbreviated LSTM. As this layer reads a sequence, it carries a hidden vector from one position to the next. The vector is an internal numerical representation of the sequence as processed so far. For the left context, the reading direction takes the network from the beginning towards the candidate. For the right context, it takes the network from the far end back towards the candidate. This puts the selected left and right hidden vectors at the edges nearest the center, after each encoder has traversed its side.
The paper describes taking the hidden vector from the rightmost cell of the left sequence and from the leftmost cell of the right sequence. It also takes the hidden vector for the center word. Those vectors are concatenated, meaning their entries are placed end to end in a single vector. A dense layer then transforms that combined vector. Its representation can reflect the identity of the word and the surrounding material on either side together. The architecture thus allows the same word to receive a different decision when its role in the utterance changes.
With the bidirectional LSTM, or Bi-LSTM, the description adds another combination. The hidden vectors from the forward and backward readings are joined within each component before the components themselves are joined. The unidirectional version gives each context one reading direction pointing towards the center. The bidirectional version makes representations from both directions available. This changes how the network describes the surrounding words while preserving the same candidate positions and task.
The third encoder the authors evaluate is a target-dependent LSTM, or TD-LSTM. The method section names this alternative alongside the simple and bidirectional encoders. It explains the flow of hidden vectors for the simple LSTM and the concatenation for the bidirectional design in greater detail. The experimental comparison therefore establishes how the reported TD-LSTM variant scored. Its exact internal wiring within this framework is less fully described.
In the feature-augmented version, the dense representation is joined with features for the current word. The combined representation feeds a linear output layer followed by a sigmoid. The sigmoid maps the layer’s output to a bounded score for the binary decision about the center word. Each decision is made with access to the candidate’s contexts, so the word-level formulation does not imply that each word is read in isolation. The paper gives the architecture through the score for each candidate. The precise threshold and the handling of conflicting selections involving outside receive no corresponding decoding specification.
How the linguistic features are chosen
The authors use the term socio-linguistic features for a set of signals about entity type, grammatical category, and membership in lexical dictionaries. They compare target words with other words in the annotated sarcastic material. This choice of comparison matters. A category may be common in sarcastic language generally and occur equally in both groups. Its usefulness for distinguishing the target would then remain unestablished by this analysis. The distributions that interest the authors are those that differ between the target and its surroundings.
The first family comes from named entity recognition. The relevant labels identify words associated with particular classes of entities. Location, abbreviated LOC, and organization, abbreviated ORG, both show differences at p < 0.001 in tweets and in snippets. The result says that their distributions differ across the target and other words. The paper does not supply the direction or size of those differences in its feature table, so the p-values alone give no rule such as treating an organization mention as a likely target.
The grammatical family uses part-of-speech tagging. These tags distinguish functions such as noun, verb, adjective, and adverb, with more specific tags used for some grammatical forms. Several appear in the significance results. The proper-noun tag NNP, for instance, is listed at p < 0.001 in both collections. The common-noun tag NN is at p < 0.01 for snippets and p < 0.001 for tweets. The adjective tag JJ is listed at p < 0.01 for snippets and p < 0.05 for tweets. The differences in thresholds describe what the comparison found in each collection. They do not give a ranking of the tags by how much they would improve prediction.
The remaining families are derived from LIWC and Empath. These lexical resources assign words to pre-defined categories. A category can express a subject such as family or occupation, or group words by a property such as positive emotion. The authors compare the fractional distributions of these categories for target words and for the other words. The motivation comes from prior uses of the dictionaries to analyze collections of tweets. Here their purpose is more local, since the comparison concerns what the words are doing within remarks that are already sarcastic.
Some examples show why the authors consider a range of categories. In the LIWC results, Social and Posemo, the positive-emotion category, appear at p < 0.001 in both collections. In the Empath results, Occupation is listed at p < 0.05 for snippets and p < 0.001 for tweets. Appearance appears in the snippet results at p < 0.001, while Vehicle is reported at that threshold in the tweet results. These membership signals can describe words involved in a joke even when their surface sentiment offers little guidance about where the target lies. A positive category can also characterize wording that sets up the contrast. The classifier receives category information alongside its representation of local usage.
The selected features are added late in the network. They describe the candidate under consideration and supplement the dense representation built from the recurrent layers. The feature selection study concerns group-level distributions, while the prediction experiment concerns the effect of making the selected features available for individual decisions. The design allows the authors to compare the bidirectional system with and without that additional input without replacing its sequence encoder.
How the training is organized
The annotations supply target decisions for training, and the experiments use 3-fold cross-validation to evaluate the system. In cross-validation, each partition serves in turn as held-out material while the other partitions supply training examples. The reported setup uses the Adam optimizer, a procedure for updating the trainable parameters, with a learning rate of 1e−5. Updates use batches of 64. A batch groups training examples for an update, while the learning rate governs the scale of the adjustments. The authors report that ELMo gave the best results as the initialization for the embedding layer.
The corpus retains the distinction between book snippets and tweets in the reported analyses and scores. This distinction matters for context construction because the collections differ in the usual lengths of the input and its target. It also matters for category selection because the significance table reports differences separately. The system can use the same candidate-centered architecture for both kinds of text while the experiments still show how it behaves in each. The authors released their implementation publicly under the repository name Sarcasm_Target_Detection-EMNLP-.
Experiments and results
Data and the earlier comparison system
The evaluation draws on 506 sarcastic tweets and 224 sarcastic excerpts from books. A snippet averages 27.74 words, and its annotated target averages 1.6 words. A tweet averages 12.97 words, and its annotated target averages 2.08 words. Thus the collection with longer passages has shorter targets on average. That gives the classifier more surrounding wording to process in the snippets, while the desired output remains brief. The averages describe the collections as a whole. Individual remarks may have multiple target phrases or call for the fallback.
The earlier system has two extractors. One proposes target words using nine syntactic rules. The other uses a statistical classifier whose inputs include lexical features, part-of-speech tags, polarity, and pragmatic features. Both ultimately supply sets of candidate words. The final integrator can require agreement or accept the selections of either extractor. The paper reports these as the AND and OR baselines. They put different demands on the evidence for including a word, which makes both relevant comparisons.
Agreement restricts the output to candidates supported by both components. This can exclude plausible words that only one component finds, including some correct ones. Accepting either component’s choice gives more chances to include a target word and more chances to add extraneous words. The results show the consequence for the metrics used here. The baseline with the higher rate of fully correct answers differs from the baseline with the higher overlap score.
What the scores measure
Exact-match accuracy asks whether the predicted target agrees completely with the annotation. This is demanding for an extractor that makes a decision at each word position. Selecting a head noun and missing an attached word can produce a prediction that is helpful to a person yet still falls short of exact match. Selecting the complete phrase along with a stray word also falls short. Where several expressions form the target, the prediction needs to capture the full annotated selection.
The Dice score gives credit for overlap between the answer and the annotation. It rewards shared material and takes account of the sizes of both selections. A prediction that captures some target words can therefore earn partial credit, and selecting extra words can reduce the overlap score. The paper follows the earlier study for both metrics and refers readers to it for the definitions. Reporting both measures shows how frequently the system gets the whole answer and how much target wording it usually recovers when judged by overlap.
The paper also gives micro-F1 and macro-F1 for its neural variants. F1 combines precision, which concerns the correctness of selected items, with recall, which concerns the recovery of relevant ones. Micro and macro refer to different ways of aggregating classification performance. Micro aggregation pools decisions, and macro aggregation gives equal weight to the groups across which it averages. The paper reports these scores with separate columns for tweets and snippets. They provide an additional comparison among the neural variants, while the direct comparison with the earlier system uses exact match and Dice.
Exact agreement on tweets and snippets
On tweets, the AND baseline achieves an exact-match score of 13.45 and the OR baseline scores 9.09. Each recurrent variant does better. The simple LSTM reaches 26.01, TD-LSTM reaches 26.35, and Bi-LSTM reaches 29.48. Adding the linguistic features to the bidirectional variant brings tweet exact match to 30.12. This comparison gives the highest tweet exact-match score to the augmented version and the strongest result among the unaugmented encoders to Bi-LSTM.
Exact-match scores for sarcasm target extraction on tweets
The feature-augmented bidirectional system leads, with every recurrent variant ahead of both baselines.
The numbers
| System or setting | Exact-match accuracy |
|---|---|
| Baseline AND | 13.45 |
| Baseline OR | 9.09 |
| LSTM | 26.01 |
| TD-LSTM | 26.35 |
| Bi-LSTM | 29.48 |
| Bi-LSTM with socio-linguistic features (this paper) | 30.12 |
The book snippets yield the same ordering on exact match. The AND and OR baselines score 16.51 and 7.01, respectively. The simple LSTM scores 23.37, TD-LSTM scores 25.97, and Bi-LSTM scores 30.14. With the linguistic inputs, Bi-LSTM reaches 31.17. The gain over the earlier system is therefore visible under the evaluation that requires the full annotated answer. The change from the unaugmented bidirectional variant to the augmented one is smaller than the overall change from the earlier extractors to the new framework.
The exact-match scores also put the extraction difficulty into perspective. The augmented system leads the comparisons on both collections, with scores of 30.12 and 31.17. The task still presents many cases in which it fails to reproduce the complete annotation. The overlap results help explain what kind of improvement can coexist with those exact-match scores.
Overlap on tweets and snippets
On tweets, AND scores 20.82 on Dice and OR reaches 39.63. That reverses their ordering on exact match. Among the neural systems, the simple LSTM reaches 82.84, TD-LSTM reaches 82.27, and Bi-LSTM reaches 84.04. The augmented bidirectional variant scores 84.11. The choice between the baseline integrators matters substantially on this metric, so the relevant comparison for the best new tweet result is with the OR baseline.
For snippets, AND scores 21.28 and OR scores 32.68 on Dice. The simple LSTM reaches 87.57. Bi-LSTM scores 87.66, and TD-LSTM reaches 87.71, making TD-LSTM the strongest unaugmented variant on this collection and metric. The augmented Bi-LSTM reaches 88.16. The snippet results therefore show a change in which unaugmented encoder leads when the measure shifts from full agreement to overlap.
Dice overlap scores for sarcasm targets in book snippets
Adding linguistic features yields the highest overlap, while the unaugmented recurrent variants score close together.
The numbers
| System or setting | Dice score |
|---|---|
| Baseline AND | 21.28 |
| Baseline OR | 32.68 |
| LSTM | 87.57 |
| Bi-LSTM | 87.66 |
| TD-LSTM | 87.71 |
| Bi-LSTM with socio-linguistic features (this paper) | 88.16 |
The relatively high Dice scores alongside the exact-match results are consistent with predictions that frequently share target material with their annotations while differing in the full selection. On a short target, even a small change to the chosen words determines whether the whole answer counts as correct. The paper gives aggregate scores, so the results cannot tell a reader how frequently such disagreements come from overly broad selections, omitted words, omitted phrases, or confusion about outside. The separate metrics reveal the gap between two standards for success without supplying that error breakdown.
How the F1 comparisons change the picture
On tweets, the simple LSTM scores 46.79 on micro-F1 and 51.04 on macro-F1. The unaugmented Bi-LSTM scores 54.74 and 59.19, respectively. TD-LSTM scores 41.59 on micro-F1 and 49.28 on macro-F1. The augmented Bi-LSTM scores 50.30 and 55.76. The unaugmented bidirectional system consequently leads both tweet F1 comparisons. This is the same collection in which adding the features improves the bidirectional system’s exact-match and Dice scores.
The snippet results favor augmentation under both F1 measures. The simple LSTM scores 39.31 on micro-F1 and 43.72 on macro-F1. Bi-LSTM reaches 48.27 and 45.36, respectively. TD-LSTM scores 47.23 on micro-F1 and 46.42 on macro-F1. The augmented Bi-LSTM reaches 48.30 and 48.54. Before augmentation, the bidirectional variant leads on snippet micro-F1 and TD-LSTM leads on snippet macro-F1. With the additional features, the bidirectional system leads on both.
The authors report a new state of the art for the task as evaluated by exact match and Dice on the existing corpus. Those measures are the ones shared with the earlier system. The F1 results refine the comparison within the paper’s own experiments, particularly for tweets. The strongest configuration depends on how performance is measured, even though the improvement over the earlier system on the shared metrics is consistent across the recurrent variants.
What the ablations show
What the encoder comparison isolates
The paper’s clearest comparisons concern its choices of recurrent encoder and its addition of linguistic features. The unaugmented systems use the same broad candidate-centered formulation, with the encoder as the point of variation. Bi-LSTM leads the unaugmented systems on exact match for both collections and on Dice for tweets. TD-LSTM leads the unaugmented systems on Dice for snippets. The bidirectional design therefore has the stronger case when the criterion is recovering the complete annotated selection, while the snippet overlap results favor a different encoder.
This comparison provides some evidence for how to assemble the architecture. Reading the context in both directions is associated with higher scores than the plain LSTM in these experiments. The candidate formulation, the presence of left and right contexts, and the representation of the candidate itself are shared across the reported variants. No row removes just one of those components. The contribution of the left side, the right side, or the center representation would require comparisons beyond the ones reported.
The baseline comparison is broader. Moving from the earlier system to any neural variant changes how the candidates are scored and how the surrounding words are represented. The large differences against the baselines establish the effectiveness of the tested framework as a whole. They cannot allocate that gain to a single design choice, such as embedding initialization, the representation of outside, or the way hidden vectors are combined. The strongest evidence about any individual addition comes from the narrower comparison within the bidirectional system.
What changes when features are added
The unaugmented and augmented Bi-LSTM entries give the most direct test of whether the derived linguistic signals help. On book snippets, adding the features moves exact match from 30.14 to 31.17 and Dice from 87.66 to 88.16. The snippet F1 measures also improve. On tweets, exact match moves from 29.48 to 30.12 and Dice from 84.04 to 84.11. The exact-match results indicate that complete answers become more frequent under the reported evaluation, while Dice shows that the overlap also improves.
The tweet F1 results qualify that conclusion. Tweet micro-F1 moves from 54.74 to 50.30 after augmentation, and macro-F1 moves from 59.19 to 55.76. The features therefore change the quality of the output in a way that looks favorable under the complete-answer and overlap metrics but unfavorable under the reported F1 aggregation. The paper gives no separate precision and recall analysis that would locate the source of this reversal. For instance, the score pattern on its own leaves open whether the features make the extractor more selective about individual words.
The branch adds the selected features together. The comparison shows what happens when the bidirectional system has access to that feature set. It cannot determine whether the effect comes mainly from entity recognition, grammatical tags, LIWC, Empath, or interactions among them. There are also no corresponding augmented entries for the simple LSTM or TD-LSTM. The tested result attaches specifically to the bidirectional encoder and the particular augmentation used with it.
The size of the change also matters when interpreting why the overall system works. Unaugmented Bi-LSTM already reaches 84.04 on tweet Dice and 87.66 on snippet Dice. The augmented results are higher, but much of the advantage over the older extractors is already present before the linguistic vector is added. The feature comparison supports an incremental benefit on the primary metrics and shows that this benefit can coexist with a decline on another measure.
What the distribution and embedding analyses establish
The significance table is a separate analysis of the corpus. It identifies categories that occur differently in target and other words and distinguishes the findings for snippets from those for tweets. For example, location and organization labels meet the p < 0.001 threshold in each. A result can be statistically significant at the corpus level even if the property is redundant with information the recurrent network already encodes. Conversely, a useful combination of properties might owe its value to how they interact for a particular example. Significance in the feature analysis and predictive value in the classifier are distinct forms of evidence.
The table also shows why it is risky to assume a single characteristic vocabulary for target words. Both collections have significant grammatical and lexical categories, but their lists differ, and a category shared by the lists can appear at different thresholds. The analysis does not include a direct test of whether a given category differs between tweets and snippets in the same way. It compares targets with other words separately within each collection. When the authors add the selected features to the classifier, they test the combined predictive contribution under that experimental setup.
The embedding comparison is reported as a choice of initialization. ELMo gave the best results in the authors’ trials. The paper does not give a score for each initialization or a breakdown by encoder, collection, and metric. The reader can identify the initialization the authors favored, but the report leaves the magnitude and consistency of its advantage open. In particular, it offers less evidence for explaining the embedding choice than the numerical comparison with and without the linguistic feature branch offers for that addition.
Limitations
Scope set by the authors
The authors present the study as a proof of concept for combining a neural sequence classifier with explicit linguistic information. They place it downstream of recognition. Every input is already designated as sarcastic, and a target is assumed to exist in the speaker’s intended meaning. These choices let the evaluation concentrate on extraction. They also leave the reliability of a complete pipeline open. In an application that first has to decide whether a remark is sarcastic, an upstream mistake could send a literal text to the extractor or prevent a sarcastic text from being processed.
The output is likewise bounded by the annotation task. It consists of selected words or the fallback outside. If the speaker is mocking something left implicit, assigning the fallback fulfills the task. The evaluator has no further requirement to identify the implied person, event, or situation. Even for a target in the text, the output identifies its wording. Resolving what a pronoun refers to or deciding which real-world organization a name denotes would be a further step.
The paper motivates the task with sentiment analysis, opinion mining, and generation. Its experiments measure agreement with target annotations. Whether a sentiment system makes more accurate judgments about product aspects after adding the extractor, or whether generated replies become more appropriate, remains an application question. Detecting the intended object of criticism supplies one piece of information to such systems. They would still have to infer what the speaker is expressing about it and use that inference in their own outputs.
What the evaluation leaves open
The evidence comes from the same two collections supplied by the earlier work, evaluated with 3-fold cross-validation. This gives the authors a benchmark shared with the earlier extractors and estimates performance on held-out portions of the annotated material. Transfer from book text to social media, from tweets to a new collection, or from isolated remarks to conversation threads would need its own evaluation. The difference in average input lengths and the differences in significant categories give reasons to keep the reported results tied to their collections.
The annotation account describes expertise and the instructions given to the linguists. The paper’s presentation does not report agreement figures or explain how contested target boundaries were resolved. Those details would help interpret exact match. If one reader selects an entire expression and another selects its head, the evaluation can treat the difference as a full error even when both readers understand what is being mocked. The aggregate results do not establish how much of the measured difficulty comes from such cases.
The fallback is particularly hard to assess from the headline results. The paper does not provide separate scores for identifying outside or for extracting an in-text target. It also gives no breakdown for remarks with several target phrases. These cases put different demands on the system. One requires using the appended candidate to indicate absent wording, and the other requires keeping several parts of the output while rejecting surrounding candidates. The reported exact-match and Dice scores pool over the cases in each collection, obscuring where the method is most reliable.
There is also a difference between assigning scores independently at candidate positions and producing a coherent final selection. The architecture describes the score for a word at the center. It leaves open how decisions are combined when a selected word and the dummy are both plausible, and how the system obtains a fallback if none of the candidates meets a selection criterion. The report supplies no separate structured constraint on phrase boundaries. This matters most when trying to reproduce the system’s handling of incomplete phrases, multiple targets, or ambiguous fallback cases from the methodological description alone.
What the feature findings can support
The significant categories are associations in the annotated corpus. Their reported thresholds give information about the comparisons the authors conducted, while the size and direction of the underlying effects remain unspecified. For lines of evidence involving many categories, details of the statistical test and any handling of multiple comparisons would help a reader judge the breadth of the findings. Similarly, an account of whether feature selection was repeated inside each training fold would help establish exactly how the feature inventory relates to the held-out material. The paper does not specify that placement clearly enough to settle it from the experimental description.
For predictive comparisons, the tables report scores without fold-level variation or uncertainty intervals. The ordering of the reported runs can be read directly. How stable closely spaced results would be across partitions or training runs remains open. This distinction is relevant to the small separation between the unaugmented encoders on snippet Dice, and to the small change in tweet Dice when linguistic features are added. It is especially important when interpreting the benefit as a property of the architecture beyond the data evaluated here.
Finally, the experiments evaluate the selected linguistic categories as a bundle. They establish a measurable benefit for that bundle on the primary metrics in the reported comparisons with plain Bi-LSTM and a less favorable result on tweet F1. They leave unanswered which categories the system uses for a particular prediction, whether the same categories would help on a new collection, and whether the effect would persist with another encoder. The paper’s strongest claim is comparative and specific to its benchmark. Its explanation of why any one target was recovered remains at the level of the inputs and architecture.
What came after
Keeping the extraction task and changing the representation
The closest continuation signaled by the later papers is the use of BERT for sarcasm target detection. Patro and colleagues had already considered BERT among the initializations for their recurrent framework, with ELMo giving their best reported results. The 2021 BERT study takes BERT as the basis of its named approach to the target-detection task. The title establishes the shared extraction objective and the change in emphasis. It leaves the precise role of BERT, the treatment of outside, and the numerical comparison with the recurrent framework unspecified. BERT’s The Word.
That connection matters because a representation can enter a system at different points. In the earlier paper, the comparison of pretrained embeddings is made within a framework that explicitly builds separate recurrent representations around every candidate. A later study framed around BERT keeps attention on identifying the object of sarcasm while making a different choice the focus of investigation. The title alone supports continuity of the problem and a shift in the representation under study. It does not establish which parts of the earlier architecture the later authors retained.
Expanding the evidence available for tweet targets
A 2022 paper takes sarcasm target identification in tweets into vision and language. Patro and colleagues represent the evidence as words within the remark and their features. The later paper’s title establishes that its target-identification setting is multimodal. That changes what may be available to interpret the joke. In principle, material beyond the wording could help a system distinguish the item being mocked from an item mentioned to set up the joke. The title does not establish how its target labels treat evidence outside the text or how the different modalities are combined. Multimodal Sarcasm Target Identification in Tweets.
CofiPara, from 2024, continues multimodal sarcasm target identification and describes its approach as coarse-to-fine. That description indicates that the work organizes the analysis at successive levels of detail. It is a different framing from evaluating a center word with a left context and a right context, although both address the problem of locating the object of sarcasm. The work’s title establishes the coarse-to-fine organization and the multimodal task. The identities of the stages, the information passed between them, and any effects on particular kinds of target are beyond what the title establishes. CofiPara.
These papers extend the question of what the extractor gets to inspect. In the earlier setup, a speaker can refer to something outside the words, and the system has a single label for the absence of target wording. Multimodal target identification makes it natural to ask whether evidence conveyed through another modality changes what can be located. The distinction between an implicit target and one expressed through some other part of a post is a question raised by the change in task setting. It is not a reported result of either study.
Recognition and review
The 2022 IISERB Brains paper concerns intended sarcasm in English. Its title describes a deep-learning system for a shared task on recognizing that intention. This is related to the earlier extraction work through the condition on the input. Patro and colleagues assume that sarcasm has already been established. Intended-sarcasm recognition studies the kind of judgment that would have to precede extraction in a pipeline operating on unfiltered text. The connection is between neighboring tasks. The title gives no basis for attributing target annotations or the earlier recurrent architecture to the shared-task system. IISERB Brains at SemEval-2022 Task 6.
The 2022 systematic review places the citation in the wider study of computational sarcasm on social media. Its scope is broader than the extraction of target words. In that setting, the earlier paper supplies an example of how research can start from a known sarcastic post and ask for finer information about it. The review’s title establishes its purpose as a synthesis of research in the area and leaves open the specific conclusions it draws about the target-extraction experiments. Computational Sarcasm Analysis on Social Media.
The later work thus follows several questions that the original setup kept distinct. Target-detection papers can change how they represent the words or widen the evidence supplied with a tweet. Work on intended sarcasm deals with deciding whether there is a sarcastic reading to begin with. A review can place either line of work in the larger field. Patro and colleagues’ contribution is clearest within that division of labor. Once sarcasm is established, the target still has to be found, and finding much of its wording is a different achievement from recovering the complete answer.
Institutions
Fields, topics and concepts
Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 works
Topics 1Research subjects and languages the work is about.Sentiment & emotion · 1,037 works
Appears in
Mentioned in articles aboutKharagpur
Cite
Cite as Jasabanta Patro, Srijan Bansal and Animesh Mukherjee. 2019. A deep-learning framework to detect sarcasm targets. Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP).
@inproceedings{patro2019deep,
title = {{A deep-learning framework to detect sarcasm targets}},
author = {Jasabanta Patro, Srijan Bansal and Animesh Mukherjee},
booktitle = {Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP)},
year = {2019},
doi = {10.18653/v1/d19-1663},
url = {https://doi.org/10.18653/v1/d19-1663}
}References
- Gavin Abercrombie and Dirk Hovy. 2016. Putting sarcasm detection into context: The effects of class imbalance and manual labelling on supervised machine classification of twitter conversations. In Proceedings of the ACL 2016 Student Research Workshop, pages 107–113.
- Mondher Bouazizi and Tomoaki Ohtsuki. 2015. Sarcasm detection in twitter:” all your products are incredibly amazing!!!”-are they really? In 2015 IEEE Global Communications Conference (GLOBECOM), pages 1–6. IEEE. OpenAlex ↗ · Scholar ↗
- Dmitry Davidov, Oren Tsur, and Ari Rappoport. 2010. Semi-supervised recognition of sarcastic sentences in twitter and amazon. In Proceedings of the fourteenth conference on computational natural language learning, pages 107–116. Association for Computational Linguistics. Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 2: Short Papers), volume 2, pages 757–762.
- Y. Alex Kolchinski and Christopher Potts. 2018. Representing social media users for sarcasm detection. In EMNLP.
- Suman Kalyan Maity, Aishik Chakraborty, Pawan Goyal, and Animesh Mukherjee. 2018. Opinion conflicts: An effective route to detect incivility in twitter. In ACM CSCW. OpenAlex ↗ · Scholar ↗
- Suman Kalyan Maity, Ritvik Saraf, and Animesh Mukherjee. 2016. #bieber + #blast = #bieberblast: Early prediction of popular hashtag compounds. In CSCW ’16, pages 50–63. OpenAlex ↗ · Scholar ↗
- Binny Mathew, Ritam Dutt, Pawan Goyal, and Animesh Mukherjee. 2019a. Spread of hate speech in online social media. In ACM WebSci. OpenAlex ↗ · Scholar ↗
- Ethan Fast, Binbin Chen, and Michael S Bernstein. 2016. Empath: Understanding topic signals in large-scale text. In Proceedings of the 2016 CHI Conference on Human Factors in Computing Systems, pages 4647–4657. ACM. OpenAlex ↗ · Scholar ↗
- Binny Mathew, Punyajoy Saha, Hardik Tharad, Sub-ham Rajgaria, Prajwal Singhania, Suman Kalyan Maity, Pawan Goyal, and Animesh Mukherjee. 2019b. Thou shalt not hate: Countering online hate-speech. In ICWSM. OpenAlex ↗ · Scholar ↗
- Clay Fink, Jonathon Kopecky, and Maksym Morawski. 2012. Inferring gender from the content of tweets: A region specific example. In ICWSM ’12, pages 459–462. OpenAlex ↗ · Scholar ↗
- Bo Pang, Lillian Lee, et al. 2008. Opinion mining and sentiment analysis. Foundations and Trends R in Information Retrieval, 2(1–2):1–135. OpenAlex ↗ · Scholar ↗
- Antigoni-Maria Founta, Constantinos Djouvas, Despoina Chatzakou, Ilias Leontiadis, Jeremy Blackburn, Gianluca Stringhini, Athena Vakali, Michael Sirivianos, and Nicolas Kourtellis. 2018. Large scale crowdsourcing and characterization of twitter abusive behavior. In ICWSM. OpenAlex ↗ · Scholar ↗
- Debanjan Ghosh and Smaranda Muresan. 2018. ”with 1 follower i must be awesome : P”. exploring the role of irony markers in irony recognition. In ICWSM.
- Devamanyu Hazarika, Soujanya Poria, Sruthi Gorantla, Erik Cambria, Roger Zimmermann, and Rada Mihalcea. 2018. Cascade: Contextual sarcasm detection in online discussion forums. In COLING.
- Aditya Joshi, Pushpak Bhattacharyya, and Mark James Carman. 2017. Automatic sarcasm detection: A survey. ACM Comput. Surv., 50:73:1–73:22.
- Aditya Joshi, Pranav Goel, Pushpak Bhattacharyya, and Mark Carman. 2018. Sarcasm target identification: Dataset and an introductory approach. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC-2018).
- Aditya Joshi, Vinita Sharma, and Pushpak Bhattacharyya. 2015. Harnessing context incongruity for sarcasm detection. In Proceedings of the 53rd Annual Meeting of the Association for Computational Tomáš Ptáček, Ivan Habernal, and Jun Hong. 2014. Sarcasm detection on czech and english twitter. In Proceedings of COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers, pages 213–223.
- Ashwin Rajadesingan, Reza Zafarani, and Huan Liu. 2015. Sarcasm detection on twitter: A behavioral modeling approach. In Proceedings of the Eighth ACM International Conference on Web Search and Data Mining, pages 97–106. ACM. OpenAlex ↗ · Scholar ↗
- Manoel Horta Ribeiro, Pedro H. Calais, Yuri A. Santos, Virgı́lio A. F. Almeida, and Wagner Meira. 2018. Characterizing and detecting hateful users on twitter. In ICWSM. OpenAlex ↗ · Scholar ↗
- Ellen Riloff, Ashequl Qadir, Prafulla Surve, Lalin-dra De Silva, Nathan Gilbert, and Ruihong Huang. 2013. Sarcasm as contrast between a positive sentiment and negative situation. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 704–714.
- Joni O. Salminen, Hind Almerekhi, Milica Milenkovic, Soon-Gyo Jung, Jisun An, Haewoon Kwak, and Bernard J. Jansen. 2018. Anatomy of online hate: Developing a taxonomy and machine learning models for identifying and classifying hate in online news media. In ICWSM. OpenAlex ↗ · Scholar ↗
- Hansen Andrew Schwartz, Johannes C. Eich-staedt, Margaret L. Kern, Lukasz Dziurzynski, Richard E. Lucas, Megha Agrawal, Gregory J. Park, Shrinidhi K. Lakshmikanth, Sneha Jha, Martin E. P. Seligman, and Lyle Ungar. 2013. Characterizing geographic variation in well-being using tweets. In ICWSM ’13, pages 583–591. OpenAlex ↗ · Scholar ↗
- Yi Tay, Anh Tuan Luu, Siu Cheung Hui, and Jian Su. 2018. Reasoning with sarcasm by reading in-between. In ACL.
- Oren Tsur, Dmitry Davidov, and Ari Rappoport. 2010. Icwsma great catchy name: Semi-supervised recognition of sarcastic sentences in online product reviews. In Fourth International AAAI Conference on Weblogs and Social Media. OpenAlex ↗ · Scholar ↗
- Byron C Wallace, Laura Kertz, Eugene Charniak, et al. 2014. Humans require context to infer ironic intent (so computers probably do, too). In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), volume 2, pages 512–516.
This page in Markdown https://md.research.elamur.ai/free/en/papers/patro-2019-deep-learning-framework-detect-sarcasm/