Detect mixed claims in generated text
Learn citation coverage testing to flag paragraphs mixing supported and unsupported claims in generated text. Improve your hallucination detection workflow.
Identify paragraphs mixing verified facts with unverified claims by running sentence-level verification and scoring the parent paragraph. Assign a failing score to any paragraph containing a mix of supported and unsupported statements. Flag that paragraph for immediate manual review before publishing. This process isolates subtle hallucinations that standard full-text checks frequently miss.
Sentence-Level Verification Process
To implement citation coverage testing, split every generated output into individual sentences. Run each sentence through a verification check against your reference source text. Assign a binary score of one to supported sentences and zero to unsupported ones Google Cloud guidance on choosing an evaluation method.
Paragraph scores aggregate these sentence values. If a paragraph contains a mix of ones and zeros, assign a final paragraph score of zero. This zero flags the entire paragraph for human review. Sentence-level checking prevents high-confidence hallucinated details from hiding inside paragraphs that begin with true statements.
Synthetic Example of Mixed Claim Detection
Consider a generated summary based on an internal company memo. The reference memo states that the sales team expanded into France during the third quarter.
The generated output produces a single paragraph with two sentences. Sentence one reads: The sales team expanded into France during the third quarter. Sentence two reads: The team secured twelve enterprise accounts in Paris by September.
Sentence one receives a score of one because it matches the reference memo. Sentence two receives a score of zero because the source material never mentions account counts or Paris. The mixed paragraph receives an overall score of zero and routes directly to an editor.
Diagnosing High Precision False Passes
A common operational failure occurs when evaluation tools aggregate scores at the document level rather than the paragraph level. Document averaging dilutes single unverified claims across lengthy, accurate passages NIST generative AI risk profile.
When a ten-paragraph report contains nine fully accurate paragraphs and one mixed paragraph, a document-level metric reports high accuracy. The unverified claim passes into production unchecked. Fix this failure by enforcing paragraph-level gating. Any single failing paragraph must block publication of the full output until a reviewer resolves the unverified sentence.
Verifying System Performance
Verify your detection workflow by auditing a sample of flagged outputs against human editor decisions. Calculate precision and recall for your paragraph flagging system to ensure unverified statements trigger review routing.
Track how often editors agree with automated flags. Adjust sentence comparison rules if editors clear flagged paragraphs without making edits. Document unmeasurable edge cases, such as logical inferences that draw on common business knowledge rather than direct source text, to maintain clear review board records.