paper-with-me

Papers

Generating Structured Outputs from Language Models: Benchmark and Studies

2025-01-18 · Saibo Geng, Hudson Cooper, Michał Moskal, Samuel Jenkins, Julian Berman, Nathan Ranchin, Robert West, Eric Horvitz, Harsha Nori

Reliably generating structured outputs has become a critical capability for modern language model (LM) applications. Constrained decoding has emerged as the dominant technology across sectors for enforcing structured outputs during generation. Despite its growing adoption, little has been done with the systematic evaluation of the behaviors and performance of constrained decoding. Constrained decoding frameworks have standardized around JSON Schema as a structured data format, with most uses guaranteeing constraint compliance given a schema. However, there is poor understanding of the effectiveness of the methods in practice. We present an evaluation framework to assess constrained decoding approaches across three critical dimensions: efficiency in generating constraint-compliant outputs, coverage of diverse constraint types, and quality of the generated outputs. To facilitate this evaluation, we introduce JSONSchemaBench, a benchmark for constrained decoding comprising 10K real-world JSON schemas that encompass a wide range of constraints with varying complexity. We pair the benchmark with the existing official JSON Schema Test Suite and evaluate six state-of-the-art constrained decoding frameworks, including Guidance, Outlines, Llamacpp, XGrammar, OpenAI, and Gemini. Through extensive experiments, we gain insights into the capabilities and limitations of constrained decoding on structured generation with real-world JSON schemas. Our work provides actionable insights for improving constrained decoding frameworks and structured generation tasks, setting a new standard for evaluating constrained decoding and structured generation. We release JSONSchemaBench at https://github.com/guidance-ai/jsonschemabench

📄 PDF Abstract BibTeX arXiv:2501.10868

Code (2)

guidance-ai/jsonschemabench 공식 구현
guidance-ai/llguidance 공식 구현

Similar Papers 제목 키워드 기반

StarFlow: Generating Structured Workflow Outputs From Sketch Images

2025-03-27 · Patrice Bechard, Chao Wang, Amirhossein Abaskohi, Juan Rodriguez 외

Workflows are a fundamental component of automation in enterprise platforms, enabling the orchestration of tasks, data processing, and system integrations. Despite being widely used, building workflows can be complex, of…

StructEval: Benchmarking LLMs' Capabilities to Generate Structural Outputs

2025-05-26 · Jialin Yang, Dongfu Jiang, Lipeng He, Sherman Siu 외

As Large Language Models (LLMs) become integral to software development workflows, their ability to generate structured outputs has become critically important. We introduce StructEval, a comprehensive benchmark for eval…

Benchmarking

Beyond Traditional Benchmarks: Analyzing Behaviors of Open LLMs on Data-to-Text Generation

2024-01-18 · Zdeněk Kasner, Ondřej Dušek

We analyze the behaviors of open large language models (LLMs) on the task of data-to-text (D2T) generation, i.e., generating coherent and relevant text from structured data. To avoid the issue of LLM training data contam…

Data-to-Text GenerationIn-Context LearningText Generation

A Retrieve-and-Edit Framework for Predicting Structured Outputs

2018-12-04 · NeurIPS 2018 12 · Tatsunori B. Hashimoto, Kelvin Guu, Yonatan Oren, Percy Liang

For the task of generating complex outputs such as source code, editing existing outputs can be easier than generating complex outputs from scratch. With this motivation, we propose an approach that first retrieves a tra…

Retrieval

RelationalFactQA: A Benchmark for Evaluating Tabular Fact Retrieval from Large Language Models

2025-05-27 · Dario Satriani, Enzo Veltri, Donatello Santoro, Paolo Papotti

Factuality in Large Language Models (LLMs) is a persistent challenge. Current benchmarks often assess short factual answers, overlooking the critical ability to generate structured, multi-record tabular outputs from para…

Retrieval