Jump to Section (07)
- 01 / Why do 100% schema-valid JSON outputs still corrupt business databases?
- 02 / How do required JSON fields force language models to invent facts?
- 03 / Where do schema descriptions, tool calling, and large enum lists silently fail?
- 04 / How does decoupling reasoning from schema enforcement recover accuracy and tool use?
- 05 / What four architectural controls keep structured outputs safe in production?
- 06 / Frequently Asked Questions
- 07 / Primary Sources (08)
- Required JSON fields force models to invent facts: On unanswerable inputs across thirteen models, changing only output format flips honesty sharply [1]. In prose, GPT-5.5 says reply data is missing 98% of the time, yet in a required JSON field it invents sentiment 40 times out of 40, driving fabrication to 100% in ten of thirteen models [1].
- Valid JSON hides business logic errors: Across 2,400 calls to 4 open models on a restaurant ordering benchmark (OrderBench), the strongest model hits 100% schema validity while semantic success stays near 80%, and weaker models emit double-digit unsafe acceptances [2]. On 5 small open-source models (0.6B-4B parameters) across 14 tasks, token-level format locking (constrained decoding) lifts validity from 78.6-92.9% to 100% while multi-step instruction misses persist [3].
- Schema conflicts, muted tools, and slow value lists stall production: When prompts and schema notes conflict across 10 setups in a single-field test, bad schema instructions cut accuracy 5-45 points, dropping Claude Haiku 4.5 from 52.5% to 7% and GPT-5.5 from 100% to 73% [4]. Joint tool calling and JSON format filters mute tool use in open-weight models [5], and large lists of valid strings hold a standard grammar decoder (XGrammar) to 7.5 req/s at 256 concurrent requests [7].
- Two-pass formatting and field design recover accuracy: Writing a free draft before locking JSON syntax (Draft-Conditioned Constrained Decoding) lifts strict structured accuracy up to +24 percentage points over standard token-locked decoding, moving a 1B-parameter model from 15.2% to 39.0% on the GSM8K math test [6]. Putting a required reasoning field before a classification label lifts accuracy 15-24 points when rules sit in the schema alone and room to improve exists [4], and two-pass execution restores open-model tool calls [5].
- Four controls keep live data clean: Split planning and tool calls from format filters [4] [5] [6], remove forced-fill fields and unify prompts with schema notes [1] [4], use pre-built prefix lookup indexes (trie automata: 219 vs. 7.5 req/s across 256 concurrent requests in the vLLM serving engine, 29X faster, sub-100ms setup to 10,000 values, 100% validity) plus fail-closed domain checks [2] [7], and score field trustworthiness (CONSTRUCT) for review [8].
- 98% honest prose vs. 40 of 40 fabrications: GPT-5.5 admits reply data is missing 98% of the time in prose yet invents sentiment 40 times out of 40 in a required JSON field, with ten of thirteen models hitting 100% fabrication [1].
- 100% schema validity vs. ~80% semantic success: Across 2,400 restaurant ordering calls (OrderBench), the strongest open model hits 100% schema validity while semantic success stays near 80%, and schema conflicts drop GPT-5.5 from 100% to 73% and Claude Haiku 4.5 from 52.5% to 7% [2] [4].
- Up to +24 percentage points from draft-first formatting: Writing a free draft before token-level format locking raises a 1B-parameter model from 15.2% to 39.0% in strict accuracy on the GSM8K math test over standard constrained decoding [6], while a required reasoning field before a label lifts accuracy 15-24 points when rules live in the schema alone and room to improve exists [4].
- 29X faster serving on large value lists: Pre-built prefix lookup indexes (trie automata) hit 219 req/s vs. XGrammar's 7.5 req/s across 256 concurrent requests in the vLLM serving engine, holding sub-100ms setup up to 10,000 values with 100% validity [7].
Why do 100% schema-valid JSON outputs still corrupt business databases?
Operations leaders turn on structured outputs because broken brackets crash downstream connectors. A team enables JSON Schema mode, watches parse errors vanish, and wires payloads straight into an enterprise resource planning (ERP) or customer relationship management (CRM) database.
Every monitor turns green. Payloads match every key and data type.
Weeks later, operations uncovers quiet corruption inside clean tables. Support logs invent customer quotes from missing call transcripts. Automated order intake approves invalid requests. Tagging accuracy drops right after a routine prompt update.
Syntax checks never inspect truth. Structured output locks the shape of a record, never whether the values inside are faithful [1] [2] [3].
Eight primary studies map where JSON Schema enforcement breaks live workflows and which controls fix each gap.
| Primary Study | Evaluation Scope | Verified Finding | Operational Takeaway |
|---|---|---|---|
| PhantomFill [1] | Thirteen models on unanswerable inputs, prose vs. JSON forms | GPT-5.5 admits missing data 98% in prose yet fabricates 40 of 40 in a required JSON field, 100% in ten of thirteen models | Audit required enums and arrays for forced guesses |
| OrderBench [2] | 2,400 calls, 4 open models, restaurant ordering agents | Strongest model hits 100% schema validity yet stays near 80% semantic success, weaker models show double-digit unsafe acceptances | Add domain verification and fail-closed gates |
| Small LLM Decoding [3] | 5 small open-source models (0.6B-4B parameters, 3 families), 14 tasks | Schema validity rises from 78.6-92.9% to 100%, fixing type errors while multi-step instruction misses persist | Separate format checks from content audits |
| Schema Weighting [4] | 10 setups, 2 vendors, single-field classification using invented (nonce) labels | Conflicting schema rules cut accuracy 5-45 points (Haiku 4.5 to 7%, GPT-5.5 to 73%), required reasoning field adds 15-24 points to schema-only accuracy when headroom existed | Keep one source of truth across prompts and schemas |
| Tool Suppression [5] | Open-weight LLMs running tool calling and JSON Schema together | Grammar token filters block tool-call tokens, Transparent Two-Pass Execution restores tool invocation | Split tool execution from JSON formatting |
| Draft-First Decoding [6] | Structured reasoning tests, standard constrained decoding vs. draft-first (DCCD) | Unconstrained draft before format locking lifts strict accuracy up to +24 percentage points (15.2% to 39.0% on GSM8K 1B) | Let models plan freely before locking syntax |
| Prefix Lookup Indexes [7] | 7 tokenizer families (32K-262K token vocabularies), 256 concurrent requests in vLLM | Pre-built prefix indexes (trie automata) run 7X faster per step (0.65 us vs. 5.8 us) and 29X faster throughput (219 vs. 7.5 req/s), sub-100ms setup to 10,000 items | Replace generic grammar decoders on big value lists |
| Field Trust Scoring [8] | 4-dataset benchmark, any LLM (including Gemini 3, GPT-5) | CONSTRUCT scores whole records and single nested fields without token probabilities (logprobs) or labeled data | Route human review to lowest-trust fields |
This gap sits beside workbook errors in why AI document and spreadsheet extraction breaks at scale and abstention failures in why enterprise RAG chatbots guess without escalating. The first breakdown starts when a required field forces an answer that does not exist.
How do required JSON fields force language models to invent facts?
Picture a support queue that fills a CRM record with customer sentiment, category, and quote fields.
Now suppose a ticket arrives from an untranscribed call. A human analyst flags the missing audio. Cornered by a required JSON form, a language model behaves differently.
Usman isolated this in PhantomFill across thirteen models by asking identical questions about unanswerable inputs while changing only output format [1].
In prose, GPT-5.5 stated there was no reply data 98% of the time [1]. Given a required JSON sentiment field on the same input, GPT-5.5 invented an answer 40 times out of 40 [1].
Required fields drove fabrication to 100% in ten of thirteen models [1]. Even a direct rule not to infer sentiment was overridden by the schema in 4 of 6 models [1].
An explicit "insufficient evidence" enum rescued only frontier models, while all 9 open-weight models ignored it [1]. Even under grammar-constrained decoding where the escape option remained reachable, 5 open models spent it zero times out of 203 trials on the 3 fabrication fields [1]. Fabrication hides in required enums and minimum-count arrays because no disclaimer fits [1].
Even when every fact exists in the input, valid JSON still hides transaction errors. Li measured this in OrderBench, a deterministic benchmark for restaurant ordering agents tracking syntax, schema validity, status decisions, exact items, constraint preservation, and unsafe acceptances [2].
Across 2,400 Nebius Token Factory calls to 4 open models in prompt-only and JSON-schema modes, valid JSON still carried large semantic error rates [2]. In the strongest model, both modes hit 100% schema validity while semantic success stayed near 80% [2]. Weaker models showed double-digit schema-valid unsafe acceptances [2].
Chavan confirmed this split across compact open-source models [3]. Benchmarking 5 models (0.6B-4B parameters, 3 families) across 14 tasks under native decoding, Outlines, and XGrammar eliminated every structural failure [3]. Schema validity rose from 78.6-92.9% to 100% across all 5 models [3].
Yet content accuracy exposed a scale-dependent semantic gap [3]. Constrained decoding rescued wrong data types (type coercion), while multi-step instruction misses like function calling stayed resistant [3]. Schema validity stops parser crashes, never bad data [2] [3].
Where do schema descriptions, tool calling, and large enum lists silently fail?
Teams often treat JSON schemas as passive backend plumbing while updating system prompts separately. Models read field descriptions as a second instruction channel, and format filters collide with tool calling and large lookup lists.
Three operational failures surface quickly past staging.
First, prompt and schema conflicts wreck classification accuracy. Lin tested placing label definitions in system prompts, user prompts, or schema descriptions using a single-field task with nonce labels across 10 model setups from 2 vendors [4].
For GPT-4.1 and GPT-5.4 without reasoning, schema placement trailed system prompts by 11-13 percentage points [4]. When prompts and schemas conflicted, wrong schema instructions cut accuracy 5-45 points [4]. Claude Haiku 4.5 collapsed from 52.5% to 7%, showing schema text can override prompt rules, while GPT-5.5 fell from 100% to 73% [4].
Second, enabling structured outputs alongside tools mutes tool calls. Li, Zhang, and Lv documented Tool Suppression when tool calling and JSON Schema constraints ran together: multiple open-weight models stopped invoking tools despite maintaining high schema compliance [5]. Compiling JSON Schema rules into grammar-based token filters made tool-call tokens unreachable during decoding [5]. Dashboards still show valid JSON arriving on schedule while the agent skips external lookups.
Third, long enterprise value lists hit a speed wall under generic grammar decoders. Workflows routinely restrict fields to thousands of valid stock-keeping unit (SKU) codes, account IDs, or vendor names.
Xu and Bouyarmane showed general-purpose grammar compilation hits a cardinality wall once valid strings grow into the thousands [7]. In vLLM at batch size 256, XGrammar runs at just 7.5 req/s [7]. High-volume intake queues stall immediately under runtime masking overhead.
How does decoupling reasoning from schema enforcement recover accuracy and tool use?
Forcing an LLM to solve a rule and obey strict JSON filters on one pass pits syntax against reasoning. Splitting planning from formatting resolves that clash.
Reddy and colleagues explained why token-by-token constrained decoding lowers accuracy [6]. Masking and probability renormalization distort generation when valid continuations have low probability mass, nudging outputs onto locally valid yet semantically wrong trajectories [6].
Their training-free fix, Draft-Conditioned Constrained Decoding (DCCD), runs two steps [6]. First, the model writes an unconstrained draft [6]. Second, constrained decoding formats the final JSON conditioned on that draft [6]. Across structured reasoning benchmarks, DCCD raised strict accuracy up to +24 percentage points over standard constrained decoding, lifting a 1B-parameter model from 15.2% to 39.0% on GSM8K [6].
Commercial APIs gain from field order too. Across Lin's 10 model setups, adding a required intermediate reasoning field before the label field raised schema-only accuracy 15-24 points whenever headroom existed [4]. That change beat system-prompt-only accuracy in every tested case, even on Claude Sonnet 4.6 at medium reasoning where extended thinking alone did not match it [4].
For open-weight agents combining tools with strict JSON, Transparent Two-Pass Execution fixes Tool Suppression without retraining [5]. Pass one runs tools with zero JSON grammar filter blocking tool tokens, and pass two runs schema-constrained response generation on those tool results [5].
What four architectural controls keep structured outputs safe in production?
Before letting LLM-generated JSON write directly into ERP, CRM, or billing tables, leaders should require four verifiable controls.
- Decouple planning and tool calls from format locking. Never push reasoning or tool calls through one locked pass. Use draft-first constrained decoding (up to +24 percentage points strict accuracy over standard constrained decoding, 15.2% to 39.0% on GSM8K 1B) [6], Transparent Two-Pass Execution to fix Tool Suppression in open-weight agents [5], or a required intermediate reasoning field before the label (improving schema-only classification accuracy 15-24 points when headroom existed) [4].
- Eliminate forced-fill traps and unify instructions. Audit required enums and minimum-count arrays against missing-data records so models are never cornered into 100% fabrication [1]. Keep one canonical source across prompts and schema notes so conflicts cannot cut accuracy 5-45 points [4].
- Use pre-built prefix lookup indexes on large catalogs plus fail-closed checks. For large finite string lists, replace generic grammar compilation with precomputed trie automata [7]. Across 7 tokenizer families (32K-262K vocabulary), trie indexes run 7X faster per step than XGrammar (0.65 us vs. 5.8 us), compile 2-6.5X faster at 300 or more values, hold sub-100ms setup to 10,000 values with 100% validity, and lift batch-256 vLLM throughput 29X from 7.5 to 219 req/s [7]. Pair schema checks with domain verification and fail-closed execution [2].
- Score field-level trustworthiness to focus human review. Even strong models emit sporadic errors inside valid JSON [2] [8]. Goh and Mueller built CONSTRUCT, a real-time uncertainty estimator scoring whole records and individual fields inside nested JSON schemas [8]. It runs on any LLM, including black-box APIs without logprobs or labeled data [8]. Across a 4-dataset benchmark covering Gemini 3 and GPT-5, CONSTRUCT caught errors with significantly higher precision and recall than existing methods, directing reviewers to low-trust fields [8].
At AITHOS LLC, extraction and transaction workflows pair decoupled generation with unified schemas, fail-closed domain checks, and field-level review queues so valid JSON never becomes silent database corruption.
Frequently Asked Questions
Does upgrading to a frontier API stop required JSON fields from inventing values?
No. In PhantomFill, GPT-5.5 stated reply data was missing 98% of the time in prose, yet invented sentiment 40 times out of 40 in a required JSON field [1]. Required enums and minimum-count arrays push fabrication to 100% in ten of thirteen models [1].
Can adding an explicit insufficient-evidence enum fix open-weight extraction pipelines?
Not alone. An explicit "insufficient evidence" choice rescued only frontier models, while all 9 open-weight models ignored it [1]. Under grammar-constrained decoding where the escape option stayed reachable, 5 open models spent it zero times in 203 trials on the 3 fabrication fields [1].
Why do large SKU or account-code lists stall vLLM and SGLang serving throughput?
General-purpose grammar decoders hit a cardinality wall once finite valid-string sets reach the thousands [7]. In vLLM at 256 concurrent requests (batch 256), XGrammar runs at 7.5 req/s, while precomputed trie automata reach 219 req/s (29X faster) with sub-100ms compile up to 10,000 values and 100% validity [7].
Should classification rules live in the system prompt or inside field descriptions?
System prompts remain the safer default because schema placement trailed system prompts by 11-13 percentage points on GPT-4.1 and GPT-5.4 without reasoning [4]. Keeping one source of truth matters most because conflicting schema instructions cut accuracy 5-45 points (Haiku 4.5 to 7%, GPT-5.5 to 73%) [4].
How can operations teams catch bad nested fields without checking every record manually?
Real-time field uncertainty scoring focuses review bandwidth automatically [8]. CONSTRUCT scores full records and individual nested JSON fields on any LLM (including black-box APIs without logprobs or labeled data), catching errors across a 4-dataset benchmark (including Gemini 3 and GPT-5) with higher precision and recall than prior methods [8].
Primary Sources & Verification Ledger
08 VERIFIED CITATIONS-
[1]
Usman, R. M. (2026). PhantomFill: When the Form Demands an Answer, Language Models Invent One. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2607.20492 ↗
-
[2]
Li, Y. (2026). When JSON Is Not Enough: Semantic Reliability of Schema-Constrained LLM Ordering Agents. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2607.18261 ↗
-
[3]
Chavan, A. (2026). Constrained Decoding Eliminates Structural Failures in Small LLMs but Reveals a Scale-Dependent Semantic Gap. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2609.23742 ↗
-
[4]
Lin, S.-Y. (2026). Your Prompt Is Not the Only Prompt: How Much Do LLMs Weight Structured-Output Schema Descriptions? arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2608.08254 ↗
-
[5]
Li, F., Zhang, A., & Lv, C. (2026). Constraint Tax in Open-Weight LLMs: An Empirical Study of Tool Calling Suppression Under Structured Output Constraints. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2606.25605 ↗
-
[6]
Reddy, A., Walker, T. T., Ide, J. S., & Bedi, A. S. (2026). The Hidden Cost of Structured Generation in LLMs: Draft-Conditioned Constrained Decoding. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2603.03305 ↗
-
[7]
Xu, X., & Bouyarmane, K. (2026). Trie Automata for Constrained Decoding over Large Finite Sets. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2608.12574 ↗
-
[8]
Goh, H. W., & Mueller, J. (2026). Real-Time Trustworthiness Scoring for LLM Structured Outputs and Data Extraction. arXiv preprint.ARXIV VERIFIED arxiv.org/abs/2603.18014 ↗