Skip to main content

Stacked Embeddings and Multiple Fine-Tuned XLM-RoBERTa Models for Enhanced Hostility Identification

  • Conference paper
  • First Online:
Combating Online Hostile Posts in Regional Languages during Emergency Situation (CONSTRAINT 2021)

Abstract

Designing effective automated techniques for proper identification and categorisation of hostile speech is essential, especially for low resource Indian languages without established datasets. A majority of Indians use Hindi for their interactions on social media. Multiple dialects of Hindi spoken by the users in different parts of the country further exacerbate the challenge of identifying hostile speech as they imply diverse patterns of expression of hostility. In this work, we experimented with a wide range of neural network models for hostility identification in Hindi - pre-trained word embeddings, stacked word embeddings, and fine-tuned XLM-RoBERTa model. We also analyzed the effectiveness of back translation as a data augmentation technique to assist in fine-tuning of XLM-RoBERTa model for hostility identification. The experiments are carried out on the dataset provided by Constraint 2021 shared task. Our team’s (Siva_Alfred on leader board) best neural network model achieves F1-weighted score of 0.90 for coarse-grained hostility detection and 0.54 F1-weighted score for fine-grained hostility identification.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://www.statista.com/statistics/1027036/india-exposure-to-fake-news/.

  2. 2.

    https://www.news18.com/news/india/father-of-gurugram-teenager-who-allegedly-committed-suicide-after-defamatory-instagram-post-files-police-complaint-2610465.html.

  3. 3.

    https://colab.research.google.com/.

  4. 4.

    https://pypi.org/project/googletrans/.

References

  1. Majumder, P., Patel, D., Modha, S., Mandl, T.: Overview of the HASOC track at FIRE 2019: hate speech and offensive content identification in Indo-European languages, December 2019

    Google Scholar 

  2. Mathur, P., Shah, R., Sawhney, R., Mahata, D.: Detecting offensive tweets in Hindi-English code-switched language. In: Proceedings of the Sixth International Workshop on Natural Language Processing for Social Media, Melbourne, Australia, July 2018, pp. 18–26. Association for Computational Linguistics (2018)

    Google Scholar 

  3. Kumar, R., Lahiri, B., Ojha, A.K.: Aggressive and offensive language identification in Hindi, Bangla, and English: a comparative study. SN Comput. Sci. 2(1), 1–20 (2021). https://doi.org/10.1007/s42979-020-00414-6. Article No. 26

    Article  Google Scholar 

  4. Chaudhary, A.: A visual survey of data augmentation in NLP (2020). https://amitness.com/2020/05/data-augmentation-for-nlp

  5. Bhardwaj, M., Akhtar, M.S., Ekbal, A., Das, A., Chakraborty, T.: Hostility detection dataset in Hindi. arXiv preprint arXiv:2011.03588 (2020)

  6. Patwa, P., et al.:. Overview of constraint 2021 shared tasks: detecting English COVID-19 fake news and Hindi hostile posts. In: Chakraborty, T., Shu, K., Bernard, R., Liu, H., Akhtar, M.S. (eds.) CONSTRAINT 2021. CCIS, vol. 1402, pp. 42–53. Springer, Cham (2021)

    Google Scholar 

  7. Howard, J., Ruder, S.: Universal language model fine-tuning for text classification. arXiv preprint arXiv:1801.06146 (2018)

  8. Devlin, J., Chang, M.-W., Lee, K., Toutanova, K.: BERT: pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805 (2018)

  9. Akbik, A., Blythe, D., Vollgraf, R.: Contextual string embeddings for sequence labeling. In: Proceedings of the 27th International Conference on Computational Linguistics, Santa Fe, New Mexico, USA, August 2018, pp. 1638–1649. Association for Computational Linguistics (2018)

    Google Scholar 

  10. Conneau, A., et al.: Unsupervised cross-lingual representation learning at scale. arXiv preprint arXiv:1911.02116 (2019)

  11. Saha, P., Mathew, B., Goyal, P., Mukherjee., A.: HateMonitors: language agnostic abuse detection in social media. arXiv preprint arXiv:1909.12642 (2019)

  12. Risch, J., Krestel, R.: Aggression identification using deep learning and data augmentation. In: Proceedings of the First Workshop on Trolling, Aggression and Cyberbullying (TRAC-2018), pp. 150–158 (2018)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Siva Sai .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Sai, S., Jacob, A.W., Kalra, S., Sharma, Y. (2021). Stacked Embeddings and Multiple Fine-Tuned XLM-RoBERTa Models for Enhanced Hostility Identification. In: Chakraborty, T., Shu, K., Bernard, H.R., Liu, H., Akhtar, M.S. (eds) Combating Online Hostile Posts in Regional Languages during Emergency Situation. CONSTRAINT 2021. Communications in Computer and Information Science, vol 1402. Springer, Cham. https://doi.org/10.1007/978-3-030-73696-5_21

Download citation

  • DOI: https://doi.org/10.1007/978-3-030-73696-5_21

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-73695-8

  • Online ISBN: 978-3-030-73696-5

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics