Cornell study: JSON mode cuts answer diversity across 44 language models
omarsar0 · x · 2026-07-23
Structured output can narrow model answers more than expected
A Cornell paper tests whether asking for structured output changes not just formatting, but the content distribution itself. Across 44 language models and 31 broad-answer prompts, the authors find that a simple instruction like “Reply with JSON only” measurably reduces diversity.
Key findings
- On an open-ended pick-a-word prompt, asking for JSON shifts the modal answer from 41% to 64% and cuts distinct answers from 52 to 36.
- The collapse appears for JSON and XML, both formats models are trained to emit, but not for YAML and CSV.
- Forcing a schema at the decoder does not compress answers further, suggesting the narrowing happens when the model forms the response, not when the decoder enforces structure.
- In a within-run re-sample, 53% of stable chat defaults shift under JSON mode, often back toward the majority answer.
- The effect survives in 28 of 31 categories and shows a register-specific gradient: compression is present in answer-delivery formats, absent for YAML/CSV, and reversed for a generic bracket wrapper.
Why it matters
If your agent or pipeline relies on JSON mode, you may be sampling from a smaller and more homogeneous pool than the chat surface suggests.
More from coding & agent
- T3 Chat's Inbox-Style Sidebar Aims to End Fragmented AI Coding Workflows — threepointone · 2026-07-23
- Sales-deck agent adoption jumped only after it showed its reasoning — Professional_Cow2868 · 2026-07-23
- Claude Tag adds admin rules for auto-mode actions in Slack workspaces — EricBuess · 2026-07-23
- A deep dive into how MCP tool calling works under the hood — jeffiql · 2026-07-23
- Steel’s browser plugin runs Hermes tools in the cloud for hard web navigation — Teknium · 2026-07-23
- OpenAI’s Codex uses encrypted server-side context compaction, and Pi can now enable it — dotey · 2026-07-23