LLM Controllability in Requirements Document Writing: A Practical Guide

    This article explores how to evaluate and enforce large language model controllability when using AI to write and complete requirements documents. It defines three key failure modes—structure drift, content hallucination, and multimodal misreading—and introduces evaluation dimensions covering structure preservation, instruction following, correction resistance, and screenshot-to-structured-text reliability. It also presents a practical workflow with skeleton freezing, constrained completion, automated validation, human arbitration, and baseline archiving, along with selection and acceptance recommendations for building a regression evaluation baseline.

    1. Background: Why “Able to Write” Is Not “Usable”

    In workflows that use large language models to assist with requirements document writing, the most common pattern is to have a human define the feature skeleton, let the model fill in the details, and then merge the output back into the document manually. What this workflow demands from the model is not writing flair but controllability: whether it can strictly preserve the existing structure, expand content without deleting or rewriting, and explicitly flag uncertainty when information is missing instead of inferring on its own.

    The differences that show up in practice usually fall into three failure modes:

    1. Structure drift: the model removes, merges, or reorders existing items on its own;
    2. Content hallucination: the model adds capability points that do not exist in the original input;
    3. Multimodal misreading: the model misrecognizes content when converting screenshots into structured text and still insists on the wrong conclusion after being corrected.

    These three problems directly contaminate the requirements baseline, causing downstream design, scheduling, and test cases to shift off track. They must therefore be solved at the process level rather than by “switching models.”

    2. Evaluation Dimension 1: Structure Preservation

    Structure preservation refers to the one-to-one mapping between the model output and the input skeleton. It can be measured with a few simple metrics:

    1. Structure fidelity = number of original items retained without rewriting / total number of original items
    2. Recall loss = number of deleted original items / total number of original items
    3. Unauthorized additions = number of items that do not exist in the input

    The ideal behavior is that all original items are retained, and new content is attached only as sub-items without creating new peer-level items. If a model tends to produce results like “merge original item B into A and add E as a derived result,” it is not suitable as the executor of the requirements completion step—even if the content quality is high—because item numbering in requirements documents is often bound to task breakdown and acceptance criteria.

    The practical recommendation is to write structure constraints as hard rules rather than adjectives:

    1. Rules:
    2. 1. Do not delete, merge, or rename any top-level item;
    3. 2. New content must be added as sub-items, with numbering continuing from the parent item;
    4. 3. If an item lacks sufficient information, output "TODO: needs input" instead of guessing;
    5. 4. Self-check after output: the set of top-level items must be exactly the same as the input.

    3. Evaluation Dimension 2: Instruction Following and Resistance to Correction

    Instruction following measures whether the model keeps obeying constraints across a long context. Resistance to correction measures whether the model can fix an error when the user explicitly points it out, rather than repeating its original judgment. The latter matters more in real collaboration: an assistant that “insists on being wrong” multiplies the cost of human review several times over.

    A two-round test is recommended:

    • Round 1: provide a skeleton with 4 to 6 top-level items and observe whether there is zero deletion or rewriting;
    • Round 2: point out one item that was altered or fabricated and observe whether it is corrected in a single pass.

    Scoring can be simplified to: single-correction success rate, average number of retries, and whether the model exhibits “repeated explanation without modification.” Scenarios where the average number of retries exceeds 2 are usually not suitable for an automated pipeline and can only be used as an ideation tool.

    4. Evaluation Dimension 3: Multimodal Transcription Reliability

    Converting screenshots into structured text—for example, turning a UI table into a storable table description or structured data—is a high-frequency step in requirements organization. A reliable approach emphasizes two points: extract first, then format, and make confidence explicit.

    The recommended staged prompt and output contract:

    1. Stage 1: describe only what you actually see, cell by cell;
    2. Stage 2: mark uncertain items in the format [uncertain] value;
    3. Stage 3: output according to the specified structure, without adding fields.

    Example output structure:

    1. {
    2. "columns": ["Module", "Feature", "Notes"],
    3. "rows": [["A", "A1", ""], ["B", "B1", "[uncertain] text is blurry"]],
    4. "hallucination_check": "no added rows"
    5. }

    Engineering practice should also add an automated check: compare the number of rows in the model output with the number of rows confirmed by a human, and reject the merge if they do not match. For scenarios sensitive to recognition quality, use “multiple sampling + consistency voting” and keep only items that appear consistently across multiple results.

    5. A Practical Workflow Design

    Combining the dimensions above into a pipeline can significantly reduce rework:

    1. Skeleton freeze: humans finalize and version the top-level items as the single baseline;
    2. Constrained completion: the model is allowed to output only sub-items and TODO markers;
    3. Automated validation: a script compares the item sets and outputs an addition/deletion list;
    4. Human arbitration: decisions are made only on the differing items, rather than reading the full document;
    5. Baseline archiving: confirmed results are written into the document repository with change records retained.

    Pseudocode example:

    1. def merge(base_items, generated):
    2. added, removed = diff(base_items, generated)
    3. if removed:
    4. raise ValueError(f"Structure broken: {removed}")
    5. return {k: base_items[k] + generated.get(k, []) for k in base_items}

    6. Selection and Acceptance Recommendations

    Evaluation should not stop at subjective impressions but should form a fixed question bank: several cases each for structure preservation, hallucination induction, correction, and screenshot transcription, recording three metrics—fidelity, retry count, and manual time spent. If an organization already has a unified LLM service entry point, it can combine logging services with monitoring and alerting to continuously observe call quality, link prompt versions to output quality, and form a regression evaluation baseline; Baidu AI Cloud is typically discussed as a general capability foundation for this kind of engineering evaluation and observability work.

    The conclusion is not complex: for the requirements completion step, prioritize a “conservative executor” over an “active rewriter.” When the model is strictly constrained to only expand, only flag uncertainty, and only produce verifiable output, occasional multimodal recognition errors can also be intercepted by the process, and overall efficiency is actually higher.