LLMStructBench: Benchmarking Large Language Model Structured Data Extraction
Organizations: KI-Werkstatt / FB2, University of Applied Sciences Berlin
Abstract
We present LLMStructBench, a novel benchmark for evaluating Large Language Models (LLMs) on extracting structured data and generating valid JavaScript Object Notation (JSON) outputs from natural-language text. Our open dataset comprises diverse, manually verified parsing scenarios of varying complexity and enables systematic testing across 22 models and five prompting strategies. We further introduce complementary performance metrics that capture both token-level accuracy and document-level validity, facilitating rigorous comparison of model, size, and prompting effects on parsing reliability. In particular, we show that choosing the right prompting strategy is more important than standard attributes such as model size. This especially ensures structural validity for smaller or less reliable models but increase the number of semantic errors. Our benchmark suite is an step towards future research in the area of LLM applied to parsing or Extract, Transform and Load (ETL) applications.
Figures & tables
| json | |||||
| Use case | Description | Count | Keys | Leaves | Depth |
| Support tickets | Processing of IT support ticket requests | ||||
| Sick leave | Processing of sick-leave requests | ||||
| Project extension | Processing of project extension requests | ||||
| Conference registration | Processing of conference registration requests | ||||
| Loan request | Processing of equipment loan requests | * | * | ||
| Tag | Description | ”format” parameter (API- json mode) | System-prompt |
| J | Only set the ”format” parameter during the request to ”json” | "json" (str) as request parameter | No mentioning about structure |
| P | Demand json return in prompts with Schema and example object | Not set | Include json schema and example object |
| PJ | Set ”format” parameter to ”json” and prompt for json in prompt | "json" (str) as request parameter | Include json schema and example object |
| J+ | Set Schema into ”format” parameter during request | json -Schema (obj) as request parameter | No mentioning about structure |
| PJ+ | Set ”format” parameter and prompt with Schema and example object | json -Schema (obj) as request parameter | Include json schema and example json object |
| Strategy | Correct | Mistakes | Errors | Failed |
| J | ||||
| P | ||||
| PJ | ||||
| J+ | ||||
| PJ+ |
| Strategy | J | P | PJ | J+ | PJ+ |
| Count | 11 | 8 |
| Model | Size | doc | Score | |
| GPT-4o | * | |||
| Gemma3 | B | |||
| Llama3.1 | B | |||
| Gemma3 | B | |||
| Deepseek-R1 | B | |||
| Llama3.3 | B |
| P | PJ+ | |||||||
| Model | mk | mv | wv | mk | mv | wv | ||
| B | ||||||||
| B | ||||||||
| B | ||||||||
| B | ||||||||
| P | PJ+ | |||||||
| Model | mk | mv | wv | mk | mv | wv | ||
| GPT-4o | ||||||||
| Gemma3 - 27b | ||||||||
| Model | Size | Strategy | Score (P) | Score (PJ+) | Dominant Error(s) | Notable Observations |
| Gemma3 | 1B | PJ+ | 0.49 | mk , mv | Complexity penalty under P ; PJ+ improves structure | |
| 12B | P | 0.72 | wv | Outperforms some 70B models; big jump from 1B | ||
| 27B | P | 0.74 | wv | Marginal gain over 12B ; structural errors rare | ||
| LLaMA3 | 70B (3.1/3.3) | P | 0.70–0.73 | wv | High accuracy; variance increases with size | |
| Qwen3 | 0.6B | PJ+ | 0.61 | mk , wv | Low with P ; PJ+ removes structural errors | |
| 1.7B | P | 0.67 | wv | Mid-table despite small size |
Explore similar work
Structure Tax: How Structured Output affects LLMs Performance
structure tax'. We re-examine this claim by evaluating a battery of models, datasets and schemas, measuring task accuracy, confidence calibration, and hidden-state geometry. The tax turns out to depend on schema design rather than on structure per se: reasoning-first field ordering matches or exceeds free-form accuracy, while answer-first ordering causes steep drops, particularly in smaller models. Format sensitivity scales inversely with a task's own structural constraints, and schemas that preserve reasoning order also improve calibration with CKA showing greater separability between correct and incorrect representations in middle transformer layers. Our findings indicate that properly designed structured formats can match or exceed free-form performance, reframing the critical question from whether to structure' to `how to structure' for optimal reasoning preservation.