Elamur Research

An Ensemble Approach for Aggression Identification in English and Hindi Text

Paper · 2018 · Arjun Roy, Prashant Kapil, Kingshuk Basak et al.

Summary

An aggressive remark can announce its hostility in an insult or leave it to the reader to infer from sarcasm or an indirect comparison. Roy and colleagues study whether an automated system can distinguish those forms in social media posts and comments written in English and Hindi. The task gives each item a label for overt aggression, covert aggression, or absence of aggression. A classifier must therefore decide both whether an item is aggressive and how the aggression is expressed. The same word can appear in an open attack, an insinuation, or a comment about someone else’s conduct.

The authors combine a support vector machine with a convolutional neural network. The support vector machine learns from individual words and from weights that reflect how common or distinctive those words are. The network reads neighboring words through numerical representations and looks for useful local patterns. The two branches feed a learned classifier that makes the final decision. Both language systems use the same overall design. The Hindi pipeline also processes mixed-language input, including Hindi written in Roman script and English words embedded in Hindi text. The network represents words using pretrained word embeddings.

The ensemble achieved the highest development score among the configurations the authors tried, with weighted F1 of 0.6273 for English and 0.5987 for Hindi. On the held-out Facebook test sets, it obtained F1 of 0.5151 for English and 0.5599 for Hindi. On the test sets from other social media, it obtained F1 of 0.5099 for English and 0.3790 for Hindi. The lower Hindi score on the other-social-media test set makes the source of the test examples an important part of the result.

The authors also track which labels the system confuses. Overt aggression frequently drew a covert-aggression prediction. In several test sets, covert aggression was also mistaken for non-aggressive writing. The authors attribute some of these errors to vocabulary shared by the aggressive categories and to apparently favorable language used sarcastically. The development experiments support combining the two classifiers in this setup. The test results establish how the resulting ensemble scored on each source, while the errors show how much the distinction still depends on interpreting the way an attack is expressed.

Deep dive: An Ensemble Approach for Aggression Identification in English and Hindi Text

Roy and colleagues combine a convolutional network and a support vector machine to identify overt and covert aggression in English and Hindi posts. · about 34 minutes to read

The problem and its context

Aggression as a decision about a piece of text

The paper begins from a practical feature of online communication. A post or comment can reach many people quickly, and the same channels that allow people to share opinions also allow them to target individuals, groups, and organizations. Some attacks name their target and plainly express hostility. Others work through an allusion, a comparison, or an apparently favorable remark whose force depends on what the reader understands about the situation. An automatic system that responds only to conspicuously hostile words would have an incomplete view of what the task calls aggression.

The authors draw on a psychological definition that puts intention to harm at the center of aggression. They also refer to a distinction among physical, verbal, and relational aggression. The shared task gives that broad subject a specific form. The input is a textual post or comment, and the output is a category supplied by the task’s labeling scheme. The classifier has to learn how language in these items corresponds to labels. The paper’s psychological framing helps explain the labels, but the experiment measures agreement with labels attached to text. The relevant practice is linguistic annotation.

This is a problem in text classification because the decision is about an item as a whole. Finding a word with an established hostile use can provide evidence, but the classifier must turn that evidence into a single judgment about the post or comment. Calling a group a derogatory name, expressing approval of someone else’s attack, and describing a hostile event can bring some of the same vocabulary into the input. Whether a word is part of an attack depends on the role it plays in the utterance. This distinction helps explain why the authors are interested in both the words that occur and the combinations in which they occur.

What the labels ask the reader to distinguish

The paper abbreviates overtly aggressive as OAG, covertly aggressive as CAG, and non-aggressive as NAG. In its account of OAG, the clearest cases are explicit verbal attacks. They can use abuse, name-calling, or a comparison that openly degrades a person or group. The authors also include some forms of endorsing an attack. One English item in their examples voices a wish to get rid of Indians. The group is named and the hostile stance is expressed directly. Other overt examples include indirect references, so a rule that merely checks whether a target is named would miss part of the category.

For CAG, the paper emphasizes hostility conveyed indirectly, including through metaphor or sarcastic evaluation. One English illustration calls a reservation policy another form of terrorism. The task labels the comment as covert aggression, illustrating why the presence of a forceful word cannot by itself establish that an attack belongs in the overt category. Another example addresses a politician through a play on pain and gain. Reading it as a jab requires recognizing what the expression is doing in context. The authors also allow covert attacks to contain direct references. Their distinction concerns how hostility is conveyed across the whole item, with direct naming serving as only one possible clue.

The examples labeled NAG include an apology, a question about completion of road work, and a statement about wanting to change motorcycles. They illustrate inputs that lack an apparent aggressive purpose. The category is wider than friendly language. An item can raise a problem, introduce a person or organization, or ask a pointed question and still be treated as non-aggressive. Similarly, apparent approval is open to more than one reading. It can express support in a non-aggressive item or help carry the attack in a covert one. The task asks the system to tell these uses apart from the text it receives.

The problem is especially demanding when the writing mixes languages. The authors describe Hindi items that include Devanagari text, Hindi rendered in Roman script, and English words. A variation in script can produce several written forms for material that a reader recognizes as related. A single comment can also move between languages. This complicates the use of word counts and pretrained word representations, since both depend on what form reaches the classifier. It is a practical concern for the English and Hindi setting the authors chose, with specific normalization added for Hindi. English · Multilingual NLP

The paper places aggression identification alongside research on abusive language, hate speech, and personal attacks. These neighboring tasks face the same basic difficulty of drawing a boundary using text, although their label inventories ask different questions. The authors describe relatively little prior work on automatic aggression detection and report that they found none on Hindi in the closely related areas they surveyed. They use the growth of Indian-language social media, especially Hindi material, to motivate making Hindi part of the experiment alongside English.

Some earlier systems that the paper discusses gave classifiers access to information about the grammatical role of words. Potapova and Gordeev studied verbal aggression and explored approaches involving random forests, convolutional networks, and part-of-speech information. Chen and colleagues used lexical and syntactic features to identify offensive material and potentially offensive users. These studies illustrate how a system can supplement the identity of a word with information about the form or structure of the text. The features Roy and colleagues ultimately describe for their support vector machine concentrate on vocabulary. They obtain another kind of structural information, the local arrangement of words, through the convolutional branch. Part-of-speech tagging

Other work varied the unit that the classifier reads. The paper describes Chu and colleagues comparing character and word representations in a convolutional classifier for deciding whether a comment is a personal attack. It also discusses Nobata and colleagues, who organized their features into 4 groups covering sequences, linguistic information, syntax, and information about how words are distributed in context. Their categories distinguished clean comments from abusive ones and made further distinctions within abuse. The character-based approaches in these studies give the classifier access to recurring pieces of words, a different choice from relying on complete words. Roy and colleagues discuss that line of work while developing a system whose reported feature comparison concerns individual words and pairs of words. N-gram · Distributional semantics

The paper also cites research that treats context and the definition of the target category as central. Gao and Huang incorporated contextual information into a logistic regression classifier and a neural classifier for hate speech, and they investigated combining the two. Davidson and colleagues examined the difficulty of distinguishing hate speech from other offensive language. As Roy and colleagues describe it, that study questioned whether vocabulary-based methods could make the distinction reliably and drew attention to social bias in interpreting the results. The parallel for aggression identification is that knowing a word is associated with hostility leaves open what kind of utterance it belongs to. Automated Hate Speech Detection and the Problem of Offensive Language · Bias, fairness & safety

The combination of classifiers also has a precedent in the work the authors cite on named entity recognition. That earlier work illustrates the general practice of bringing several classifiers to bear on a common decision. In the aggression study, the motivation for combining classifiers comes from the different representations in the two branches. One preserves a direct view of vocabulary usage, and the other finds local patterns in sequences of word vectors. Both branches have access to the same cleaned message, but they transform it into different evidence for the final label. Named entity recognition · Named Entity Recognition through Classifier Combination

The method, step by step

From a message to a shared input

The authors build a supervised system for each language. Supervised learning means that the training examples come with the target judgments that the classifiers are supposed to learn. Here those judgments are OAG, CAG, and NAG. In both languages, the input passes through text cleaning before branching into separate representations. The convolutional neural network, or CNN, takes a sequence of word vectors. The support vector machine, or SVM, takes features derived from word usage. Their outputs feed a learned combination that assigns the message one of the shared-task labels. Machine learning

How the ensemble assigns an aggression label

The steps in order.

How the ensemble assigns an aggression labelStep 1: Remove URLs and clean social media text1. Remove URLs and clean social media textStep 2: Normalize mixed-language input in the Hindi pipeline2. Normalize mixed-language input in the Hindi pipelineStep 3: Build word vectors and vocabulary features3. Build word vectors and vocabulary featuresStep 4: Convolve neighboring word vectors and pool activations4. Convolve neighboring word vectors and pool activationsStep 5: Classify vocabulary features with the support vector machine5. Classify vocabulary features with the support vector machineStep 6: Transform and concatenate the branch outputs6. Transform and concatenate the branch outputsStep 7: Predict overt, covert, or non-aggressive text7. Predict overt, covert, or non-aggressive text

The preprocessing begins by removing URLs. For hashtags, the authors strip the hash marker while keeping the text that follows it. That choice preserves words that could identify a subject or carry part of the writer’s attitude. A hashtag about journalism in the paper’s examples survives as ordinary lexical material after cleaning, and a hashtag attached to a word in a Hindi sentence similarly leaves the underlying word available. Some cleaned illustrations show words separated inside a compound hashtag as well. The paper gives the before-and-after examples without specifying a general segmentation algorithm for such compounds.

The authors report removing punctuation and material they describe as apostrophe words in both languages. Their account starts from the clutter and variation of online writing, including emoticons, spelling errors, and abbreviations. The reported operations make the resulting text more uniform for feature extraction. The paper identifies the treatment of URLs and the hash marker clearly enough to explain the intention. Its prose gives less detail on the exact token boundaries or on a separate rule for every type of irregular social media text it mentions. A token is the unit that the next steps treat as an individual word or other segment. Tokenization

Hindi goes through an additional normalization step. The authors use the Indic-Trans API to convert Roman-script Hindi and material they identify as English words into Hindi forms. The stated purpose is to handle the mixture of scripts and languages in the data. This matters at the level of representation. A classifier that receives divergent surface forms has to associate each separately with the available vocabulary unless preprocessing brings them together. The paper names the API and the kinds of words it handles, without spelling out how it chooses a conversion for each ambiguous token.

The distinction between this operation and the use of vectors is useful. Normalization changes the text the branches receive. Word embeddings then assign numerical representations to words in the sequence processed by the CNN. A word that has been normalized has a new written form to be looked up. The embedding is the numerical representation associated with that form. In the SVM branch, the written form instead determines which vocabulary features can be activated. The Hindi normalization can therefore affect both branches even though their subsequent operations differ.

Making a sequence of word vectors

A convolutional network needs numerical input. The paper represents each word as a vector, an ordered collection of values. The vectors are pretrained, meaning that their values come from an earlier training process outside the shared-task aggression labels. The convolutional layers can use the resulting numerical representations to find patterns across words. This setup gives the network a way to work with relationships among lexical representations from the beginning of task training. The paper describes that role in terms of capturing aspects of a word’s meaning.

For Hindi, the authors use pretrained Wikipedia vectors associated with the work of Bojanowski and colleagues. They give the dimensionality as 300 per word, so each of these word representations has 300 coordinates. For English, they use pretrained GloVe vectors. The paper identifies the English resource by name and citation. It does not give the English dimensionality in the same explicit way as it gives the Hindi one. The distinction matters for the description of the convolution, because its window spans the width of whichever word vector the network is using. Enriching Word Vectors with Subword Information · GloVe · GloVe: Global Vectors for Word Representation

The authors describe sentence lengths after preprocessing using the training and development data. They give an average of 20 words for English and 21 words for Hindi. They report a maximum length of 50 words for each language in that discussion and use a fixed input limit of 50 words. When a sequence is shorter than the limit, they pad it with zeros. When it is longer, they discard the excess from the end. Padding lets inputs of different lengths be represented in a common shape. Truncation preserves the beginning of an overlength input and leaves any material beyond the cap outside the network’s view.

The resulting numerical input can be understood as rows of word values in textual order. A pair of neighboring rows corresponds to a pair of neighboring words. This order is precisely the information that the convolutional branch can use and that an individual-word feature does not retain. The fixed shape also makes it possible to feed pooled activations to the same downstream layers for each item. The paper gives this length procedure in its description of the embedding representation. It gives no separate account of how the SVM branch handles items beyond the neural input limit.

Describing an item through its vocabulary

A unigram is an individual token considered on its own. The authors choose the top 1000 unigrams in the corpus as a feature set for their SVM. Each selected unigram corresponds to a lexical cue that the classifier can associate with a label during training. Unigram features give a direct account of a word’s contribution as a member of the selected vocabulary. They leave the word’s immediate neighbors out of that particular feature. A cue can therefore help across a range of phrasings, while different uses of the same word can activate the same feature.

The authors add term frequency–inverse document frequency, or TF-IDF, as another representation of word usage. Its general purpose here is to make a word’s weight depend on both its frequency and how widely it occurs in the collection. A term that is common across the collection carries different information from a term that is concentrated in a smaller part of it. The paper describes term frequency in relation to class occurrence and inverse frequency in terms of commonness or rarity. It does not give an exact weighting equation or enough detail to identify the normalization or the way the unigram and weighted channels are encoded together. TF-IDF

The support vector machine learns to separate labeled examples in the space defined by these features. It receives numerical descriptions of word usage and learns which combinations of feature values help distinguish the task categories. The authors use an SVM trained with John Platt’s sequential minimal optimization algorithm. This is the procedure used to handle the quadratic optimization problem involved in fitting the classifier. The paper identifies Weka as part of the experimental environment. Its methodological description specifies the training algorithm and the input feature families, with fewer details about the SVM’s settings and the numerical form of its downstream output.

The development experiments also try an SVM with bigrams, which are adjacent word pairs, as features. A complete pair is a more specific cue than either word on its own. The final SVM branch uses the configuration with unigrams and TF-IDF. The bigram trial is important for understanding the design because it puts neighboring words into the vocabulary-based classifier in a different way from the CNN. A feature assigned to a particular pair and a learned filter acting on two word vectors are different representations of adjacency. The paper tests both.

Finding local patterns with convolution

A convolutional layer applies a learned filter repeatedly as it moves over the sequence. At each position, the filter receives a window of neighboring word vectors and produces an activation. A filter that responds to a useful local configuration can therefore activate wherever that configuration occurs in the message. The paper describes the general convolution window with this shape.

n × m

Here n is the number of consecutive word positions covered by the window, and m is the width of each word embedding. The × sign specifies the two dimensions of the window, with word positions along one dimension and vector coordinates along the other. Because the width is the embedding width, a window covers the complete vector for each word position it visits.

The authors specify the convolutional setting as a filter size of 64 and use a rectified linear unit, or ReLU, as the activation function. ReLU leaves positive responses available to the next layer and maps negative responses to zero. In the final CNN branch, the authors choose the following window shape.

2 × EmbeddingSize

The 2 is the number of neighboring word positions considered together. EmbeddingSize is the number of coordinates in each word vector, which depends on the embedding resource used by the branch. The × sign again describes the window’s dimensions. The filter can thus learn a response to a pair of adjacent positions using the coordinates of the words at both positions. This is the sense in which the paper calls the result a bigram feature.

That sense differs from a vocabulary of explicitly counted bigrams. The convolution reads vector values and produces activations learned from labeled data. The same filter can respond to different word pairs if their values produce similar responses. A feature tied to a particular observed pair makes the presence of that pair the central event. The distinction gives a concrete reason to keep the CNN’s wider-window experiment conceptually separate from the SVM’s bigram experiment, even though both put adjacent words together.

After convolution, max pooling retains the largest response within each pooling window. This preserves a strong activation while compressing nearby responses before the later layers. The specified pooling shape is as follows.

1 × 2

The 1 and 2 are the extents of the pooling window along its two axes, and × marks those dimensions. The paper describes taking a maximum over convoluted inputs within that window. It gives the window shape without a full specification of how pooling strides through the activation array. The operation summarizes the strength of local evidence before the network reduces the pooled array to a form suitable for the combination layers.

Combining the branches and learning the final decision

The CNN branch contributes its max-pooling output to the ensemble. The authors first flatten it, which means turning the pooled array into a list of values that a dense layer can read. That dense layer learns a transformation of the flattened representation and applies ReLU. The resulting values describe local textual patterns in a form the final classifier can combine with the SVM evidence. The connection is made at the level of an internal neural representation. This detail matters because the final decision has access to more information from the branch than a single winning label would convey.

The SVM output goes through its own dense layer with ReLU. The paper describes this as a transformation of the SVM output without specifying whether the values entering the layer are margins, probabilities, or some other encoding. A dense layer can learn which aspects of its numerical input to emphasize. The authors then concatenate the transformed CNN and SVM outputs, placing their values together in one representation. A following dense layer can use values from either branch in forming a combined prediction. The design therefore gives the final decision access to both kinds of evidence at once.

After this dense layer, the authors apply dropout with hyper-parameter 0.5. Dropout suppresses selected activations during training, changing which parts of the representation are available to the following layer on a training pass. The intention is to reduce reliance on a fixed combination of activations. At the output, a softmax activation converts scores for the competing labels into a distribution over the task’s categories. The category favored by this output is the ensemble’s prediction for the item.

The authors use Adam to optimize the neural training objective and categorical cross-entropy as the loss. The loss assesses the probability assigned to the annotated category, giving the training process a signal when the output assigns that category too little probability. The optimizer adjusts trainable parameters in response. This describes the neural part of the training alongside the separately named SVM optimization procedure. The paper provides the combination architecture and the two optimization choices, while leaving some particulars of the handoff from fitted SVM to neural training unspecified.

Development data are used to tune the system and compare feature and classifier choices. The authors use the same broad experimental sequence in English and Hindi, and submit a system for each language. The final pair of branches in both cases is the CNN with an adjacent-word window and the SVM with unigram and TF-IDF features. The language-specific preprocessing and pretrained embeddings mean that the common architecture is applied with different language resources. The reported test evaluation concerns the resulting language-specific systems.

Experiments and results

Training, development, and test data

The task supplies labeled examples for fitting and tuning the classifiers and separate sets for test evaluation. The English data description gives 12,000 training items from Facebook posts and comments. Its training counts are 2708 OAG, 4240 CAG, and 5052 NAG. The English development set has 3000 items, with 711 OAG, 1056 CAG, and 1233 NAG. The non-aggressive class has the largest count on both splits. This is worth keeping in view when reading a single overall score or assessing the behavior of a classifier that often chooses NAG.

The Hindi data include Roman and Devanagari writing. The narrative reports 15,000 annotated items as training data and lists 6072 OAG, 6115 CAG, and 2812 NAG for that description. The Hindi data table gives a different set of training counts under its Train heading. It lists 4856 OAG, 4869 CAG, and 2275 NAG. The paper does not reconcile the narrative description with the table. The Hindi development figures are clearer. The authors give 3000 development items, with 1216 OAG, 1246 CAG, and 538 NAG, and the class counts agree with the development column. NAG is the least represented class in that development set, a different distribution from English development.

Each language has a Facebook test set and a test set from other social media. The English Facebook set contains 1515 items, and the English other-social-media set contains 1257. The Hindi Facebook set contains 970 items, and the Hindi other-social-media set contains 1194. The division lets the authors inspect performance on Facebook and on material attributed to a different source category. Keeping the results separate is essential because an aggregate over the two sources would hide the lowest reported score. The distinction is part of the evaluation and benchmarks design.

According to the authors, they used Python 3 and Java Jdk8 to run the experiments, with Keras, NLTK, Numpy, and Weka among the packages they used. The classifiers span decisions from vocabulary features through neural processing of sequences. The development results provide the common comparison for those alternatives. The separate test section then reports how the selected ensemble performed. This evaluation design gives the development and test numbers different jobs. The development scores explain the configuration choices, while the test scores characterize the submitted system on the supplied source splits.

How the scores summarize the predictions

The evaluation uses F1. For a given class, precision asks how often an item predicted to belong to that class really has that label. Recall asks how frequently the classifier finds the items that actually carry the label. Taking the harmonic mean of recall and precision gives F1. A high value requires the classifier both to find examples of the class and to keep mistakes among its predictions for that class under control. This is useful for aggression identification because a classifier can find many examples of a label through frequent prediction while giving the label to many irrelevant items.

The development comparisons report weighted F1, which combines class-level F1 scores with weights corresponding to class frequency. The emphasis on support makes the largest classes more influential in the aggregate. A classifier can therefore change its treatment of a smaller class substantially while registering a less visible change in the overall figure. That is one reason the authors’ description of the bigram SVM’s predictions and their later confusion matrices add information beyond the F1 rankings. The prose introducing the test results gives the headline values as F1. The test results below retain that terminology.

The development comparisons

The authors begin with a decision tree using unigrams. A decision tree arrives at a prediction through successive decisions about the features available for an item. Its weighted F1 on the Hindi development set was 0.4593, and on the English development set it was 0.470. With unigrams as features, the SVM reached 0.4986 on Hindi development and 0.5030 on English development. These trials establish the comparison between two classifier families using the same named feature type. They give the authors a reason to keep investigating the SVM as a branch of the ensemble.

The next SVM trials change the representation. With bigram features, the classifier obtained weighted F1 of 0.3858 on the Hindi development set and 0.404 on the English development set. With unigrams and TF-IDF features, it obtained 0.5457 on Hindi development and 0.556 on English development. These are separate configurations. The bigram trial represents lexical pairs explicitly. The stronger SVM trial keeps individual words and provides frequency-based weights as additional evidence. The final system adopts the stronger vocabulary configuration in each language.

The neural experiments include a long short-term memory network, usually abbreviated LSTM. This type of network processes a sequence while maintaining a state that can carry information between positions. In the reported trial, it obtained weighted F1 of 0.4061 on Hindi development and 0.4142 on English development. The paper describes the result as a reason to explore other neural configurations. The LSTM is an experimental comparator, with no role in the final ensemble. The methodological details focus primarily on the CNN that the authors eventually choose.

A CNN configured to capture unigram patterns obtained weighted F1 of 0.5422 on Hindi development and 0.5431 on English development. Expanding its window to cover pairs yielded 0.5663 on Hindi development and 0.578 on English development. The adjacent-word CNN gave the strongest development score among the individual classifiers reported for both languages. It became the neural branch of the ensemble.

The ensemble reached weighted F1 of 0.6273 on English development and 0.5987 on Hindi development. Each is the highest reported score in its language’s development comparison. The charts retain the authors’ precision for every value, including entries given with fewer decimal places. They show weighted F1 for the development splits and include the baselines and alternative configurations that informed the authors’ design.

Classifiers and feature settings on English development weighted F1

The ensemble leads the English development comparison, followed by the CNN with an adjacent-word window.

Classifiers and feature settings on English development weighted F1Unigram decision tree: 0.470Unigram decision tree0.470Unigram SVM: 0.5030Unigram SVM0.5030Bigram SVM: 0.404Bigram SVM0.404Unigram and TF-IDF SVM: 0.556Unigram and TF-IDF SVM0.556LSTM: 0.4142LSTM0.4142Unigram CNN: 0.5431Unigram CNN0.5431Bigram CNN: 0.578Bigram CNN0.578CNN and SVM ensemble (this paper): 0.6273CNN and SVM ensemble (this paper)0.6273
The numbers
System or settingweighted F1
Unigram decision tree0.470
Unigram SVM0.5030
Bigram SVM0.404
Unigram and TF-IDF SVM0.556
LSTM0.4142
Unigram CNN0.5431
Bigram CNN0.578
CNN and SVM ensemble (this paper)0.6273

Classifiers and feature settings on Hindi development weighted F1

The ensemble leads on Hindi development, where the bigram CNN also gives the strongest result among the individual classifiers.

Classifiers and feature settings on Hindi development weighted F1Unigram decision tree: 0.4593Unigram decision tree0.4593Unigram SVM: 0.4986Unigram SVM0.4986Bigram SVM: 0.3858Bigram SVM0.3858Unigram and TF-IDF SVM: 0.5457Unigram and TF-IDF SVM0.5457LSTM: 0.4061LSTM0.4061Unigram CNN: 0.5422Unigram CNN0.5422Bigram CNN: 0.5663Bigram CNN0.5663CNN and SVM ensemble (this paper): 0.5987CNN and SVM ensemble (this paper)0.5987
The numbers
System or settingweighted F1
Unigram decision tree0.4593
Unigram SVM0.4986
Bigram SVM0.3858
Unigram and TF-IDF SVM0.5457
LSTM0.4061
Unigram CNN0.5422
Bigram CNN0.5663
CNN and SVM ensemble (this paper)0.5987

The ordering is informative in addition to the maximum. Both languages favor the SVM with unigram and TF-IDF features over the SVM variants with a single kind of lexical sequence. Both also favor the CNN with the larger convolution window over the CNN with the smaller one. The relative order of the unigram CNN and the strongest SVM varies by language. That detail makes the shared outcome clearer. The selected ensemble beats the stronger of its two ingredient classifiers on development regardless of which individual configuration is used as the point of comparison.

The paper’s development experiments compare systems fitted within the authors’ own sequence of trials. The baseline label in this setting refers to those decision tree, SVM, and neural configurations. Their scores can answer which of the authors’ tested configurations did best on a development split. The paper does not supply a test comparison with other teams’ entries, so the development ranking also should not be read as a ranking for the shared task as a whole.

Scores on the separate test sources

On English Facebook, the ensemble obtained F1 of 0.5151. On English other social media, it obtained 0.5099. Both are below its weighted F1 of 0.6273 on English development. The two English test scores are close to each other at the reported precision. Their proximity describes the aggregate outcome and leaves room for differences in which class the system predicts correctly, as the error analysis shows.

On Hindi Facebook, the ensemble obtained F1 of 0.5599. On Hindi other social media, it obtained 0.3790. The Hindi Facebook result is the highest of the reported test results, and the Hindi other-social-media result is the lowest. That reversal across sources makes it difficult to describe one language as simply easier for this system. The language of an item and the test collection it belongs to both matter when stating the result. A single score for Hindi would conceal the contrast between the two evaluations.

Across the languages, Facebook is the higher-scoring test source in the paper. The conditions under which the sources were assembled are relevant to interpreting that pattern. Facebook and other social media are named as different source categories, but the scores give the effect of evaluating on the complete sets as supplied, including whatever differences those collections contain. They do not isolate a difference in platform language or writing style. The test results also refer to the final ensemble alone. The evidence that combining branches improves on the best individual classifier comes from the development runs.

What the ablations show

What changes when the lexical features change

The paper compares feature settings and individual classifiers, but it provides no full ablation of the final ensemble’s layers. The most direct comparisons vary the SVM features and the CNN window, then compare the selected individual branches with the final combination. The authors also examine the ensemble’s mistakes on the test sets. Together, those analyses explain the choices that led to the submission and show where its decisions remained difficult.

The sequence of SVM trials separates two questions. The first is whether a classifier benefits from seeing a pair of words as a single lexical cue. In both languages, the SVM using bigrams scores below the unigram SVM on development. The authors also report that it classified nearly two third of the development items in each language as NAG. Frequent selection of NAG is a more specific description of the failure than a low aggregate score. It shows that the classifier’s predictions became concentrated in one category. The Hindi development distribution makes that behavior particularly striking, since NAG has fewer annotated examples there than either aggressive category.

The second question is whether word-level evidence benefits from frequency weighting. The best SVM in both languages is the one supplied with unigrams and TF-IDF features. Its development scores, 0.5457 for Hindi and 0.556 for English, exceed those of the unigram SVM as well as those of the bigram SVM. The comparison supports the combined feature choice for this classifier. A run with TF-IDF alone would have answered a different question about how much the unigram input adds once weighting is present. The paper’s reported sequence establishes the performance of the joint configuration.

The bigram result also has a natural boundary. The classifier is described as using bigrams in this trial. There is no parallel result for adding bigrams to the final unigram and TF-IDF setting while retaining the other features. Accordingly, the experiment shows that the tested bigram representation made a weaker basis for this SVM. It does not establish what would happen if selected pairs were supplied as supplementary cues. Similarly, the authors’ observation about NAG describes which decisions the trial made, without tracing those decisions to individual pair features or to a measured coverage problem.

What changes when the CNN sees neighboring words

The CNN comparison varies how many adjacent word positions the receptive window covers. On both development sets, the network that reads adjacent pairs scores higher than the network configured for individual words. On Hindi development, the two reported weighted F1 scores are 0.5663 for the wider window and 0.5422 for the unigram window. On English development, they are 0.578 and 0.5431. The most direct conclusion is that local combinations of embeddings helped this CNN on the evaluated splits.

Placed beside the SVM trials, these results show how the usefulness of a word pair depends on its representation. A lexical bigram feature stands for a particular observed pair. A convolutional filter acts on the two vectors in its window, and the same learned weights are applied throughout the input. It can give similar responses in multiple expressions. The development scores are consistent with the usefulness of the latter kind of local evidence in this task. They do not identify the actual filters involved or show which pairs or meanings the network learned.

The final comparison puts the selected CNN and SVM in the same system. The ensemble beats both individual branches on both development splits, giving the authors an empirical reason to use the combination. The comparison changes both the information present in the predictor and the layers available to process it. The ensemble has learned transformations and a dense combination that the standalone trials do not separately evaluate. The paper gives no equal-capacity single-branch comparison and no per-item breakdown of which branch rescued an error by the other. The gain is evidence for the complete design as tested.

The lower LSTM result helps explain a choice in the design process. The authors used the development results to favor the convolutional approach. They later propose testing an LSTM with attention, a mechanism that would let it weigh portions of the input differently when making a prediction. The trial supports a conclusion about the LSTM they evaluated. Comparing the development scores offers no result for the proposed attention variant and no general ranking of recurrent versus convolutional approaches to this task.

Which labels were confused on the test sets

The authors use a confusion matrix for each test set. A confusion matrix counts pairs of annotated and predicted labels. Correct decisions are on the diagonal, while an entry off the diagonal describes a particular kind of mistake. This view shows whether a system tends to interpret a genuine attack as a different form of aggression or misses the aggression altogether. Those errors can have different implications even when they contribute to the same overall F1 score.

On English other social media, the row for overt aggression contains 180 covert predictions and 68 non-aggressive predictions. In the row for covert aggression, 192 items were predicted non-aggressive and 49 were predicted overt. The direction of the errors matters. For this split, many overt items retained an aggressive label but moved to the covert category. Many covert items lost the aggression label entirely. The same score summary would not convey that difference in what the classifier recognized.

The Hindi matrices show the overt-to-covert pattern on both sources. The Hindi Facebook matrix lists 215 items labeled OAG that were predicted CAG and 12 predicted NAG. The corresponding Hindi other-social-media counts are 240 and 116. Covert items on Hindi other social media were also assigned to NAG more frequently than to OAG, with 115 of the former mistakes and 84 of the latter. On Hindi Facebook, the corresponding counts are 49 and 47. The latter entries give important scale to the paper’s account of a recurring tendency. Both destinations for covert items are visible in this split, with a narrower separation between the counts.

English Facebook differs in its treatment of covert aggression. Its matrix shows 29 items from the CAG row assigned OAG and 25 assigned NAG. The authors describe these destinations as nearly even. The OAG row has more errors to CAG than to NAG, and the NAG row has more errors to CAG than to OAG. Across the paper’s discussion, CAG is thus both a category the ensemble fails to recognize reliably and a category it gives to items from neighboring classes. These directions explain more about the decision boundary than a statement that covert language was simply difficult.

The authors suggest that vocabulary shared across aggressive comments helps explain some overt-to-covert errors. Words about killing and terrorism can appear in very different uses, and their presence may provide evidence of hostility without specifying how it is expressed. For covert-to-non-aggressive errors, the authors point to indirect references and favorable words used sarcastically. Their English error examples include a remark framed as a wish for people to get new currency, which the system classified as non-aggressive in spite of its covert-aggression annotation. The paper presents the explanations as interpretations of the cases and patterns. The confusion counts themselves show the direction of the mistakes. They do not independently identify which words or activation caused an individual decision.

Limitations

Challenges the authors identify

The paper’s clearest account of a limitation comes from its error analysis. The ensemble can give the wrong kind of aggression label when overt and covert items use similarly charged vocabulary. It can also miss hostility when a remark carries it indirectly. These are related challenges because the task requires identifying how hostility is communicated. A word feature might indicate that a comment concerns violence or conflict, and a local neural feature might give evidence about phrasing. Both can have difficulty when the decisive information is a reference, a sarcastic stance, or the relationship between the writer’s apparent and intended meaning.

The authors connect these problems to directions they think deserve further investigation. Having found the LSTM trial weak, they suggest checking whether it improves when equipped with attention. They also note that named entities occur in many aggressive items, including in hashtags. They propose investigating a named entity recognition feature that would identify names in the input and make that information available to the classifier. Neither idea is part of the evaluated ensemble. The paper provides no measured result for attention or for a separate entity feature.

The suggestion about entities is particularly relevant to the stated preprocessing. Keeping the words from a hashtag means that its material can already enter the lexical and neural branches. A named entity feature would make a different distinction available, calling attention to a reference as an entity rather than leaving its role to be inferred entirely through lexical features. The authors propose testing that distinction precisely because the current system sometimes struggles with references. They also point to other linguistic features and hybrid approaches as possible future work, without presenting experiments that select among them.

The paper treats code mixing as a difficulty and describes a normalization step for Hindi. It makes no reported comparison between that step and using the same inputs without conversion. The reader can see how the change might affect access to Hindi word vectors or the vocabulary used by the SVM, but the scores combine it with every other part of the pipeline. The effect of normalization is therefore undetermined within the study. This is relevant when weighing the weaker Hindi result on other social media. The result can motivate a closer look at mixed-language handling, while the evaluation gives no basis for assigning the observed performance to that particular stage.

What the evaluation can establish

A limit visible in the experiment is where the paper measures the ensemble’s advantage. The authors tune and compare candidate systems on development data. In that setting, the combined system has the strongest reported weighted F1 for both languages. The paper reports only the resulting ensemble on the separate test sets. As a consequence, the test figures describe the ensemble’s attained scores, while the development figures establish its advantage over the tested individual configurations. The two claims call on different comparisons. A test evaluation of each branch would be needed to establish whether the development ordering persisted on Facebook and on other social media.

The paper also gives point estimates without reporting variability across repeated runs. The numerical ordering is clear for the particular development experiments presented. The degree to which that ordering would persist through retraining or with alternative partitions is unmeasured. This matters most when drawing conclusions about small separations among individual alternatives. The authors’ stated use of development data for tuning means that its scores incorporate choices informed by that split. The test results have a distinct value because they evaluate the selected system on separate items, even though they offer less information about the comparative merits of its components.

The source comparison has a similarly specific interpretation. The Hindi ensemble scores higher on Facebook than on other social media, and the English test scores are closer together. Those are findings about the supplied collections. Changing the collection can change the vocabulary, the distribution of labels, the style of the comments, the frequency of code mixing, and how much context the writing assumes. The paper does not isolate these possible explanations. The design shows how the complete classifier performs on the named splits and gives evidence of sensitivity to the evaluation source, especially in Hindi.

The labels define another scope boundary visible from the setup. The system is evaluated for assigning aggression categories to posts and comments. Its error analysis concerns whether those assignments agree with the annotations. The task takes intention seriously in defining aggression, but the experiment does not independently establish a writer’s intentions or the effect on an addressee. It also gives no direct evaluation of decisions about users, repeated interactions, or the consequences of intervening in a conversation. The unit of evidence is the labeled text item.

Weighted F1 is helpful for tracking performance across all labels, with more influence from categories having greater support. It can still obscure a sharp difference between identifying non-aggressive text and finding a less frequent aggressive category. The English and Hindi development distributions illustrate why the same metric can put different emphasis on the categories in each language. The confusion matrices restore some of that detail on test. The paper offers no comparable full breakdown of the development predictions for every configuration. Its observation about the bigram SVM’s tendency toward NAG is one specific exception. The remaining aggregate scores leave open how the development gains were distributed across labels.

Where implementation and reporting leave questions

The Hindi training counts are ambiguous in the paper itself. Its narrative reports 15,000 items under the training description and gives one set of class counts. The Hindi table lists different training counts, while agreeing with the stated class counts for development. Those accounts should be kept distinct when using the paper to reconstruct the experiment. The reported development and test scores can be stated with the split names the authors give them. The training description does not establish a single unambiguous set of per-class training counts for Hindi.

Some details of preprocessing and fitting also remain unspecified. The paper identifies the top 1000 unigrams as features but gives limited information about the precise vocabulary selection and encoding procedure. It describes TF-IDF without a full equation or normalization rule. It gives examples of cleaned hashtags, including apparent segmentation, but no full account of how the examples generalize to new compounds. For the neural input, the word limit and padding rules are stated, while the treatment of words outside the pretrained vocabulary is unspecified. These details can affect what information actually arrives at either branch.

The combination stage leaves a question about the SVM signal supplied during ensemble training. The authors describe passing the output through a dense layer, without specifying its numerical encoding or how the training-time outputs were generated for that layer. The distinction would matter for reproducing the experiment. Training a combination on predictions obtained from examples already used to fit the SVM can give it a different distribution of inputs from one based on predictions for items held out from the SVM fit. The paper does not say which arrangement it uses. This is a reporting gap about the procedure, with no evidence here for either arrangement.

Finally, the architecture has a built-in limit on how it can read an item. The convolutional window in the selected branch sees adjacent positions, and pooling compresses local responses. The SVM supplies lexical information without explicitly supplying a relationship between distant parts of the text. The fixed neural input length can also remove material at the end of an item. These properties make the authors’ accounts of missed references and sarcasm plausible. They do not establish that any particular error resulted from the window, the pooling, the vocabulary representation, or truncation. The paper’s analyses identify difficult decisions and offer explanations grounded in the examples, while leaving the causal role of individual components open.

What came after

Benchmarking Aggression Identification in Social Media cites Roy and colleagues’ paper. Its subject is the benchmarking of aggression identification in the same broad setting. Roy and colleagues contribute a system-level study for that problem, recording how their classifiers compare during development and how the selected ensemble scores on separately identified English and Hindi test sources. The citing work places aggression identification in a benchmarking frame, where the definition of the labels, the test source, and the metric determine what a comparison of systems can establish.

The documented connection is the citation. It supplies no basis for attributing the specific CNN and SVM combination, the Hindi normalization procedure, or a new measurement of their effects to the benchmarking work. The distinction matters here because the original paper answers a concrete entrant’s question about which tried configuration to submit. Its source-specific test scores and confusion analyses also show why a benchmark needs to retain the conditions of the evaluation when recording that entrant’s performance.

Cite

Cite as Arjun Roy, Prashant Kapil, Kingshuk Basak and Asif Ekbal. 2018. An Ensemble Approach for Aggression Identification in English and Hindi Text. Proceedings of the First Workshop on Trolling, Aggression and Cyberbullying (TRAC-2018).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{roy2018ensemble,
  title = {{An Ensemble Approach for Aggression Identification in English and Hindi Text}},
  author = {Arjun Roy, Prashant Kapil, Kingshuk Basak and Asif Ekbal},
  booktitle = {Proceedings of the First Workshop on Trolling, Aggression and Cyberbullying (TRAC-2018)},
  year = {2018},
  url = {https://aclanthology.org/W18-4408/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/roy-2018-ensemble-approach-aggression-identification-english/