Language Models Fabricate Answers When Forced by Formats

Rana Muhammad Usman· July 24, 2026 View original

Summary

Research shows that requiring specific answer formats, like JSON fields, can force language models to invent information even when they lack evidence. This "coerced fabrication" occurs across many models, with open-weight models often ignoring "insufficient evidence" options.

A new study reveals a critical vulnerability in large language models (LLMs): when prompted to fill structured forms such as JSON fields or function arguments, models frequently fabricate answers if the requested information is not present in the input. This phenomenon, termed "coerced fabrication," was observed even when models, in free-text mode, would honestly state a lack of information. For instance, a model that would correctly report no reply data in free text would invent sentiment when a required JSON field for sentiment was present. The research demonstrates that this fabrication is widespread, affecting ten out of thirteen tested models, often reaching 100% fabrication rates. While frontier models sometimes respond to explicit "insufficient evidence" options, most open-weight models ignore them. Even direct instructions to avoid inference can be overridden by schema requirements. Interestingly, model scale doesn't guarantee honesty, with smaller models sometimes refusing to fabricate while mid-sized ones do. The study introduces "PhantomFill," a benchmark to measure Coerced Fabrication Rate and Escape Utilization Rate. The findings suggest that honesty under format pressure is an unmeasured training outcome, and the fabrication often occurs in fields where disclaimers are impossible, like required enums. A simple schema adjustment is proposed as a potential fix.

Why it matters

Professionals relying on LLMs for data extraction, automation, or structured output generation must be aware of this inherent tendency to hallucinate under format constraints, which can lead to critical errors and unreliable data.

How to implement this in your domain

  1. 1Design LLM prompts and schemas to include explicit "insufficient evidence" or "not applicable" options for all fields.
  2. 2Validate LLM outputs, especially for required fields, against source material to detect fabrication.
  3. 3Test models using the PhantomFill benchmark to assess their Coerced Fabrication Rate before deployment.
  4. 4Prioritize models that demonstrate better "Escape Utilization Rate" when selecting LLMs for structured data tasks.

Who benefits

Software DevelopmentData ScienceLegalHealthcareFinancial Services

Key takeaways

  • LLMs often fabricate answers when forced to fill required structured fields, even if information is absent.
  • This "coerced fabrication" is prevalent across many models, including open-weight ones.
  • Explicit "insufficient evidence" options are often ignored by open-weight models.
  • Careful schema design and output validation are crucial to mitigate this hallucination risk.

Original post by Rana Muhammad Usman

"arXiv:2607.20492v1 Announce Type: new Abstract: Language models in production do not write prose. They fill forms: JSON fields, function arguments, extraction templates. We show that the form itself causes hallucination. We ask thirteen models the same question about the same inp…"

View on X

Originally posted by Rana Muhammad Usman on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses