arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.24248cs.SE
收藏

通过k-NN覆盖几何检测软件需求中的不充分性

Detecting Underspecification in Software Requirements via k-NN Coverage Geometry

Tampere University(坦佩雷大学)

Wenyan Yang, Tomáš Janovec, Samantha Bavautdin

AI总结:

本文提出geogap方法,通过k-NN距离检测软件规范中缺失的需求类型,结合三种评分组件实现统一的缺口评分,实验表明其在PROMISE NFR基准上达到0.935 AUROC,接近人工标注的地面真实计数 oracle。

摘要:

我们提出geogap,一种用于检测软件规范中缺失需求类型的几何方法。该方法通过预训练的句子编码器将每个需求表示为单位向量,然后通过k-最近邻距离测量覆盖不足,该距离经过项目基准的z分数标准化。三种互补的评分组件——单点几何覆盖、类型受限的分布覆盖和无注释的人口计数——融合为一个统一的缺口评分,由两个超参数控制。在PROMISE NFR基准上,geogap在具有N≥50个需求的项目中检测完全缺失的需求类型时达到0.935 AUROC,与需要人工标注的地面真实计数oracle相当。六个基线验证了每个流水线组件——项目级归一化、神经嵌入和几何评分——都贡献了可衡量的价值。

英文摘要:

We propose \geogap{}, a geometric method for detecting missing requirement types in software specifications. The method represents each requirement as a unit vector via a pretrained sentence encoder, then measures coverage deficits through $k$-nearest-neighbour distances z-scored against per-project baselines. Three complementary scoring components -- per-point geometric coverage, type-restricted distributional coverage, and annotation-free population counting -- fuse into a unified gap score controlled by two hyperparameters. On the PROMISE NFR benchmark, \geogap{} achieves 0.935 AUROC for detecting completely absent requirement types in projects with $N \geq 50$ requirements, matching a ground-truth count oracle that requires human annotation. Six baselines confirm that each pipeline component -- per-project normalisation, neural embeddings, and geometric scoring -- contributes measurable value.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑