[Paper Review] LSTMs with Attention for Aggression Detection
This paper proposes an LSTM with attention mechanism for aggression detection in social media text, leveraging sequential modeling and dynamic word importance weighting. The model achieves 6th and 4th place in Hindi subtasks and 17th and 10th in English subtasks on the TRAC 2018 shared task, demonstrating strong performance with minimal feature engineering.
In this paper, we describe the system submitted for the shared task on Aggression Identification in Facebook posts and comments by the team Nishnik. Previous works demonstrate that LSTMs have achieved remarkable performance in natural language processing tasks. We deploy an LSTM model with an attention unit over it. Our system ranks 6th and 4th in the Hindi subtask for Facebook comments and subtask for generalized social media data respectively. And it ranks 17th and 10th in the corresponding English subtasks.
Motivation & Objective
- To develop a neural network model for classifying aggression in social media content, particularly in Facebook comments and general social media text.
- To address the challenge of detecting both overtly and covertly aggressive language in short, informal text.
- To improve classification performance by combining LSTMs for sequential understanding with attention for focusing on salient words.
- To evaluate the model on a shared task with multilingual (English and Hindi) data, including both Facebook and generalized social media content.
Proposed method
- The model uses a 100-dimensional word embedding layer followed by a dropout layer to regularize input representations.
- An LSTM layer with 100 hidden units processes the sequence, capturing long-term dependencies through gated memory cells.
- An attention mechanism computes word-level importance scores using a learned weight vector, producing a weighted context vector.
- The attention output is passed through a fully connected layer with softmax activation to predict class probabilities.
- The model is trained using Adam optimizer with a 0.001 learning rate and categorical cross-entropy loss.
- Text preprocessing includes normalization of URLs, emails, and special tokens via Ekphrasis, social media tokenization, punctuation removal, spell correction, and lemmatization.
Experimental results
Research questions
- RQ1Can an LSTM with attention mechanism effectively detect aggression in short-form, informal social media text?
- RQ2How does attention improve the model’s ability to distinguish between overtly aggressive, covertly aggressive, and non-aggressive content?
- RQ3What is the impact of dropout rate and sequence length on model generalization and performance?
- RQ4How does the proposed model compare to traditional classifiers like Random Forest using hand-crafted features?
Key findings
- The model achieved a weighted F1 score of 0.6032 on the Hindi Facebook subtask, ranking 6th among 20 teams.
- On the Hindi generalized social media subtask, the model scored 0.4703 F1, placing 4th out of 20 teams.
- In the English Facebook subtask, the model achieved 0.5548 F1, ranking 17th, with a significant improvement over the random baseline (0.3535).
- The model performed best at distinguishing non-aggressive from aggressive content, but struggled with classifying overtly and covertly aggressive comments.
- The use of a higher dropout rate (0.3) improved generalization, increasing F1 from 0.5304 to 0.5548 in the English social media task.
- The attention mechanism helped the model focus on key words, enhancing performance over baseline models that relied solely on hand-crafted features.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.