Requirements traceability

Hand-drawn two rows of small cross-hatched terracotta knots, joined by slender terracotta threads, over diagonal sand hatching above and flowing umber and moss contour lines below, with a few knots left unjoined.

Requirements traceability is the ability to follow links between a requirement and the design elements, models, code and tests that realise it. A requirement is a statement of what a system must do (see Requirement templates). Tools that recover such links automatically now find most correct links, but their precision is moderate, and their authors say a person must still vet the links (Alturayeif et al., 2026; Rasiman et al., 2022). Results on research benchmarks may not carry over to industrial projects, and the benchmarks’ own reference links are uncertain (Rasiman et al., 2022; Chen et al., 2013b). Evidence that complete traceability reduces defects is thin (Rempel & Mäder, 2016).

A trace link connects two artefacts, such as a requirement and the use case, diagram, class or test that addresses it. Trace link recovery means finding these links after the fact, by comparing the artefacts’ text and structure. A link set can be checked in both directions: from each requirement to what realises it, and from each design element to the requirement it serves.

Recovery tools are scored against a reference set of correct links. Precision is the share of the links a tool proposes that are correct; recall is the share of correct links it finds. Both run from 0 to 1. The F1 score combines them with equal weight.

The F2 score, which weights recall more than precision, suits the case where finding as many relevant links as possible matters more than avoiding false ones (Alturayeif et al., 2026). An F0.5 score does the opposite and favours precision.

Automatic recovery has improved with language models and purpose-built tools, but accuracy depends on which artefacts are linked and on the data. The highest reported scores link architecture documentation, models and code; results on industrial data are more modest.

Requirements to design Weak evidence: few or small studies support this

A language-model approach beat a text-similarity baseline at linking requirements to design artefacts on one benchmark, but its precision fell on another. On the first benchmark linking use cases to interaction diagrams, the prompt-engineered TraceLLM approach reached precision 0.89, recall 0.80 and F2 0.82. A vector-space retrieval baseline scored 0.44, 0.70 and 0.63 (Alturayeif et al., 2026).

On a second requirements dataset, CCHIT, the same approach kept recall high (0.84) but its precision fell to 0.41, for an F2 of 0.69. In other words, most links it proposed there were wrong. Its authors conclude that the results do not support fully automated traceability without human oversight (Alturayeif et al., 2026).

Retrieval-augmented generation, in which a language model is given the most relevant artefacts found by a search step, shows the same pattern of progress short of practical use. The LiSSA approach significantly outperformed earlier methods on linking requirements and documentation to code. Its authors say it needs further work before it is usable in practice (Fuchß et al., 2025).

Architecture documentation, models and code

Links between architecture documentation and architecture models are recovered with high accuracy on a benchmark of open-source projects. The ArDoCo approach linked natural-language architecture documentation to architecture models with an average F1 of 82%, at 87% precision and 82% recall (Keim, 2025). An earlier paper on the approach reported a similar F1 of 0.81 (Keim et al., 2023).

Purpose-built tools beat simple language-model prompting on this task. ArDoCo’s F1 was 26% higher than the other baselines, and the best simple language-model approach reached an average F1 of 64% (Keim, 2025).

Links from the architecture model to code are close to perfect, a task related to recovering an architecture from its code, with an average F1 of 98%. Chaining the two steps, from documentation through the model to code, reached an F1 of 82% at 87% precision and 81% recall (Keim, 2025).

Industrial data Weak evidence: few or small studies support this

Evidence from industrial projects is thin, and the results there are moderate. Automated tracing tools are little adopted, often because there is limited evidence that they work (Rasiman et al., 2022). Most machine-learning studies train their classifiers on university open-source datasets or on proprietary safety-critical data, which limits how far their results generalise (Rasiman et al., 2022).

On three model-driven datasets from a low-code company, a classifier that recommends candidate links averaged an F2 of 69%. Used to maintain existing links automatically, it reached an F0.5 of 76% (Rasiman et al., 2022). Its authors note that these scores cannot show whether the developers who vet the links find them useful; only a user study can (Rasiman et al., 2022).

People tracing links by hand disagree widely, so the reference sets used to score tools are themselves uncertain. When six participants recovered links manually for one benchmark, the share of links each found ranged from 7% to 95% (Chen et al., 2013b).

Benchmark builders estimate the error in a reference set with a formula. That formula rests on assumed error rates for analysts, for example 20% for junior and 10% for senior analysts. With such assumptions, one benchmark’s authors judged a 5% error rate in their reference set to be about 0.1% probable (Chen et al., 2013b). The estimate is only as good as the assumed analyst error rates.

Finding gaps

Gaps are found by checking actual trace data against a model of which links should exist. One approach reads a guideline, such as a safety standard, into a model of artefact types and the traces it prescribes, then checks a project’s trace data against it. Applied to seven safety-critical systems, it found that none had traceability that fully conformed to its guidelines (Rempel et al., 2015).

Missing links have practical consequences. In one large telecommunications company, links between requirements and test cases turned out to be missing, and this blocked the solution planned to deal with the company’s quality problems (Fucci et al., 2022).

Trace recovery tools can also flag inconsistencies between architecture documentation and the architecture model. Finding model elements that the documentation never mentions works well, with an average F1 of 95%. Finding elements the text describes but the model lacks reaches at most 49% F1, and a simple language-model approach did equally well or worse (Keim, 2025). An earlier paper reported accuracies of 0.93 and 0.75 for the two tasks (Keim et al., 2023).

Whether traceability pays off

Evidence that traceability pays off is thin: it rests on one observational study and one experiment. Rempel and Mäder note that stakeholders often find traceability unpopular because its benefits are unclear, and that little evidence on those benefits existed before their work (Rempel & Mäder, 2016).

More complete traceability was associated with fewer defects in an observational study of 24 open-source projects. The link held for three of the four development activities studied (Rempel & Mäder, 2016). Being observational, the study shows an association across projects, not that adding traces lowers defects.

A controlled experiment tested the use of traces rather than their completeness. In it, 71 subjects redid real maintenance tasks, half with traceability and half without. With traceability, they were on average 24% faster and produced 50% more correct solutions (Egyed & Mäder, 2015).

Further reading

  • Alturayeif, Ahmad and Hassine, “TraceLLM” (Alturayeif et al., 2026): a language-model approach to linking requirements and design, compared with retrieval baselines on several datasets, with a clear account of why recall is weighted over precision.
  • Keim, “Recovering trace links in software architecture documentation” (Keim, 2025): a doctoral dissertation on linking architecture documentation, models and code, and on detecting inconsistencies between them.
  • Rasiman, Dalpiaz and España, “How effective is automated trace link recovery in model-driven development?” (Rasiman et al., 2022): trace recovery on industrial data, with a discussion of why adoption is low.
  • Chen, Hosking, Grundy and Amor, “Development of robust traceability benchmarks” (Chen et al., 2013b): how reference link sets are built and why their accuracy is uncertain.
  • Rempel and Mäder, “Preventing defects” (Rempel & Mäder, 2016): the observational study linking trace completeness to defect rates.

Known gaps

What this article cannot tell you yet.

  1. Methods for finding design elements that no requirement justifies were not researched; the gap-finding evidence covers missing links and missing model elements.
  2. No replication or independent critique of the link between trace completeness and defect rates was found, so it rests on one observational study of open-source projects.
  3. The LiSSA results on linking architecture documentation to architecture models were not available in the research, only its summary of code-related tasks.
  4. The ArDoCo accuracy figures come from evaluations by the tool’s developers; independent evaluations were not researched.
  5. How teams create and maintain trace links by hand during design, and what that costs, was not researched.

References

Solid source
Rated highly trustworthy by the research, and every passage taken from it was found in it.
Weak source
Rated low, or a passage taken from it was not found in it.
Medium trust
Rated medium by the research.
Not checked
Rated high, but its passages could not all be checked against it.
Show all 10 references