Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

A Hybrid RoBERTa-BiGRU-Attention Model for Accurate and Context-Aware Figurative Language Detection

Author 1: Sreeja Balakrishnan Author 2: Rahul Suryodai Author 3: S. Manochitra Author 4: Jasgurpreet Singh Chohan Author 5: Karaka Ramakrishna Reddy Author 6: A. Smitha Kranthi Author 7: Ritu Sharma
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 16, No. 9 · Published 2025

DOI: https://doi.org/10.14569/IJACSA.2025.0160950

Abstract

Figurative language, especially sarcasm, poses strong challenges for Natural Language Processing (NLP) models because of its implicit, context-sensitive nature. Both traditional and transformer models tend to find it difficult to identify these subtle forms, particularly when dealing with imbalanced datasets or without mechanisms for targeted interpretability. For overcoming these shortcomings, this study recommends a hybrid deep learning architecture that integrates RoBERTa for high-contextual embedding, Bidirectional Gated Recurrent Units (BiGRU) to capture bidirectional sequential relations, and an attention mechanism allowing the model to focus on the most informative parts of the input text. This integration enhances semantic understanding and classification accuracy compared to current solutions. The model is trained and tested on the benchmark News Headlines Dataset for Sarcasm Detection using binary cross-entropy loss minimized with Adam, along with dropout and learning rate scheduling to avoid overfitting. Experimental results yield better performance, attaining an accuracy of 92.4%, a precision of 91.1%, a recall of 93.2%, and an F1-score of 92.1%. These results outperform baseline techniques such as BiLSTM with attention and fine-tuned BERT variants. Implementation uses PyTorch and Hugging Face Transformers, ensuring reproducibility and extensibility. While effective, the model faces challenges with figurative expressions requiring external world knowledge or cultural context beyond pretrained embeddings. Future work aims to integrate external knowledge graphs and extend the model to multilingual and cross-domain scenarios. This hybrid framework advances figurative language detection, contributing to the broader goal of enhancing AI’s nuanced understanding and interpretability of human language.

Keywords

How to Cite this Article

Balakrishnan, S., Suryodai, R., Manochitra, S., Chohan, J. S., Reddy, K. R., Kranthi, A. S., & Sharma, R. (2025). A Hybrid RoBERTa-BiGRU-Attention Model for Accurate and Context-Aware Figurative Language Detection. International Journal of Advanced Computer Science and Applications, 16(9). https://doi.org/10.14569/IJACSA.2025.0160950

Balakrishnan, Sreeja, et al.. "A Hybrid RoBERTa-BiGRU-Attention Model for Accurate and Context-Aware Figurative Language Detection." International Journal of Advanced Computer Science and Applications, vol. 16, no. 9, 2025, https://doi.org/10.14569/IJACSA.2025.0160950.

@article{Balakrishnan2025,
  title     = {A Hybrid RoBERTa-BiGRU-Attention Model for Accurate and Context-Aware Figurative Language Detection},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {16},
  number    = {9},
  year      = {2025},
  publisher = {The Science and Information Organization},
  author    = {Sreeja Balakrishnan and Rahul Suryodai and S. Manochitra and Jasgurpreet Singh Chohan and Karaka Ramakrishna Reddy and A. Smitha Kranthi and Ritu Sharma},
  doi       = {10.14569/IJACSA.2025.0160950},
  url       = {https://doi.org/10.14569/IJACSA.2025.0160950}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.