Implementation Guide

How to Detect Fabricated Citations in AI-Generated Answers

To detect fabricated citations in AI-generated answers, verify every citation at runtime before the answer is used. Resolve the cited source, compare its metadata, retrieve the relevant passage, test whether the passage supports the claim, apply a policy to the result, and log the evidence. Each step catches a different failure, and none is sufficient alone.

Four ways a citation can fail

A fabricated citation is not always a reference to a document that does not exist. The table below separates four failure categories, because each one requires a different check.

Four citation failure categories
CategoryDescription
Nonexistent sourceNo document matches the reference.
Incorrect metadataThe source exists but is described wrongly.
Misattributed claimThe claim is real but belongs to a different source.
Unsupported claimThe source is real but does not back the claim.

A layered verification pipeline

Verify every citation at runtime, before the answer is used, by working through these steps in order.

  1. Resolve the cited source. Confirm that a document matches the reference.
  2. Compare its metadata. Check that the source is described correctly.
  3. Retrieve the relevant passage. Pull the part of the source that bears on the claim.
  4. Test whether the passage supports the claim. Record an entailment label and score.
  5. Apply a policy to the result. Decide what happens to the answer.
  6. Log the evidence. Keep a record for audit.

Where each method breaks down

Each step catches a different failure, and none is sufficient alone. Use the steps together rather than relying on any single check.

Enforcing results as runtime policy

Verification results only matter if they change what happens to the answer. Apply a policy to each result before the answer is used, and record the policy applied, the action taken, and any human reviewer override with its rationale.

What to log for each citation

Log the evidence for every citation so each decision can be audited.

  • Request and answer identifiers, model and version, and a reference to the retrieved context
  • The claim span and the citation exactly as the model emitted it
  • Source resolution result (resolved, unresolved, unreachable), with method and timestamp
  • Metadata comparison result, including which fields mismatched
  • Retrieved passage reference, entailment label, score, scorer version, and threshold used
  • Policy applied, action taken, and any human reviewer override with rationale