A modified attention-based transformer ensemble for automated Bengali aggressive text identification

Aggression detection refers to the identification of offensive or harmful expressions in online communications and is crucial due to its significant societal implications and impact on online safety. However, detecting aggression in Bengali texts is particularly challenging due to the language’s complex morphology and the scarcity of annotated datasets and computational tools. Although the task has been extensively studied in high-resource languages, research in the resource-constrained Bengali language remains limited. To address the gap, in this paper, we developed a new dataset BOLT (Bangla Offensive and Lethal Texts) consisting of 4027 annotated instances classified into four classes based on severity of aggression- no aggression, hate speech, vandalism, and atrocity. To optimize model performance, we proposed a modified attention mechanism within transformers. Unlike conventional self-attention, which computes pairwise interactions between all tokens and treats their importance uniformly, our approach introduces a learnable token-wise weight matrix to assess the relevance of each token for aggressive text classification. The attention scores are obtained by multiplying the transformer’s token embeddings with this matrix to generate task-specific weights that better capture contextual significance. Moreover, we utilized a weighted ensemble of the optimized transformer models to combine their individual strengths. Experimental results show that our proposed approach outperforms existing methods and baseline models, achieving both accuracy and weighted F1-score of 87%. Our developed dataset and proposed method pave the way for impactful advancements in Bengali NLP and support content moderation tools and create safer digital platforms through automated aggression detection.

Authors

Institutions

Publication Details

Journal
Discover Applied Sciences
Published
2026-01-03
DOI
https://doi.org/10.1007/s42452-025-08064-0
Primary Topic
Hate Speech and Cyberbullying Detection
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A modified attention-based transformer ensemble for automated Bengali aggressive text identification

Mohammad Shamsul Arefin, Samiur Rahman, Md. Shafiul Alam Forhad, Bibhas Roy Chowdhury Piyas et al.
Discover Applied Sciences
Hate Speech and Cyberbullying Detection
article

A modified attention-based transformer ensemble for automated Bengali aggressive text identification

Mohammad Shamsul Arefin, Samiur Rahman, Md. Shafiul Alam Forhad, Bibhas Roy Chowdhury Piyas, Bijoy Roy Chowdhury Preenon, Fahmid Al Farid, Hezerul Abdul Karim, Abu Saleh Musa Miah, Suhana Binta Rashid, Mohammad Hasan
article en

Abstract

Aggression detection refers to the identification of offensive or harmful expressions in online communications and is crucial due to its significant societal implications and impact on online safety. However, detecting aggression in Bengali texts is particularly challenging due to the language’s complex morphology and the scarcity of annotated datasets and computational tools. Although the task has been extensively studied in high-resource languages, research in the resource-constrained Bengali language remains limited. To address the gap, in this paper, we developed a new dataset BOLT (Bangla Offensive and Lethal Texts) consisting of 4027 annotated instances classified into four classes based on severity of aggression- no aggression, hate speech, vandalism, and atrocity. To optimize model performance, we proposed a modified attention mechanism within transformers. Unlike conventional self-attention, which computes pairwise interactions between all tokens and treats their importance uniformly, our approach introduces a learnable token-wise weight matrix to assess the relevance of each token for aggressive text classification. The attention scores are obtained by multiplying the transformer’s token embeddings with this matrix to generate task-specific weights that better capture contextual significance. Moreover, we utilized a weighted ensemble of the optimized transformer models to combine their individual strengths. Experimental results show that our proposed approach outperforms existing methods and baseline models, achieving both accuracy and weighted F1-score of 87%. Our developed dataset and proposed method pave the way for impactful advancements in Bengali NLP and support content moderation tools and create safer digital platforms through automated aggression detection.

Discover Applied SciencesVol. 8(2)
Chittagong University of Engineering & Technology (BD), Multimedia University (MY), National Institute of Technology Jamshedpur (IN), Daffodil International University (BD), Independent University, Bangladesh (BD), Technische Universität Berlin (DE), University of Rajshahi (BD)
Peace, Justice and strong institutions
Openalex Percentile: Top 97%
Hate Speech and Cyberbullying Detection
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.