Software Vulnerability Prediction in Low-Resource Languages: An Empirical Study of CodeBERT and ChatGPT
Not on the map. Why?
Abstract (arXiv)
Background: Software Vulnerability (SV) prediction in emerging languages is increasingly important to ensure software security in modern systems. However, these languages usually have limited SV data for developing high-performing prediction models. Aims: We conduct an empirical study to evaluate the impact of SV data scarcity in emerging languages on the state-of-the-art SV prediction model and investigate potential solutions to enhance the performance. Method: We train and test the state-of-the-art model based on CodeBERT with and without data sampling techniques for function-level and line-level SV prediction in three low-resource languages - Kotlin, Swift, and Rust. We also assess the effectiveness of ChatGPT for low-resource SV prediction given its recent success in other domains. Results: Compared to the original work in C/C++ with large data, CodeBERT's performance of function-level and line-level SV prediction significantly declines in low-resource languages, signifying the negative impact of data scarcity. Regarding remediation, data sampling techniques fail to improve CodeBERT; whereas, ChatGPT showcases promising results, substantially enhancing predictive performance by up to 34.4% for the function level and up to 53.5% for the line level. Conclusion: We have highlighted the challenge and made the first promising step for low-resource SV prediction, paving the way for future research in this direction.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 19 of its 35 references that are in the map. First posted on arXiv 26 Apr 2024.
Builds on
19 of 35 references.
References · 19
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Softwarecited by 89
- 2021Vulnerability Detection with Fine-grained Interpretationscited by 56
- 2020Deep Learning for Source Code Modeling and Generation: Models, Applications and Challengescited by 55
- 2023Prompt-Enhanced Software Vulnerability Detection Using ChatGPTcited by 51
- 2022An Empirical Study of Deep Learning Models for Vulnerability Detectioncited by 44
- 2023ChatGPT for Vulnerability Detection, Classification, and Repair: How Far Are We?cited by 44
- 2022LineVD: Statement-level Vulnerability Detection using Graph Neural Networkscited by 35
- 2023Evaluation of ChatGPT Model for Vulnerability Detectioncited by 33
- 2021A Survey on Data-driven Software Vulnerability Assessment and Prioritizationcited by 18
- 2021Automated Software Vulnerability Assessment with Concept Driftcited by 15
- 2020A Large-scale Study of Security Vulnerability Support on Developer Q&A Websitescited by 12
7 more
- 2020PUMiner: Mining Security Posts from Developer Question and Answer Websites with PU Learningcited by 10
- 2024Are Latent Vulnerabilities Hidden Gems for Software Vulnerability Prediction? An Empirical Studycited by 9
- 2021Automated Security Assessment for the Internet of Thingscited by 6
- 2022On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Modelscited by 5
- 2023SoK: Machine Learning for Continuous Integrationcited by 4
- 2023Systematic Literature Review on Application of Machine Learning in Continuous Integrationcited by 2
- 2023Mitigating ML Model Decay in Continuous Integration with Data Drift Detection: An Empirical Studycited by 1
Built on by
Citing papers per year: 2024: 3; 2025: 3; 2026: 2.
8 papers.
- 2025LLMSecConfig: An LLM-Based Approach for Fixing Software Container Misconfigurationscited by 9
- 2025A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Modelscited by 8
- 2024Mitigating Data Imbalance for Software Vulnerability Assessment: Does Data Augmentation Help?cited by 6
- 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++cited by 6
- 2024Automatic Data Labeling for Software Vulnerability Prediction Models: How Far Are We?cited by 6
- 2025Securing the AI Supply Chain: What Can We Learn From Developer-Reported Security Issues and Solutions of AI Projects?cited by 1
- 2026VulTriage: Triple-Path Context Augmentation for LLM-Based Vulnerability Detectioncited by 1
- 2026A systematic literature Review for Transformer-based Software Vulnerability detectioncited by 0
- 2026VulTriage: Triple-Path Context Augmentation for LLM-Based Vulnerability Detection10 May 2026
- 2026A systematic literature Review for Transformer-based Software Vulnerability detection27 Apr 2026
- 2025Securing the AI Supply Chain: What Can We Learn From Developer-Reported Security Issues and Solutions of AI Projects?29 Dec 2025
- 2025A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Models30 Jul 2025
- 2025LLMSecConfig: An LLM-Based Approach for Fixing Software Container Misconfigurations4 Feb 2025
- 2024Automatic Data Labeling for Software Vulnerability Prediction Models: How Far Are We?25 Jul 2024
- 2024Automated Code-centric Software Vulnerability Assessment: How Far Are We? An Empirical Study in C/C++24 Jul 2024
- 2024Mitigating Data Imbalance for Software Vulnerability Assessment: Does Data Augmentation Help?15 Jul 2024