Evaluating GPT-2-Based Keyword Generation for Scientific Abstracts Using Jaccard and Cosine Similarity

Authors

  • Suyono Computer Science, Potensi Utama University, Medan, Indonesia
  • Roslina Computer Science, State Polytechnic of Medan, Medan, Indonesia
  • Rika Rosnelly Computer Science, Potensi Utama University, Medan, Indonesia

DOI:

https://doi.org/10.15408/jti.v18i1.54838

Keywords:

Keyword Generation, GPT-2, Named Entity Recognition, TF-IDF, Cosine Similarity, Jaccard Similarity

Abstract

Author-assigned keywords play an important role in the indexing, discovery, and visibility of scientific articles, yet they often do not fully represent the content of the abstract. This research evaluates a keyword generation pipeline that combines Generative Pre-trained Transformer 2 (GPT-2) with Named Entity Recognition (NER) and Term Frequency–Inverse Document Frequency (TF-IDF) weighting to generate keywords from scientific abstracts. The pipeline was applied to a random sample of 5,667 IEEE Xplore abstracts. The generated keywords and the original author keywords were pre-processed (cleaning, casefolding, normalization, tokenization, stopword removal, and stemming) and compared using Jaccard Similarity on keyword token sets and Cosine Similarity on TF-IDF vectors. A keyword pair was classified as matched when its similarity reached a threshold of 0.1, selected through a sensitivity analysis. At this threshold, 41.50% of keyword pairs were matched under Cosine Similarity, compared with 32.87% under Jaccard Similarity, showing that the vector-based measure is more tolerant of partial overlap than exact token matching. Most pairs, however, had low similarity scores, which is consistent with the fact that a substantial share of author keywords does not appear in the abstract itself. These findings indicate that GPT-2-based keyword generation can partly reproduce author keywords and that the choice of similarity metric strongly affects the evaluation outcome, while comparison with established keyword extractors remains necessary.

References

[1] Singh, R. and Singh, S. (2021) ‘Text Similarity Measures in News Articles by Vector Space Model Using NLP’, Journal of The Institution of Engineers (India): Series B, 102(2), pp. 329–338. Available at: https://doi.org/10.1007/s40031-020-00501-5.

[2] Khurana, D. et al. (2023) ‘Natural language processing: state of the art, current trends and challenges’, Multimedia Tools and Applications, 82(3), pp. 3713–3744. Available at: https://doi.org/10.1007/s11042-022-13428-4.

[3] Montejo-Ráez, A. and Jiménez-Zafra, S.M. (2022) ‘Current Approaches and Applications in Natural Language Processing’, Applied Sciences, 12(10), p. 4859. Available at: https://doi.org/10.3390/app12104859.

[4] Galletti, M. et al. (2025) ‘Are Your Keywords Like My Queries? A Corpus-Wide Evaluation of Keyword Extractors with Real Searches’, Proceedings - International Conference on Computational Linguistics, COLING, Part F2064, pp. 1943–1951.

[5] Lu, W., Liu, Z., Huang, Y., Bu, Y., Li, X. and Cheng, Q. (2020) ‘How do authors select keywords? A preliminary study of author keyword selection behavior’, Journal of Informetrics, 14(4), p. 101066. Available at: https://doi.org/10.1016/j.joi.2020.101066.

[6] Singh, V.K. et al. (2021) The journal coverage of Web of Science, Scopus and Dimensions: A comparative analysis, Scientometrics. Springer International Publishing. Available at: https://doi.org/10.1007/s11192-021-03948-5.

[7] Qian, Y., Jia, C. and Liu, Y. (2021) ‘Bert-Based Text Keyword Extraction’, Journal of Physics: Conference Series, 1992(4). Available at: https://doi.org/10.1088/1742-6596/1992/4/042077.

[8] Nadim, M., Akopian, D. and Matamoros, A. (2023) ‘A Comparative Assessment of Unsupervised Keyword Extraction Tools’, IEEE Access, 11, pp. 144778–144798. Available at: https://doi.org/10.1109/ACCESS.2023.3344032.

[9] Sufi, F. (2024) ‘Generative Pre-Trained Transformer (GPT) in Research: A Systematic Review on Data Augmentation’, Information, 15(2), p. 99. Available at: https://doi.org/10.3390/info15020099.

[10] Yenduri, G. et al. (2024) ‘GPT (Generative Pre-Trained Transformer)— A Comprehensive Review on Enabling Technologies, Potential Applications, Emerging Challenges, and Future Directions’, IEEE Access, 12(March), pp. 54608–54649. Available at: https://doi.org/10.1109/ACCESS.2024.3389497.

[11] Fröhling, L. and Zubiaga, A. (2021) ‘Feature-based detection of automated language models: Tackling GPT-2, GPT-3 and Grover’, PeerJ Computer Science, 7, pp. 1–23. Available at: https://doi.org/10.7717/PEERJ-CS.443.

[12] Kumar, A., Sharma, R. and Bedi, P. (2024) ‘Towards Optimal NLP Solutions: Analyzing GPT and LLaMA-2 Models Across Model Scale, Dataset Size, and Task Diversity’, Engineering, Technology and Applied Science Research, 14(3), pp. 14219–14224. Available at: https://doi.org/10.48084/etasr.7200.

[13] Milani Fitria, K. (2023) ‘Information Retrieval Performance in Text Generation using Knowledge from Generative Pre-trained Transformer (GPT-3)’, Jambura Journal of Mathematics, 5(2), pp. 327–338. Available at: https://doi.org/10.34312/jjom.v5i2.20574.

[14] Akuma, S., Lubem, T. and Adom, I.T. (2022) ‘Comparing Bag of Words and TF-IDF with different models for hate speech detection from live tweets’, International Journal of Information Technology (Singapore), 14(7), pp. 3629–3635. Available at: https://doi.org/10.1007/s41870-022-01096-4.

[15] Egger, R. (2022) ‘Text Representations and Word Embeddings: Vectorizing Textual Data’, Tourism on the Verge, Part F1051(January 2022), pp. 335–361. Available at: https://doi.org/10.1007/978-3-030-88389-8_16.

[16] Mishra, P. et al. (2021) ‘Automatic Title Generation for Text with Pre-trained Transformer Language Model’, in 2021 IEEE 15th International Conference on Semantic Computing (ICSC). IEEE, pp. 17–24. Available at: https://doi.org/10.1109/ICSC50631.2021.00009.

[17] Perez-Castro, A., Martínez-Torres, M.R. and Toral, S.L. (2023) ‘Efficiency of automatic text generators for online review content generation’, Technological Forecasting and Social Change, 189(January 2022), p. 122380. Available at: https://doi.org/10.1016/j.techfore.2023.122380.

[18] Siino, M., Tinnirello, I. and La Cascia, M. (2024) ‘Is text preprocessing still worth the time? A comparative survey on the influence of popular preprocessing methods on Transformers and traditional classifiers’, Information Systems, 121, p. 102342. Available at: https://doi.org/10.1016/j.is.2023.102342.

[19] Chai, C.P. (2023) ‘Comparison of text preprocessing methods’, Natural Language Engineering, 29(3), pp. 509–553. Available at: https://doi.org/10.1017/S1351324922000213.

[20] Prasetyo, V.R., Erlangga, G. and Prima, D.A. (2023) ‘Analisis Sentimen untuk Identifikasi Bantuan Korban Bencana Alam berdasarkan Data di Twitter Menggunakan Metode K-Means dan Naive Bayes’, Jurnal Teknologi Informasi dan Ilmu Komputer, 10(5), pp. 1055–1062. Available at: https://doi.org/10.25126/jtiik.20231057077.

[21] Hassan, S.U., Ahamed, J. and Ahmad, K. (2022) ‘Analytics of machine learning-based algorithms for text classification’, Sustainable Operations and Computers, 3(February), pp. 238–248. Available at: https://doi.org/10.1016/j.susoc.2022.03.001.

[22] Tarigan, D.A., Situmorang, Z. and Rosnelly, R. (2025) ‘Analisis Sentimen Aplikasi Playstore Sirekap 2024 Pasca Pilpres dengan Perbandingan Metode Support Vector Machine (SVM), Naïve Bayes Classifier dan Random Forest’, Jurnal Teknologi Informasi dan Ilmu Komputer, 12(3), pp. 661–670.

[23] Sagheb, E. et al. (2021) ‘Use of Natural Language Processing Algorithms to Identify Common Data Elements in Operative Notes for Knee Arthroplasty’, Journal of Arthroplasty, 36(3), pp. 922–926. Available at: https://doi.org/10.1016/j.arth.2020.09.029.

Downloads

Published

2025-04-30

How to Cite

Evaluating GPT-2-Based Keyword Generation for Scientific Abstracts Using Jaccard and Cosine Similarity. (2025). JURNAL TEKNIK INFORMATIKA, 18(1), 173-184. https://doi.org/10.15408/jti.v18i1.54838