Using LLMs to Expand Requirements Documents: Getting AI to "Fill In Details" Instead of "Rewriting Requirements"
When using large language models to expand rough requirement lists into detailed documentation, some models faithfully preserve your original items, while others silently delete entries or invent features that were never requested—sometimes even insisting that hallucinated items exist in a screenshot you provided. This article explains why LLMs behave this way, why instruction-following reliability varies across models, and how to defend against it in practice: multi-model evaluation, automated diff checks between original and expanded item sets, choosing "assistant-type" models for tasks requiring strict fidelity, and keeping humans in the loop for final review. You will learn a practical framework for safely integrating LLMs into requirements workflows without losing control over scope.
1. A Typical Pain Point: You Need Expansion, Not Rewriting
A common workflow in requirements analysis looks like this: a human writes a coarse-grained feature list, then uses a large language model to fill in the details, and finally a person merges the expanded content back into the document. The premise of this workflow is simple—the AI only expands; it never touches the structure.
In practice, however, different models behave dramatically differently on this task—so much so that they exhibit two distinct “personalities.”
1.1 The Ideal Behavior: Expanding Each Item in the List
Suppose your original requirements contain only four items: A, B, C, D. The ideal output should be:
AA1A2A3BB1CC1C2DD1D2
That is: keep all original entries intact, and only expand details under each one. This is the correct way to “fill in details”—the user retains control over the scope of the requirements, while the AI fills in content within the established boundaries.
1.2 The Out-of-Control Behavior: Silent Deletion and Fabrication
Other models, given the same input, may produce something like:
AA1CC1C2DD2E ← Added; does not exist in the original inputE1 ← And it may be explained as "E = a combination of B and C"
There are two layers to the problem:
- Silent deletion: An original entry disappears. Unless you compare the lists line by line, you may not notice right away that the scope has been narrowed.
- Fabricated additions: The model, based on its own “reasoning,” adds features that were never in the original requirements, accompanied by a plausible-sounding justification.
For anyone writing requirements, this is dangerous. Every line of a requirements document is a boundary commitment. When the AI adds or removes entries on its own, the document diverges from reality—and those discrepancies get inherited downstream by development scheduling and test cases.
2. A More Subtle Problem: “Hallucination Persistence” in Visual Inputs
There is an even trickier phenomenon in image understanding tasks. A typical scenario: you take a screenshot of a system page, ask the model to convert the table content into Markdown, and then feed that to an AI coding assistant to support development.
Two kinds of distortion can occur:
- Recognition errors—inaccurate transcription of table contents, which is a fairly “normal” OCR-level problem.
- Hallucination persistence—the model adds a feature entry in the transcription that simply does not exist in the screenshot.
The second one is worse. Even after you zoom in on the screenshot and explicitly state in the prompt that “this module does not have that feature,” the model still insists “yes, it’s in the image.” This stubbornness is essentially the model becoming anchored to its own long-form output; corrective prompts struggle to override the influence of the existing context.
3. Why Do LLMs “Go Rogue” on These Tasks?
From a technical standpoint, there are three main categories of causes.
3.1 Autoregressive Generation Naturally Prefers “Completion” over “Obedience”
LLMs are trained to predict the next token, which makes them inherently inclined to produce “more complete, more polished” content. When a user provides a feature list, the model implicitly treats “a well-rounded product requirement” as its goal—and if it perceives that some category of feature is missing, it will proactively add one, even though the user never asked.
3.2 Instruction-Following Varies with Model Scale and System Prompt Design
A notable empirical pattern: larger models do not necessarily respond better to system prompts, especially to complex structured constraints. You often need more explicit output formats to constrain behavior, for example:
Task: Expand sub-items for each item in the list below, and nothing else.Constraints:1. Do not delete, merge, or reorder any original entries;2. Do not add any features that are not in the original list;3. Output format: original entry + indented sub-items;4. For items you cannot determine, output "TBD" instead of guessing.Input: <your requirements list>
Even so, you cannot expect these constraints to work 100% of the time—their reliability itself varies by model, which is exactly why hands-on testing is necessary.
3.3 In Multimodal Transcription, Vision and Semantics “Contaminate” Each Other
Converting images to Markdown involves both visual recognition and structural reconstruction. Sometimes the model doesn’t “misread”—it “fills in from imagination,” inserting a cell that fits the semantic momentum of the table but does not exist in the image. This is most likely to happen with highly structured, low-redundancy inputs such as tables.
4. Practical Recommendations: Treat Model Quirks as Part of the Engineering Process
4.1 Don’t Trust a Single Model—Build Low-Cost, Multi-Dimensional Evaluation
Don’t pick a model based on hearsay or a single experience. A more reliable approach is to use an aggregated model gateway (a common industry solution) to cheaply batch-test multiple models on the same task. Your evaluation set is simply your real work products: a few real requirement lists, a few real screenshots. Run one round of comparison, and it becomes obvious which models are more obedient and which are more stable.
A general set of evaluation dimensions includes:
| Dimension | How to Judge |
|---|---|
| Structural fidelity | Are 100% of original entries preserved |
| No hallucinated additions | Do any features appear that were not in the input |
| Controllable correction | Does the model converge after explicit corrective instructions |
| Multimodal transcription accuracy | Correctness of screenshot/table-to-Markdown conversion |
4.2 Use Diff Validation Instead of Eyeballing
Since the AI may add or remove entries, the most economical defense line is automated validation. Before merging results back into the document, run a simple script to compare item sets:
original = {"A", "B", "C", "D"}expanded = extract_top_items(model_output) # Extract top-level itemsassert original <= expanded, f"Deleted items: {original - expanded}"added = expanded - originalif added:print(f"[Warning] Model added non-original items: {added}")
Turning “did the AI behave” from a subjective impression into an executable assertion is a necessary step for bringing LLMs into serious workflows.
4.3 Recognize the Difference Between “Assistant-Type” and “Editor-Type” Behavior
Drawing on extensive hands-on experience, a valuable judgment framework emerges: different models exhibit different “professional personalities” on the same task—
- Assistant-type: Strictly expands details within your framework, like a product assistant who helps you flesh out your ideas.
- Editor-type: Likes to “optimize” your input—deleting what it considers redundant and adding what it considers reasonable, like a product intern with strong opinions who keeps making decisions on your behalf.
Neither is absolutely better or worse. In brainstorming and divergent ideation phases, an editor-type model’s “inspiration” can add value. But in requirements confirmation and document delivery, where strict consistency with the original input is paramount, assistant-type behavior is a hard requirement. The basis for choosing a model is not the vague question of “which one is stronger,” but “which one is more controllable for the task at hand.”
4.4 Decompose Subtasks + Human in the Loop
For long requirements documents, rather than dumping everything into the model at once:
- Have humans define the feature skeleton (this is a responsibility that cannot be delegated);
- Call the model item by item for detail expansion—each call has a small scope and clear constraints;
- Run diff validation on each round of output;
- A human does the final review before committing to the document.
5. Final Thoughts
Beyond general capability, the differences among LLMs in instruction obedience and hallucination tendency often affect the day-to-day working experience more than their rankings on capability leaderboards. Don’t assume a universal prompt pattern exists, and don’t assume the same model is equally reliable across all tasks.
For developers and teams, the truly dependable path is: test with your own real tasks, backstop with automated validation, and deliver through human-in-the-loop review. Treat AI as an assistant that expands your thinking—not a decision-maker that makes calls for you. This holds for requirements documents, and even more so for more serious technical work.
