[Paper Review] The Impact of Automated Parameter Optimization on Defect Prediction Models
This study investigates automated parameter optimization in software defect prediction models using 18 datasets and 26 classification techniques. It demonstrates that optimization boosts AUC performance by up to 40 percentage points, enhances model stability, shifts variable importance rankings significantly, and enables transferable optimal settings across datasets—particularly benefiting less commonly used classifiers like C5.0 and neural networks.
Defect prediction models---classifiers that identify defect-prone software modules---have configurable parameters that control their characteristics (e.g., the number of trees in a random forest). Recent studies show that these classifiers underperform when default settings are used. In this paper, we study the impact of automated parameter optimization on defect prediction models. Through a case study of 18 datasets, we find that automated parameter optimization: (1) improves AUC performance by up to 40 percentage points; (2) yields classifiers that are at least as stable as those trained using default settings; (3) substantially shifts the importance ranking of variables, with as few as 28% of the top-ranked variables in optimized classifiers also being top-ranked in non-optimized classifiers; (4) yields optimized settings for 17 of the 20 most sensitive parameters that transfer among datasets without a statistically significant drop in performance; and (5) adds less than 30 minutes of additional computation to 12 of the 26 studied classification techniques. While widely-used classification techniques like random forest and support vector machines are not optimization-sensitive, traditionally overlooked techniques like C5.0 and neural networks can actually outperform widely-used techniques after optimization is applied. This highlights the importance of exploring the parameter space when using parameter-sensitive classification techniques.
Motivation & Objective
- To evaluate the impact of automated parameter optimization on defect prediction model performance across diverse datasets.
- To assess whether optimized parameters improve model stability, interpretability, and transferability across software systems.
- To compare the computational cost and effectiveness of four optimization techniques: grid search, random search, genetic algorithm, and differential evolution.
- To determine whether traditionally overlooked classifiers (e.g., C5.0, neural networks) can outperform widely used ones (e.g., random forest, SVM) when properly tuned.
- To investigate whether optimal parameter settings from one dataset can be transferred to others without significant performance loss.
Proposed method
- Applied four automated parameter optimization techniques—grid search, random search, genetic algorithm, and differential evolution—across 26 classification algorithms.
- Evaluated performance using 12 metrics: 3 threshold-independent (e.g., AUC) and 9 threshold-dependent (e.g., precision, recall).
- Conducted a case study on 18 real-world software datasets from open-source and proprietary systems, including Eclipse, Mylyn, Xalan, and Apache Commons.
- Used 10-fold cross-validation to measure performance stability and ensure robustness of results.
- Performed variable importance analysis to assess shifts in feature ranking after optimization.
- Tested parameter transferability by applying optimized settings from one dataset to others and measuring performance drop.
Experimental results
Research questions
- RQ1To what extent does automated parameter optimization improve the AUC performance of defect prediction models?
- RQ2How does parameter optimization affect the stability of defect prediction models across different datasets?
- RQ3How do variable importance rankings change after optimization, and to what extent is the ranking of top features preserved?
- RQ4Can optimal parameter settings from one dataset be transferred to another with minimal performance degradation?
- RQ5What is the computational overhead of applying automated parameter optimization across different classification techniques?
Key findings
- Automated parameter optimization improved AUC performance by up to 40 percentage points, with 16 out of 26 classification techniques showing non-negligible gains.
- Optimized models demonstrated at least as much stability as default-setting models, with no significant increase in variance across datasets.
- Only 28% of the top-ranked variables in optimized models were also top-ranked in non-optimized models, indicating a substantial shift in feature importance.
- Optimal settings for 17 of the 20 most sensitive parameters were transferable across datasets with no statistically significant performance drop.
- The additional computational cost of optimization was less than 30 minutes for 12 of the 26 classification techniques studied.
- Traditionally overlooked classifiers like C5.0 and neural networks outperformed widely used techniques such as random forest and SVM after optimization, highlighting the importance of parameter tuning for sensitive algorithms.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.