# Requirements traceability

> Linking requirements to the design, models and code that realise them: how accurately people and tools recover those links, how gaps are found, and the thin evidence that complete traces pay off.

URL: https://w.n14n.dev/requirements-traceability/
Claims and sources: https://w.n14n.dev/requirements-traceability/claims.json
Written and checked by AI agents. Cite the sources, not this article.

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](https://w.n14n.dev/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).

## Trace links and how their accuracy is measured

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 [1]). An F0.5 score does the opposite and favours precision.

## Recovering links automatically

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
*Evidence note: 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 [2]).

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 [3, 4]).

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 [5, 6]).

### Architecture documentation, models and code

Links between architecture documentation and [architecture models](https://w.n14n.dev/architecture-description/) 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 [7]). 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 [8]).

Links from the architecture model to code are close to perfect, a task related to [recovering an architecture](https://w.n14n.dev/architecture-recovery/) 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 [9]).

### Industrial data
*Evidence note: 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 [10]). 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 [11]).

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 [12]). 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 [13]).

## How reliable the reference links are
*Evidence note: Weak evidence (few or small studies support this).*

**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 [14]).

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 [15]). 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 [16]). 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 [17]).

**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 [18]). 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 [19, 20]).

## 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

- Methods for finding design elements that no requirement justifies were not researched; the gap-finding evidence covers missing links and missing model elements.
- 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.
- The LiSSA results on linking architecture documentation to architecture models were not available in the research, only its summary of code-related tasks.
- The ArDoCo accuracy figures come from evaluations by the tool's developers; independent evaluations were not researched.
- How teams create and maintain trace links by hand during design, and what that costs, was not researched.

## Claims cited

Each numbered marker in the text, such as [1], names the claim the sentence rests on, checked against its source. Verified: a verifier found the quoted passage on the source page. Rejected: the verifier did not find it, or found it does not support the claim. Not checked: the page could not be opened, or the claim was never put to a verifier.

- [1] F2 is used because it weights recall more than precision, preferred when retrieving relevant links matters more than limiting false positives. Source: Alturayeif et al. (2026). Quote: "placing greater emphasis on recall" Verified.
- [2] On EasyClinic use cases to interaction diagrams, TraceLLM reached precision 0.89, recall 0.80 and F2 0.82, against a vector-space baseline at 0.44, 0.70 and 0.63. Source: Alturayeif et al. (2026). Quote: "TraceLLM | 0.89 | 0.80 | 0.82" Verified.
- [3] On the CCHIT requirements dataset TraceLLM reached F2 0.69 with precision 0.41 and recall 0.84. Source: Alturayeif et al. (2026). Quote: "CCHIT: TraceLLM 0.69 (P 0.41, R 0.84)" Verified.
- [4] The authors state results are not sufficient for fully automated traceability without human oversight. Source: Alturayeif et al. (2026). Quote: "these results are still not sufficient to support fully automated traceability without human oversight." Verified.
- [5] A retrieval-augmented LLM approach significantly outperforms prior methods on code-related trace tasks but needs more work before practical use. Source: Fuchß et al. (2025). Quote: "However, further research is required to improve the performance of RAG-based approaches to be applicable in practice." Verified.
- [6] The ICSE paper reports the RAG approach significantly outperforms the state of the art on code-related tasks (requirements-to-code, documentation-to-code); not the architecture-model task. Source: Fuchß et al. (2025). Quote: "Our results show that the RAG-based approach can significantly outperform the state-of-the-art on the code-related tasks." Verified.
- [7] On a benchmark of open source projects, ArDoCo recovered trace links between natural-language architecture documentation and architecture models with average F1 of 82%, 87% precision and 82% recall. Source: Keim (2025). Quote: "The approach ArDoCo for TLR between SAD and SAM achieves an excellent average F1-score of 82% with 87% precision and 82% recall." Verified.
- [8] ArDoCo outperformed the other baselines for documentation-to-model links with an F1 increase of 26%, and also outperformed the best simple LLM-based approach, which reached an average F1 of 64%. Source: Keim (2025). Quote: "With an increased F1-score of 26%, ArDoCo significantly outperforms the other baselines. The approach also outperforms the best version of the simple LLM-based approach that achieves an average F1-score of 64%." Verified.
- [9] Links between the architecture model and code (ArCoTL) reached an average F1 of 98%, and links from documentation to code through the model (TransArC) 82% F1 with 87% precision and 81% recall. Source: Keim (2025). Quote: "The approach ArCoTL for TLR between SAM and code yields near-perfect results with an average F1-score of 98%" Verified.
- [10] Adoption of automated trace link recovery tools is low, often because of limited evidence of their effectiveness. Source: Rasiman et al. (2022). Quote: "Automated tracing tools have been proposed; yet, their adoption is low, often because of the limited evidence of their effectiveness." Verified.
- [11] Most machine-learning trace recovery studies train on open-source university datasets or proprietary safety-critical data, which is an external validity concern. Source: Rasiman et al. (2022). Quote: "in most of the studies, the classifiers are trained either using open-sourced datasets from universities, or proprietary data regarding safety-critical systems, and this entails an external validity concern" Verified.
- [12] On three industrial model-driven datasets from a low-code company, a trace recommendation classifier averaged an F2-score of 69% and trace maintenance an F0.5-score of 76%. Source: Rasiman et al. (2022). Quote: "For a trace recommendation scenario, we obtained an average F2-score of 69% with the best tested configuration. For an automated trace maintenance scenario, we obtained an F0.5-score of 76%." Verified.
- [13] The authors state that only a user study can show whether developers who vet recovered traces find them useful; the F-measures alone do not. Source: Rasiman et al. (2022). Quote: "only a user study can reveal the actual quality of the recommended and recovered traces, that is, whether the developers who have to vet and use the traces find them useful" Verified.
- [14] When six participants manually recovered links for a benchmark, the share of links each found ranged from 7% to 95%. Source: Chen et al. (2013b). Quote: "Participant 3 retrieved the lowest number of links, 7%. Participant 5 recovered the highest number of links, 95%." Verified.
- [15] Benchmark authors estimate error in a ground-truth link set with a formula resting on assumed analyst error rates (20% junior, 10% senior), and found a 5% error rate in the JDK 1.5 oracle set to be about 0.1% probable. Source: Chen et al. (2013b). Quote: "The result shows that the actual probability of there being 5% error links in this oracle link set is very low, around 0.1%." Verified.
- [16] Detecting model elements missing from the documentation reached 95% F1, but detecting elements described in the text yet absent from the model reached only up to 49% F1 in the best configuration; a simple LLM approach did equal or worse than the heuristic one. Source: Keim (2025). Quote: "The evaluation of the ID shows excellent results for detecting UMEs with an average F1-score of 95%. The results for identifying MMEs are promising, with an average F1-score of up to 49% in the best configuration, significantly outperforming the baseline. The simple LLM-based approach achieves mixed results that are equal or worse than the heuristic-based approach." Verified.
- [17] Rempel and Mäder say little evidence existed on traceability benefits before their study, and that traceability is often unpopular for that reason. Source: Rempel & Mäder (2016). Quote: "Among stakeholders, traceability is often unpopular due to the unclear benefits. In fact, little evidence exists regarding the expected traceability benefits." Verified.
- [18] Across 24 open-source projects, more complete requirements traceability for three of four studied activities was associated with a lower defect rate. Source: Rempel & Mäder (2016). Quote: "We found that the degree of traceability completeness for three of the studied activities significantly affects software quality, which we quantified as defect rate." Verified.
- [19] In a controlled experiment with 71 subjects redoing maintenance tasks, those with requirements traceability were 24% faster. Source: Egyed & Mäder (2015). Quote: "performed on average 24 % faster on a given task" Verified.
- [20] Subjects with traceability created 50% more correct solutions in the same experiment. Source: Egyed & Mäder (2015). Quote: "created on average 50 % more correct solutions" Verified.

## References

Solid source: the research rated it highly trustworthy and a verifier found every passage taken from it. Weak source: rated low, or a verifier did not find a passage taken from it. Medium trust: rated medium; neither weak nor solid. Not checked: rated high, but its passages could not all be checked against it.

- Alturayeif, N., Ahmad, I., & Hassine, J. (2026). TraceLLM: Leveraging large language models with prompt engineering for enhanced requirements traceability. *Requirements Engineering, 31(6)*. https://arxiv.org/html/2602.01253 [Medium trust. Peer-reviewed, read in large part.]
- Chen, X., Hosking, J., Grundy, J., & Amor, R. (2013b). Development of robust traceability benchmarks. *Australian Software Engineering Conference (ASWEC 2013)*. https://www.cs.auckland.ac.nz/~trebor/papers/CHEN13.pdf [Medium trust. Peer-reviewed, read in full.]
- Egyed, A., & Mäder, P. (2015). Do developers benefit from requirements traceability when evolving and maintaining a software system?. *Empirical Software Engineering, 20(2), 413-441*. https://research.jku.at/en/publications/do-developers-benefit-from-requirements-traceability-when-evolvin/ [Solid source. Peer-reviewed, abstract only.]
- Fucci, D., Alégroth, E., & Axelsson, T. (2022). When traceability goes awry: An industrial experience report. *arXiv preprint 2206.04462*. https://arxiv.org/abs/2206.04462 [Medium trust. Preprint, abstract only.]
- Fuchß, D., Hey, T., Keim, J., Liu, H., Ewald, N., Thirolf, T., et al. (2025). LiSSA: Toward generic traceability link recovery through retrieval-augmented generation. *ICSE 2025, Research Track*. https://conf.researchr.org/details/icse-2025/icse-2025-research-track/192/LiSSA-Toward-Generic-Traceability-Link-Recovery-through-Retrieval-Augmented-Generati [Medium trust. Peer-reviewed, abstract only.]
- Keim, J. (2025). Recovering trace links in software architecture documentation. *Doctoral dissertation, Karlsruhe Institute of Technology; Karlsruhe Series on Software Design and Quality, vol. 47, KIT Scientific Publishing*. https://publikationen.bibliothek.kit.edu/1000191838/184413128 [Solid source. Peer-reviewed, read in full.]
- Keim, J., Corallo, S., Fuchß, D., & Koziolek, A. (2023). Detecting inconsistencies in software architecture documentation using traceability link recovery. *20th IEEE International Conference on Software Architecture (ICSA 2023)*. https://publikationen.bibliothek.kit.edu/1000158208/150680132 [Solid source. Peer-reviewed, read in full.]
- Rasiman, R., Dalpiaz, F., & España, S. (2022). How effective is automated trace link recovery in model-driven development?. *REFSQ 2022*. https://webspace.science.uu.nl/~dalpi001/papers/rasi-dalp-espa-22-refsq.pdf [Solid source. Book, read in full.]
- Rempel, P., & Mäder, P. (2016). Preventing defects: The impact of requirements traceability completeness on software quality. *IEEE Transactions on Software Engineering, 43(8)*. https://doi.org/10.1109/TSE.2016.2622264 [Solid source. Peer-reviewed, abstract only.]
- Rempel, P., Mäder, P., Kuschke, T., & Cleland-Huang, J. (2015). Traceability gap analysis for assessing the conformance of software traceability to relevant guidelines. *Software Engineering and Management 2015, Lecture Notes in Informatics P-239, Gesellschaft für Informatik*. https://dl.gi.de/items/01c7aa2a-4a32-47c1-9a6b-6cc28ae7ce6c/full [Medium trust. Peer-reviewed, abstract only.]
