LLM Writing Quality Control: Reducing Hallucinations and Verifying Citations in Practice

    This article presents a practical, engineering-oriented approach to controlling quality in LLM-generated writing. It explains how to shift the goal from producing complete prose to producing evidence-backed content, how to establish fact boundaries by separating source material, background knowledge, and inference, and how to organize materials into a structured evidence pack with stable citation anchors. It also covers building a claim-to-evidence map before writing, designing constraint prompts that specify how to handle missing information, running four test tasks to validate quality control, defining evaluation metrics, and splitting work between automated checks and human review. The core message is that quality control does not promise to eliminate hallucinations entirely, but makes unsupported completion easier to detect, expresses uncertainty appropriately, and makes errors locatable and fixable.

    1. Shift the Goal First: From “Complete Writing” to “Sufficient Evidence”

    In scenarios such as reports, proposals, business analysis, and policy interpretation, large language models can quickly organize paragraphs, adjust phrasing, and produce a first draft. But the more fluent the text, the easier it is for readers to overlook one question: are the numbers, citations, and conclusions actually backed by evidence?

    Hallucination in writing does not show up only as obvious errors. More common cases include inventing a number to fill a gap in the source material, generalizing a local sample into an industry-wide conclusion, presenting correlation as causation, or attaching a seemingly well-formed citation number to a claim that has no source.

    So the core of quality control is not to make the model “make as few mistakes as possible,” but to establish clear production rules:

    • Facts backed by evidence must be traceable to the original material.
    • Analysis derived from facts must state its derivation conditions.
    • Information lacking evidence must be left blank or explicitly marked.
    • High-risk claims that cannot be verified before publishing must not be released just because the text reads smoothly.

    This is a general writing-engineering method. It does not depend on any specific model capability, and you should not judge whether the whole system is reliable based on a single generation result.

    2. Establish Fact Boundaries: Separate Material, Background, and Inference

    2.1 User-Provided Material Is Not Verified Fact

    Material provided by the user can serve as a basis for writing, but the material itself may be outdated, contain typos, or apply only to a specific scope.

    For example, an internal record may state that “the pilot cycle for a certain business was two weeks.” The model can describe the pilot arrangement based on this, but it must not go further and write that “this type of business can typically complete deployment in two weeks.” The latter has shifted from a specific record to a general conclusion.

    In practice, you should record two kinds of information at the same time:

    • Source attribute: whether the content comes from user material, retrieved material, or general background knowledge.
    • Verification status: whether the source has been checked, whether version conflicts exist, and whether it is still within its applicable period.

    “User-provided” tells you where the information comes from; “verified” tells you how reliable it is. The two must not be conflated.

    2.2 Retrieval Results Are Only Candidate Evidence

    Retrieval can supply supplementary material, but finding something does not mean it can be cited directly. A summary may omit qualifying conditions, and multiple pages may restate the same original source, so they cannot be treated as independent evidence.

    When bringing in external material, check:

    • Whether you can read the original passage that supports the claim.
    • Whether the publication date and applicable period are clear.
    • Whether the publishing entity is relevant to the article’s topic.
    • Whether the statistical object, scope, unit, and measurement basis are consistent.
    • Whether a newer version or contradictory material exists.

    If you can obtain only a fragment and cannot confirm the context, the citation should note the evidence limitation; do not treat the fragment as a complete conclusion.

    2.3 Model Common Sense Cannot Replace a Specific Source

    General background knowledge can help explain concepts, such as why sample scope affects a conclusion. But specific business metrics, policy clauses, market size, and product capabilities require corresponding material support.

    A practical test: if a reader might act on the information, calculate returns from it, or judge compliance based on it, you should require evidence first rather than relying on the model’s natural completion.

    2.4 Inference Must Be Layered Separately from Fact

    Inference is not off-limits, but it needs to make its basis and boundaries explicit.

    For example:

    “The material shows that average processing time declined during the pilot. If business complexity and measurement method stay consistent, this may indicate that the process change improved processing efficiency; but the current material is insufficient to rule out the effect of personnel changes.”

    This phrasing separates the observation, the conditions, and the interpretation, avoiding the packaging of limited evidence as a definite conclusion.

    3. Organize an Evidence Pack: Give Citations a Stable Anchor

    Handing a batch of long documents directly to the model easily leads to confused paragraph positions, mixed versions, and citation drift. A more reliable approach is to first organize the material into a structured evidence pack.

    Each piece of material should contain at least:

    Field Purpose
    Document ID Uniquely identifies the material within the task scope
    Document title Helps a human confirm the material’s content
    Version or date Prevents mixing different versions
    Paragraph or clause number Locates the citation position
    Original excerpt Preserves the text that supports the claim
    Applicable scope Limits the object, time, and conditions
    Verification status Distinguishes confirmed, pending, and disputed

    Evidence IDs can use a simple form such as “material01-paragraph03.” If the material is updated, you should rebuild the anchor relationship; do not assume the old ID still points to the same content.

    For tables, you should also preserve the table name, row and column headers, units, and notes. A single value stripped of its header often loses its full meaning.

    The following is a fictional process demonstration, not any actual business data:

    1. Evidence ID: material01-paragraph03
    2. Original excerpt: This pilot included two business groups, with an observation period of two weeks.
    3. Applicable scope: Describes only this pilot arrangement.
    4. Supports: pilot coverage and observation period.
    5. Does not support: long-term returns, overall rollout effect, industry average.
    6. Verification status: demonstration material.

    Adding the “does not support” note helps identify over-extrapolation. But in the end you must still review the actual claim; the presence of a field alone does not make it acceptable.

    4. Build a “Claim-to-Evidence” Map Before Writing

    The article structure should follow the evidence, rather than filling the body first and adding citations afterward.

    4.1 Split Claims into Independently Verifiable Units

    “The proposal reduces cost, improves efficiency, and enhances user satisfaction” contains three different claims. Even if the material supports the efficiency improvement, it does not automatically support the other two outcomes.

    So you should break key sentences into the smallest verifiable units and determine evidence for each one separately.

    4.2 Judge the Degree of Evidence Support

    Each claim can fall into one of four states:

    • Directly supported: the material states it explicitly, with matching scope and measurement basis.
    • Conditionally supported: it holds only with additional assumptions.
    • Not supported: the material has no relevant content, or the scope clearly differs.
    • Conflicting: different materials give inconsistent information.

    Conditionally supported content can be used as analysis, but the assumptions must be stated. Not-supported content should be deleted, rewritten as a question, or added to a to-be-supplemented list.

    4.3 Preserve the Calculation for Numbers

    A number computed from the material is not necessarily a hallucination, but it must be re-computable.

    For example, a change ratio should state the baseline value, the comparison value, the unit, and the calculation method, and confirm that the comparison objects are consistent. You also need to distinguish “percentage-point change” from “relative change ratio” to avoid expression errors.

    A computed result can be labeled as “calculated from values in the material”; it must not pose as a statistical conclusion given directly in the original text.

    5. Design Constraint Prompts: Specify How to Handle Missing Information

    “Do not fabricate” is too vague. An effective prompt should specify the usable material, prohibited actions, output structure, and rules for handling missing information.

    You can use the following task template:

    1. Task: Generate a technical analysis article from the given evidence pack.
    2. Constraints:
    3. 1. Use only content from the evidence pack for specific facts and numbers.
    4. 2. Tag each key fact with its evidence ID.
    5. 3. Inference must state its basis and the conditions under which it holds.
    6. 4. Mark missing information as "to be verified"; do not fabricate values or citations.
    7. 5. When conflicts exist, describe the conflict; do not pick one version yourself.
    8. 6. Do not remove the time, object, and scope limitations from the original material.
    9. 7. When there is not enough to form a conclusion, state which materials are missing.
    10. Output:
    11. Body text, claim-evidence table, to-be-verified list.

    A prompt is one constraint, not a guarantee of correctness. The model may still ignore requirements, misread the material, or generate non-existent evidence IDs. So prompt design must work together with subsequent verification.

    6. Use Four Task Groups to Test Whether Quality Control Works

    Task 1: Constrained Writing with Sufficient Material

    Provide material with a clear scope and stable paragraph numbering, and ask for body text within a set length.

    Focus on checking:

    • Whether numbers, dates, and units are consistent.
    • Whether the sample and time range are preserved.
    • Whether citations point to real paragraphs.
    • Whether result descriptions not provided by the material are added.

    When setting the length, account for evidence capacity. If the material supports only a few facts but you ask for a very long article, you increase the risk of repetition and unsupported expansion.

    Task 2: Structured Writing with Missing Material

    Provide only a title, an outline, and a little background, deliberately missing key data, and ask for a framework and a list of items to be supplemented.

    The test goal is not whether the article can be “filled out,” but whether the system can hold the boundary. An acceptable result should make clear which parts can be completed and which parts cannot yet form a conclusion, and should raise specific supplementation needs, such as the statistical period, sample size, metric definition, and original records.

    Task 3: Citation Matching and Format Stability

    Provide multiple materials with similar numbers, different time ranges, and different statistical objects, and test whether the system can match them correctly.

    Verification cannot look at citation format alone. A real evidence ID can still be attached to an unrelated sentence. So you need to check both layers: “the ID exists” and “the content supports it.”

    Task 4: Error Correction After Challenge

    Pick a key point in the first draft and challenge it, asking the system to provide:

    1. The original sentence and the evidence it used.
    2. Whether the original sentence is supported.
    3. The cause of the error or the evidence gap.
    4. The revised phrasing.
    5. Other paragraphs affected by this change.

    If a number is withdrawn, the summary, chart captions, and final recommendations may also need to be updated in sync. Fixing a single sentence alone cannot guarantee consistency across the whole text.

    7. Evaluation Metrics: Check Both Errors and Useful Information

    Evaluation should be based on actual output; do not write design goals as performance results already achieved.

    7.1 Unsupported-Fact Ratio

    Using independent factual claims as the unit, measure the proportion that lacks sufficient evidence support. This metric reflects content overreach, but the labeling standard must be made explicit.

    7.2 Citation Validity Rate

    Among claims that carry citations, measure the proportion whose source can be located and genuinely supports the claim.

    “A large number of citations” does not mean “high citation quality”; wrong citations can even increase how misleading the text is.

    7.3 Key-Claim Coverage

    Check whether the core claims that should be cited all have evidence. This prevents the system from adding citations only to easy-to-verify background sentences while leaving important conclusions unsourced.

    7.4 Quality of Missing-Information Handling

    Observe whether the system identifies gaps, whether it marks them explicitly, and whether the supplementation needs it raises are specific and actionable.

    You cannot just count how often “to be verified” appears. A large number of vague markers may simply be avoiding the task rather than managing uncertainty effectively.

    7.5 Correction and Regression Performance

    Record whether, after a challenge, the system removes the error, keeps the correct content, and updates related conclusions in sync. During revision, also check whether new unsupported information is introduced.

    When re-testing, fix the material version, prompt template, task requirements, and the generation configuration actually used, and run multiple tests. Results need to state the sample scope and variance; avoid using a single success to represent stable capability.

    8. Engineering Implementation: Dividing Work Between Automated Checks and Human Review

    A recommended flow:

    Material organization → Evidence anchoring → Claim planning → First-draft generation → Automated checks → Human review → Revision and archiving.

    Automated checks are suited to finding structural problems, such as non-existent citation IDs, missing required fields, or body numbers that disagree with the source record. Below is tool-agnostic illustrative pseudocode:

    1. For each claim:
    2. If the claim is a specific fact and has no evidence:
    3. Add to review queue
    4. For each linked piece of evidence:
    5. If the evidence ID does not exist:
    6. Mark citation invalid
    7. If the claim contains a number:
    8. Check the value, unit, time range, and measurement basis
    9. If the claim is an inference without stated conditions:
    10. Mark missing inference boundary

    These rules cannot complete all semantic verification. The appearance of a number in the source does not mean the body uses it correctly; similar wording does not mean the evidence supports a causal conclusion.

    Human review should focus on semantic matching, out-of-scope extrapolation, causal interpretation, and high-risk content. For articles used in important decisions or published externally, assign a clear review owner; do not treat another round of model self-checking as independent evidence.

    9. Make Verifiability a Publishing Condition

    The final deliverable should not be body text alone; it should also include a claim-evidence table, a to-be-verified list, and a revision record. For a formal version, it is recommended to check:

    • All key facts can be traced to the material.
    • The unit, measurement basis, and calculation of numbers are clear.
    • Inference and fact are distinguishable in expression.
    • Missing information is not packaged as a definite result.
    • Conflicting material has been explained or resolved.
    • The summary and body use a consistent version of the facts.
    • High-risk conclusions have undergone human review.
    • The document version, evidence pack, and review record are traceable.

    The value of LLM writing quality control lies not in promising to eliminate hallucinations entirely, but in making unsupported completion easier to detect, expressing uncertainty reasonably, and making errors locatable and fixable.

    When content production shifts from “one-shot generation” to “generation and review under evidence constraints,” the model becomes better suited as a writing collaboration tool: the model handles organization and expression, the evidence supports the facts, and the review process decides what can be published.