Few-shot learning for security bug report identification
By: Muhammad Laiq
Potential Business Impact:
Finds computer security problems with little data.
Security bug reports require prompt identification to minimize the window of vulnerability in software systems. Traditional machine learning (ML) techniques for classifying bug reports to identify security bug reports rely heavily on large amounts of labeled data. However, datasets for security bug reports are often scarce in practice, leading to poor model performance and limited applicability in real-world settings. In this study, we propose a few-shot learning-based technique to effectively identify security bug reports using limited labeled data. We employ SetFit, a state-of-the-art few-shot learning framework that combines sentence transformers with contrastive learning and parameter-efficient fine-tuning. The model is trained on a small labeled dataset of bug reports and is evaluated on its ability to classify these reports as either security-related or non-security-related. Our approach achieves an AUC of 0.865, at best, outperforming traditional ML techniques (baselines) for all of the evaluated datasets. This highlights the potential of SetFit to effectively identify security bug reports. SetFit-based few-shot learning offers a promising alternative to traditional ML techniques to identify security bug reports. The approach enables efficient model development with minimal annotation effort, making it highly suitable for scenarios where labeled data is scarce.
Similar Papers
On Selecting Few-Shot Examples for LLM-based Code Vulnerability Detection
Software Engineering
Helps computers find mistakes in code better.
An Empirical Study on the Classification of Bug Reports with Machine Learning
Software Engineering
Helps computers sort out real software problems faster.
A Comprehensive Survey of Challenges and Opportunities of Few-Shot Learning Across Multiple Domains
Machine Learning (CS)
Teaches computers with little data.