# Detecting Underspecification in Software Requirements via k-NN Coverage Geometry

arXiv: https://arxiv.org/abs/2603.24248 · HTML: https://mlsanity.com/paper/2603.24248/

## Key facts

- Cited by 1 papers in the map (data through 26 Nov 2026).
- Submitted 25 Mar 2026.

## Built on by (most cited first, 1 of 1)

- [Ask the Peers: Ranking NFR Coverage Gaps for Requirements Review](https://mlsanity.com/paper/2611.23296/) (2026)

## Abstract (arXiv)

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 ≥ 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.
