Uppsats
Combining SetFit and LLMs for Explainable Security Bug Report Prediction
Master-uppsats
Blekinge Tekniska Högskola/Institutionen för programvaruteknik
Publicerad: 2026
Språk: Engelska
Nyckelord
klicka för att sökaSammanfattning
Security bug reports (SBRs) describe software defects with potential security implications and require timely identification during bug triage. However, SBR predictionis challenging because security-related reports are rare, imbalanced, and sometimes mislabeled as ordinary bug reports due to a lack of security domain knowledge. While automated baseline classifiers like SetFit can efficiently address few-shot text classification, their black-box nature hinders real-world adoption by practitioners who require transparent interpretations to trust automated triage outcomes. This thesis investigates an explainable SBR prediction pipeline that combines SetFit-based classification, post-hoc feature attribution (LIME and SHAP), and LLM-assisted explanation generation. The quantitative empirical evaluation across four stratified open-source project datasets – Ambari, Camel, Derby, and Wicket – incorporates cross-fold standard deviations to directly capture model predictive stability. The technical faithfulness results demonstrate that LIME provides more faithful explanations than SHAP for fine-tuned sentence encoders. To bridge the interpretability gap of raw keyword-weight representations, a constrained deepseekv4-flash model was implemented as a narrative generator. Backed by an automated semantic audit framework, the pipeline converted technical evidence into natural summaries, achieving an empirical pass rate of 98.46% in preventing out-of-domain factual hallucinations. Expert evaluation confirms that the audited LLM-generated narratives enhance the practical usefulness and perceived trust of AI decisions for software engineers. This research contributes a validated framework for turning automated classification predictions into reliable explanations.
Information
- Författare
- Pan, Hao
- Lärosäte / institution
- Blekinge Tekniska Högskola/Institutionen för programvaruteknik
- Publiceringsdatum
- 2026
- Uppsatstyp
- Master-uppsats
- Språk
- Engelska
Utforska vidare
Liknande uppsatser
Uppsatser med liknande ämnen och nyckelord.
Master-uppsats, Högskolan i Skövde/Institutionen för informationsteknologi
Akyol, Elias Yasar
Publicerad: 2026
Master-uppsats, Umeå universitet/Institutionen för informatik
Alaniemi, Peter, Bergman, Elias
Publicerad: 2025
Master-uppsats, Linköpings universitet/Informationssystem och digitalisering
Fatrous, Alain, Scherling, William
Publicerad: 2025
Master-uppsats, Umeå universitet/Institutionen för informatik
Axelsson, Victoria, Wettersten, Linn
Publicerad: 2024
Kandidat-uppsats, Lunds universitet/Nationalekonomiska institutionen
Rosenbacke, Victor
Publicerad: 2026
Kandidat-uppsats, Linnéuniversitetet/Institutionen för management (MAN)
Nord, Johannes, Rehn, Lukas, Petrisi, Philip
Publicerad: 2026