BERT-KAN: Enhancing bilingual sentiment analysis in bangladeshi E-commerce through fine-tuned large language models
Sentiment analysis of code-mixed reviews poses unique challenges due to linguistic variability and contex- tual ambiguity, particularly in multilingual e-commerce environments. In this paper, we introduce BERT- KAN, a novel hybrid architecture that enhances bilingual sentiment analysis in Bangladeshi e-commerce by integrating the deep contextual representations of Bidirectional Encoder Representations from Transform- ers(BERT) with a Kolmogorov-Arnold Network (KAN) layer. The KAN component employs a polynomial expansion to capture complex non-linear relationships within code-mixed Bengali-English text, while an innovative polynomial attention mechanism further refines feature extraction. Extensive ablation studies were conducted on two base models—bert-base-multilingual-uncased and BanglaBERT—using polynomial degrees of 2 and 3. Notably, the best configuration for bert-base-multilingual-uncased (employing KAN, polynomial attention, and feature fusion with polynomial degree 2) achieved a precision of 95.3 %, recall of 97.0 %, and an F1-score of 96.1 %. Comparable performance was observed for polynomial degree 3 (precision 96.2 %, recall 95.8 %, and F1-score 96.0 %), while cross-validation experiments yielded average accuracies exceeding 90 % across multiple folds. Detailed error analyses, supported by confusion matrices and sam- ple predictions, as well as discussions on computational requirements and deployment challenges, further validate the robustness of our approach.
Authors
- Mithila Sultana
- Aritra Das (ORCID: https://orcid.org/0009-0006-9625-8541)
- Mohammad Rifat Ahmmad Rashid (ORCID: https://orcid.org/0000-0001-6290-0993)
- Rashedul Amin Tuhin (ORCID: https://orcid.org/0000-0003-1360-3700)
- Raihan Ul Islam (ORCID: https://orcid.org/0000-0002-3090-7645)
- Musharrat Khan (ORCID: https://orcid.org/0009-0006-8320-1087)
- Kazi Ferdous Hasan (ORCID: https://orcid.org/0009-0002-0475-0370)
- Md. Rakibul Hasan (ORCID: https://orcid.org/0000-0002-0079-0108)
- Mahamudul Hasan
Publication Details
- Journal
- Natural Language Processing Journal
- Published
- 2025-10-29
- DOI
- https://doi.org/10.1016/j.nlp.2025.100190
- Primary Topic
- Sentiment Analysis and Opinion Mining
- Type
- article
- Field-Weighted Citation Impact
- 0.00