[论文解读] Better Technical Debt Detection via SURVEYing
本文提出 SURVEY0,一种人机协同框架,利用增量逻辑回归对代码注释进行优先排序并开展调查,以识别自述技术债务(SATD),显著降低标注工作量。通过排序并迭代审查最具信息量的注释,SURVEY0 在十个 Java 项目中平均仅检查 16% 的注释,即实现了 83% 的 SATD 召回率。
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).
研究动机与目标
- 通过引入一种成本效益高的调查框架,解决技术债务检测中人工标注成本高、效率低的问题。
- 在不牺牲召回率的前提下,减少识别软件注释中自述技术债务(SATD)的人工标注工作量。
- 通过迭代式人机协同验证解决标签分歧问题,提升 SATD 检测模型的质量。
- 开发一种可扩展的增量方法,在标注过程中平衡成本与收益,以优化资源使用。
提出的方法
- 使用初始分类器(SVM)根据估计的‘严重性’(包含 SATD 的可能性)对未检查的代码注释进行排序。
- 应用排序器(S)基于分类器置信度,优先选择最具信息量的样本供人工审查。
- 采用增量逻辑回归,在每次人工审查后估计剩余 SATD 实例的数量。
- 在算法 1 中实施提前退出策略,当估计器预测已发现足够多的 SATD 时停止调查。
- 在每一批人工标注样本更新后,更新估计器 E,以优化未来预测并减少不确定性。
- 通过调节批次大小(m)平衡人工工作量与系统开销,确保估计延迟控制在总时间的 5% 以内。
实验结果
研究问题
- RQ1为了解决自述技术债务检测中的标签分歧,调查是否必要?
- RQ2与非调查基线相比,SURVEY0 是否提升了 SATD 分类器的预测性能?
- RQ3在效率和准确性方面,SURVEY0 与当前最先进的基于人机协同的 AI 方法相比如何?
- RQ4SURVEY0 能在多快的时间内以最少的人工投入实现高召回率?
- RQ5是否可以通过增加人工审查成本,将 SURVEY0 扩展以发现更多技术债务?
主要发现
- 通过采用人机协同调查,SURVEY0 将 SATD 检测的中位召回率从基线的 63% 提升至 83%。
- 平均而言,SURVEY0 仅检查了十个开源 Java 项目中 16% 的代码注释,即识别出全部 SATD 实例的 83%。
- 该系统对人工专家造成的开销不足 5%,估计延迟平均仅占总人工审查时间的 2%。
- SURVEY0 的停止规则可调节,以在额外投入下实现更高召回率,支持灵活的质量保障。
- 该框架在性能上优于基线方法,并接近‘最优’调优系统的性能,展现出接近最优的效率。
- 该方法可推广至其他需要专家对大规模文本语料进行标注的人机协同软件分析任务。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。