mlsanityData to 7 Oct 2026

Software Vulnerability Prediction in Low-Resource Languages: An Empirical Study of CodeBERT and ChatGPT

arXiv 2404.17110 ↗First posted 26 Apr 2024cs.SE cs.CR cs.LGcited by 8

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

  1. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  2. 2021CVEfixes: Automated Collection of Vulnerabilities and Their Fixes from Open-Source Softwarecited by 89
  3. 2021Vulnerability Detection with Fine-grained Interpretationscited by 56
  4. 2020Deep Learning for Source Code Modeling and Generation: Models, Applications and Challengescited by 55
  5. 2023Prompt-Enhanced Software Vulnerability Detection Using ChatGPTcited by 51
  6. 2022An Empirical Study of Deep Learning Models for Vulnerability Detectioncited by 44
  7. 2023ChatGPT for Vulnerability Detection, Classification, and Repair: How Far Are We?cited by 44
  8. 2022LineVD: Statement-level Vulnerability Detection using Graph Neural Networkscited by 35
  9. 2023Evaluation of ChatGPT Model for Vulnerability Detectioncited by 33
  10. 2021A Survey on Data-driven Software Vulnerability Assessment and Prioritizationcited by 18
  11. 2021Automated Software Vulnerability Assessment with Concept Driftcited by 15
  12. 2020A Large-scale Study of Security Vulnerability Support on Developer Q&A Websitescited by 12
7 more
  1. 2020PUMiner: Mining Security Posts from Developer Question and Answer Websites with PU Learningcited by 10
  2. 2024Are Latent Vulnerabilities Hidden Gems for Software Vulnerability Prediction? An Empirical Studycited by 9
  3. 2021Automated Security Assessment for the Internet of Thingscited by 6
  4. 2022On the Use of Fine-grained Vulnerable Code Statements for Software Vulnerability Assessment Modelscited by 5
  5. 2023SoK: Machine Learning for Continuous Integrationcited by 4
  6. 2023Systematic Literature Review on Application of Machine Learning in Continuous Integrationcited by 2
  7. 2023Mitigating ML Model Decay in Continuous Integration with Data Drift Detection: An Empirical Studycited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 3; 2025: 3; 2026: 2.

8 papers.