Skip to main content
QUICK REVIEW

[Paper Review] Better Technical Debt Detection via SURVEYing

Fahmid Morshed Fahid, Zhe Yu|arXiv (Cornell University)|May 20, 2019
Software Engineering ResearchComputer Science49 references3 citations
TL;DR

This paper proposes SURVEY0, a human-in-the-loop framework that uses incremental logistic regression to prioritize and survey code comments for self-admitted technical debt (SATD), significantly reducing labeling effort. By ranking and iteratively reviewing the most informative comments, SURVEY0 achieves 83% recall of SATD with only 16% of comments inspected on average across ten Java projects.

ABSTRACT

Software analytics can be improved by surveying; i.e. rechecking and (possibly) revising the labels offered by prior analysis. Surveying is a time-consuming task and effective surveyors must carefully manage their time. Specifically, they must balance the cost of further surveying against the additional benefits of that extra effort. This paper proposes SURVEY0, an incremental Logistic Regression estimation method that implements cost/benefit analysis. Some classifier is used to rank the as-yet-unvisited examples according to how interesting they might be. Humans then review the most interesting examples, after which their feedback is used to update an estimator for estimating how many examples are remaining. This paper evaluates SURVEY0 in the context of self-admitted technical debt. As software project mature, they can accumulate "technical debt" i.e. developer decisions which are sub-optimal and decrease the overall quality of the code. Such decisions are often commented on by programmers in the code; i.e. it is self-admitted technical debt (SATD). Recent results show that text classifiers can automatically detect such debt. We find that we can significantly outperform prior results by SURVEYing the data. Specifically, for ten open-source JAVA projects, we can find 83% of the technical debt via SURVEY0 using just 16% of the comments (and if higher levels of recall are required, SURVEY0can adjust towards that with some additional effort).

Motivation & Objective

  • Address the high cost and inefficiency of manual labeling in technical debt detection by introducing a cost-effective surveying framework.
  • Reduce human labeling effort in identifying self-admitted technical debt (SATD) in software comments without sacrificing recall.
  • Improve the quality of SATD detection models by resolving label disagreements through iterative human-in-the-loop validation.
  • Develop a scalable, incremental method that balances cost and benefit during the labeling process to optimize resource use.

Proposed method

  • Use an initial classifier (SVM) to rank unvisited code comments by estimated 'badness' (likelihood of containing SATD).
  • Apply a sorter (S) to prioritize the most interesting examples for human review based on classifier confidence.
  • Employ incremental logistic regression to estimate the number of remaining SATD instances after each human review round.
  • Implement an early exit strategy in Algorithm 1 that stops surveying when the estimator predicts sufficient SATD has been found.
  • Update the estimator E after each batch of human-labeled examples to refine future predictions and reduce uncertainty.
  • Balance human workload and system overhead by tuning batch size (m) to keep estimation delay under 5% of total time.

Experimental results

Research questions

  • RQ1Is surveying necessary to resolve label disagreements in self-admitted technical debt detection?
  • RQ2Does SURVEY0 improve the predictive performance of SATD classifiers compared to non-surveying baselines?
  • RQ3How does SURVEY0 compare to state-of-the-art human-in-the-loop AI methods in terms of efficiency and accuracy?
  • RQ4How quickly can SURVEY0 achieve high recall with minimal human effort?
  • RQ5Can SURVEY0 be extended to find more technical debt at the cost of additional human review?

Key findings

  • SURVEY0 improved median recall for SATD detection from 63% (baseline) to 83% by using human-in-the-loop surveying.
  • On average, SURVEY0 identified 83% of all SATD instances by reviewing only 16% of the code comments across ten open-source Java projects.
  • The system imposed less than 5% overhead on human experts, with estimation delays averaging only 2% of total human review time.
  • SURVEY0’s stopping rule can be adjusted to achieve higher recall levels with additional effort, enabling flexible quality assurance.
  • The framework outperformed baseline methods and approached the performance of an 'optimal' tuned system, demonstrating near-optimal efficiency.
  • The method is generalizable to other human-in-the-loop software analytics tasks requiring expert labeling of large text corpora.

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.