Comparing LLMs on Requirements Document Completion: A Practical Guide

    This article compares how large language models handle requirements document completion, a task that demands both detail expansion and strict structural fidelity. It breaks the capability into four measurable dimensions, explains why larger models can be harder to constrain with system prompts, and offers a reusable prompt pattern based on structured input and explicit contracts, plus code-side validation. It also covers dedicated constraints for multimodal transcription and practical advice on model selection, evaluation sets, and human-in-the-loop workflows.

    1. Why Requirements Completion Is a Test for LLMs

    In real development workflows, requirements documents are rarely written in one pass. A product manager drafts a feature skeleton, an AI assistant expands it layer by layer, and a human consolidates the result back into the document. The process looks simple, but it imposes two conflicting demands on the model: it must be divergent enough to fill in boundary conditions, exception flows, and acceptance criteria, while strictly preserving existing numbering and hierarchy without deleting, merging, or adding items on its own.

    A common failure mode is that the output looks richer but the structure has already shifted. The original list has four items, A, B, C, and D. The returned result drops B by merging it, invents an extra E, and appends an explanation that “E was derived from B and C.” For document engineering, this kind of output is high risk, because the structure itself carries scheduling, ownership, and traceability relationships. Once item numbering drifts, downstream task breakdown and test case mapping become misaligned.

    So when evaluating this capability, “is the content richer” should not be the first question. Structural fidelity comes first.

    2. Breaking Down the Capability into Four Measurable Dimensions

    To keep the comparison from being purely subjective, split requirements completion into four dimensions, each with clear acceptance criteria.

    1. Structural fidelity: Are all input items preserved, do numbering and hierarchy map one to one, and are there any silent deletions or reordering?
    2. Increment validity: Can new sub-items be traced back to an original item, and does the model introduce feature scope that does not exist in the input?
    3. Instruction-following stability: After adding system prompts, role settings, and output format constraints, does the model still follow them?
    4. Multimodal transcription accuracy: When converting screenshots or table images into structured text, does it transcribe only visible content without inventing fields or features?

    The fourth item is the most overlooked in practice and the most revealing. Converting a table in a UI screenshot into structured text and then feeding it to an AI coding tool to generate code is a common workflow. If the model “sees” something that is not in the image and insists the feature exists, the generated code and documentation will both carry a false premise, and debugging becomes extremely costly.

    3. Root Cause: Why Larger Models Are Harder to Constrain with System Prompts

    A counterintuitive but widespread observation is that larger models respond less reliably to system prompts. There are roughly three reasons.

    The first is a “helpfulness bias” introduced by training objectives. Models are optimized to be as helpful as possible and tend to proactively complete and optimize. That is an advantage in open-ended Q&A, but in structured document completion it shows up as taking liberties.

    The second is instruction dilution in long contexts. When the input contains a large amount of reference material, the relative weight of format constraints at the system level drops, and the model is more likely to follow the semantic momentum of the content itself.

    The third is the absence of an executable verification step. Natural language constraints are soft constraints, and the model has no mechanism to check whether it missed an item number.

    The corresponding engineering fix is to turn soft constraints into hard constraints: carry the list with structured input, restrict fields with an explicit output schema, and validate before and after with code.

    4. A Reusable Prompt Pattern: Structured Input Plus an Explicit Contract

    The following is an illustrative prompt structure. The point is not the wording but writing “do not change the structure” as a verifiable contract.

    1. [Role] You are a requirements document completion assistant. Expand details only; do not change scope.
    2. [Input] The following is a feature list. Numbering must not change:
    3. A
    4. B
    5. C
    6. D
    7. [Constraints]
    8. 1. Output the four top-level items A/B/C/D exactly as given, in the same order;
    9. 2. Number sub-items as A1, A2, and do not add top-level items;
    10. 3. If an item lacks information, output A-TODO and flag the open question;
    11. 4. Do not output explanatory reasoning paragraphs.
    12. [Output] Return strictly structured data so it can be parsed by a program.

    Combined with structured output, validation on the code side costs almost nothing:

    1. def validate(original, generated):
    2. missing = [k for k in original if k not in generated]
    3. extra = [k for k in generated if k not in original]
    4. return {"missing": missing, "extra": extra}
    5. # Expect both missing and extra to be empty lists; otherwise retry or fall back

    The value of this approach is that “does the model obey” turns from a subjective judgment into an automated pipeline gate. If validation fails, retry or fall back to manual completion instead of merging a deformed structure into the document.

    5. Dedicated Constraints for Multimodal Transcription

    Image-to-structured-text conversion needs three additional rules: transcribe only content visible in the image; mark blurry areas as to be confirmed rather than guessing; and when the prompt explicitly states that a module does not have a certain feature, defer to the user’s statement.

    It also helps to use a staged flow of “locate, transcribe, self-check”: first have the model describe the row and column structure of the table, then fill in cell by cell, then run a consistency check against the original statement. Staged execution significantly reduces fabrication, at the cost of slower responses. In document production pipelines, stability takes priority over speed.

    6. Selection and Adoption: Let Scenario Weights Decide the Trade-off

    Different scenarios place different demands on capability, and there is no universal best choice. If the task is requirements completion, document structuring, or strict format alignment, prefer a solution with stronger instruction following and structural fidelity, and accept some latency. If the task is brainstorming or solution divergence, relax structural constraints and let the model expand freely.

    A more reliable engineering practice is to build a small evaluation set of your own: prepare twenty to thirty real list and screenshot samples, fix the prompts and parameters, and track three metrics over time: structural fidelity rate, fabrication rate, and manual rework time. Third-party relay platforms can let you try different models side by side at low cost, but conclusions must be validated on your own samples, because differences in prompts and business corpus can significantly change the ranking.

    7. Putting the Model into a Human-in-the-Loop Modeling Workflow

    A more mature path is not to have the model produce requirements independently, but to build a collaboration framework of “AI agent plus human modeling”: the model enumerates candidate details and generates a first draft, the human confirms scope and priorities, and the program handles structural validation and version tracking. At the infrastructure level, such a framework usually needs only a combination of general cloud capabilities, such as object storage for document versions, a message queue to decouple long-running tasks, a container platform to host inference services, and logging plus monitoring and alerting for observability, with no dependency on any proprietary interface.

    8. Conclusion

    The core need in requirements document completion is to “add details,” not to “rewrite requirements.” To judge whether a solution is usable, first check whether it holds the structural boundary, then whether the increments are valid, and only then look at wording and richness. Writing constraints as contracts, handing validation to code, and leaving the final scope decision to humans is currently the most reliable engineering practice.