ReqGenX: An Empirical Study of Atomic Decomposition, Artifact Regeneration, and Reconstruction for Legacy SRS Documents
This paper introduces ReqGenX, an empirical study demonstrating that decomposing legacy Software Requirements Specification (SRS) documents into traceable, atomic statements and regenerating them as synthetic pre-SRS artifacts enables fine-grained evaluation of LLM-based SRS generation while revealing critical trade-offs between faithfulness, information retention, and artifact completeness.
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 teach a brilliant, hyper-fast robot how to write a rulebook for a new video game. You hand the robot a messy, handwritten notebook from the 1990s filled with vague ideas, scribbled notes, and half-finished thoughts. Your goal is for the robot to turn that messy notebook into a perfect, professional rulebook. But here's the catch: the robot is so eager to be helpful that it might accidentally invent new rules, forget old ones, or mix up two different ideas into one confusing sentence. This is the world of Software Requirements Specification (SRS) generation. In the tech world, an SRS is the "master blueprint" that tells engineers exactly what a piece of software should do. While Large Language Models (LLMs)—the same kind of AI that writes poems and answers questions—are getting better at writing these blueprints, it's incredibly hard to check if they are actually telling the truth or just making things up. We need a way to trace every single sentence the robot writes back to the original, messy notebook to see if it's faithful or if it's hallucinating.
This is exactly what the researchers behind ReqGenX set out to solve. They didn't just ask the AI to write a new rulebook; they built a clever, step-by-step "factory" to test how well AI can break down old, messy documents into tiny, undeniable facts, turn those facts into specific types of notes (like "User Stories" or "Quality Checks"), and then see if those notes can be used to rebuild the original idea without losing anything. Think of it like taking a complex Lego castle, carefully snapping every single brick apart to label them, sorting them into specific boxes, and then trying to rebuild the castle using only those sorted boxes. The researchers wanted to know: Can the AI do this without losing a single brick or inventing a new color that didn't exist?
The Factory: ReqGenX
The team created a pipeline called ReqGenX to act as a controlled laboratory for this experiment. Instead of letting the AI just "write" a new document, they forced it to go through three strict stages, acting like a quality-control inspector at every step.
Stage 1: The Atomic Breakdown
First, the AI takes a chunk of text from an old document and tries to break it down into "atoms." Imagine a sentence like, "The product uses the Qt library and must run on all supported operating systems." To a human, that's one sentence. To the AI, this is actually two different ideas mashed together. The goal is to split them into "atomic statements"—tiny, self-contained truths that can't be broken down further. One atom becomes "The product uses the Qt library," and the other becomes "The product must run on all supported operating systems." The researchers found that the AI is actually quite good at this. When they checked if these tiny atoms were faithful to the original text, the scores were incredibly high, usually between 0.96 and 0.99 on a scale where 1.0 is perfect. However, they also noticed that sometimes the AI gets a little too eager and drops a piece of information, or conversely, it might keep a piece that is too vague to be useful.
Stage 2: The Sorting Hat
Once the text is broken into atoms, the AI has to decide what kind of note each atom belongs to. This is like a sorting hat in a wizard school. Does this fact belong in a "User Story" (a note about what a person wants to do)? Does it belong in a "Quality Note" (a rule about how fast or safe the system must be)? Or is it just a "System Context" note (background info)? The researchers used a team of different AI models to vote on these categories. They found that while the AI is great at sorting general ideas, it sometimes struggles with very specific technical labels. For example, when trying to decide if a sentence was a "functional requirement" or a "quality requirement," the AI models disagreed with each other quite a bit, with agreement scores dropping as low as 0.31 in some cases. This suggests that while the AI can see the forest, it sometimes gets confused about the specific types of trees.
Stage 3: The Reconstruction
Finally, the AI takes these sorted, labeled atoms and tries to write them into a new, professional-looking document. This is the moment of truth: can the AI turn these tiny, sorted facts back into a coherent story? The researchers tested this by taking the AI-generated notes and asking a different AI to rebuild the original document from them. They found that the AI could indeed rebuild the document, but it wasn't a perfect copy. The "semantic similarity" (how much the meaning matched) was decent, ranging from 0.69 to 0.75, but the "factual support" (did the new text actually prove the old facts?) was a bit more variable.
The Verdict: Faithful but Flawed
So, what did the researchers actually discover?
First, they confirmed that AI can be a very good librarian. It can take a messy, old document and break it down into tiny, truthful facts with a very high success rate. Most of the time, the atoms it creates are 96% to 99% faithful to the source. This means the AI isn't just making things up out of thin air; it's usually sticking to the script.
However, they also found a few important "buts."
- The "Missing Brick" Problem: Even though the AI is faithful, it isn't perfect at keeping everything. Depending on the document and the AI model used, the amount of original information successfully preserved (coverage) varied widely, ranging from 35.6% to 93.5%. This doesn't mean the AI lied; it means that for some documents, the AI decided a large portion of the original text was too vague, redundant, or structural to be kept as a standalone "atom," while for others, it preserved almost everything.
- The "Perfect Template" Trap: When the AI tried to turn these atoms into specific document types (like a "Quality Note"), it sometimes struggled to fill in all the blanks without adding fake details. While the AI passed a basic "judge" test nearly 100% of the time, a stricter, more critical test (called Prometheus) showed that only 54.8% to 97.1% of the artifacts were truly complete and high-quality. This suggests that the AI can make things look right, but sometimes they are missing the deep details needed to be truly useful.
- The Reconstruction Gap: When they tried to rebuild the original document from the AI's notes, the new version was a "traceable draft," not a perfect replica. It captured the main ideas, but some of the nuance was lost in the translation.
What This Means for the Future
The researchers aren't saying that AI has solved the problem of writing software rulebooks. Instead, they are saying that AI is a powerful tool for checking and organizing information, but it needs a human guide.
They found that the biggest bottleneck isn't the AI's ability to write; it's the granularity of the evidence. If the original document is vague or mixes too many ideas together, the AI struggles to turn it into a clean, usable format. The AI can't magically invent the missing context; it can only work with what it's given.
In the end, this study suggests that we can use AI to create "traceable synthetic artifacts"—digital notes that link back to the original source so we can see exactly where every idea came from. This is a huge step forward for checking if AI is telling the truth. But it also serves as a reminder: just because the AI produces a clean, professional-looking document doesn't mean it has captured every single detail of the original. The AI is a fantastic assistant, but it still needs a human to hold the map and make sure no bricks are left behind.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.