OpenAI Blog

Introducing Structured Outputs in the API

We are introducing Structured Outputs in the API—model outputs now reliably adhere to developer-supplied JSON Schemas.

arXiv AI
Oct 9

Structure Tax: How Structured Output affects LLMs Performance

The paper investigates the so‑called ‘structure tax’ that is often attributed to constraining large language model outputs to structured formats like JSON or XML. By evaluating various models, datasets, and schema designs, the authors find that the accuracy loss depends more on how the schema is organized than on the presence of structure itself. Specifically, reasoning‑first field ordering can match or surpass free‑form accuracy, whereas answer‑first ordering leads to significant drops, especially in smaller models. The study also shows that well‑designed schemas improve confidence calibration and the separability of correct versus incorrect representations in transformer layers.

By Vineet Kumar, Kanishka, Bhuvanesh Mandora
arXiv Computation and Language
Oct 27

Where LLMs Fail with Visualization DSLs

arXiv:2610.01873v2 Announce Type: replace-cross Abstract: As LLMs take up the role of authoring charts using visualization domain-specific languages (DSLs), the human constraints that shaped those la...

By Chang Han, Andrew McNutt, Katherine Isaacs
arXiv AI
Sep 17

Schema-Key Wording as an Instruction Channel in Structured Generation under Constrained Decoding

The paper investigates how the wording of schema‑key tokens can serve as an implicit instruction channel in constrained decoding for structured generation. By treating structured generation as a multi‑channel instruction problem, the authors analyze when an instructional advantage is preserved after grammar projection and conduct experiments on GSM8K and Math500 across seven language models. Results show that changing only the schema‑key wording can significantly alter accuracy, with both positive and negative effects, and that prompt‑level and schema‑level instructions interact non‑additively.

By Yifan Le