A Hybrid Feature Fusion Framework for Just-in-Time Software Defect Prediction using LLM Reasoning and CodeBERT Embeddings

Abstract Just-in-Time (JIT) software defect prediction tries to flag risky commits the moment they are committed, before they can cause problems in a codebase. Most existing approaches rely on simple change metrics, such as how many lines were added or how experienced the developer is, but these numbers say very little about what a change actually does. This paper presents a hybrid framework that looks at a commit from three angles at once: traditional change metrics, a semantic understanding of the code from CodeBERT, and structured reasoning about intent and risk generated by a large language model. We built a multi-language dataset of nearly 60,000 commits from 19 open-source Java, Python, and C/C++ projects, and tested several ways of combining these three sources of information using standard machine learning classifiers. Combining traditional metrics with CodeBERT's code understanding consistently gave the strongest results, clearly outperforming any single source used alone. Adding the LLM-based reasoning on top of that combination did not meaningfully improve things further, though it was genuinely useful when paired with either of the other two sources on its own. Overall, our results suggest that combining structural and semantic information is a practical way to catch defects early, while a third, coarser reasoning layer adds little once the first two are already working together.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-02
DOI
https://doi.org/10.21203/rs.3.rs-11300160/v1
Primary Topic
Software Engineering Research
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

A Hybrid Feature Fusion Framework for Just-in-Time Software Defect Prediction using LLM Reasoning and CodeBERT Embeddings

K. Panimozhi, Pratham K P, Pratheeksha Pai, Sachin Kumar E
3 links
Research Square
Software Engineering Research
preprint

A Hybrid Feature Fusion Framework for Just-in-Time Software Defect Prediction using LLM Reasoning and CodeBERT Embeddings

K. Panimozhi, Pratham K P, Pratheeksha Pai, Sachin Kumar E
preprint en

Abstract

Abstract Just-in-Time (JIT) software defect prediction tries to flag risky commits the moment they are committed, before they can cause problems in a codebase. Most existing approaches rely on simple change metrics, such as how many lines were added or how experienced the developer is, but these numbers say very little about what a change actually does. This paper presents a hybrid framework that looks at a commit from three angles at once: traditional change metrics, a semantic understanding of the code from CodeBERT, and structured reasoning about intent and risk generated by a large language model. We built a multi-language dataset of nearly 60,000 commits from 19 open-source Java, Python, and C/C++ projects, and tested several ways of combining these three sources of information using standard machine learning classifiers. Combining traditional metrics with CodeBERT's code understanding consistently gave the strongest results, clearly outperforming any single source used alone. Adding the LLM-based reasoning on top of that combination did not meaningfully improve things further, though it was genuinely useful when paired with either of the other two sources on its own. Overall, our results suggest that combining structural and semantic information is a practical way to catch defects early, while a third, coarser reasoning layer adds little once the first two are already working together.

Research Square
B.M.S. College of Engineering (IN)
Software Engineering Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon
A Hybrid Feature Fusion Framework for Just-in-Time Software Defect Prediction using LLM Reasoning and CodeBERT Embeddings — K. Panimozhi, Pratham K P, et al. · Research Square (2026) | TGRS Research Map | TGRS