KG-Commit: A Dynamic Knowledge Graph for Online Just-in-Time Software Defect Prediction

📅 2026-09-05
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
KG-Commit通过动态知识图谱结合项目上下文,使用AST-delta机制和轻量级图推理,有效解决了在线即时软件缺陷预测中的低延迟问题。
📝 Abstract
Just-in-time software defect prediction (JIT-SDP) aims to identify risky commits as they arrive and provide developers with timely feedback. This need for low latency has led most approaches to rely on commit-level information and overlook the broader project context in which a change occurs. Incorporating this context is challenging because it requires both efficient retrieval for incoming commits and continual maintenance as the repository evolves. We introduce KG-Commit, a dynamic knowledge graph that incrementally maintains repository history, within-file code structure, and commit semantics as the project evolves. It also uses an AST-delta mechanism to track structural changes between file edits and relies on lightweight graph inference running entirely on CPU. Our evaluation on 11 Apache software projects against six baselines shows that KG-Commit achieves the highest aggregate Macro-F1 (0.704), G-Mean (0.706), and AUC (0.809) using our selected inference pipeline. Under a realistic online protocol, it outperforms LR, HGB, RF, and DeepJIT on all 11 projects, LApredict on 10, and JITLine on 9 projects in Macro-F1, with the aggregate paired difference significant in every case. KG-Commit processes each commit in approximately 1.33~s, with a cost that remains stable as the graph grows and is compatible with commit rates observed in real-world projects. These findings show that rich project context can be efficiently maintained and exploited for online JIT-SDP.
Problem

Research questions and friction points this paper is trying to address.

Just-in-time software defect prediction
commit-level information
project context
efficient retrieval
continual maintenance
Innovation

Methods, ideas, or system contributions that make the work stand out.

dynamic knowledge graph
incremental maintenance
AST-delta mechanism
lightweight graph inference
online JIT-SDP
🔎 Similar Papers
No similar papers found.
M
Mohsen Hesamolhokama
Department of Computer Engineering, Sharif University of Technology, Tehran, Iran
M
Mohammad Sina Beyrami Aghbash
Department of Computer Engineering, Sharif University of Technology, Tehran, Iran
B
Behnam Rohani
Department of Mathematical Sciences, Sharif University of Technology, Tehran, Iran
M
Mohammadamin Fazli
Department of Computer Engineering, Sharif University of Technology, Tehran, Iran
Jafar Habibi
Jafar Habibi
Professor, Department of Computer Engineering, Sharif University of Technology
Enterprise ArchitectureSoftware EngineeringSoftware ArchitectureSimulation and Performance