TLDR: DeepJSONEval is a new benchmark for evaluating Large Language Models’ ability to extract information into complex, multi-layer nested JSON structures. It features 2100 instances across ten domains with varying difficulty (3-7 nesting levels) and uses a multi-dimensional evaluation framework. Experiments show significant performance gaps among LLMs, especially with deeper nesting, highlighting the need for better models in real-world web data mining. The benchmark’s scores correlate strongly with real-world web extraction pipeline performance, validating its utility.
The digital world is overflowing with information, but much of it is repetitive or poorly organized, making it hard to find truly valuable insights. Imagine trying to find specific details in a mountain of social media comments or lengthy news articles. This challenge is what multi-layer nested JSON structures aim to solve by compressing vast amounts of information into organized, hierarchical formats. These structures use key-value pairs, arrays, and nested objects to preserve relationships and enable efficient data storage and retrieval.
Large Language Models (LLMs), like GPT-4, have emerged as powerful tools for web data mining. They can process unstructured text and directly output structured results into complex JSON schemas. However, current methods for evaluating LLMs often focus on simply generating JSON rather than assessing their ability to truly understand and extract data from complex sources. This gap means existing benchmarks don’t fully reflect the demands of real-world web data mining tasks.
Introducing DeepJSONEval: A New Benchmark for LLM Data Mining
To address these limitations, researchers have introduced DeepJSONEval, a novel benchmark designed to rigorously evaluate LLMs’ capabilities in handling complex, nested JSON data. This benchmark features 2100 instances across ten diverse domains, each with deep nested structures categorized by difficulty. The goal is to assess how well LLMs can comprehend raw text and map it to specific JSON schemas, producing both syntactically and semantically correct multi-layer nested JSON objects.
Key Innovations of DeepJSONEval
DeepJSONEval brings several important innovations to the field:
-
Advanced Schema Construction: It uses an innovative algorithm called “Real-time Path-Value Updating Beam Exploration for Constrained Schema Subtree Construction” to build complex nested structures effectively.
-
Deep Nesting Focus: The benchmark specifically targets deep nesting structures, with JSON schemas ranging from 3 to 7 levels of depth and an average of 17.5 properties. This significantly increases the evaluation complexity and relevance to real-world web data mining.
-
Comprehensive Data Type Coverage: DeepJSONEval incorporates various data types, including strings, numbers, boolean values, string enumerations, and lists, to thoroughly test LLM robustness.
-
Multi-Dimensional Evaluation: A detailed evaluation framework assesses format matching accuracy, field correctness, and complete structural correctness, offering a comprehensive view of JSON generation quality.
How DeepJSONEval Was Built
The creation of DeepJSONEval involved a systematic four-stage process. It began with collecting data from diverse web sources, followed by conceptualizing schemas through hierarchical organization of extracted concepts. A novel algorithm then automated schema generation, and finally, ground truth data was compiled from refined text corpora, with human-in-the-loop quality control to ensure accuracy.
The benchmark categorizes instances into two difficulty levels: “Medium” for 3-4 nesting levels and “Hard” for 5-7 nesting levels. This progressive evaluation helps differentiate model capabilities effectively. The prompt lengths also reflect this complexity, with Hard samples generally being longer and more variable.
Experimental Insights and LLM Performance
Experiments conducted on 12 leading LLMs revealed significant performance gaps, especially when dealing with increased complexity. All LLMs showed a systematic degradation in performance as tasks moved from medium to hard difficulty, with strict evaluation scores declining substantially (17.22%-37.53%). Hard-level tasks consistently challenged all models, with strict scores often remaining below 60%, underscoring the effectiveness of deep nesting structures in differentiating model capabilities.
The analysis also showed consistent model behavior across the ten diverse domains, indicating that the benchmark accurately represents practical deployment challenges. Furthermore, performance varied across JSON element types; LLMs achieved the highest accuracy on numeric lists but struggled more with string lists, pointing to architectural challenges in processing complex nested list structures.
Crucially, an external validity test demonstrated a strong correlation (0.987) between DeepJSONEval scores and real-world web pipeline performance. This confirms that improvements on the benchmark directly translate to concrete gains in end-to-end web extraction and analytics.
Also Read:
- SafeEvalAgent: A Dynamic Approach to AI Safety Evaluation
- AI Agents Transform Data Analysis: A Comprehensive Overview
Conclusion and Future Directions
DeepJSONEval sets a new standard for evaluating LLMs’ structured output capabilities, particularly for multi-layer nested JSON generation and information extraction. Its innovative schema generation, graded difficulty assessment, and comprehensive evaluation framework provide a robust tool for advancing research in this critical area. Future work will focus on extending the framework to support even deeper nesting levels and incorporating dynamic schema adaptation to keep pace with evolving LLM architectures. For more details, you can read the full research paper here.


