Elamur Research

TECHSSN at SemEval-2019 Task 6: Identifying and Categorizing Offensive Language in Tweets using Deep Neural Networks

Paper · 2019 · Logesh Balasubramanian, Harshini Sathish Kumar, Geetika Bandlamudi et al.

Summary

An offensive tweet can be easy to recognize and still be hard to classify. It might attack someone directly, use profanity without attacking anyone, or imply an insult through wording that looks harmless in isolation. TechSSN’s entry for OffensEval at SemEval 2019 examines these distinctions through a series of decisions. The first is whether a tweet is offensive. The next is whether the offense has a target. The finest distinction is the kind of target, with separate categories for individuals, groups and other entities. Each decision calls for a different reading of the same short text.

The authors compare two neural approaches that look for patterns across neighboring words, a linear support vector machine that uses evidence from individual words, and additional classifiers for comparison. The neural systems start with pretrained word embeddings, which represent words as vectors of numbers. Both use parallel convolution branches to pick up patterns of different lengths. For offense detection, the team also expands the organizers’ training data with examples from other collections and adds a dictionary check for tweets the first stage calls offensive with a probability below 0.70. The authors report a 5% increase in macro F1 from the second stage. Macro F1 gives each class equal weight when combining scores that reflect how often its predictions are right and how much of the class it recovers.

The strongest approach varied with the decision and the metric. For offense detection, the two-dimensional convolutional network trained on the expanded dataset had the highest macro F1 in the task results, at 0.7382. The one-dimensional network had the highest accuracy, at 0.8174. For distinguishing targeted from untargeted offenses, the support vector machine had the best macro F1, at 0.6602, while always predicting the more common targeted class gave the highest accuracy, at 0.8875. For identifying the kind of target, the one-dimensional network led on macro F1 at 0.5633, and the support vector machine led on accuracy at 0.6808.

The paper’s comparisons show why an overall count of correct decisions can give a different picture from a score that weights classes equally. They also show where the evidence becomes thinner. The dictionary gain is reported without the paired scores needed to inspect it. The authors point to subjective judgments, implicit references and conversational tone as obstacles, and suggest that limited data contributed to the weaker results for target identification. The reported scores establish how particular systems handled the benchmark’s labels. They leave open how well those systems could recover a writer’s intention when the words and the conversation point in different directions.

Deep dive: TECHSSN at SemEval-2019 Task 6: Identifying and Categorizing Offensive Language in Tweets using Deep Neural Networks

TechSSN’s OffensEval study compares neural classifiers, a word-list check, and a linear SVM for detecting offensive tweets and identifying their targets. · about 34 minutes to read

The problem and its context

What makes a tweet offensive?

The paper approaches offensive language as a problem of text classification. The input is a tweet and the desired output is a label. Writing down the output categories makes the assignment easier to specify, but deciding where a particular message belongs can still require a judgment about what the writer is doing. A rude word may be used to express frustration. A post with ordinary vocabulary may ridicule a reader who knows the people or events involved. The authors treat such cases as part of the task itself, rather than as incidental difficulties in processing tweets.

The motivation is the range of people and groups that offensive messages can be directed at as social media grows. The introduction mentions attacks on individuals and on groups defined in various ways, including religion and gender. Detecting that an offense occurred is one question in that setting. Describing whom it is directed at adds information that a binary flag cannot carry. The benchmark’s structure gives each question its own decision, so that a system that detects offensive language can be evaluated separately from one that identifies its target.

Short, informal posts are a difficult setting for those judgments. The authors point to slang, symbols, emojis, and references whose meaning is only hinted at. They also mention missing information. Some of these difficulties concern the form of the message, such as a spelling that stretches out a word. Others concern the interpretation of a message that has already been read correctly. Recovering a conventional spelling can help a system recognize a word it has seen before. Recovering the significance of a reference may depend on knowing something absent from the message.

Human judgments bring their own uncertainty. The paper describes manually classifying tweets as subjective and often ambiguous. If readers perceive the tone differently, a label records a judgment made under the task’s conventions. A prediction can therefore be evaluated against the benchmark even when recovering the writer’s actual intent remains difficult. That distinction matters for reading both the overall scores and individual errors against the task’s linguistic annotation.

Why the benchmark separates offense from its target

Subtask A is the broad screening decision. It asks whether a tweet belongs to the offensive class, abbreviated OFF, or the non-offensive class, abbreviated NOT. At this point the system needs enough evidence to recognize an offense, but it can succeed without deciding what the offense is aimed at. A classifier for this level may put considerable weight on words and phrases that recur in offensive examples. The difficulty is that some of those same words also occur in messages assigned the other label.

Subtask B concerns tweets in the offensive category. It separates targeted insults, labeled TIN, from untargeted offenses, labeled UNT. The paper describes targeted messages as having an identifiable object, which can be a person or a collective entity. An untargeted offense may still use abusive language. The distinction depends on what that language is applied to. Evidence that helped with Subtask A may consequently be shared by both classes in Subtask B. This helps explain why the authors give target-related words different treatment in preprocessing.

Subtask C specifies what kind of target a targeted offense has. The result labels distinguish an individual, IND, a group, GRP, and another target, OTH. The introduction illustrates the range with people and organizations. The distinction is fine-grained because recognizing that a post is directed at something leaves a further question about what the reference denotes. A name, a pronoun, or a collective expression can contribute to that judgment, and an indirect reference can obscure it. The output is a category, so success here means assigning the right kind of target under the task definitions.

These subtasks form a hierarchy of questions. As the questions get more specific, the relevant set of examples narrows and the nature of the evidence changes. The distinction is also important for interpreting the paper’s architecture. Its later dictionary check is another attempt at the offense decision in Subtask A. The progression from detecting an offense to describing its target is the structure of the shared task itself.

Earlier approaches as the authors describe them

The related-work discussion places the study alongside research on sentiment, abuse, cyberbullying and hate speech. The connection to sentiment analysis is that both kinds of classification can draw on patterns in evaluative language. The offense task places particular pressure on words whose effect changes with their use. A strong expression of feeling can resemble a personal attack in its vocabulary. A method built to recognize evaluative language still needs to resolve that distinction if it is to predict the offense labels.

The paper discusses staged classifiers as one precedent. Its account describes statistical decisions followed by a rules component and associates gains of 7% and 6% in accuracy with successive stages in the related-work discussion. The same discussion connects increased performance with the use of a lexicon of abusive expressions. The paragraph attached to the sentiment citation overlaps with the paper’s separate account of flame detection, so the figures are best read as part of the authors’ presentation of staged classification. The sentiment study named there is Thumbs up? Sentiment Classification using Machine Learning Techniques.

The description of Razavi and colleagues is more specific about the division of labor. An initial classifier helps select features. A subsequent classifier can incorporate additional evidence, and a hybrid of a decision table and Naive Bayes supplies the last flame-detection decision. A decision table expresses choices in terms of conditions on the evidence, while Naive Bayes is a statistical classifier. The precedent relevant to TechSSN is the arrangement of decisions in stages. In TechSSN’s offense detector, the extra source of evidence is a word list used on a subset of tweets.

The authors also review neural approaches that gather evidence in different ways. A convolutional network scans for patterns at nearby positions. A recurrent network processes a sequence with a state that can carry information from earlier positions. The paper describes a study that compared convolution, recurrence and a combination of the two. It also relays a concern from that work about spelling correction. A correction may yield a plausible word that is absent from the available embeddings, limiting the benefit of the correction when the next step needs to look up that word.

Another comparison in the literature concerns what the classifier receives as input. A representation based on individual word counts makes occurrences readily available but discards their order. A representation that combines words can carry some local structure. The paper’s review says that sequences enriched with syntactic or semantic information did better than standard sequences in earlier work. It also describes an earlier comparison using paragraph vectors, which represent a larger stretch of text numerically. The paper reports a reduction of roughly 39% in classification error in its discussion of Distributed Representations of Sentences and Documents.

For target identification, the authors emphasize overlapping categories. Their related-work section also describes the difficulty of distinguishing hate speech, offensive language and non-offensive language. That concern carries into their own experiments. A lexical cue can be informative across many examples without settling the class of each example that contains it. The distinction between a clue and a sufficient condition is central to the paper’s comparison of word-based classifiers, convolutional networks and a dictionary check.

The method, step by step

From a tweet to a decision

The basic procedure has a text preparation stage, a representation stage and a classification stage. Preparation makes the writing more consistent. Representation turns the prepared words into numbers. Classification uses those numbers to predict a label. The neural classifiers inspect local groups of words through parallel branches. The support vector machine gives more direct weight to the presence or importance of individual words in a tweet. Subtask A also has a route through the dictionary for qualifying predictions.

The diagram describes that last route within the neural offense detector. The paper evaluates a broader set of classifiers across the subtasks. The dictionary route is reserved for determining offense, and the target decisions have their own input categories and classifiers.

From training examples to the neural offense decision

The steps in order.

From training examples to the neural offense decisionStep 1: Assemble labeled examples for offense detection1. Assemble labeled examples for offense detectionStep 2: Normalize the tweet text2. Normalize the tweet textStep 3: Look up word vectors3. Look up word vectorsStep 4: Extract patterns in parallel convolution branches4. Extract patterns in parallel convolution branchesStep 5: Combine branch features and score the labels5. Combine branch features and score the labelsStep 6: Check the dictionary for qualifying OFF predictions6. Check the dictionary for qualifying OFF predictionsStep 7: Return the offense label7. Return the offense label

Building the training material

The starting point is the labeled dataset from the organizers, with 13,240 training tweets. It supplies the examples of offense and the target distinctions around which the benchmark is organized. The authors use this material as the primary training resource and investigate whether adding more examples improves detection. The dataset paper associated with those organizers is Predicting the Type and Target of Offensive Posts in Social Media.

The team adds the Impermium collection from Kaggle and training data from the TRAC aggression benchmark. The paper describes the latter as Facebook posts. These additions differ in origin and in what their original labeling schemes were meant to distinguish. For Subtask A, the team explicitly maps TRAC’s OAG and CAG classes to OFF and NAG to NOT. This is a practical decision about how to use the extra labels: the binary offense classifier receives the aggression categories as evidence for its offensive class. The source of these categories is Benchmarking Aggression Identification in Social Media.

The mapping also changes which distinctions are retained from the original data. The training procedure puts the posts from both aggression categories on the same side of the offense decision. Once those examples have been pooled under OFF, the distinction between the source labels is no longer expressed in the answer the classifier is asked to learn. The paper identifies that mapping for TRAC and names Impermium as another addition. Its account offers less detail about the selection and labeling of individual Impermium examples.

The offensive vocabulary is a separate resource. The authors start from a list of words banned by Google together with an additional bad-word list, and mention gathering different forms of known offensive words. That produces the dictionary for string comparison. The difference between the two kinds of resources matters. A labeled post is an example of how a particular message was classified. A dictionary entry supplies evidence that a particular string is worth checking when the initial decision qualifies for a second look.

Preparing the text

The authors use NLTK and spaCy for cleaning and normalization. They remove URLs and mark emojis and emoticons, a treatment that allows written substitutes for facial expression or tone to remain available in the prepared representation. They make letter case consistent and expand contractions. This brings forms that differ in typography or spelling closer together before looking up their words. The treatment of URLs reflects a different decision about what to keep: the classifier works from the text that remains after the links have been removed.

Other steps address special and accented characters, elongated words and excess whitespace. The treatment of elongated words aims to reduce repeated letters, which can make an ordinary vocabulary item appear in many written forms. Removing excess whitespace regularizes the boundaries in the prepared text. The authors also reduce inflected forms to a common dictionary form through lemmatization.

These choices determine what kinds of variation the classifiers can learn from. Normalizing case makes evidence from different capitalizations available together. Reducing a stretched word can make it easier to find the corresponding embedding or learn a shared association with a label. The original stretching or capitalization may also contribute to a reader’s perception of emphasis. The paper groups these operations into one preparation procedure. It does not give each decision a separate evaluation.

The treatment of stopwords depends on the subtask. For Subtask A, the authors remove these common words. They keep them for Subtasks B and C because they consider them useful when identifying targets. The practical motivation is that a small grammatical word may do little to flag a tweet as offensive while still helping show that a phrase is directed at someone. Keeping it gives the target classifier access to a different set of relationships among the surrounding words. The paper explains the reason for that choice without providing a comparison of target results with and without the words.

Preparation ends with inputs that the selected classifier can read. The neural systems need an ordered sequence for their word lookup and convolution operations. A position in that sequence identifies where a word occurs alongside its neighbors. The linear classifier instead uses a document vector indexed by vocabulary features. This distinction affects what the same cleaning operation accomplishes. Normalizing a form may merge evidence in a vocabulary feature or change which ordered local patterns recur in the neural input.

How an embedding and a convolution work together

An embedding supplies a list of numerical coordinates for a word. Looking up the words of a prepared tweet produces a sequence of these lists. The lookup already contains information learned before the offense task when it starts from a pretrained resource. Training for offense then uses labeled examples to learn which patterns in the resulting input are associated with the task’s classes. In the Word2Vec system, the authors specifically say that training also updates the lookup weights.

A convolution applies a filter at successive positions. A filter that spans neighboring words receives their vectors together and responds to a numerical pattern across them. Using several filter widths gives the classifier features for shorter and longer local combinations. A short span can register a compact expression. A wider span can take account of intervening words or part of the context around a clue. These windows concern the sequence presented to the network after preparation. For span length, the paper’s description can be understood through the idea of an n-gram.

The reason for combining spans follows from the offense problem. The useful evidence may be a phrase rather than a single item, and the phrase may be compact in some tweets and spread across a longer stretch in others. Each branch specializes in its own width and produces features for the later classifier. The paper describes the branches as a way to capture more information about word relationships. Their locality also defines what they directly inspect. A filter can only combine the input within its window at a given position.

The output of a branch can be summarized before features from different widths are brought together. Pooling, as described for the two-dimensional network, keeps the strongest response to a learned feature across positions. That response can be useful wherever it appears in the tweet. Pooling also compresses the location information. Once the largest response is retained, the resulting value does not on its own indicate where the evidence occurred. This exchange of positional detail for a compact representation is part of how the branch output is made usable by the final classifier.

The two-dimensional network with Word2Vec

The first neural approach starts with Google’s pretrained Word2Vec weights. Its embedding layer learns during training, so the word representations can change as the system is fitted to its classification examples. The paper configures the input with a sequence length of 43. That specifies the size of the input sequence expected by the network. The paper gives the length without explaining precisely how it handles every tweet that exceeds it or what convention it uses to fill unused positions in shorter inputs.

After the lookup, the input can be viewed as a numerical array with word positions and embedding coordinates. The authors apply two-dimensional convolutional layers in parallel, with kernel sizes 2, 3 and 4. They describe these branches in terms of the corresponding word spans. The sizes indicate the different amounts of neighboring word evidence the architecture is designed to extract. The paper’s layer description explains the progression from the embedding to the branch features, although it does not specify every dimension of the convolution operation.

The authors apply max pooling to each of these convolutional outputs. Each resulting feature vector has size 100. Concatenation places the branch vectors in successive portions of a single vector of size 300. It preserves the separate contributions of the branches as entries that the dense layers can use together. A dense layer is one whose units take input across the features of the preceding layer. Here the classifier can weigh responses to both short and wider patterns when it makes an offense decision.

The architecture description gives 2 output units, corresponding to the binary decision. A softmax converts the output scores into probabilities over the labels. The classifier uses ReLU in the other layers, a function that passes positive responses and sets negative ones to zero. It uses a learning rate of 0.001, which sets the scale of its training updates, and dropout of 0.5. Dropout withholds a share of activations during training to reduce dependence on particular units. The paper uses the two-dimensional approach in the other subtasks as well, while this output-layer description is framed around the binary configuration.

The resulting network has several ways to adapt to the supervision. The embeddings can shift. The filters can learn which patterns produce significant responses. The final layers can choose which of those responses matter for a class. A favorable result for the entire network therefore does not identify which of these mechanisms carried the improvement. The task tables compare finished systems, with an additional training-data comparison for this particular network.

The one-dimensional network with GloVe

The alternative neural approach looks up words in GloVe. The authors use Twitter embeddings containing 1 million word vectors of 200 dimension. Here the GloVe resource provides the values used to construct the embedding matrix. The description specifically discusses updating the Word2Vec embeddings. It leaves the status of updates to the GloVe embeddings less clear.

The convolution in this system runs in a single dimension along the sequence. As in the Word2Vec network, the authors use parallel branches with widths 2, 3 and 4. Each branch produces a vector of size 100, and concatenation gives a representation of size 300. The paper uses the term skip-grams when describing what is extracted. Its operational detail is the set of filters running at several widths. It does not specify a separate procedure for selecting words with gaps between them.

The network uses 100 filters and dropout of 0.2. The authors describe adding dense layers before the output so that there is more scope to combine the extracted features. ReLU is used in the intermediate layers, with softmax for the output. The authors say the architecture has fewer trainable parameters and takes less time to train than the two-dimensional approach. They give neither a parameter count nor a timing measurement, so the comparison remains qualitative.

Both networks thus use parallel widths followed by feature combination. They differ in convolution dimensionality, in how the embedding matrix is initialized, and in settings such as dropout. The one-dimensional network’s embeddings come from Twitter, while the other network starts from Google’s Word2Vec resource. These are comparisons of coherent alternative systems. Changing the convolution and embedding together means the experiment can compare their predictive results while leaving the contribution of each choice unresolved.

Counting evidence for the linear classifier

The support vector machine uses a bag of words. In this representation, the features tell the classifier which words occur or how strongly they are represented, independently of their order in the tweet. A linear support vector machine learns a separating decision from a weighted combination of such features. Words can contribute in different directions, and the resulting decision reflects the combined evidence of the words represented in the input. The reported vocabulary vector size is 98,807.

The paper names its feature weighting as TF-IDF. The term frequency part concerns how much a word occurs in a document. The inverse document frequency part concerns how widely it occurs across the collection. The idea is to give a word more discriminating value when it occurs in the current document and is less widespread in the collection. The authors also refer to binary vectors in their description. They do not spell out how binary occurrence and TF-IDF weighting were combined, leaving the exact numerical feature configuration uncertain.

This representation can benefit from cues that are individually useful even when a particular sequence of them is unusual. It can also give the same representation to tweets whose words appear in a different order. That matters when a relationship among words changes who is being addressed or when the context changes the role of a potentially offensive word. The paper treats the linear approach as a serious alternative and evaluates it directly against neural systems on the target subtasks.

The comparison also includes logistic regression on word counts and recurrent networks with long short-term memory, abbreviated LSTM. Logistic regression combines input features to score the labels. The authors use count vectorization for that comparison, so its evidence is again organized by word rather than by ordered phrase. The recurrent alternatives process the sequence using a state intended to carry information over successive positions. They are evaluated with both GloVe and Word2Vec. The paper describes these alternatives more briefly than the convolutional and support vector systems. Its discussion connects the logistic approach to Automated Hate Speech Detection and the Problem of Offensive Language.

A dictionary check for selected offensive predictions

The authors observe that many of their classifiers recognize non-offensive tweets more successfully than offensive ones. They add a string-comparison step to the neural offense detector to address errors in this decision. In the detailed description, the route is for tweets predicted OFF with a probability below 0.70. A tweet meeting that condition is sent to the dictionary check. The threshold concerns the probability given to the predicted offensive class. The procedural description does not extend the rule to every tweet with a weak prediction in either direction.

The authors construct a dictionary of 1384 words from the banned and offensive vocabulary resources. The second stage checks the routed text for occurrences of those words. Its evidence is direct string comparison, whereas the neural stage works from learned patterns of word vectors. Routing makes the word list a conditional part of the classifier. The first stage determines which examples are eligible for whatever correction the word list can supply.

Two details have different consequences for understanding the method. The routing rule is stated as a threshold on already offensive predictions. Under that description, a tweet initially classified as NOT does not get sent to this stage. The final rule for combining a word match with the original prediction is less explicit. Knowing that the system checks for an occurrence does not specify all label changes when a match is found or when the dictionary contains nothing applicable. The paper reports the effect on aggregate performance without giving counts of these cases.

The authors restrict this extra decision to Subtask A. It asks whether there is an offense, while Subtask B asks whether a recognized offense is targeted and Subtask C asks what kind of target it has. Finding a listed abusive word can contribute to an offense decision. The mere occurrence of that word supplies little direct information about the object of the offense. Separate classifiers make the target decisions.

The paper describes these operations in prose and gives architecture settings and a threshold. It presents no equations for its classifier, its routing rule or its evaluation metrics. The distinction between the method and what can be reconstructed from its description is most apparent in the dictionary stage. The reader can identify the resource, the selection rule and the intended contribution, while the exact response to each search outcome is incompletely specified.

Experiments and results

What was measured

The paper has a comparison among candidate classifiers and separate result tables for the shared-task subtasks. The authors report that they compared the candidates by training on 75% of the instances and testing on the remaining 25%. The shared-task tables then report the systems and constant-label baselines for each subtask. The paper does not provide a complete account of how every experiment’s training examples were selected. In particular, the named holdout and the shared-task scores are presented in different parts of the report and should be read with their own settings.

Accuracy is the fraction of evaluated tweets assigned the reference label. Macro F1 gives each label equal influence over the aggregate. First, the F1 for a given label balances precision, which asks how many predictions of that label were correct, and recall, which asks how many examples of that label were recovered. The class-level F1 scores are then averaged. A system can have strong accuracy by doing well on the most frequent label, while its macro F1 reflects errors on the less frequent labels more visibly.

The constant-label baselines make that distinction concrete. A baseline that always gives the same answer gets every instance of that label right and every instance of the other labels wrong. Its accuracy shows how frequent its chosen label is in the evaluated examples. Its macro F1 also reflects that it recovers none of the other categories. The paper gives these baselines alongside the learned systems in every task table, so readers can see what a favorable class distribution can achieve in benchmark evaluation.

The comparison on the authors’ split

The comparison of candidate classifiers reports its measures as macro F1. The GloVe one-dimensional network leads with 0.751, followed by the Word2Vec two-dimensional network at 0.740. The linear support vector machine with TF-IDF scores 0.722. The LSTM recurrent approach with GloVe is close to it at 0.719. Logistic regression with a bag of words scores 0.703, and the recurrent approach initialized with Word2Vec scores 0.702.

The ranking gives a reason to investigate convolution for offense detection, since both convolutional alternatives are at the top of this comparison. It also shows that the simpler linear support vector approach is competitive among the systems evaluated. The ordering of the recurrent variants is evidence about the versions the authors trained. The paper does not establish whether the embedding choice, training configuration or another implementation detail accounts for their different scores.

The paper reports confusion matrices for the linear support vector machine and logistic regression in the same experimental discussion. These record outcomes separately for tweets labeled OFF and NOT. The linear support vector machine correctly predicts OFF for 689 offensive examples and gives NOT to 618 offensive examples. For non-offensive examples, it correctly predicts NOT in 1880 cases and gives OFF in 75 cases. The large number of correct non-offensive decisions coexists with frequent failures to recover offensive examples.

Logistic regression correctly assigns OFF to 831 offensive examples and misses 476 offensive examples. Among the non-offensive examples, it gives the correct NOT label to 1705 and incorrectly assigns OFF to 250. Relative to the support vector machine, it recovers more offensive examples and gives an offensive label to more non-offensive examples. Across the candidate comparison, its lower macro F1 shows that the additional recoveries came with enough loss on other decisions to weaken its aggregate score.

The authors associate some of the logistic regression mistakes with context. A non-offensive tweet can include a word that the count-based classifier has learned to associate with offense. Since order and the relationship among the surrounding words are absent from the feature representation, the classifier has limited means of recognizing the use that makes that occurrence benign. This is the authors’ interpretation of the error pattern. The confusion counts show which decisions are mistaken, while the actual messages causing those errors are not documented alongside the matrix.

Subtask A, detecting an offense

The task table for A presents two training conditions for the two-dimensional network. One uses the original 13,240 examples and reaches a macro F1 of 0.7351. The expanded condition is labeled 28,000 and reaches 0.7382. The one-dimensional network reaches 0.7281. Both always-predict baselines are lower on macro F1. The stronger baseline labels every example as non-offensive, consistent with NOT being the more frequent answer in this evaluation.

OffensEval Subtask A offense detection by macro F1

The expanded-data Word2Vec network leads the offense-detection comparison.

OffensEval Subtask A offense detection by macro F1All NOT baseline: 0.4189All NOT baseline0.4189All OFF baseline: 0.2182All OFF baseline0.2182Word2Vec 2D-CNN with expanded data (this paper): 0.7382Word2Vec 2D-CNN with expanded data (thispaper)0.7382Word2Vec 2D-CNN with organizer data: 0.7351Word2Vec 2D-CNN with organizer data0.7351GloVe 1D-CNN: 0.7281GloVe 1D-CNN0.7281
The numbers
System or settingmacro F1
All NOT baseline0.4189
All OFF baseline0.2182
Word2Vec 2D-CNN with expanded data (this paper)0.7382
Word2Vec 2D-CNN with organizer data0.7351
GloVe 1D-CNN0.7281

Accuracy gives the highest position to the one-dimensional network, at 0.8174. The expanded two-dimensional network has accuracy of 0.8058 and the organizer-data version has accuracy of 0.8035. The always-NOT baseline has accuracy of 0.7209, and the always-OFF baseline has accuracy of 0.2790. The learned systems therefore outperform either constant decision on both reported metrics, while the ranking among the learned systems depends on which metric is used.

The explanation in the paper is that stronger recognition of the more common non-offensive label can raise accuracy without producing the best class balance. The authors also describe the expanded two-dimensional network as better on F1 for both offensive and non-offensive tweets than the alternatives in the task table. The table gives macro F1 and accuracy. Separate class F1 values are unavailable there, so the published aggregate comparison can establish the macro ranking while the class-level account remains an author observation.

There is a change in ordering between this task table and the candidate comparison. The one-dimensional network had the strongest macro F1 in the authors’ candidate split. The expanded two-dimensional network has the strongest macro F1 in the Subtask A results. The comparison establishes that the apparent winner depends on the evaluation being read. The paper presents enough information to identify the settings and scores at this level, but it does not isolate what accounts for the reversal.

The dictionary result is described separately. The authors report a 5% increase in macro F1 after introducing the second classification stage. There is no paired row for the same neural system before and after the dictionary, and the task table does not give a separate score for the examples routed to it. The stated improvement therefore records the direction and size of the gain as the authors describe it. The reported figures do not fix the starting score or connect the gain to a specific row in the table.

Subtask B, determining whether an offense is targeted

The support vector machine with TF-IDF attains the highest macro F1 for Subtask B, at 0.6602. The two-dimensional network reaches 0.5588. Both scores are above the baselines that always choose the targeted label or always choose the untargeted label. Relative to the constant predictions, the learned systems have scope to recognize the minority class as well as the more common one. The greater macro F1 for the support vector machine shows a stronger balance over the labels among the systems reported.

OffensEval Subtask B targeted versus untargeted offenses by macro F1

The TF-IDF support vector machine leads on the distinction between targeted and untargeted offenses.

OffensEval Subtask B targeted versus untargeted offenses by macro F1All TIN baseline: 0.4702All TIN baseline0.4702All UNT baseline: 0.1011All UNT baseline0.1011SVM with TF-IDF (this paper): 0.6602SVM with TF-IDF (this paper)0.66022D-CNN: 0.55882D-CNN0.5588
The numbers
System or settingmacro F1
All TIN baseline0.4702
All UNT baseline0.1011
SVM with TF-IDF (this paper)0.6602
2D-CNN0.5588

The accuracy ordering highlights how often the targeted label occurs. Giving that answer for every evaluated tweet yields accuracy of 0.8875. The support vector machine reaches 0.8208, and the two-dimensional network reaches 0.775. Always giving the untargeted answer yields accuracy of 0.1125. On accuracy alone, a reader would select the constant targeted decision from this table. Its macro F1 exposes what that choice gives up by ignoring the other class.

The shift from offense detection to identifying whether there is a target changes what counts as useful evidence. General evidence that a tweet contains abuse is compatible with either answer in B. The classifier has to find a feature associated with a directed insult or with an offense lacking a target. The linear classifier’s stronger result suggests that the words it could use were effective cues in this evaluation. There is no branch-level or feature-level analysis showing which specific words or expressions produced that advantage.

The scope of this result is the distinction evaluated in Subtask B. A full system acting on incoming tweets would first have to decide which tweets enter that stage. Mistakes in identifying offensive tweets could alter what the target classifier receives. The paper presents the subtasks separately and does not report a score that tracks such errors across the hierarchy.

Subtask C, classifying the kind of target

The one-dimensional GloVe network has the highest macro F1 for Subtask C, at 0.5633. The support vector machine is next at 0.5095, and the two-dimensional network reaches 0.4846. Every learned classifier exceeds every constant-label baseline on macro F1. The strongest constant baseline is the one that always selects IND. That result and its accuracy show that the individual category is the most frequent of the evaluated target types.

OffensEval Subtask C target type by macro F1

The GloVe one-dimensional network leads the target-type comparison.

OffensEval Subtask C target type by macro F1All GRP baseline: 0.1787All GRP baseline0.1787All IND baseline: 0.2130All IND baseline0.2130All OTH baseline: 0.0941All OTH baseline0.0941SVM with TF-IDF: 0.5095SVM with TF-IDF0.5095GloVe 1D-CNN (this paper): 0.5633GloVe 1D-CNN (this paper)0.5633Word2Vec 2D-CNN: 0.4846Word2Vec 2D-CNN0.4846
The numbers
System or settingmacro F1
All GRP baseline0.1787
All IND baseline0.2130
All OTH baseline0.0941
SVM with TF-IDF0.5095
GloVe 1D-CNN (this paper)0.5633
Word2Vec 2D-CNN0.4846

The linear support vector machine leads on accuracy at 0.6808. The one-dimensional network has accuracy of 0.6714, and the two-dimensional network reaches 0.6479. Among the constant baselines, always choosing IND gives accuracy of 0.4695, always choosing GRP gives 0.3662, and always choosing OTH gives 0.1643. As in Subtask A, selecting the system by accuracy gives a different answer from selecting by macro F1. The scores say which system leads under each definition of success. They do not show which particular target categories account for that tradeoff.

The authors describe the target-type result as weaker and suggest that the smaller dataset contributed. A tweet used to teach the target distinction has to supply the kind of information the task labels. Abundant examples of non-offensive tweets help define the broad decision in A but do not provide positive examples of an offensive target type. The hypothesis that more labeled examples would help is therefore plausible within the task structure. The paper evaluates the data expansion in Subtask A, leaving the proposed benefit for C untested.

The authors present confusion matrices for the selected best systems in each subtask: the Word2Vec two-dimensional network for A, the support vector classifier for B and the GloVe one-dimensional network for C. These choices correspond to the macro F1 leaders. Score rankings establish which systems had stronger aggregate performance. The role of a confusion matrix is to make the direction of the mistakes visible, such as whether a true class is frequently assigned a particular other label.

What the ablations show

More data for the same named network

The closest comparison to a controlled ablation holds the named Word2Vec architecture fixed and changes the training data for Subtask A. The version trained on the organizers’ data has macro F1 of 0.7351 and accuracy of 0.8035. The expanded version reaches macro F1 of 0.7382 and accuracy of 0.8058. Both measures favor the version with additional data. The experiment supports the paper’s claim that expanding the training material helped this classifier on offense detection under the reported conditions.

The intervention changes the quantity and the composition of the training material together. It adds examples from sources with different styles and category definitions, including the mapped aggression labels. The result leaves several explanations open. The additional examples might have broadened the vocabulary the network saw, shown it more contexts for expressions it already recognized, or changed which labels it was inclined to assign. The authors give no separate scores for adding each external collection. The comparison measures the effect of the bundle.

The experiment also leaves open how much variation there is across training runs. There are no repeated-run results or uncertainty estimates alongside the scores. A reader can report that the expanded condition was ahead in the table. The available measurement does not indicate how reliably that ordering would recur when the training split or the run changes.

What the dictionary comparison can establish

The reported 5% increase in macro F1 is a comparison involving a specific stage of the offense detector. Its interpretation depends on the rule that sends qualifying OFF predictions to the dictionary. The small subset eligible for the check makes the first stage part of the conditions under which any gain occurs. A change to the first classifier could change which predictions fall below 0.70 and therefore change which cases reach the dictionary.

The paper provides no paired scores for the comparison, no threshold sweep and no count of how many predictions entered the second stage. It also does not break the change into precision and recall for OFF and NOT. Consequently, the reported gain shows an aggregate benefit in the authors’ account. It cannot tell the reader whether that benefit came mainly from reversing questionable offensive predictions, improving another part of the decision rule, or some combination of changes. An observed increase in macro F1 is compatible with several patterns of errors changing underneath it.

The authors’ description of the input to the dictionary is particularly important for reading the result. The route starts from an OFF prediction in the detailed method. A claim about the dictionary rescuing initial NOT predictions would need a route for those examples as well. The method that the paper specifies supports a narrower account of which decisions the dictionary could revisit.

Comparisons among representations and decision rules

The neural systems provide a comparison of complete approaches. Both combine features across several local spans, but the change from the Word2Vec system to the GloVe system also changes the convolution geometry, the dropout and the embedding source. A win for the GloVe system in Subtask C therefore shows that the combination was effective for that evaluation. It cannot assign the gain specifically to the use of one-dimensional filters or to embeddings learned from Twitter.

The support vector machine provides a different comparison because it uses a word-based representation with a linear rule. Its advantage on macro F1 in Subtask B shows that this approach works well for the task as evaluated. A comparison of phrases and individual words under the same decision rule would answer a more specific question about how much surrounding context helps. That comparison does not appear in the paper. The results compare the behavior of systems an engineer could choose among, with fewer grounds for identifying the cause of each difference.

The confusion matrices for logistic regression and the support vector machine supply a complementary analysis. They show what is lost when a classifier makes more offensive predictions and recovers more offensive tweets. The support vector machine records fewer correct OFF predictions but also fewer incorrect OFF predictions on non-offensive messages. The logistic classifier moves those counts in the other direction. Together with the table of macro F1, the matrices make the tradeoff visible without requiring an explanation for every error.

The paper thus offers data and system comparisons, a reported test of adding the dictionary stage, and error counts for selected classifiers. It does not present a systematic removal study for the individual convolution branches or preprocessing steps. Its suggestions about benefits from normalization, different spans, and preserving common words for target identification describe the rationale for those choices. Their separate effects remain unmeasured.

Limitations

Limits the authors identify

The authors emphasize that a tweet’s tone can depend on how a reader interprets it. Sarcasm, irony and humor can shape the meaning of familiar words without supplying an obvious lexical signal. A reply can be hostile because it refers to an earlier remark, or appear hostile when separated from the exchange that makes its tone clear. The paper treats this implicit meaning as a reason for reduced precision. Normalizing the surface form helps the system read the available text, but the missing context may be exactly what the reader needs to decide how that text is being used.

The authors also point to challenges that arise before tone is judged. Slang can be unfamiliar. Symbols and emojis can carry part of the message. A reference may be indirect, and important information may be missing altogether. The preparation pipeline addresses some of this variety by normalizing words and marking some non-word signals. It leaves a representational challenge when the relationship among the remaining cues is essential to interpretation.

The conclusion singles out target type as a weak point and attributes part of it to limited data. The authors propose expanding that dataset. They also express interest in deeper architectures that could search in parallel for indications of tone. These proposals follow from the errors they identify. The study does not report a target-type data expansion or evaluate the proposed deeper architecture, so their effects remain open.

Limits visible in the experimental setup

Shared-task labels provide a consistent criterion for scoring predictions. They also set the boundary of the interpretation. An agreement with an OFF label is evidence of performance on the benchmark’s decision. It cannot on its own establish that the classifier recovered the writer’s purpose or that readers with different knowledge of the conversation would make the same judgment. The paper acknowledges subjectivity but supplies no separate uncertainty measure for the examples on which people might disagree.

The outside data have an additional boundary. The binary mapping from TRAC imports judgments about aggression into judgments about offense. A helpful score on the expanded condition demonstrates that the particular addition worked for the reported evaluation. It does not establish that the notions are interchangeable across settings or that each source contributed equally. The paper does not separate out source-specific errors or test how the expanded detector performs on a new collection from a different setting.

Several choices affect reproducibility. The reported sequence length does not come with a complete account of truncation or padding. The feature description for the support vector machine leaves its use of binary occurrence alongside TF-IDF unclear. The dictionary procedure supplies a threshold and indicates a search for occurrences, but leaves some outcomes of that search underspecified. Details like these can matter when short texts contain rare spellings or when different matching conventions would change whether a listed word is found.

The score tables give a useful comparison of systems within each subtask, with no uncertainty intervals or variation across runs. This is especially relevant to the data comparison for Subtask A, where the scores are close. It also matters when comparing systems with different settings. The paper demonstrates which evaluated configurations attained which results. It gives limited evidence about whether the same ranking would hold with another training sample, another implementation of the preparation steps, or different hyper-parameters.

The uneven label frequencies make the choice of metric consequential. Macro F1 keeps performance on less frequent categories visible, but remains an average. It can conceal cases where a system sharply improves one class while declining on another. Accuracy tracks correctness across all decisions, but lets the more common labels influence the score more heavily. Reporting both gives a better view of the experiment. A complete account of the differences would also need class-level precision and recall in enough detail to explain each aggregate ranking.

The hierarchical task raises a further question about errors across stages. Per-subtask results show success on the classification decision defined for each stage. They do not show how many correct target labels a system would ultimately return from an unfiltered collection of incoming tweets. If an offensive tweet is rejected at the first decision, a later classifier cannot recover its target in that pipeline. If a false positive enters target classification, it may acquire a target label in spite of having had no offense to classify. The paper does not measure these effects in combination.

Finally, the paper describes the one-dimensional network as quicker to train and smaller in trainable parameters. Architecture complexity matters when choosing a classifier, but the report does not quantify either claim. The predictive scores can be compared as given. The evidence supports only a qualitative account of the computational comparison and leaves its magnitude and training conditions unspecified.

What came after

The benchmark’s overview is a companion to the TechSSN paper. It is listed as a citing work, and TechSSN also names it when describing the shared task. The connection is the common problem definition. The overview describes the task in which a prediction can distinguish offense, determine whether it has a target and then categorize the target. TechSSN supplies an example of how that framework was used to compare neural, linear and dictionary-based decisions. The available account does not establish that the overview adopted the team’s dictionary rule or architectures. The relevant relationship is between the participant experiment and the report on the shared evaluation, OffensEval.

A later TechSSN paper turns to intended sarcasm detection at SemEval-2022 Task 6. Sarcasm is a particular connection to the offense study because the earlier paper explicitly identifies it as a source of difficulty when a classifier must interpret a tweet’s tone. The later title identifies Transformer and attention as the approach to a task that makes intended sarcasm the prediction target in its own right. A system can therefore be assessed on that aspect of meaning directly, whereas in the earlier work sarcasm appears as a possible reason for an incorrect offense label. The citation and title establish the connection in subject matter. They leave open whether the later work reused the offense data, preprocessing or dictionary stage, and whether direct sarcasm detection would improve any of the earlier offense subtasks. TechSSN’s intended sarcasm detection study

Cite

Cite as Logesh Balasubramanian, Harshini Sathish Kumar, Geetika Bandlamudi, Dyaneswaran Sivasankaran, Rajalakshmi Sivanaiah, Angel Deborah Suseelan, Sakaya Milton Rajendram and Mirnalinee Thanka Nadar Thanagathai. 2019. TECHSSN at SemEval-2019 Task 6: Identifying and Categorizing Offensive Language in Tweets using Deep Neural Networks. Proceedings of the 13th International Workshop on Semantic Evaluation.

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

@inproceedings{balasubramanian2019techssn,
  title = {{TECHSSN at SemEval-2019 Task 6: Identifying and Categorizing Offensive Language in Tweets using Deep Neural Networks}},
  author = {Logesh Balasubramanian, Harshini Sathish Kumar, Geetika Bandlamudi, Dyaneswaran Sivasankaran, Rajalakshmi Sivanaiah, Angel Deborah Suseelan, Sakaya Milton Rajendram and Mirnalinee Thanka Nadar Thanagathai},
  booktitle = {Proceedings of the 13th International Workshop on Semantic Evaluation},
  year = {2019},
  doi = {10.18653/v1/s19-2132},
  url = {https://doi.org/10.18653/v1/s19-2132}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/balasubramanian-2019-techssn-semeval-2019-task-6/