IFStruct puts structured-output evals on messy, real-world schemas
- Source
- x.com
- Publisher
- Liquid AI
- Date
Today we release IFStruct, a new benchmark to measure how well models generate structured outputs. A 350M model trained on it outperforms models more than 10x its size. 🧵

Context
Liquid AI's IFStruct tests one narrow thing: when a request spells out the shape of answer a program expects, does the model return exactly that shape? Each prompt asks for a few instances of a randomized item in JSON or YAML. A response passes only if every structural requirement holds, meaning the right fields, value types, allowed values, numeric bounds and number of items, with no extra keys. Scoring is pass or fail, and the quality of the content is not judged. IFStruct write-up
What sets it apart is the way the requirements are described. Liquid presents schemas in six styles: a casual chat request, bullet points naming paths, raw JSON , annotated example structures, flat glossaries of paths, and ASCII tables. Half the samples were rewritten into conversational prose, some written as someone thinking out loud and revising what they want. Many prompts also force awkward string escaping, such as multiline text containing quotes, code, file paths or stack traces. Liquid contrasts this with other structured-output benchmarks that mainly measure how accurately facts are extracted, compare constrained-decoding engines, or give partial credit.
The release's headline result comes from training on the benchmark's task. Liquid trained LFM2.5-350M with GRPO, a reinforcement learning method that rewards outputs scoring well, on a held-out training split, and its score rose from 21.10% to 44.90%. In Liquid's table that puts it above granite-4.0-h-tiny at 38.75% and Qwen3.5-4B at 36.25%, which is the basis for the claim that it beats models more than ten times its size. Only the 350M model in that comparison was tuned on IFStruct's own training split, and general models higher up still lead by a wide margin: gemma-4-31B-it scores 95.90% and gpt-oss-20b 91.95%. A Hugging Face walkthrough of a much lighter run, about 100 GRPO steps with its own reward functions, reports a smaller gain for the same model, from 22.6% to 29.7%.
Because content is ignored, a response can meet every structural rule while ignoring what was actually asked, so Liquid recommends adding a quality check, such as an judge, when training against IFStruct. Its validator does not yet check regex patterns, date or email formats, length limits or array uniqueness, and Liquid says its difficulty is pitched at low- to mid-ability models and saturates at the frontier. The benchmark is most informative for small models that must produce strict output for other software to read.
- Field — One named piece of a record, such as name or approved_on; a record is one entity's set of values, one per field.
- Schema — A written description of a data format: which fields exist, what kind of value each holds and which are required.
- Large language model — A model trained on large amounts of data to process and generate language.
- Constraint — A requirement a setup must meet regardless of how well it performs otherwise, such as where documents may be sent or a date by which the work must be done.






