Architectural and Computational Benchmarking of BERT, FLAN-T5, and Mistral-7B for Sentiment Analysis
view PDF
view PDF

How to Cite

P., Abinaya, Gomathi A., and Oviya R. 2026. “Architectural and Computational Benchmarking of BERT, FLAN-T5, and Mistral-7B for Sentiment Analysis”. Recent Research Reviews Journal 5 (2): 512-29. https://doi.org/10.36548/rrrj.2026.2.017.

Keywords

Transformer Architectural Evaluation
Contextual Representation Learning
Autoregressive Language Modelling
Encoder–Decoder Processing
Sentiment Classification
Inference Performance Optimization
Computational Resource Profiling.

Abstract

Transformer architectures demonstrate computational capabilities unique to each due to differences in architecture, parameter size, and inference methods. In this research, we will compare BERT-Base, FLAN-T5-Base, and Mistral-7B transformer architectures, which belong to encoder-only, encoder-decoder, and causal decoder transformer architectures, respectively. We will be analyze their performance based on the following parameters: classification accuracy, inference time, throughput, peak memory usage, and scalability. Mistral-7B achieves the highest classification accuracy at 96.3%, while FLAN-T5-Base and BERT-Base follow with accuracies of 93.7% and 93.4%, respectively. On the other hand, BERT-Base shows the lowest inference time of 32.33 ms and the highest throughput of 30.93 samples with peak memory usage of 617 MB. The comparison results highlight the performance versus hardware trade-offs between the architectures studied and thus determine the most suitable architecture for different deployment conditions.

References

  1. Fatwanto, Agung, Fardan Zamakhsyari, and Rebbecah Ndungi. ”A systematic literature review of BERT-based models for natural language processing tasks.” Jurnal Infotel, 2024, vol. 16, no. 4: 713-728.
  2. Shakti, Shivay, Drishti Hajong, and Priyanshi Dubey. ”Optimizing Large Language Models for Resource-Constrained Environments: A Parameter-Efficient Approach Using QLoRA and Prompt Tuning.” American Journal of Management, 2025, vol. 25, no. 4: 11-26.
  3. Soyeb, Md, Mukit Mahdin, Syed Samin Sadaf, Mirza Mohammad Azwad, and Ajwad Abrar. ”TYMBERT: Tiny Yet Mighty–Fine-Tuned and Compressed TinyBERT for High-Accuracy, Low-Resource NLP.” In 2nd International Conference on Next-Generation Computing, IoT and Machine Learning (NCIM), IEEE, 2025, 1-6.
  4. Akpatsa, Samuel Kofi, Hang Lei, Xiaoyu Li, Victor-Hillary Kofi Setornyo Obeng, Ezekiel Mensah Martey, Prince Clement Addo, and Duncan Dodzi Fiawoo. ”Online News Sentiment Classification Using DistilBERT.” Journal of Quantum Computing, 2022, vol. 4, no. 1: 1.
  5. Sun, Zhiqing, Hongkun Yu, Xiaodan Song, Renjie Liu, Yiming Yang, and Denny Zhou. ”Mobilebert: a compact task-agnostic bert for resource-limited devices.” In Proceedings of the 58th Annual Meeting of The Association for Computational Linguistics, 2020, 2158-2170.
  6. Longpre, Shayne, Le Hou, Tu Vu, Albert Webson, Hyung Won Chung, Yi Tay, Denny Zhou et al. ”The flan collection: Designing data and methods for effective instruction tuning.” In International Conference on Machine Learning, PMLR, 2023: 22631-22648.
  7. Guttikonda, Bhanu Sekhar, Ram Chandra Sachan, and Vinod Veeramachaneni. ”LLM-GA: A hybrid framework to build dynamic websites for optimizing web performance.” International Journal of Information Technology, 2025, 1-7.
  8. Bader, Arwa, and Bushra Alhijawi. ”Transformer-based approach for detecting LLM-generated scientific text.” In International Conference on New Trends in Computing Sciences (ICTCS), IEEE, 2025, 26-31.
  9. Zeyad, Abdulrahman Mohsen Ahmed, and Arun Biradar. ”Advancements in the efficacy of flan-t5 for abstractive text summarization: a multi-dataset evaluation using rouge and bertscore.” In 2024 International Conference on Advancements in Power, Communication and Intelligent Systems (APCI), IEEE, 2024, 1-5.
  10. Navarro, Laura M. Parra, Evelyn CS Batista, and Marco Aurelio C. Pacheco. ”Exploring ´ state-of-the-art LLMs from BERT to XLNet: a study over question answering.” In IEEE Latin American Conference on Computational Intelligence (LA-CCI), IEEE, 2024, 1-6.
  11. Nana, Sidwendluian Romaric, Didier Bassole, D ´ esir ´ e Guel, and Oumarou Si ´ e. ”Large ´ language models’ adaptation for web applications attacks detection.” In Conference on Information Communications Technology and Society (ICTAS), IEEE, 2025, 1-6.
  12. Valerio, Alberto G., Katya Trufanova, Salvatore De Benedictis, Gennaro Vessio, and Giovanna Castellano. ”From segmentation to explanation: Generating textual reports from MRI with LLMs.” Computer Methods and Programs in Biomedicine, 2025, vol. 270: 108922.
  13. Li, Cheng-Yi, Kao-Jung Chang, Cheng-Fu Yang, Hsin-Yu Wu, Wenting Chen, Hritik Bansal, Ling Chen et al. ”Towards a holistic framework for multimodal LLM in 3D brain CT radiology report generation.” Nature Communications, 2025, vol. 16, no. 1: 2258.
  14. Socher, Richard, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. ”Recursive deep models for semantic compositionality over a sentiment treebank.” Dataset. Available: https://huggingface.co/datasets/stanfordnlp/sst2