Skip to main content
QUICK REVIEW

[Paper Review] Learning from Very Little Data: On the Value of Landscape Analysis for Predicting Software Project Health

Andre Lustosa, Tim Menzies|arXiv (Cornell University)|Jan 16, 2023
Software Engineering ResearchComputer Science3 citations
TL;DR

This paper proposes niSNEAK, a landscape analytics-based hyperparameter optimization method that improves prediction accuracy for software project health using very small datasets. By clustering hyperparameter space and focusing on informative regions, niSNEAK reduces 12-month prediction errors to 0% (issues), 33% (pull requests), and 47% (commits), outperforming state-of-the-art methods like HYPEROPT and OPTUNA with 2% of the model evaluations.

ABSTRACT

When data is scarce, software analytics can make many mistakes. For example, consider learning predictors for open source project health (e.g. the number of closed pull requests in twelve months time). The training data for this task may be very small (e.g. five years of data, collected every month means just 60 rows of training data). The models generated from such tiny data sets can make many prediction errors. Those errors can be tamed by a {\em landscape analysis} that selects better learner control parameters. Our niSNEAK tool (a)~clusters the data to find the general landscape of the hyperparameters; then (b)~explores a few representatives from each part of that landscape. niSNEAK is both faster and more effective than prior state-of-the-art hyperparameter optimization algorithms (e.g. FLASH, HYPEROPT, OPTUNA). The configurations found by niSNEAK have far less error than other methods. For example, for project health indicators such as $C$= number of commits; $I$=number of closed issues, and $R$=number of closed pull requests, niSNEAK's 12 month prediction errors are \{I=0\%, R=33\%\,C=47\%\} Based on the above, we recommend landscape analytics (e.g. niSNEAK) especially when learning from very small data sets. This paper only explores the application of niSNEAK to project health. That said, we see nothing in principle that prevents the application of this technique to a wider range of problems. To assist other researchers in repeating, improving, or even refuting our results, all our scripts and data are available on GitHub at https://github.com/zxcv123456qwe/niSneak

Motivation & Objective

  • Address the challenge of high prediction error in software project health estimation when training data is extremely limited (e.g., 60 rows from 5-year monthly observations).
  • Investigate whether landscape analytics can mitigate performance degradation caused by small sample sizes in software analytics.
  • Develop and evaluate a novel hyperparameter optimization method that reflects on the data landscape before exploring configurations, reducing reliance on random or exhaustive search.
  • Demonstrate that landscape-aware optimization can achieve superior results with far fewer model evaluations than state-of-the-art methods, especially in data-scarce settings.

Proposed method

  • Apply niSNEAK to perform landscape analysis by clustering hyperparameter configurations to identify regions of high information density in the search space.
  • Use recursive tree-based clustering to map the shape of the hyperparameter landscape and detect promising regions for exploration.
  • Select representative configurations from each cluster for evaluation, prioritizing those in high-informative areas to accelerate convergence.
  • Employ a Sall policy to balance exploration and exploitation, avoiding over-investigation of unproductive regions.
  • Integrate the method with Random Forest regressors to predict project health metrics (e.g., closed pull requests, issues, commits) over 12-month horizons.
  • Ensure temporal validity by training on past data and testing on future data, preventing data leakage and overfitting.

Experimental results

Research questions

  • RQ1RQ1: Does small sample size significantly degrade the performance of machine learning models in predicting software project health?
  • RQ2RQ2: Can landscape analytics, as implemented in niSNEAK, mitigate the negative effects of small data by improving prediction accuracy and efficiency?
  • RQ3RQ3: Is there an optimal balance between the depth of landscape analysis and the number of model evaluations—i.e., does too much analysis reduce efficiency?

Key findings

  • niSNEAK reduces 12-month prediction errors to 0% for closed issues (I), 33% for closed pull requests (R), and 47% for commits (C), significantly outperforming baseline methods.
  • Other hyperparameter optimization tools (e.g., HYPEROPT, OPTUNA) produced much higher errors: 61% for issues, 119% for pull requests, and 149% for commits.
  • niSNEAK achieves these results by evaluating only 115 configurations on average, representing just 2% of the 5,000 models required by other methods.
  • The method is orders of magnitude faster than state-of-the-art approaches, demonstrating that landscape-aware search reduces computational cost without sacrificing accuracy.
  • The Sall policy in niSNEAK provides an effective balance between exploration and exploitation, avoiding both under-investigation and over-analysis of the hyperparameter space.
  • The results suggest that landscape analytics, particularly through methods like niSNEAK, is a viable and efficient strategy for data-scarce software analytics tasks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.