A vendor's hallucination rate tells you almost nothing about your next detail aid

SwishX Team·8 min read
Contents
  1. Introduction
  2. What does an AI hallucination look like in pharma content?
  3. Why do fluent AI models produce hallucinations?
  4. How does grounding on approved sources prevent hallucinations?
  5. What checks should run after the model writes?
  6. How do you test an AI vendor's hallucination claims?
  7. What does a hallucination rate actually measure?
  8. Where SwishX fits
  9. Frequently asked questions

AI models invent references, shift numbers and soften risk in prose that reads as perfectly confident. The engineering that stops hallucinations in regulated content, how to test a vendor's claims, and what a hallucination rate really measures.

An AI hallucination in pharma content is a statement the model presents as fact that its sources do not support: an invented reference, a wrong number, an indication stated more broadly than the label allows, or a risk described more gently than the label describes it. Hallucinations happen because language models are trained to produce likely text, not verified text, and the fix is engineering around the model, not a better prompt.

This article is for the technical and content operations teams who build, buy or evaluate AI for regulated content. It goes past the compliance overview in our guide to generative AI in pharma marketing into the mechanics: why fluent models fabricate, the controls that prevent it, how to test a vendor's claims, and what a hallucination rate does and does not tell you.

What does an AI hallucination look like in pharma content?

Reviewers see four kinds. Invented or misattributed references: a real journal, plausible authors, a paper that does not exist, or a real paper that does not say what the sentence claims. Wrong numbers: a response rate from a different endpoint, a figure from a subgroup presented as the overall result, or a value rounded in the flattering direction. Drifting indications: a qualifier such as "in adults", "after prior therapy" or "as add-on treatment" quietly dropped. Softened risk: a boxed warning summarized as "some patients may experience side effects", or a contraindication left out.

References are the best-documented case. In a 2023 study in Cureus, researchers asked ChatGPT (GPT-3.5) to write 30 short medical papers. Of the 115 references it produced, 47% were fabricated, 46% were real but inaccurate, and only 7% were both real and accurate. A study in Scientific Reports the same year found fabricated citations fell from 55% with GPT-3.5 to 18% with GPT-4. Better, and still nowhere near zero.

The fabricated reference is the easy one, because a reviewer who checks it finds nothing. The dangerous hallucinations are one word long. A dropped population qualifier or a stronger verb reads naturally, cites a real source, and survives review unless someone compares it line by line with the label.

Why do fluent AI models produce hallucinations?

A language model predicts likely text. For common facts, likely and true usually coincide. For specifics, such as the exact population in an indication or the exact value of a secondary endpoint, the model has seen many similar labels, trials and summaries, and the most likely sentence can blend them. The result reads as fluently as a correct sentence, because fluency is what the model was optimized for.

A 2025 paper from OpenAI and Georgia Tech researchers, "Why Language Models Hallucinate", argues that this is a predictable outcome of how models are trained and scored. Pretraining produces errors on facts that appear rarely in the data, and most benchmarks score a confident guess above an honest "I don't know", which rewards guessing. Pharma content is made of exactly those rare facts: one product, one population, one endpoint.

NIST's Generative AI Profile (AI 600-1, July 2024) calls the risk confabulation: the production of confidently stated but erroneous or false content. The confidence is the operational problem. A wrong sentence carries no signal in the prose that it is wrong. That is why an instruction in the prompt, such as "use only approved claims", changes the odds but guarantees nothing. The controls have to sit outside the model.

How does grounding on approved sources prevent hallucinations?

Grounding, usually built as retrieval-augmented generation, means the system first retrieves passages from a defined source set and the model writes from those passages rather than from memory. In pharma the source set should be narrow and versioned: the current label for the market, the approved claims library with its references, the required safety information and the brand rules. Not the open web, not a superseded label, not another market's prescribing information. Retrieval should filter by market and label version before it ranks by relevance.

Citation should be at the level of the claim. Each sentence carries a pointer to the exact passage that supports it, and the system checks that the passage exists and actually supports the sentence before the draft goes anywhere. This is claim-to-reference linking done by the machine at the moment of writing, rather than by a person afterwards.

The system also needs permission to refuse. When retrieval returns no source that supports a requested statement, the correct output is a flag saying so, not a sentence. A request for a comparison you have no head-to-head data for, or a use outside the label, should produce a gap, routed to a person.

Grounding narrows the problem. It does not close it. A Stanford study of AI legal research tools, which use retrieval over case law and were marketed as hallucination-free, found they still hallucinated between 17% and 33% of the time, less often than general-purpose GPT-4 but far from never. Retrieval decides what the model reads. Something else has to check what it wrote.

What checks should run after the model writes?

Deterministic checks come first, because they are cheap and do not hallucinate. Every number in the output must match a number in its cited source exactly. Every reference ID must resolve to an entry in the reference library. Indication statements must contain the qualifiers in the label's indication text. Required safety information must be present for the channel. Phrases your MLR team never approves, such as unqualified superiority words, are flagged automatically.

Model-based checks come second. A separate model asked whether a source passage supports a sentence catches paraphrase drift that a string match misses, such as a stronger verb or a broader population. But that checker is probabilistic too, so treat its output as a filter that routes sentences to a person, not as a verdict that clears them.

Human review stays. MLR reviewers make judgments about evidence, balance and context that no check replaces. The engineering goal is that reviewers confirm rather than research: every claim shown next to its source passage, every automated flag explained, so their time goes to judgment instead of hunting for page numbers.

How do you test an AI vendor's hallucination claims?

Bring your own test. Give the vendor your label and a small approved claims set, then a list of requests you wrote yourself. Include traps: a request for an off-label use, a comparison you have no data for, two indications that differ only by population, and endpoints with similar numbers. Score every output yourself, sentence by sentence: supported, partly supported or unsupported, and check that every reference resolves and says what the sentence claims.

Ask to see the trace. For any sentence in any output, the vendor should show the source passage that supports it without a manual search. Then swap in an updated label and rerun the same requests. Outputs that do not change point to a stale or unversioned corpus, which is one of the quietest sources of hallucination in production.

Ask which checks are deterministic and which are another model's opinion, and what happens when there is no source. Keep your test set after the evaluation. Rerun it whenever the vendor changes the underlying model, the prompts or the retrieval, because each of those can move the error rate without anyone announcing it.

What does a hallucination rate actually measure?

A hallucination rate is defined by four choices: the task, the test data, what counts as a hallucination, and who or what judged it. Change any one and the number changes. Vectara's public leaderboard, often quoted in vendor decks, measures how often a model adds unsupported content when summarizing a short document, scored by Vectara's own detection model. It is useful for comparing models on that task. It does not tell you how often a system will misstate your label in a detail aid.

Definitions vary more than the numbers suggest. The Stanford legal study counted both incorrect statements and false claims that a source supports a proposition. Some vendor metrics count only fabricated references, which leaves out the dropped qualifier and the softened risk, the errors most likely to reach a physician.

Watch the denominator. A rate per response hides how long the responses were, and a rate per claim compounds across an asset. As simple arithmetic, a 1% per-claim error rate on a detail aid with 40 claims means roughly a one in three chance that the asset contains at least one error. And a system can post a very low hallucination rate by refusing most requests, so ask for the refusal rate alongside it.

The numbers worth asking for are per claim, on your test set, broken down by error type and severity, with the refusal rate next to them. An invented reference and a dropped population qualifier are both hallucinations. They are not the same risk.

Where SwishX fits

Magic Studio writes from your Brand Dossier and claims library, not from the open web. Across Video, Docs, Ads, Approved Email and Web, every claim is cited to its source and checked against the label for its market, fair balance and safety information are placed in the asset as it is made, and anyone can ask an asset where a line came from.

Finished work goes into your MLR queue and on into Veeva PromoMats with every claim and its reference attached, so reviewers confirm rather than re-research. The test in this article applies to us as much as to anyone: bring your own label and your own traps to Magic Studio and check the trace for yourself.

Frequently asked questions

What is an AI hallucination?

An AI hallucination is output that a model states confidently but that is false or not supported by its sources, such as an invented reference or a wrong number. NIST calls this risk confabulation in its Generative AI Profile.

Why does ChatGPT make up references?

Language models generate the most likely text, and a citation with a plausible journal, authors and year is likely text whether or not the paper exists. Without retrieval from a verified reference library and a check that each reference resolves, nothing stops a fabricated citation.

Does retrieval-augmented generation eliminate hallucinations?

No. Retrieval reduces hallucinations by giving the model approved sources to write from, but models can still misstate or overstate what those sources say. A Stanford study found retrieval-based legal AI tools still hallucinated between 17% and 33% of the time, so post-generation checks and human review are still needed.

Who is responsible if AI-generated pharma content contains a false claim?

The company that disseminates it. FDA's rules for prescription drug promotion apply to content however it was produced, so an AI-generated claim is held to the same standard as one written by a person.

How do you measure an AI hallucination rate?

Build a test set from your own label and approved claims, including requests that should be refused, then score each output claim by claim as supported or unsupported. Report the rate per claim, by error type and severity, alongside the refusal rate.

Filed underEngineering

Keep reading

All articles

Want to see Magic Studio on your brand?

Video, docs, ads, approved email and web, made from your approved claims and ready for MLR review.