← Latest papers
💻 computer science

How Requirements Quality Makes (or Breaks) Traceability Link Recovery

This paper provides empirical evidence that the quality of requirements significantly impacts the performance of automated traceability link recovery, demonstrating that specific defects can either hinder or enhance recovery depending on the approach used.

Original authors: Tobias Hey, Julian Frattini

Published 2026-06-11
📖 5 min read🧠 Deep dive

Original authors: Tobias Hey, Julian Frattini

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to build a massive library where every book (a software requirement) must be perfectly connected to the specific shelves and tools (the source code) used to build it. This connection is called a Traceability Link.

In the past, humans had to manually draw these lines between books and shelves. It was slow, boring, and full of mistakes. So, researchers invented "robot librarians" (automated algorithms) to do the job. These robots read the books and guess which shelves they belong to.

This paper asks a simple but crucial question: Does the way the books are written affect how well the robot librarians can do their job?

Here is the breakdown of their findings, using simple analogies:

The Experiment: Testing the "Robot Librarians"

The researchers took two real-world software projects (one about tourism, one about healthcare) and looked at 189 "use cases" (basically, stories describing what the software should do).

They acted like strict editors, marking 28 different types of "writing flaws" or "quality defects" in these stories. Some examples of these flaws included:

  • Missing Subjects: Sentences that don't start with a clear "who" (e.g., "Go to the store" instead of "The user goes to the store").
  • Too Long: Stories that are just too wordy.
  • Mixed Levels: Stories that talk about the user's experience and the computer's internal wiring at the same time.
  • Confusing Words: Using "maybe," "not," or referring back to things without naming them clearly.

Then, they ran five different types of robot librarians (different automated algorithms) to see how well they could connect the stories to the code. Finally, they used statistics to see if the "flaws" in the writing made the robots faster, slower, or more confused.

The Surprising Results: Not All "Mistakes" Are Bad

The biggest takeaway is that what makes a human reader confused doesn't always confuse a robot. In fact, some things we think are "bad writing" actually help the robots.

Here are the key findings:

1. The "Bad" Stuff that Hurts the Robots
Just like humans, robots struggle with certain types of writing:

  • Missing Subjects: If a sentence doesn't start with a clear noun (the "actor"), the robot gets lost. It's like a map that says "Go left" without saying who is going left.
  • Too Long: If a requirement is a giant wall of text, the robot's performance drops. It's harder to find the needle in the haystack.
  • Negative Words & Confusion: Using words like "not" or referring to things vaguely (anaphora) makes the robots less accurate.

2. The "Bad" Stuff that Actually Helps the Robots
This is the twist. Some things that professional editors would mark as "defects" actually made the robots better at their job:

  • Leaking the Secret Sauce (Inconsistent Abstraction): Usually, a requirement story should only talk about what the user wants, not how the computer does it. But, if the story accidentally includes technical details (like "the system sends a signal"), the robot loves it! It's like if a treasure map accidentally mentioned the color of the chest; it gives the robot a direct clue to find the code.
  • Mixing Tasks (Tangled Requirements): Usually, a story should focus on one thing. But if a story mixes a few different features together, some robots actually got better at finding the links. It seems having more context in one place helps them guess the connection.
  • Alternative Paths: Including "what if" scenarios (alternative flows) in the main story helped the robots find more links, even though guidelines usually say to separate them.

The "One Size Does Not Fit All" Rule

The researchers also found that different robots react differently.

  • One type of robot (based on simple keyword matching) loved it when the stories got long and included technical jargon.
  • Another type of robot (based on advanced AI) didn't care much about the length but struggled when the stories were "tangled."

The Analogy: Imagine you have a dog and a cat. If you throw a ball, the dog chases it. If you throw a feather, the cat chases it. If you tell a "bad" story to the dog, it might get confused. But if you tell that same "bad" story to the cat, it might be perfectly fine. You can't just say "this story is bad"; you have to ask, "Bad for which robot?"

The Bottom Line

The paper concludes that we can't just blindly follow rules about "perfect writing" if our goal is to help automated tools.

  • If you want to help a human read the requirements, you should avoid long sentences, missing subjects, and mixed technical details.
  • But, if you want to help an automated robot find the code, you might actually want to keep some of those "technical details" and "mixed stories" in, because they act as extra clues for the robot.

The authors suggest that before you pick a robot librarian, you should check the quality of your stories. Depending on how "flawed" your stories are, you might need to pick a specific type of robot to get the best results.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →