SRE-IDF: A Square Root Exponential Inverse Document Frequency Weighting Scheme for Automated Short Answer Grading
Abstract
1. Introduction
- A novel Square-Root Exponential Inverse Document Frequency (SRE-IDF) weighting function is proposed for automated short-answer grading.
- A mathematical analysis was presented to prove that the proposed SRE-IDF weighting function is bounded within the interval range between e−1 and 1. This ensures numerical stability without the need for additional parameters.
- The performance of the SRE-IDF method was experimentally evaluated against the Traditional IDF, Smoothed IDF, and BM25 across three different datasets.
- Compared the computational complexity of the SRE-IDF with that of the popular intelligent model Frozen SBERT.
- The SRE-IDF was integrated directly into existing TF-IDF-based grading systems without any major modifications to the overall framework.
2. Related Work
3. Proposed Method
| Algorithm 1: SRE-IDF Grading Pipeline |
| Input: Model answer d0, student answers {d1, d2,…, d_M} Output: Similarity scores {s1, s2,…, s_M}
Compute w(t) = exp(−√(df(t)/N))
where vi[t] = tf(t, di) × w(t)
|
4. Experimental Setup
4.1. Datasets and Preprocessing
4.2. Baseline Methods
4.3. Evaluation Metrics
Similarity-to-Score Mapping
| Algorithm 2: Similarity-to-Score Mapping |
| Input: Similarity scores {s1, s2,…, sM}, dataset type D Output: Predicted grades or class labels {ŷ1, ŷ2,…, ŷM} 1. Constructing target values: If D = SciEntsBank: Construct numeric targets yi from category labels according to the evaluation setting (Strict or Lenient):
Use yi directly from the dataset’s continuous human scores. 2. Collect (si, yi) pairs across all questions in D according to the following partitioning rule:
4. Compute calibrated predictions: pi = f(si) for all similarity scores in the evaluation set (for ASAG2024, this is the held-out test partition; for Mohler and SciEntsBank, this is the full pooled set collected in step 2) 5. If D ∈ {Mohler, SciEntsBank}: Clip predictions into the valid interval [0, 1]: pi ← clip(pi, 0, 1) (No clipping applied for ASAG2024.) 6. If D ∈ {Mohler, ASAG2024}: a. Use continuous predictions pi, computed on the held-out test partition for ASAG2024 (or the full pooled set for Mohler), directly for Pearson’s correlation (Mohler) or RMSE (ASAG2024). b. Rescale pi to the original grading scale, rounding pi and yi to the nearest valid integer grade. c. Compute Quadratic Weighted Kappa (QWK). 7. If D = SciEntsBank: a. Convert pi into binary labels using fixed threshold τ = 0.5: ŷi = 1 if pi ≥ 0.5, else ŷi = 0 b. The Macro-F1 score and Cohen’s kappa were computed. 8. Return the predicted grades or labels {ŷ1, …, ŷM}. |
5. Results
5.1. Results on the Mohler Dataset
5.2. Results on the SciEntsBank Dataset
5.3. Results on the ASAG2024 Dataset
5.4. Comparison with a Frozen Semantic Baseline
6. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Lai, P.; Zhang, K.; Lin, Y.; Zhang, L.; Ye, F.; Yan, J.; Xu, Y.; He, C.; Zhang, W.; Wang, Y.; et al. SAS-bench: A fine-grained benchmark for evaluating short answer scoring with large language models. Neural Netw. 2026, 203, 2026. [Google Scholar] [CrossRef]
- Filighera, A.; Steuer, T.; Rensing, C. Fooling automatic short answer grading systems. In Artificial Intelligence in Education; Bittencourt, I.I., Cukurova, M., Muldner, K., Luckin, R., Millán, E., Eds.; Springer: Cham, Switzerland, 2020; pp. 177–190. [Google Scholar]
- Navarro, L.C.; Mucciaccia, S.S.; Mutz, F.; De Souza, A.F.; Oliveira-Santos, T. Exploring question answering: Metric analysis and evaluation framework for enhanced interpretability. Neural Comput. Appl. 2026, 38, 303. [Google Scholar] [CrossRef]
- Kanimozhi, S.; Selvamani, K.; Dhaygude, A.D.; Talasila, V. OptBerConvoNet: A framework based on BERT and optimized deep convolutional neural network for multilingual question answering. Knowl. Inf. Syst. 2026, 68, 164. [Google Scholar] [CrossRef]
- Lakshmi, P.S.; Simha, J.B.; Ranjan, R. IntelliGrader: A framework for automatic short answer grading, inconsistency check and feedback in educational context—Conception, implementation and evaluation. Karbala Int. J. Mod. Sci. 2024, 10, 449–461. [Google Scholar] [CrossRef]
- Su, Z.; Shen, J.; Zhou, Q.; Yong, B. Deep-learning-empowered detection of large-language-model-based generative content in educational tasks. IEEE Trans. Learn. Technol. 2025, 18, 1036–1047. [Google Scholar] [CrossRef]
- Robertson, S.E.; Zaragoza, H. The probabilistic relevance framework: BM25 and beyond. Found. Trends Inf. Retr. 2009, 3, 333–389. [Google Scholar] [CrossRef]
- Kadhim, A.I. Term weighting for feature extraction on Twitter: A comparison between BM25 and TF-IDF. In Proceedings of the 2019 International Conference on Advanced Science and Engineering (ICOASE), Zakho–Duhok, Iraq, 2–4 April 2019; pp. 124–128. [Google Scholar] [CrossRef]
- Leacock, C.; Chodorow, M. C-rater: Automated scoring of short-answer questions. Comput. Humanit. 2003, 37, 389–405. [Google Scholar] [CrossRef]
- Gomaa, W.H.; Fahmy, A.A. A survey of text similarity approaches. Int. J. Comput. Appl. 2013, 68, 13–18. [Google Scholar] [CrossRef]
- Tulu, C.N.; Ozkaya, O.; Orhan, U. Automatic short answer grading with SemSpace sense vectors and MaLSTM. IEEE Access 2021, 9, 19270–19280. [Google Scholar] [CrossRef]
- Mohler, M.; Mihalcea, R. Text-to-text semantic similarity for automatic short answer grading. In Proceedings of the 12th Conference of the European Chapter of the Association for Computational Linguistics (EACL), Athens, Greece, 30 March–3 April 2009; pp. 567–575. [Google Scholar]
- Mohler, M.; Bunescu, R.; Mihalcea, R. Learning to grade short answer questions using semantic similarity measures and dependency graph alignments. In Proceedings of the 49th Annual Meeting of the Association for Computational Linguistics (ACL), Portland, OR, USA, 19–24 June 2011; pp. 752–762. [Google Scholar]
- Robertson, S.E.; Walker, S.; Jones, S.; Hancock-Beaulieu, M.; Gatford, M. Okapi at TREC-3. In Proceedings of the Third Text Retrieval Conference (TREC-3), Gaithersburg, MD, USA, 2–4 November 1994; NIST Special Publication 500-225. pp. 109–126. [Google Scholar]
- Kadhim, A.I. Survey on supervised machine learning techniques for automatic text classification. Artif. Intell. Rev. 2019, 52, 273–292. [Google Scholar] [CrossRef]
- Kaya, M.; Cicekli, I. A hybrid approach for automated short answer grading. IEEE Access 2024, 12, 96332–96341. [Google Scholar] [CrossRef]
- del Gobbo, E.; Guarino, A.; Cafarelli, B.; Grilli, L. GradeAid: A framework for automatic short answers grading in educational contexts. Knowl. Inf. Syst. 2023, 65, 4295–4334. [Google Scholar] [CrossRef] [PubMed]
- Julius, O.; Verkijika, S.F.; Obagbuwa, I.C. Hybrid semantic–syntactic NLP framework for intelligent grading of short answers and cloze questions. Appl. Sci. 2026, 16, 3191. [Google Scholar] [CrossRef]
- Doi, K.; Sudoh, K.; Nakamura, S. Automated essay scoring using grammatical variety and errors with multi-task learning and item response theory. arXiv 2024, arXiv:2406.08817. [Google Scholar]
- Sahu, A.; Bhowmick, P.K. Feature engineering and ensemble-based approach for improving automatic short-answer grading performance. IEEE Trans. Learn. Technol. 2020, 13, 77–90. [Google Scholar] [CrossRef]
- Divya, A.; Haridas, V.; Narayanan, J. Automation of short answer grading techniques. In Proceedings of the 2023 Fifth International Conference on Electrical, Computer and Communication Technologies (ICECCT), Erode, India, 22–24 February 2023; pp. 1–6. [Google Scholar]
- Aggarwal, D.; Bhattacharyya, P.; Raman, B. ‘I understand why I got this grade’: Automatic short answer grading with feedback. arXiv 2024, arXiv:2407.12818. [Google Scholar]
- Lakshmi, P.S.; Simha, J.B.; Ranjan, R. Empowering educators: Automated short answer grading with inconsistency check and feedback integration using machine learning. SN Comput. Sci. 2024, 5, 653. [Google Scholar] [CrossRef]
- Mikolov, T.; Sutskever, I.; Chen, K.; Corrado, G.; Dean, J. Distributed representations of words and phrases and their compositionality. In Proceedings of the 26th International Conference on Neural Information Processing Systems (NeurIPS), Lake Tahoe, NV, USA, 5–8 December 2013; Volume 2, pp. 3111–3119. [Google Scholar]
- Pennington, J.; Socher, R.; Manning, C.D. GloVe: Global vectors for word representation. In Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), Doha, Qatar, 25–29 October 2014; pp. 1532–1543. [Google Scholar] [CrossRef]
- Devlin, J.; Chang, M.-W.; Lee, K.; Toutanova, K. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT), Minneapolis, MN, USA, 2–7 June 2019; pp. 4171–4186. [Google Scholar] [CrossRef]
- Reimers, N.; Gurevych, I. Sentence-BERT: Sentence embeddings using siamese BERT-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing (EMNLP), Hong Kong, China, 3–7 November 2019; pp. 3982–3992. [Google Scholar] [CrossRef]
- Akhilesh, P.; Krishna, A.K.; Bharadwaj, S.K.; Venugopalan, M. Automated short answer grading with word embedding-based semantic similarity using PySpark. In Proceedings of the 2024 IEEE Recent Advances in Intelligent Computational Systems (RAICS), Kothamangalam, Kerala, India, 16–18 May 2024; pp. 1–6. [Google Scholar] [CrossRef]
- Condor, A.; Litster, M.; Pardos, Z.A. Automatic short answer grading with SBERT on out-of-sample questions. In Proceedings of the 14th International Conference on Educational Data Mining (EDM), Paris, France, 29 June–2 July 2021. [Google Scholar]
- Jones, K.S. A statistical interpretation of term specificity and its application in retrieval. J. Doc. 1972, 28, 11–21. [Google Scholar] [CrossRef]
- Paik, J.H. A novel TF-IDF weighting scheme for effective ranking. In Proceedings of the 36th International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR), Dublin, Ireland, 28 July–1 August 2013; pp. 343–352. [Google Scholar] [CrossRef]
- Raj, S.; Pandian, J.A. SRE-IDF; Zenodo: Geneva, Switzerland, 2026. [Google Scholar] [CrossRef]









| Comparison | Mean Difference | 95% CI | t-Statistic | p-Value | Cohen’s d |
|---|---|---|---|---|---|
| SRE-IDF vs. Traditional | 0.0147 | [0.0106, 0.0188] | 7.1022 | <0.001 | 0.2830 |
| SRE-IDF vs. Smoothed | 0.0050 | [0.0034, 0.0067] | 6.0194 | <0.001 | 0.2398 |
| SRE-IDF vs. BM25 | 0.0150 | [0.0109, 0.0191] | 7.2021 | <0.001 | 0.2869 |
| Comparison | Mean Difference | 95% CI | t-Statistic | p-Value | Cohen’s d |
|---|---|---|---|---|---|
| SRE-IDF vs. Traditional | 0.0083 | [0.0060, 0.0106] | 7.0773 | <0.001 | 0.1004 |
| SRE-IDF vs. Smoothed | −0.0010 | [−0.0020, 0.0001] | −1.8263 | 0.0678 | −0.0259 |
| SRE-IDF vs. BM25 | 0.0085 | [0.0062, 0.0108] | 7.1712 | <0.001 | 0.1017 |
| Comparison | Mean Difference | 95% CI | t-Statistic | p-Value | Cohen’s d |
|---|---|---|---|---|---|
| SRE-IDF vs. Traditional | 0.0043 | [0.0021, 0.0065] | 3.7946 | <0.001 | 0.0538 |
| SRE-IDF vs. Smoothed | −0.0005 | [−0.0015, 0.0005] | −0.9806 | 0.3268 | −0.0139 |
| SRE-IDF vs. BM25 | 0.0043 | [0.0020, 0.0065] | 3.7264 | <0.001 | 0.0529 |
| Comparison | Mean Difference | 95% CI | t-Statistic | p-Value | Cohen’s d |
|---|---|---|---|---|---|
| SRE-IDF vs. Traditional | 0.0165 | [0.0127, 0.0203] | 8.4553 | <0.001 | 0.2000 |
| SRE-IDF vs. Smoothed | −0.0017 | [−0.0033, −0.0001] | −2.0448 | 0.0410 | −0.0484 |
| SRE-IDF vs. BM25 | 0.0147 | [0.0110, 0.0184] | 7.7755 | <0.001 | 0.1839 |
| Method | Pearson Correlation | QWK | Accuracy | Inference Time/Pair (ms) | Pipeline Time/Question (ms) | Memory Used (MB) |
|---|---|---|---|---|---|---|
| SRE-IDF | 0.4592 | 0.2833 | 0.4016 | 0.0367 ± 0.0029 | 1.1001 ± 0.0868 | 1.25 ± 0.20 |
| Frozen SBERT | 0.4749 | 0.3593 | 0.4190 | 19.4133 ± 2.1984 | 582.3991 ± 65.9520 | 111.51 ± 29.47 |
| Method | Macro F1 | Cohen’s Kappa | Accuracy | Inference Time/Pair (ms) | Pipeline Time/Question (ms) | Memory Used (MB) |
|---|---|---|---|---|---|---|
| SRE-IDF | 0.5917 | 0.2106 | 0.6460 | 0.0551 ± 0.0039 | 2.0297 ± 0.1436 | 2.29 ± 0.44 |
| Frozen SBERT | 0.6059 | 0.2222 | 0.6418 | 6.7832 ± 0.7026 | 249.6711 ± 25.8624 | 72.98 ± 28.39 |
| Method | Macro F1 | Cohen’s Kappa | Accuracy | Inference Time/Pair (ms) | Pipeline Time/Question (ms) | Memory Used (MB) |
|---|---|---|---|---|---|---|
| SRE-IDF | 0.6136 | 0.2403 | 0.6311 | 0.0551 ± 0.0039 | 2.0297 ± 0.1436 | 2.29 ± 0.44 |
| Frozen SBERT | 0.6424 | 0.2885 | 0.6687 | 6.7832 ± 0.7026 | 249.6711 ± 25.8624 | 72.98 ± 28.39 |
| Method | QWK | RMSE | Accuracy | Inference Time/Pair (ms) | Pipeline Time/Question (ms) | Memory Used (MB) |
|---|---|---|---|---|---|---|
| SRE-IDF | 0.2556 | 0.3521 | 0.1822 | 0.1460 ± 0.0348 | 5.7035 ± 1.3605 | 0.59 ± 1.18 |
| Frozen SBERT | 0.3145 | 0.3391 | 0.1831 | 30.4240 ± 0.3787 | 1188.6640 ± 14.7958 | 153.41 ± 0.34 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Raj, S.; Pandian J, A. SRE-IDF: A Square Root Exponential Inverse Document Frequency Weighting Scheme for Automated Short Answer Grading. Information 2026, 17, 733. https://doi.org/10.3390/info17080733
Raj S, Pandian J A. SRE-IDF: A Square Root Exponential Inverse Document Frequency Weighting Scheme for Automated Short Answer Grading. Information. 2026; 17(8):733. https://doi.org/10.3390/info17080733
Chicago/Turabian StyleRaj, Shahil, and Arun Pandian J. 2026. "SRE-IDF: A Square Root Exponential Inverse Document Frequency Weighting Scheme for Automated Short Answer Grading" Information 17, no. 8: 733. https://doi.org/10.3390/info17080733
APA StyleRaj, S., & Pandian J, A. (2026). SRE-IDF: A Square Root Exponential Inverse Document Frequency Weighting Scheme for Automated Short Answer Grading. Information, 17(8), 733. https://doi.org/10.3390/info17080733
