Towards Trustworthy Automated Essay Scoring: Explainable Transformers and Efficient Fine-Tuning Strategies

Authors

DOI:

https://doi.org/10.22555/pjets.v14i1.1565

Keywords:

Automated Essay Scoring, Explainable AI, Transformers, BERT, FLAN-T5, LoRA, SHAP, LIME, Cross-Prompt Generalization

Abstract

Artificial intelligence allowed instructors to automate the grading of students’ work. Many studies show the high performance of neural networks in automated grading. However, their “Blackbox” nature reduces the educators’ trust in adopting it in the educational context. In this study, we propose a framework for automated essay scoring using Transformer-based models and Explainable AI (XAI). We evaluated the five models on two different benchmarking datasets, ASAP 2.0 and Learning Agency Lab, on models: Linear Regression, Random Forest, BiLSTM with attention, BERT, and FLAN-T5. Our studies show the BERT model achieved a Quadratic Weighted Kappa (QWK) score of 0.8431, which is 19.5% better than traditional machine learning models. Moreover, the study also shows the cross-prompt generalisation with 70.3% QWK degradation in leave-one-prompt-out evaluation, but it improves when training data contains diverse prompts. For resource optimisation, we apply Parameter-Efficient Fine-Tuning (PEFT) using LoRA on FLAN-T5. This approach achieves 86.2% of BERT’s Pearson correlation while training only 1.8% of parameters. Additionally, we integrated LIME and SHAP to provide pedagogically transparent explanations across all model families. Overall, the results show that training strategies play a more important role than model architecture, and parameter-efficient methods provide practical solutions for real educational systems.

References

[1] V. Funda, “Artificial Intelligence (AI) as a Tool to Address Academic Challenges in South African Higher Education,” International Journal of Learning, Teaching and Educational Research, vol. 23, no. 11, 2024, doi: 10.26803/IJLTER.23.11.27.

[2] S. Burrows, I. Gurevych, and B. Stein, “The Eras and Trends of Automatic Short Answer Grading,” International Journal of Artificial Intelligence in Education, vol. 25, no. 1, pp. 1–26, 2015.

[3] K. Hussain, N. Talpur, M. U. Aftab, and Zakria, “A Novel Metaheuristic Approach to Optimization of Neuro-Fuzzy System for Students’ Performance Prediction,” Journal of Soft Computing and Data Mining, vol. 1, no. 1, pp. 1–9, 2020.

[4] J. Cain, M. Medina, F. Romanelli, and A. Persky, “Deficiencies of Traditional Grading Systems and Recommendations for the Future,” American Journal of Pharmaceutical Education, vol. 86, no. 7, Art. no. 8850, Oct. 2022, doi: 10.5688/AJPE8850.

[5] J. M. Malouff, “Bias in Grading,” College Teaching, vol. 56, no. 3, pp. 191–192, 2008.

[6] K. Poonpon and W. Chansanam, “Optimizing Automated Essay Scoring: A Comparative Study of Machine Learning Approaches with a Focus on Ensemble Methods,” World Journal of English Language, vol. 15, no. 5, pp. 272–284, 2025, doi: 10.5430/WJEL.V15N5P272.

[7] A. Poulton and S. Eliens, “Explaining Transformer-Based Models for Automatic Short Answer Grading,” in Proc. 5th Int. Conf. Digital Technology in Education (ICDTE), 2021, pp. 111–116, doi: 10.1145/3488466.3488479.

[8] R. Romdani and A. Adiyono, “How Is Artificial Intelligence (AI) Changing the Future of Computer-Based Testing (CBT)?,” Universal Education Journal of Teaching and Learning, vol. 2, no. 2, pp. 76–85, 2025.

[9] “Alzheimer’s Disease Detection Using Deep Learning and Federated Learning,” Pakistan Journal of Engineering, Technology and Science, vol. 13, no. 1, pp. 113–120, 2025.

[10] R. Kumar et al., “IoTMalware: Android IoT Malware Detection Based on Deep Neural Network and Blockchain Technology,” CoRR, abs/2102.13376, 2021.

[11] J. Wang, Y. Hussain, X. Zhang, C. Mao, and Z. Wu, “AI-Based Automated Grading Systems: Opportunities, Challenges, and Future Directions,” Business and Social Science Proceedings, vol. 1, pp. 29–39, 2025.

[12] M. Saqr and S. López-Pernas, “Why Explainable AI May Not Be Enough: Predictions and Mispredictions in Decision Making in Education,” Smart Learning Environments, vol. 11, Art. no. 52, 2024, doi: 10.1186/s40561-024-00343-4.

[13] E. Oye, “A Comprehensive Comparative Analysis of Explainable AI Techniques,” Review of Applied Management and Social Sciences, vol. 8, no. 1, pp. 165–177, 2025, doi: 10.47067/ramss.v8i1.621.

[14] R. Conijn, P. Kahr, and C. C. P. Snijders, “The Effects of Explanations in Automated Essay Scoring Systems on Student Trust and Motivation,” Journal of Learning Analytics, vol. 10, no. 1, pp. 37–53, 2023, doi: 10.18608/jla.2023.7801.

[15] F. Rabhi, A. Beheshti, and A. Gill, “Editorial: Business Transformation Through AI-Enabled Technologies,” Frontiers in Artificial Intelligence, vol. 8, 2025.

[16] A. Condor and Z. A. Pardos, “Explainable Automatic Grading with Neural Additive Models,” in Artificial Intelligence in Education (AIED 2024), Lecture Notes in Computer Science, vol. 14829, Cham, Switzerland: Springer, 2024, pp. 18–31, doi: 10.1007/978-3-031-64302-6_2.

[17] H. Qiu, “SteLLA: A Structured Grading System Using LLMs with RAG,” arXiv:2501.09092, 2025.

[18] S. A. Crossley, P. Baffour, L. Burleigh, and J. King, “A Large-Scale Corpus for Assessing Source-Based Writing Quality: ASAP 2.0,” Assessing Writing, vol. 65, p. 100954, 2025.

[19] S. Crossley, P. Baffour, J. King, L. Burleigh, W. Reade, and M. Demkin, “Learning Agency Lab – Automated Essay Scoring 2.0,” Kaggle Dataset, 2024.

[20] S. M. Lundberg and S.-I. Lee, “A Unified Approach to Interpreting Model Predictions,” in Advances in Neural Information Processing Systems (NeurIPS), pp. 4765–4774, 2017.

[21] J. Kansagra, C. Singhadiya, and G. Suryanarayana, “AI-Enhanced Evaluation: A Survey of Machine Learning Techniques for Assessing Long Answers,” in Digital Transformation and Sustainability of Business. Boca Raton, FL, USA: CRC Press, 2025.

[22] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,” arXiv:1810.04805, 2018.

[23] Y. Liu et al., “RoBERTa: A Robustly Optimized BERT Pretraining Approach,” arXiv:1907.11692, 2019.

[24] Z. Lan et al., “ALBERT: A Lite BERT for Self-Supervised Learning of Language Representations,” arXiv:1909.11942, 2019.

[25] H. W. Chung et al., “Scaling Instruction-Finetuned Language Models,” arXiv:2210.11416, 2022.

[26] C. Raffel et al., “Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer,” Journal of Machine Learning Research, vol. 21, no. 140, pp. 1–67, 2020.

[27] E. J. Hu et al., “LoRA: Low-Rank Adaptation of Large Language Models,” in Proc. International Conference on Learning Representations (ICLR), 2022.

[28] T. Dettmers, A. Pagnoni, A. Holtzman, and L. Zettlemoyer, “QLoRA: Efficient Finetuning of Quantized LLMs,” in Advances in Neural Information Processing Systems (NeurIPS), vol. 36, 2023.

[29] M. T. Ribeiro, S. Singh, and C. Guestrin, “Why Should I Trust You? Explaining the Predictions of Any Classifier,” in Proc. 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1135–1144, 2016.

[30] R. Segev, “Artificial Intelligence, Discrimination, Fairness, and Other Moral Concerns,” Minds and Machines, vol. 34, Art. no. 44, 2024, doi: 10.1007/s11023-024-09702-z.

[31] M. A. Hearst, “The Debate on Automated Essay Grading,” IEEE Intelligent Systems, vol. 15, no. 5, pp. 22–37, 2000.

[32] S. Verma, V. Boonsanong, M. Hoang, K. E. Hines, J. P. Dickerson, and C. Shah, “Counterfactual Explanations and Algorithmic Recourses for Machine Learning: A Review,” arXiv preprint arXiv:2010.10596, Oct. 2020, doi: 10.48550/arXiv.2010.10596.

[33] T. Cerratto Pargman, C. McGrath, and M. Milrad, “Towards Responsible AI in Education: Challenges and Implications for Research and Practice,” Computers and Education: Artificial Intelligence, vol. 9, Art. no. 100345, 2024, doi: 10.1016/j.caeai.2024.100345

Downloads

Published

2026-06-16

How to Cite

Towards Trustworthy Automated Essay Scoring: Explainable Transformers and Efficient Fine-Tuning Strategies. (2026). Pakistan Journal of Engineering, Technology and Science, 14(1), 11-22. https://doi.org/10.22555/pjets.v14i1.1565

Similar Articles

1-10 of 54

You may also start an advanced similarity search for this article.