Detecting Hostile Posts using Relational Graph Convolutional Network

Sarthak, Shikhar Shukla, Govind Mittal, Karm Veer AryaarXiv 2021

Abstract

This work presents a novel architecture for detecting and classifying hostile Hindi social media posts, specifically targeting categories such as fake news, hate speech, offensive content, and defamation. Developed for the AAAI@2021 Hindi Constraint competition, the model utilizes a Relational Graph Convolutional Network (R-GCN) to integrate syntactic structure with contextual embeddings from multilingual BERT. The proposed system achieved state-of-the-art performance in identifying fake posts (F1 score of 0.8244) and ranked 7th overall in coarse-grained classification with an F1 score of 0.97. Additionally, the team's XLM-RoBERTa submission secured 2nd rank in fine-grained classification.

Introduction

The rapid spread of toxic content and misinformation in Hindi poses a significant challenge for social media platforms. Despite Hindi's massive user base, there is a lack of robust NLP tools compared to English. This deficiency was particularly evident during the COVID-19 pandemic, where false information and hate speech proliferated. This paper addresses the "Hostile Post Detection in Hindi" challenge, which requires multi-label classification into four categories: fake, hate, offensive, and defamation.

Methodology

To capture both the semantic context and the underlying syntactic structure of the posts, the authors developed a dual-stream deep learning architecture:

  1. Contextual Embedding Stream: The original Hindi text is processed through a pre-trained bert-base-multilingual-cased model. The pooled output of the [CLS] token represents the general contextual information.
  2. Syntactic Embedding Stream (R-GCN): Due to the scarcity of robust Hindi dependency parsers, the authors translated the text into English to generate a dependency parsing graph using spaCy. This graph, where nodes are tokens and edges represent syntactic relationships, is processed by a Gated Relational Graph Convolutional Network (R-GCN). The gating mechanism helps the model ignore potential errors introduced during translation or parsing.
The dual-stream architecture combining R-GCN for syntactic features and BERT for contextual features.

By explicitly mapping the relationships between entities (e.g., who is performing an action on whom), the R-GCN stream captures structural hallmarks of hostile content that standard transformers might miss.

Example of a dependency parse tree used to construct the graph for the R-GCN stream.

Key Results and Insights

  • Superiority in Fake News Detection: The R-GCN + BERT model achieved the highest F1 score (82.44%) for the "Fake" class among all challenge participants. This suggests that syntactic structure is a powerful signal for identifying fabricated information.
  • Translation as a Viable Proxy: Despite the potential for translation artifacts, the core semantic and syntactic meaning remained sufficiently intact to provide a high-quality dependency graph for the R-GCN.
  • Transformer Performance: While the R-GCN excelled at structural detection, a fine-tuned XLM-RoBERTa model proved more effective for nuanced categories like defamation, securing 2nd rank in fine-grained classification with a weighted F1 score of 63.92%.

Conclusion

This research demonstrates that combining syntactic graph representations with contextual embeddings significantly improves the detection of hostile content in low-resource language settings. While the R-GCN model is particularly adept at identifying fake news, future work will focus on developing native Hindi syntactic tools and exploring ensemble methods to better address nuanced categories like defamation.

Summary updated

BibTeX
@misc{sarthak2021detecting,
  author = {Sarthak and Shikhar Shukla and Govind Mittal and Karm Veer Arya},
  title = {{Detecting Hostile Posts using Relational Graph Convolutional Network}},
  year = {2021},
  eprint = {2101.03485},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.03485},
}
Figure